You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.1 KiB
96 lines
2.1 KiB
<script>
|
|
export default {
|
|
globalData: {
|
|
// url: 'http://192.168.3.4:9301/crest',
|
|
// brestUrl: 'http://192.168.3.4:9302/brest',
|
|
// imgUrl: 'https://192.168.3.4:9301/filesystem/',
|
|
//正式
|
|
// url: 'https://hsg.dctpay.com/crest',
|
|
// imgUrl: 'https://hsg.dctpay.com/filesystem/',
|
|
// brestUrl: 'https://hsg.dctpay.com/brest',
|
|
// imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/',
|
|
//测试
|
|
url: 'https://hsgcs.dctpay.com/crest',
|
|
brestUrl: 'https://hsgcs.dctpay.com/brest',
|
|
imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
|
|
imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/',
|
|
userInfo: "",
|
|
brestUserInfo: '',
|
|
bresthighAgent: '',
|
|
openId: '',
|
|
code: '',
|
|
token: '',
|
|
brestToken: '',
|
|
cityId: '',
|
|
cityName: '',
|
|
longitude: '',
|
|
latitude: '',
|
|
balancePrice: '',
|
|
balanceCardNo: '',
|
|
identificationCode: '',
|
|
// h5获取信息
|
|
h5code: '',
|
|
//门店ID
|
|
storeid: '',
|
|
//门店名字
|
|
storename: '',
|
|
//公众号进入值
|
|
accountId: '',
|
|
//个人码key
|
|
gasKey: '',
|
|
//个人码code
|
|
staffCode: '',
|
|
//公众号菜单区分
|
|
accountType: '',
|
|
//区分肯德基 星巴克
|
|
distinguishid: '',
|
|
//千猪下单数据
|
|
qianzhulist: '',
|
|
//星巴克价格
|
|
salesTallPrice: '',
|
|
//第三方嵌入id
|
|
mchId: '',
|
|
//千猪名称
|
|
qianzhuCityName: '重庆市',
|
|
//团油数据
|
|
pelletoilList: ''
|
|
|
|
},
|
|
onLaunch: function() {
|
|
},
|
|
onShow: function() {
|
|
let that = this;
|
|
uni.getStorage({
|
|
key: 'openId',
|
|
success(e) {
|
|
if (e.data) {
|
|
that.globalData.openId = e.data;
|
|
}
|
|
}
|
|
})
|
|
uni.getStorage({
|
|
key: 'user',
|
|
success(e) {
|
|
if (e.data) {
|
|
that.globalData.userInfo = e.data;
|
|
}
|
|
}
|
|
})
|
|
|
|
uni.getStorage({
|
|
key: 'token',
|
|
success(e) {
|
|
if (e.data) {
|
|
that.globalData.token = e.data;
|
|
}
|
|
}
|
|
})
|
|
},
|
|
onHide: function() {}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
/*每个页面公共css */
|
|
@import "/static/iconfont/font.scss";
|
|
</style>
|
|
|