diff --git a/pageQuota/vipUser/index.vue b/pageQuota/vipUser/index.vue
index fae1506..72169b2 100644
--- a/pageQuota/vipUser/index.vue
+++ b/pageQuota/vipUser/index.vue
@@ -289,20 +289,19 @@
const currentTab = ref(1)
const formData = reactive({
store_id: STORE_INFO.id,
- mobile: "19130550023",
+ mobile: "",
province: 510000,
city: '',
area: "",
street: "",
village: "",
- brigade: "",
real_name: "赵明军",
auth_code: "",
address: "",
label_name: "",
label_id: "",
user_ship: '',
- code: '8888'
+ code: ''
})
const conformRole = (e) => {
@@ -438,6 +437,9 @@
if (Role.value == 1) {
uni.scanCode({
success: function(res) {
+
+ if (res.result.length != 14) return uni.$u.toast('二维码未扫描完整');
+
formData.auth_code = res.result
formData.recharge_type = 'INDUSTRYMEMBERS'
formData.user_ship = 1
@@ -480,6 +482,7 @@
const rePay = (item) => {
uni.scanCode({
success: function(res) {
+ if (res.result.length != 14) return uni.$u.toast('二维码未扫描完整');
uni.showLoading({
title: '支付中...'
});
diff --git a/pages/index/index.vue b/pages/index/index.vue
index cfe0d9e..27a6dfa 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -39,7 +39,6 @@
:style="{ height: btns.height + 'px', top: btns.top + 'px', left: (btns.left - 40) + 'px' }">
-
{{ item.store_name }}
-
+
活动价
¥79.8/份
+ style="font-size: 30rpx;">{{item[priceKey.price]}}/{{ item.unit_name }}
10%品牌礼品
@@ -170,7 +169,7 @@
原 价
- ¥32.52
+ ¥{{item[priceKey.op_price]}}
规 格
@@ -290,6 +289,14 @@
store_name: ""
})
+
+
+ const priceKey = reactive({
+ off_activity: "",
+ op_price: "",
+ price: ""
+ })
+
const getStoreInfoFn = () => {
if (uni.getStorageSync('STORE_INFO').length) {
let data = JSON.parse(uni.getStorageSync('STORE_INFO'))
@@ -445,6 +452,10 @@
class: class_id,
cate_id: class_id,
}).then(res => {
+ for (let key in res.data.extend) {
+ priceKey[key] = res.data.extend[key]
+ }
+ console.log(priceKey)
if (loadmore) goodList.value.push(...res.data.lists);
else goodList.value = res.data.lists;
})