updata
This commit is contained in:
parent
7d9d88053b
commit
124dffb829
14
main.js
14
main.js
|
|
@ -17,8 +17,11 @@ const app = new Vue({
|
||||||
app.$mount()
|
app.$mount()
|
||||||
// #endif
|
// #endif
|
||||||
import uView from "uview-ui";
|
import uView from "uview-ui";
|
||||||
Vue.use(uView);
|
Vue.use(uView);
|
||||||
import VConsole from 'vconsole';
|
|
||||||
|
import VConsole from 'vconsole';
|
||||||
|
new VConsole();
|
||||||
|
|
||||||
Vue.prototype.text = 1;
|
Vue.prototype.text = 1;
|
||||||
let wx = require('weixin-js-sdk');
|
let wx = require('weixin-js-sdk');
|
||||||
// let $URL = require('urijs');
|
// let $URL = require('urijs');
|
||||||
|
|
@ -33,13 +36,6 @@ Vue.use(PayMixin);
|
||||||
// import pay from '@/static/js/pay.js';
|
// 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')
|
|
||||||
}
|
|
||||||
|
|
||||||
import tool from '@/static/js/toolclass/index.js';
|
import tool from '@/static/js/toolclass/index.js';
|
||||||
Vue.use(prototype);
|
Vue.use(prototype);
|
||||||
Vue.prototype.tool = tool;
|
Vue.prototype.tool = tool;
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,6 @@
|
||||||
|
|
||||||
onLoad(param) {
|
onLoad(param) {
|
||||||
self = this;
|
self = this;
|
||||||
this.handleWechatShare();
|
|
||||||
console.log(param, 'onLoad参数ss');
|
console.log(param, 'onLoad参数ss');
|
||||||
const isWechat = getApp()['globalData']['parameters']?.isWechat;
|
const isWechat = getApp()['globalData']['parameters']?.isWechat;
|
||||||
console.log(isWechat, getApp()['globalData']['parameters']?.brand_id, '是否需要分享');
|
console.log(isWechat, getApp()['globalData']['parameters']?.brand_id, '是否需要分享');
|
||||||
|
|
@ -310,7 +309,9 @@
|
||||||
// 设置微信分享标识
|
// 设置微信分享标识
|
||||||
// wx.miniProgram.postMessage({ data: this['BrandInfor']['brand_id']});
|
// wx.miniProgram.postMessage({ data: this['BrandInfor']['brand_id']});
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
|
this.handleWechatShare();
|
||||||
},
|
},
|
||||||
|
|
||||||
// 打开规格选择弹框
|
// 打开规格选择弹框
|
||||||
|
|
@ -544,7 +545,7 @@
|
||||||
shareInfo: {
|
shareInfo: {
|
||||||
desc: '欢迎来到白马精选',
|
desc: '欢迎来到白马精选',
|
||||||
title: '白马精选',
|
title: '白马精选',
|
||||||
link: 'https://www.baidu.com/',
|
link: shareUrl + '&spread=' + uid,
|
||||||
imgUrl: 'https://imgs.agrimedia.cn/shop/logo.jpg'
|
imgUrl: 'https://imgs.agrimedia.cn/shop/logo.jpg'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -553,7 +554,7 @@
|
||||||
shareInfo: {
|
shareInfo: {
|
||||||
desc: '欢迎来到白马精选',
|
desc: '欢迎来到白马精选',
|
||||||
title: '白马精选',
|
title: '白马精选',
|
||||||
link: 'https://www.baidu.com/',
|
link: shareUrl + '&spread=' + this.GetSpread,
|
||||||
imgUrl: 'https://imgs.agrimedia.cn/shop/logo.jpg'
|
imgUrl: 'https://imgs.agrimedia.cn/shop/logo.jpg'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>在线点餐</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>在线点餐</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><script src="https://h5.dhcc.wang/api/apilink-native.min.js?v=20200701"></script><link rel=stylesheet href=/privilege/static/index.883130ca.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/privilege/static/js/chunk-vendors.acc03eee.js></script><script src=/privilege/static/js/index.ccfed202.js></script></body></html>
|
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><script src="https://h5.dhcc.wang/api/apilink-native.min.js?v=20200701"></script><link rel=stylesheet href=/privilege/static/index.883130ca.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/privilege/static/js/chunk-vendors.acc03eee.js></script><script src=/privilege/static/js/index.3b28cc5d.js></script></body></html>
|
||||||
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/web/static/js/pages-restaurant-home-shop_home-shop_home.b01c9fa8.js
vendored
Normal file
1
unpackage/dist/build/web/static/js/pages-restaurant-home-shop_home-shop_home.b01c9fa8.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue