diff --git a/main.js b/main.js index 6343acb..1f4451e 100644 --- a/main.js +++ b/main.js @@ -18,7 +18,7 @@ app.$mount() // #endif import uView from "uview-ui"; Vue.use(uView); -// import VConsole from 'vconsole'; +import VConsole from 'vconsole'; Vue.prototype.text = 1; let wx = require('weixin-js-sdk'); // let $URL = require('urijs'); @@ -27,23 +27,18 @@ Vue.prototype.$wx = wx; // 支付文件 import PayMixin from '@/static/js/mixin/PayMixin.js'; Vue.use(PayMixin); -try{ - // new VConsole(); - // console.log(vConsole,'vConsole'); - // vConsole.hide() -}catch(e){ - //TODO handle the exception -} + // Vue.mixin(PayMixin) // 支付方法文件 // import pay from '@/static/js/pay.js'; -// Vue.use(pay); +// Vue.use(pay); + // 只有在开发环境下才加载vconsole -// if (process.env.NODE_ENV == 'development') { -// new VConsole(); -// console.log(JSON.stringify(navigator,null,5),navigator,'userAgent') -// console.log(navigator['userAgent'],'userAgent') -// } +if (process.env.NODE_ENV == 'development') { +new VConsole(); +console.log(JSON.stringify(navigator,null,5),navigator,'userAgent') +console.log(navigator['userAgent'],'userAgent') +} import tool from '@/static/js/toolclass/index.js'; Vue.use(prototype); diff --git a/pages/restaurant/home/shop_home/shop_home.vue b/pages/restaurant/home/shop_home/shop_home.vue index 8b60207..75784ff 100644 --- a/pages/restaurant/home/shop_home/shop_home.vue +++ b/pages/restaurant/home/shop_home/shop_home.vue @@ -515,6 +515,7 @@ // 挂载微信 async handleWechatShare() { + console.log(this.getUrl(), 'ggg') wxconfig({ url: this.getUrl() }).then(res => { let wxConfig = { debug: res.data.debug, diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index fefdfc9..8fafdd8 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@