diff --git a/bundle_b/pages/local_settled/index.vue b/bundle_b/pages/local_settled/index.vue index b19eea7..c990069 100644 --- a/bundle_b/pages/local_settled/index.vue +++ b/bundle_b/pages/local_settled/index.vue @@ -121,7 +121,7 @@ --> - @@ -501,7 +501,7 @@ }) }, - // 上传手持身份证 + // 上传自拍照 uploadHandCard() { uni.chooseImage({ count: 1, @@ -620,7 +620,7 @@ }) if (!idCard) return this.$toast({ - title: '请上传手持身份证' + title: '请上传自拍照' }) if (!name) return this.$toast({ diff --git a/bundle_b/pages/local_shop/local_ercode.vue b/bundle_b/pages/local_shop/local_ercode.vue index e883750..01db374 100644 --- a/bundle_b/pages/local_shop/local_ercode.vue +++ b/bundle_b/pages/local_shop/local_ercode.vue @@ -39,7 +39,7 @@ data, code, msg - } = await getLocalShopById({id: this.lstore_id}) + } = await getLocalShopById({id: this.lstore_id, type: 1}) if (code == 1) { this.pay_image = data.pay_image } diff --git a/bundle_b/pages/local_shop/local_pay.vue b/bundle_b/pages/local_shop/local_pay.vue index d832b63..61e2d29 100644 --- a/bundle_b/pages/local_shop/local_pay.vue +++ b/bundle_b/pages/local_shop/local_pay.vue @@ -14,7 +14,7 @@ - 支付: + 支付: @@ -54,7 +54,7 @@ - 参与百亿返补和八折支付不享受退款服务 + 参与消费返补和八折支付不享受退款服务 @@ -95,7 +95,7 @@ money: '', payway: 1, paywayList: [ - {id: 1, icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/butie.png', name: '百亿返补', extra: '购买商品参与百亿返补', pay_way: 1}, + {id: 1, icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/butie.png', name: '消费返补', extra: '购买商品参与消费返补', pay_way: 1}, {id: 2, icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/bazhe.png', name: '八折支付', extra: '购买商品享受八折服务', pay_way: 2}, {id: 3, icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/icon_withdrawals.png', name: '余额支付', extra: '', pay_way: 3}, ], @@ -103,12 +103,13 @@ successPopup: false, cancelPopup: false, payMoney: 0, - lid: 0 + lid: 0, + info: [], }; }, onLoad(query) { - if (query.id) { + if (query?.id) { this.lid = query.id } else { this.lid = strToParams(decodeURIComponent(this.$Router.currentRoute.query.scene)).lid @@ -135,7 +136,7 @@ }, getLocalShopByIdFunc() { - getLocalShopById({id: this.lid}).then((res) => { + getLocalShopById({id: this.lid, type: 1}).then((res) => { if (res.code == 1) { this.info = res.data } @@ -257,7 +258,7 @@ onShowSuccessPopup() { this.successPopup = !this.successPopup setTimeout(() => { - uni.switchTab({ + uni.navigateTo({ url: '/bundle_b/pages/subsidy_shop/subsidy_shop' }) }, 500) diff --git a/bundle_b/pages/local_shop/local_shop_detail.vue b/bundle_b/pages/local_shop/local_shop_detail.vue index 94b7af7..aaea7c4 100644 --- a/bundle_b/pages/local_shop/local_shop_detail.vue +++ b/bundle_b/pages/local_shop/local_shop_detail.vue @@ -2,21 +2,21 @@ - - {{item.shopName}} + + {{info.shopName}} - {{item.address}} + {{info.address ? info.address : ''}} - + - {{item.distance}} + {{info.distance}} @@ -54,12 +54,14 @@ data() { return { width: '160rpx', - id: 0 + id: 0, + info: [] } }, async onLoad(options) { this.id = options.id - this.reLocationFunc() + // this.reLocationFunc() + this.getLocalShopByIdFunc() }, methods: { ...mapActions(['initLocationFunc']), @@ -72,23 +74,21 @@ // 获取商家详情 async getLocalShopByIdFunc() { - getLocalShopById({id: this.id, longitude: this.cityInfo.gcj02_lng, latitude: this.cityInfo.gcj02_lat}).then((res) => { + getLocalShopById({id: this.id, longitude: this.cityInfo.gcj02_lng, latitude: this.cityInfo.gcj02_lat, type: 1}).then((res) => { if (res.code == 1) { this.info = res.data } }) }, - + + callPhone(phone) { + uni.makePhoneCall({ + phoneNumber: phone + }); + } }, computed: { ...mapGetters(['sysInfo', 'cityInfo', 'userInfo']), - }, - watch: { - cityInfo: { - handler(val) { - this.getLocalShopByIdFunc() - } - } } } diff --git a/bundle_b/pages/local_shop/local_shop_info.vue b/bundle_b/pages/local_shop/local_shop_info.vue index e0cd7c3..d3d4a61 100644 --- a/bundle_b/pages/local_shop/local_shop_info.vue +++ b/bundle_b/pages/local_shop/local_shop_info.vue @@ -43,7 +43,6 @@ return { storeState: 1, menu: [ - {title: '信息编辑', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_info.png', src: '/bundle_b/pages/local_shop/local_edit_info'}, {title: '商品添加', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_add.png', src: '/bundle_b/pages/local_shop/local_shop_add'}, {title: '商品管理', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_shop.png', src: '/bundle_b/pages/local_shop/local_shop_manager'}, {title: '订单管理', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_order.png', src: '/bundle_b/pages/local_shop/local_shop_order'}, @@ -63,7 +62,7 @@ }, methods: { getLocalShopByIdFunc(id) { - getLocalShopById({id}).then((res) => { + getLocalShopById({id, type: 0}).then((res) => { if (res.code == 1) { this.info = res.data } diff --git a/bundle_b/pages/local_shop_pay/order.vue b/bundle_b/pages/local_shop_pay/order.vue index 6491c7d..e4d9e19 100644 --- a/bundle_b/pages/local_shop_pay/order.vue +++ b/bundle_b/pages/local_shop_pay/order.vue @@ -4,19 +4,19 @@ - 东龙汇(浙江)电子商务有限公司 + {{item.account_name}} 付款金额 ¥ - 5.00 + {{item.total_amount}} 支付时间 - 2024-08-10 23:59:59 + {{item.create_time}} diff --git a/pages/local_life/local_life.vue b/pages/local_life/local_life.vue index 7b1cf4e..dd1542f 100644 --- a/pages/local_life/local_life.vue +++ b/pages/local_life/local_life.vue @@ -124,6 +124,7 @@ async onLoad(options) { try { if (!options?.refresh) { + console.log('refresh') this.reLocationFunc() this.mescroll.resetUpScroll() }