1 Star 0 Fork 10

姗姗来迟/PaddyShop用户端

forked from alan/PaddyShop用户端 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.js 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
alan 提交于 2022-05-17 01:05 . v1.0.1
import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false
App.mpType = 'app'
// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);
const app = new Vue({
...App
})
// http拦截器
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)
// http接口API集中管理引入部分
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)
//==============================PaddyShop全局组件================================================
import pdsPriceDisplay from "@/components/pds-price/pds-price-display.vue"
import pdsPriceNormal from "@/components/pds-price/pds-price-normal.vue"
import pdsPriceOriginal from "@/components/pds-price/pds-price-original.vue"
import pdsCopyright from "@/components/pds-copyright/pds-copyright.vue"
import pdsBox from "@/components/pds-box/pds-box.vue"
import pdsDialog from "@/components/pds-dialog/pds-dialog.vue"
import pdsGoodsRecommend from "@/components/pds-goods-recommend/pds-goods-recommend.vue"
Vue.component('pdsPriceDisplay',pdsPriceDisplay)
Vue.component('pdsPriceNormal',pdsPriceNormal)
Vue.component('pdsPriceOriginal',pdsPriceOriginal)
Vue.component('pdsCopyright',pdsCopyright)
Vue.component('pdsBox',pdsBox)
Vue.component('pdsDialog',pdsDialog)
Vue.component('pdsGoodsRecommend',pdsGoodsRecommend)
//==============================================================================================
app.$mount()
Vue.prototype.pdsVersion = 'v1.0.1'
Vue.prototype.pdsVersionCode = '20220517'
Vue.prototype.pdsSystemInfo = uni.getSystemInfoSync()
Vue.prototype.pdsSymbol = '¥'
//==============================PaddyShop全局函数================================================
import {
navigateTo,
checkLogin,
inArray,
wechatPay,
getGoodsRecommend
} from './common/utils'
Vue.prototype.checkLogin = checkLogin
Vue.prototype.navigateTo = navigateTo
Vue.prototype.inArray = inArray
Vue.prototype.wechatPay = wechatPay
Vue.prototype.getGoodsRecommend = getGoodsRecommend
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/shanshanop/paddyshop_web.git
git@gitee.com:shanshanop/paddyshop_web.git
shanshanop
paddyshop_web
PaddyShop用户端
master

搜索帮助