From 55e5572005adc3b465260628a9348f63acb916fd Mon Sep 17 00:00:00 2001
From: zmj <1493694146@qq.com>
Date: Wed, 10 Jul 2024 16:03:34 +0800
Subject: [PATCH] add
---
api/order.js | 4 +
components/goodPopup.vue | 24 +-
pageQuota/asset/lists.vue | 137 +++
pageQuota/vipUser/index.vue | 1636 +++++++++++++++++------------------
pages.json | 9 +-
pages/index/index.vue | 11 +-
pages/my/my.vue | 1 +
7 files changed, 973 insertions(+), 849 deletions(-)
create mode 100644 pageQuota/asset/lists.vue
diff --git a/api/order.js b/api/order.js
index 193cb14..7e04004 100644
--- a/api/order.js
+++ b/api/order.js
@@ -74,4 +74,8 @@ export const refundReasonListApi = (data) => {
// 订单退款申请
export const applyRefundApi = (data) => {
return request.post('/order/order/apply_refund', data);
+}
+
+export const UserProductStorageLogApi = (data) => {
+ return request.get('/user_product_storage_log/UserProductStorageLog/lists', data);
}
\ No newline at end of file
diff --git a/components/goodPopup.vue b/components/goodPopup.vue
index 3b8aff1..1744c24 100644
--- a/components/goodPopup.vue
+++ b/components/goodPopup.vue
@@ -63,14 +63,7 @@
computed,
nextTick,
ref,
-
} from "vue"
- import {
- toast
- } from "../uni_modules/uview-plus";
- import {
- onShow
- } from '@dcloudio/uni-app';
const foucs1 = ref(null)
const props = defineProps({
@@ -78,20 +71,17 @@
type: Boolean,
default: false
},
+ priceKey: {
+ type: Object,
+ default: () => ({})
+ }
+
})
const valChange = () => {
uni.vibrateShort();
}
- let priceKey = ref({})
- if (uni.getStorageSync('PRICE_KEY')) {
- priceKey.value = JSON.parse(uni.getStorageSync('PRICE_KEY'));
- } else {
- priceKey.value = {};
- }
-
-
const datas = ref({
cart_num: ''
});
@@ -121,7 +111,9 @@
const subtotal = computed(() => {
let num = +datas.value.cart_num || 1;
- let sell = +datas.value[priceKey.value.off_activity == 1 ? priceKey.value.price : priceKey.value.op_price];
+ let sell = +datas.value[props.priceKey.off_activity == 1 ? props.priceKey.price : props
+ .priceKey
+ .op_price];
return Number(num * sell * 100 / 100).toFixed(2)
})
diff --git a/pageQuota/asset/lists.vue b/pageQuota/asset/lists.vue
new file mode 100644
index 0000000..a900e08
--- /dev/null
+++ b/pageQuota/asset/lists.vue
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+ {{item.system_store_name}}
+
+
+ 提货码
+
+
+
+ 预约时间:{{item.times}}
+
+
+ 提货时间:{{item.update_time}}
+
+
+
+ 商品信息:{{item.store_name}}
+
+
+ x{{item.nums}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 提货码 {{orderData.verify_code}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageQuota/vipUser/index.vue b/pageQuota/vipUser/index.vue
index 4e212c7..fb69d07 100644
--- a/pageQuota/vipUser/index.vue
+++ b/pageQuota/vipUser/index.vue
@@ -1,4 +1,5 @@
+
@@ -10,7 +11,8 @@
-
+
@@ -18,15 +20,17 @@
+
-
+
-
+
+
@@ -51,8 +55,8 @@
-
-
+
{{ item.money }}元采购包
@@ -106,7 +110,9 @@
+
+
@@ -125,11 +131,12 @@
+ :placeholderStyle="{ color: 'grey' }"
+ :prefixIconStyle="{ 'margin-right': '40rpx' }">
-
@@ -149,8 +156,8 @@
+ :placeholderStyle="{ fontSize: '28rpx' }" fontSize='20px' border="none"
+ v-model="formData2.price" type='digit' @blur='tofixedPrice(2)'>
@@ -177,30 +184,26 @@
+
-
-
+
当前已开通:
- 位{{ Role == 1 ? '行业会员' : '商户' }}
+ 位行业会员
-
-
行业会员
经营资金
开通时间
角色
状态
-
-
{{ item.real_name }}
@@ -227,21 +230,19 @@
+
-
-
+
当前已开通:
- 位{{ Role == 1 ? '行业会员' : '商户' }}
+ 位商户
-
-
商户
查看号码
开通时间
@@ -249,21 +250,20 @@
-
{{ item.nickname }}
{{ item.mobile }}
{{ item.create_time }}
已开通
-
+
+
-
@@ -271,8 +271,8 @@
:activeStyle="{ color: '#20B128' }">
-
+
{{ item.city_name }}
@@ -295,20 +295,23 @@
{{ item.village_name }}
-
+
-
+
{{ item.brigade_name }}
+
+
@@ -317,117 +320,114 @@
\ No newline at end of file
diff --git a/pages.json b/pages.json
index cc70251..cec1e78 100644
--- a/pages.json
+++ b/pages.json
@@ -245,10 +245,17 @@
{
"path": "asset/index",
"style": {
- "navigationBarTitleText": "会员资产",
+ "navigationBarTitleText": "用户资产",
"enablePullDownRefresh": true
}
},
+ {
+ "path": "asset/lists",
+ "style": {
+ "navigationBarTitleText": "预约记录",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path": "Gifts/index",
"style": {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index e0ccf7d..2bd11bc 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -168,15 +168,15 @@
¥{{item[priceKey.price]}}/{{ item.unit_name }}
-
+
- 赠10%品牌礼品券
+ {{item.tag}}
-
+
售价
@@ -231,7 +231,8 @@
-
+
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 55cc8f0..28b4bad 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -118,6 +118,7 @@
+