From 9ee6586e9e7c14a510f3ff5b51abe076b7447e8f Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 13 Nov 2025 16:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=AF=E4=BB=98=E6=9C=AA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=AF=86=E7=A0=81=E6=97=B6=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=89=8D=E9=9C=80=E8=A6=81=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=9C=AA=E7=AB=8B=E5=8D=B3=E7=94=9F=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BF=AE=E5=A4=8D=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=91=A8=E6=9C=9F=E7=A6=8F=E5=88=A9=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xb-swiper-preview/images/icon-back.png | Bin 0 -> 2148 bytes components/xb-swiper-preview/index.vue | 385 +++++++++++ pages/order/confirm-order.vue | 5 +- pages/product/components/goods-modal.vue | 251 +++++++ pages/product/index.vue | 217 ++++-- pages/test/test.vue | 4 +- pages/user/member/setPassword.vue | 647 +++++++++--------- user/vip/buy-vip.vue | 3 +- user/vip/vip.vue | 43 +- 9 files changed, 1185 insertions(+), 370 deletions(-) create mode 100644 components/xb-swiper-preview/images/icon-back.png create mode 100644 components/xb-swiper-preview/index.vue create mode 100644 pages/product/components/goods-modal.vue diff --git a/components/xb-swiper-preview/images/icon-back.png b/components/xb-swiper-preview/images/icon-back.png new file mode 100644 index 0000000000000000000000000000000000000000..f0303543ce4e9ec7ce81d009b9a8daa82f799247 GIT binary patch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JN732n9 z)>L4>qJlyvoE1v9^wm!Ic}X`FISL~0MxG7S&GRKjH~9ZwF#01*#9ZOao~}9(3#N$d zV7f@Cnj(TR&IP{gX{yG!V2;iXri+BCIXW!JxWJb^O?5#gEJYTz7*8BEuFXcVLsGY`R4W0b!F~5*XdziQS|ZwyC;< z8<#TCHdTa#joNWgy8WJLqc);Lr~)^D<5DFKRe+!ntRoK2bibzx)?r15a5d>bZuGWO zxEh3ofKB-jfE1^IP4wC!WLb6+oI{q8bqLy*jetx+`)t-BY^56sXpqcdD{a;xaBDge zat+*S=LR8kaWWFB%Z*85?xl&R5Q29nBcLV0yKUAXe0^gQXv{4QUvIMx2RPIxp)ChE z*sQ}5CaXzk>k%eV5;!q09O6^JAwE%c6ppbf=oqVL#~coFOEyAU^H!Q+XtONBQHBK* zU?*$gFwc}k;*nl>|hyW{sJsj9WaP zH-HC|Dvqips^Q@TjX2XQ?IOT-(%U7`M{G0ul6?pgMcJ54g2i!j?9{O&mds4Zo5bxT zz?K(VIjRX~;64*5q$nZ)9vjY46U+HjyF<4XK|r+O06@QSgV|(!lI)Qqd56!jb%kuK zmgkL%IZ|ZA$f5~|lEEesPHp05Vux1-YtpurLWsR>I!jWt9z5F{mk!x literal 0 HcmV?d00001 diff --git a/components/xb-swiper-preview/index.vue b/components/xb-swiper-preview/index.vue new file mode 100644 index 0000000..64a45b5 --- /dev/null +++ b/components/xb-swiper-preview/index.vue @@ -0,0 +1,385 @@ + + + + + diff --git a/pages/order/confirm-order.vue b/pages/order/confirm-order.vue index ea19abe..0a66878 100644 --- a/pages/order/confirm-order.vue +++ b/pages/order/confirm-order.vue @@ -413,7 +413,7 @@ import { onShow, onBackPress } from "@dcloudio/uni-app"; import { onHide } from "@dcloudio/uni-app"; // 输入支付密码 const ispws = ref(false); -const userInfo = uni.cache.get("userInfo"); +let userInfo = uni.cache.get("userInfo"); // 会员信息 const orderVIP = ref(uni.cache.get("orderVIP")); @@ -891,8 +891,10 @@ const goToPay = async (payParams) => { } return; } + // 余额支付 if (payParams.payType == "accountPay") { + console.log("orderVIP.value", orderVIP.value); if (orderVIP.value.payPwd == "" &&userInfo.usePayPwd) { uni.showModal({ title: "提示", @@ -1032,6 +1034,7 @@ function closeSocket() { } onShow(() => { + userInfo = uni.cache.get("userInfo"); if (cartsSocket) { cartsSocket.connect(); } diff --git a/pages/product/components/goods-modal.vue b/pages/product/components/goods-modal.vue new file mode 100644 index 0000000..fd3b53c --- /dev/null +++ b/pages/product/components/goods-modal.vue @@ -0,0 +1,251 @@ + + + + \ No newline at end of file diff --git a/pages/product/index.vue b/pages/product/index.vue index bb4d128..ef92c6f 100644 --- a/pages/product/index.vue +++ b/pages/product/index.vue @@ -65,6 +65,7 @@ >限时折扣 + + @click=" + prveImgs( + specifications.item.images, + specifications.item.images[swiperCurrent] + ) + " + > + + + {{ specifications.item.name }} - + {{ specifications.item.shortTitle ? specifications.item.shortTitle @@ -622,8 +639,7 @@ :key="option" @click="selectSpec(specType, option)" :class="{ - shop_sku_box_item_selected: - selectedSpecs[specType] === option, + shop_sku_box_item_selected: isSkuSelected(specType, option), }" > {{ option }} @@ -783,24 +799,35 @@ {{ selectedSpecsStr }} - - {{ skuBtnText }} - - - {{ skuBtnText }} - + + @@ -818,10 +845,17 @@ v-if="isDataLoaded" @onBuyClick="onBuyClick" > + + \ No newline at end of file diff --git a/user/vip/buy-vip.vue b/user/vip/buy-vip.vue index ede2699..4ff9230 100644 --- a/user/vip/buy-vip.vue +++ b/user/vip/buy-vip.vue @@ -182,8 +182,9 @@ } if (name == '周期福利') { model.title = '周期福利' + let couponLen=memberLevel.value.cycleRewardCouponList?memberLevel.value.cycleRewardCouponList.length:0 modelContent.value = - `每${memberLevel.value.cycleUnit}赠送${memberLevel.value.cycleRewardPoints}积分,${memberLevel.value.cycleRewardCouponList.length}张优惠券` + `每${memberLevel.value.cycleUnit}赠送${memberLevel.value.cycleRewardPoints}积分${couponLen?(','+couponLen+'张优惠券'):''}` } if (name == '会员说明') { model.title = '会员说明' diff --git a/user/vip/vip.vue b/user/vip/vip.vue index 627d57b..03f2904 100644 --- a/user/vip/vip.vue +++ b/user/vip/vip.vue @@ -13,7 +13,7 @@ {{ memberLevel ? memberLevel.name : '' }} {{ memberLevel ? dayjs(memberLevel.endTime).format('YYYY-MM-DD') : '' }}到期 - {{ memberLevel ? memberLevel.memberName : '' }} + {{ memberLevel ? memberLevel.memberCircleName : '' }} @@ -235,6 +235,27 @@ const res = await vipApi.config({ shopId: shopId }); + + const res1 = await vipApi.detail({ + shopId: shopId + }); + if (res1) { + memberLevel.value = { + ...res1.memberLevel, + endTime: res1.endTime, + memberName: res1.memberName, + experience: res1.experience, + nextExperienceValue: res1.nextExperienceValue, + memberCircleName:res1.memberCircleName, + memberCircleReward:res1.memberCircleReward, + }; + const total = res1.experience * 1 + res1.nextExperienceValue * 1; + const percent = ((res1.experience * 1) / total) * 100; + if (total <= 0 || res1.experience * 1 <= 0) { + expProgress.value = 100; + } + expProgress.value = percent; + } if (res) { res.memberLevel.cycleRewardCouponList = res.memberLevel.cycleRewardCouponList || [] res.memberLevel = res.memberLevel || {} @@ -254,7 +275,7 @@ return true }).map((v) => { if (v.name == '赠送成长值' && res.memberLevel) { - v.desc = `赠送${res.memberLevel.experienceValue}成长值` + v.desc = `赠送${memberLevel.value.memberCircleReward}成长值` } if (v.name == '优惠券') { if (res.memberLevel.cycleRewardCouponList.length) { @@ -301,24 +322,6 @@ menus.value = tiaojian_menus; } } - const res1 = await vipApi.detail({ - shopId: shopId - }); - if (res1) { - memberLevel.value = { - ...res1.memberLevel, - endTime: res1.endTime, - memberName: res1.memberName, - experience: res1.experience, - nextExperienceValue: res1.nextExperienceValue - }; - const total = res1.experience * 1 + res1.nextExperienceValue * 1; - const percent = ((res1.experience * 1) / total) * 100; - if (total <= 0 || res1.experience * 1 <= 0) { - expProgress.value = 100; - } - expProgress.value = percent; - } } const nextName = computed(() => {