From 582f536845628ffb8132aaed1885ee535fcf08ad Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期四, 27 四月 2023 10:44:51 +0800 Subject: [PATCH] no message --- pages/goodDetail/index.vue | 52 ++++++++++++++++++++++++++++------------------------ 1 files changed, 28 insertions(+), 24 deletions(-) diff --git a/pages/goodDetail/index.vue b/pages/goodDetail/index.vue index d80cfd8..e854a1e 100644 --- a/pages/goodDetail/index.vue +++ b/pages/goodDetail/index.vue @@ -10,12 +10,13 @@ <view v-if="info.imgs?.length>0" class="fixedImgNum"> {{imgNum}} / {{info.imgs.length}} </view> + </view> - <view v-if="info?.subdivisionName" style="background-color: white;padding: 24rpx 12rpx;"> + <view v-if="info?.subdivisionName" style="background-color: white;"> <view class="banner"> <view> - {{info.subdivisionName}}鐑攢鎺掕绗�<text style="color:red;">{{info.subdivisionRank}}</text>鍚� + {{info.subdivisionName}}鐑攢鎺掕 <text style="font-weight: bolder;">绗瑊{info.subdivisionRank}}鍚�</text> </view> <!-- <view> 鏌ョ湅> @@ -23,20 +24,7 @@ </view> </view> - <view class="pricebox"> - <text class="price">锟{info.actualPrice=='0'?info.originalPrice:info.actualPrice}}</text> - <text class="oldPrice" - v-if="Number(info.actualPrice)&&(Number(info.actualPrice)<Number(info.originalPrice))">鍘熶环锛歿{info.originalPrice}}</text> - <text style="float: right;padding-top: 6px;"> - 宸插敭 - <text style="color: red; "> - {{getNumData(info.monthSales??0)+(getNumData(info.monthSales)?'+':'')}} - </text> - 浠� - </text> - </view> - - <view style="display: flex;background-color: white;"> + <view style="display: flex;background-color: white; padding-top: 8px;"> <view v-if="(info.shopType==0||info.shopType==1)&&type!=='2'" style="padding-top: 10px;margin-left: 12px;"> <img style="width:16px;height: 16px;" :src="info.shopType==0?'https://img.alicdn.com/imgextra/i4/751308485/O1CN01ppfg8j2CYBRpPtb51_!!751308485.png':'https://img.alicdn.com/imgextra/i4/751308485/O1CN01mKVp3U2CYBRzeHVcG_!!751308485.png'" @@ -47,6 +35,20 @@ </view> </view> + + <view class="pricebox"> + <view style="display: contents;" class="price"><span style="font-size: 14px;">锟�</span>{{info.actualPrice=='0'?info.originalPrice:info.actualPrice}}</view> + <text class="oldPrice" + v-if="Number(info.actualPrice)&&(Number(info.actualPrice)<Number(info.originalPrice))">鍘熶环锛歿{info.originalPrice}}</text> + <text style="float: right;padding-top: 6px; color: #b6bbbe; font-size: 30rpx;"> + 宸插敭 + {{getNumData(info.monthSales??0)+(getNumData(info.monthSales)?'+':'')}} + + 浠� + </text> + </view> + + <!-- <view class="title"> {{info.dtitle}} </view> --> @@ -135,6 +137,7 @@ <view>鏀惰棌</view> </view> --> <view class="fixedBar_item2"> + <view v-if="type==2||type==4" class="fixedBar_btn2" @click="GetPrivilegeLink(goodid)"> <view> 锟{info.actualPrice}} @@ -144,10 +147,11 @@ <view v-if="Number(info.actualPrice)<Number(info.originalPrice)">棰嗗埜璐拱</view> <view v-else>绔嬪嵆璐拱</view> </view> + <view v-else class="fixedBar_btn1" @click="GetPrivilegeLink(goodid)"> <view>鍙d护澶嶅埗</view> </view> - + </view> </view> @@ -288,7 +292,7 @@ uni.navigateToMiniProgram({ appId: 'wx91d27dbf599dff74', path: 'pages/union/proxy/proxy?spreadUrl=' + e + - '&appid=wx12f06ec7a21748bc', // 涓嶅~榛樿棣栭〉 + '&appid=wxb4e7e6d63908a36e', // 涓嶅~榛樿棣栭〉 // extraData: { // 'data1': 'test' // }, @@ -303,7 +307,7 @@ } else if (me.type == '4') { let e = encodeURIComponent(res.data.result) uni.navigateToMiniProgram({ - appId: 'wxa918198f16869201', + appId: 'wx32540bd863b27570', path: res.data.result, success(res) { @@ -385,7 +389,8 @@ .fixedBar_item2 { display: flex; - align-items: center; + -webkit-justify-content: space-between; + justify-content: space-between; border-radius: 40rpx; width: 100%; } @@ -423,10 +428,9 @@ justify-content: space-between; background-color: #f2eac9; color: #e7ad00; - height: 60rpx; + height: 40rpx; padding: 12rpx; align-items: center; - border-radius: 12rpx; /* background-color: white; */ } @@ -443,8 +447,8 @@ .oldPrice { text-decoration: line-through; color: #b6bbbe; - font-size: 24rpx; - margin-left: 36rpx; + font-size: 30rpx; + margin-left: 16rpx; } .title { -- Gitblit v1.9.3