1.新增优惠券包肯德基,星巴克,会员充值跳转

yj-dev
杨杰 2 years ago
parent ed89ec9e35
commit 0dd3867064
  1. 44
      App.vue
  2. 8
      pages/tabBar/home/home.vue
  3. 16
      pages/user/coupon/coupon.vue
  4. 2
      subPages/coupon-packge-details/coupon-packge-details.vue

@ -5,15 +5,15 @@
// brestUrl: 'http://192.168.3.4:9302/brest', // brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
// url: 'https://hsg.dctpay.com/crest', url: 'https://hsg.dctpay.com/crest',
// imgUrl: 'https://hsg.dctpay.com/filesystem/', imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl: 'https://hsg.dctpay.com/brest', brestUrl: 'https://hsg.dctpay.com/brest',
// imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/',
// //
url: 'https://hsgcs.dctpay.com/crest', // url: 'https://hsgcs.dctpay.com/crest',
brestUrl: 'https://hsgcs.dctpay.com/brest', // brestUrl: 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/', // imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/', // imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "", userInfo: "",
brestUserInfo: '', brestUserInfo: '',
bresthighAgent: '', bresthighAgent: '',
@ -29,7 +29,7 @@
balanceCardNo: '', balanceCardNo: '',
identificationCode: '', identificationCode: '',
//id //id
companyId:'', companyId: '',
// h5 // h5
h5code: '', h5code: '',
//ID //ID
@ -58,9 +58,9 @@
pelletoilList: '' pelletoilList: ''
}, },
onLaunch: function() { onLaunch: function() {},
},
onShow: function() { onShow: function() {
// #ifdef H5
let that = this; let that = this;
uni.getStorage({ uni.getStorage({
key: 'openId', key: 'openId',
@ -112,7 +112,8 @@
success(e) { success(e) {
if (e.data) { if (e.data) {
if (that.globalData.accountId == '000001&key' || that.globalData.accountId == if (that.globalData.accountId == '000001&key' || that.globalData.accountId ==
'000000&gasKey' || that.globalData.accountId == '000009&key' || that.globalData.accountId == '0000010&key') { '000000&gasKey' || that.globalData.accountId == '000009&key' || that.globalData
.accountId == '0000010&key') {
that.globalData.staffCode = e.data; that.globalData.staffCode = e.data;
} else { } else {
that.globalData.mchId = e.data; that.globalData.mchId = e.data;
@ -130,6 +131,24 @@
} }
}) })
uni.getStorage({
key: 'cityName',
success(e) {
if (e.data) {
that.globalData.cityName = e.data;
}
}
})
uni.getStorage({
key: 'qianzhuCityName',
success(e) {
if (e.data) {
that.globalData.qianzhuCityName = e.data;
}
}
})
uni.getStorage({ uni.getStorage({
key: 'companyId', key: 'companyId',
success(e) { success(e) {
@ -155,6 +174,7 @@
} }
} }
}) })
// #endif
}, },
onHide: function() {} onHide: function() {}
} }

@ -503,6 +503,14 @@
key: "cityId", key: "cityId",
data: res.return_data.regionId data: res.return_data.regionId
}) })
uni.setStorage({
key: "cityName",
data: res.return_data.provinceName
})
uni.setStorage({
key: "qianzhuCityName",
data: res.return_data.cityName
})
uni.setStorage({ uni.setStorage({
key: "companyId", key: "companyId",
data: res.return_data.companyId data: res.return_data.companyId

@ -248,7 +248,21 @@
uni.navigateTo({ uni.navigateTo({
url: '../../../subPages/recharge/recharge' url: '../../../subPages/recharge/recharge'
}) })
} else { } else if (e.highDiscount.useScope == 4) {
app.globalData.distinguishid = 1;
uni.navigateTo({
url: '/qianzhu-KFC/buffet-order/buffet-order'
})
} else if (e.highDiscount.useScope == 5) {
app.globalData.distinguishid = 2;
uni.navigateTo({
url: '/qianzhu-KFC/buffet-order/buffet-order'
})
} else if (e.highDiscount.useScope == 6) {
uni.navigateTo({
url: '/member-Recharge/choicepage/choicepage'
})
} else{
uni.navigateTo({ uni.navigateTo({
url: '../mineCouponsDestails/mineCouponsDestails?id=' + e.id url: '../mineCouponsDestails/mineCouponsDestails?id=' + e.id
}) })

@ -66,7 +66,7 @@
<wybPopup ref="popup" type="bottom" width="500" scrollY="true" radius="6" :showCloseIcon="true"> <wybPopup ref="popup" type="bottom" width="500" scrollY="true" radius="6" :showCloseIcon="true">
<view class="fotct font18 fontwig6 fcor333 mart10 height30">优惠券包</view> <view class="fotct font18 fontwig6 fcor333 mart10 height30">优惠券包</view>
<view class="width92 height110 tccs mart10" v-for="product in goodsData.discountList" :key="product.id"> <view class="width92 height110 tccs mart10" v-for="product in goodsData.discountList" :key="product.id">
<image mode="widthFix" class="flleft" src="../../static/img/logo.png"></image> <image mode="widthFix" class="flleft" :src="imageUrl+product.discountDetail.discountImg"></image>
<view class="tcrig"> <view class="tcrig">
<view class="font16 fontwig6 fcor333 text2">{{ product.discountDetail.discountName}}</view> <view class="font16 fontwig6 fcor333 text2">{{ product.discountDetail.discountName}}</view>
<view class="font14 fcor999 mart5">数量: x{{product.num}}</view> <view class="font14 fcor999 mart5">数量: x{{product.num}}</view>

Loading…
Cancel
Save