fei.wang
2025-04-30 722da005a5ec126bedf752ac6bd5c5c7f6172155
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import App from './App'
 
// #ifndef VUE3
import Vue from 'vue'
import store from './store'
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)
 
import uView from "uview-ui";
Vue.use(uView);
 
import './uni.promisify.adaptor'
Vue.config.productionTip = false
 
let vuexStore = require('@/store/$t.mixin.js')
Vue.mixin(vuexStore)
App.mpType = 'app'
const app = new Vue({
    store,
    ...App
})
 
Vue.prototype.$today = (type)=>{//当日
    //今天的时间
    var day = new Date();
    day.setTime(day.getTime());
    var year = day.getFullYear();
    var month = (day.getMonth() + 1) < 10 ? '0'+ (day.getMonth() + 1) : (day.getMonth() + 1);
    var day = day.getDate() < 10 ? '0' + day.getDate() : day.getDate();
        
    if (type == 1) {
        return year;
    } else if (type == 2) {
        return year+"-" + month;
    } else if (type == 3) {
        return year+"-" + month + "-" + day;
    } else {
        return year+"-" + month + "-" + day;
    }
}
 
import request from './config/request.js'
Vue.use(request, app)
// (app)
 
app.$mount()
// #endif
 
// #ifdef VUE3
import {
    createSSRApp
} from 'vue'
export function createApp() {
    const app = createSSRApp(App)
    return {
        app
    }
}
// #endif