PageSourceSearch

https://v2cross.com/wp-content/themes/b2/Assets/fontend/document.js?ver=4.4.1

js v2cross.com collected 2026-09-24 10:41:36 UTC 4,773 bytes, 154 lines download raw bytes

1var requestsPage = new Vue({
2    el:'#requests-page',
3    data:{
4        data:{
5            email:'',
6            title:'',
7            content:'',
8            image:''
9        },
10        image:'',
11        locked:false,
12        progress:0,
13        toast:'',
14        requestList:'',
15        showList:[],
16        pages:0,
17        selecter:'.request-list-box ul',
18        opt:{
19            userid:0,
20            paged:1
21        },
22        api:'getMyDirectmessageList'
23    },
24    mounted(){
25        if(this.$refs.requests){
26            this.opt.paged = this.$refs.paged.getAttribute('data-paged')
27            this.$refs.goldNav.go(this.opt.paged,'comment',true)
28        }
29    },
30    methods:{
31        get(data){
32            this.requestList = data.data
33            this.pages = data.pages
34        },
35        submit(){
36            if(this.locked == true) return
37            this.locked = true
38
39            this.$http.post(b2_rest_url+'submitRequest',Qs.stringify(this.data)).then(res=>{
40                this.requestList.push({
41                    id:Math.round(Math.random()*10000),
42                    type:'from',
43                    date:new Date().Format("yyyy-MM-dd hh:mm:ss"),
44                    value:this.data.title,
45                    content:this.data.content
46                })
47                this.data = {
48                    email:'',
49                    title:'',
50                    content:'',
51                    image:''
52                }
53                this.locked = false
54                Qmsg['success'](b2_global.js_text.circle.sub_success,{html:true});
55            }).catch(err=>{
56                Qmsg['warning'](err.response.data.message,{html:true});
57                this.locked = false
58            })
59        },
60        getFile(event){
61            if(event.target.files.length <= 0) return
62            if(this.locked == true) return
63            this.locked = true
64            this.progress = 0
65            let file = event.target.files[0]
66
67            let formData = new FormData()
68
69            formData.append('file',file,file.name)
70            formData.append("post_id", 1)
71            formData.append("type", 'request')
72
73            let config = {
74                onUploadProgress: progressEvent=>{
75                    this.progress = progressEvent.loaded / progressEvent.total * 100 | 0
76                }
77            }
78
79            this.toast = Qmsg['loading']('Loading...('+this.progress+'%)');
80
81            this.$http.post(b2_rest_url+'fileUpload',formData,config).then(res=>{
82                if(res.data.status == 401){
83                    Qmsg['warning'](res.data.message,{html:true});
84
85                }else{
86                    this.image = res.data.url
87                    this.data.image = res.data.id
88                }
89                
90                this.progress = 0
91                this.$refs.fileInput.value = null
92                this.locked = false;
93                this.toast.close()
94            }).catch(err=>{
95                Qmsg['warning'](err.response.data.message,{html:true});
96                this.locked = false
97                this.progress = 0
98                this.$refs.fileInput.value = null
99                this.toast.close()
100            })
101        },
102        showDrap(id){
103            this.$set(this.showList,id,!this.showList[id])
104        }
105    },
106    watch:{
107        progress(val){
108            this.toast.$elem.firstChild.lastElementChild.innerText = 'Loading...('+val+'%)';
109        }
110    }
111})
112
113Date.prototype.Format = function (fmt) { // author: meizz
114    var o = {
115        "M+": this.getMonth() + 1, // 月份
116        "d+": this.getDate(), // 日
117        "h+": this.getHours(), // 小时
118        "m+": this.getMinutes(), // 分
119        "s+": this.getSeconds(), // 秒
120        "q+": Math.floor((this.getMonth() + 3) / 3), // 季度
121        "S": this.getMilliseconds() // 毫秒
122    };
123    if (/(y+)/.test(fmt))
124        fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
125    for (var k in o)
126        if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (Reg
126Exp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
127            return fmt;
128}
129
130var documentVote = new Vue({
131    el:'.single-document-footer',
132    data:{
133        postData:[]
134    },
135    methods:{
136        vote(type){
137            b2ContentFooter.vote(type)
138        }
139    }
140})
141
142var documentSidebar = new Vue({
143    el:'.request-supper',
144    methods:{
145        canRequest(url){
146            if(!b2token){
147                userTools.login(1)
148                return
149            }
150
151            window.location.href = url
152        }
153    }
154})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.