From dd2922d3facbfba5add501f35de5649b80b6cf05 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期二, 10 九月 2024 18:22:53 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/v2' into v2 --- sub_pages/customer/self/member-center.vue | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/sub_pages/customer/self/member-center.vue b/sub_pages/customer/self/member-center.vue index 20a7331..6d5edd4 100644 --- a/sub_pages/customer/self/member-center.vue +++ b/sub_pages/customer/self/member-center.vue @@ -9,7 +9,8 @@ <view class="info bg-white p20"> <view class="flex"> <view>成长值规则</view> - <view class="m-l-a m-r-0 text-right desc-gray" @click="goto('/pages/help/content?id=会员协议',false)">点击查看会员协议 + <view class="m-l-a m-r-0 text-right desc-gray" @click="goto('/pages/help/content?id=会员协议',false)"> + 点击查看会员协议 </view> </view> @@ -22,7 +23,8 @@ </view> <view> <view class="m-t-12">积分达到 - {{currentInfo.customerDTO.userGrowthRecord.targetMemberInfos[0].targetStartPoint || '-'}}</view> + {{currentInfo.customerDTO.userGrowthRecord.targetMemberInfos[0].targetStartPoint || '-'}} + </view> <view class="m-t-12">优惠 {{currentInfo.customerDTO.userGrowthRecord.targetMemberInfos[0].targetDiscountAmount || '-'}}元/扎 </view> @@ -70,9 +72,16 @@ // targetMemberLevel: "钻石会员" // targetStartPoint: 10001 //计算下一个等级的差距 + let name = this.currentInfo.customerDTO.userGrowthRecord.currentMemberLevel + for (var tmp of this.bannerList) { tmp.point = { current: this.currentInfo.customerDTO.userGrowthRecord.currentGrowthValue || 0 + } + tmp.currentMsg = '' + if (tmp.title === name) { + //说明是当前等级,其他待定 + tmp.currentMsg = '当前等级' } } if (this.currentInfo.customerDTO.userGrowthRecord.targetMemberInfos) { @@ -93,7 +102,7 @@ this.init = true this.$nextTick(() => { - var name = this.currentInfo.customerDTO.userGrowthRecord.currentMemberLevel + // var name = this.currentInfo.customerDTO.userGrowthRecord.currentMemberLevel var index = -1 for (var tmp of this.bannerList) { index += 1 @@ -116,26 +125,27 @@ return { init: false, bannerList: [{ - bg: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/d3/d31e9011d1c140068942c106c2f7e37bTFDUPzQRgaHx7a20dcefe1fb5eb12e18d294b8c1f86e.png', + bg: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/74/74cae150ea44463f92abbe1f9dd3c561fKcsrp0hOcNYa1cfb5eb753e56876fddcba7ea1e1a32.png', picture: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/ef/ef96604518db467fbd344c08e48d1fac8jZdk1ED0Yq023d4f86c2ec36975c981ba522c2bfe3f.png', title: '普通会员', // description: '一万年太久,就现在,给你爱', path: '', - point: undefined + point: undefined, }, { - bg: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/cf/cff11dd119174483a46858ace7ddc2a3lJlA3kEXom5H82b85fac5f2db00d50ece7e650207f78.png', + bg: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/25/2534864ad275400b9e8db4042b87bfeaBv7NbzOZG0ptc7fca5df83dcd97fd02b4027518cc593.png', picture: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/07/075db9222f7a41e981c5b263d7210ed5Ztljs5yDHKILd37c3399011f84f401b755477bb8a323.png', title: '银卡会员', // description: '花中樱,鱼乃鲷花中樱,鱼乃鲷', - path: '' + path: '', + // currentMsg:'' }, { - bg: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/5b/5b9bcdeb29ab4ab7a7a7871e430e9180kwtx0q4ovEGpe93cd3cc7772e4b31a6cfea199663815.png', + bg: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/4d/4d8ab63e75ca462fa9e3bb480ff2da68ID5KnLIH9DwM23f9a04d99cc1f3306a8655c1eff34bf.png', picture: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/f1/f192b651606045ddba5c5f04a34a00c2R8MmH6mVsprH81cab47fbe889222f6088f4ca2cf20d5.png', title: '金卡会员', // description: '取材自湘西苗族传统的烟熏文化', path: '' }, { - bg: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/ce/ce13a8fe5d7d48aeb6e6dec8217d8cbeWia6N8vcYrbse93cd3cc7772e4b31a6cfea199663815.png', + bg: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/db/db6b0cefdbb949cca9c8da824a5ebdebXsPsk2ROfxZu22f9b09e3feece76753b0df971fdc301.png', picture: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/c9/c94d8f444af94b899d1e1593cebb933eDyZyhyoyDxTRaf60a4d692f097e5d790cdb88fae9d0c.png', title: '钻石会员', // description: '在自己的小世界里,日日好日,夜夜好清宵', -- Gitblit v1.9.3