|
|
|
@ -13,6 +13,7 @@ |
|
|
|
|
<view class="introduce-section"> |
|
|
|
|
<text class="title">{{productData.productName}}</text> |
|
|
|
|
<view class="price-box"> |
|
|
|
|
<text>{{integral}}积分 </text> |
|
|
|
|
<text class="price-tip">¥</text> |
|
|
|
|
<text class="price">{{price}}</text> |
|
|
|
|
<!-- <text class="m-price">¥488</text> --> |
|
|
|
@ -57,7 +58,7 @@ |
|
|
|
|
<uni-number-box :min="1" v-model="form.number" /> |
|
|
|
|
</view> |
|
|
|
|
<view @click="isSiteList=true" style="padding: 20rpx 30rpx;" class="flex jw ac"> |
|
|
|
|
<view class="oneflex">自提油站</view> |
|
|
|
|
<view class="oneflex" style="font-weight:550">自提油站</view> |
|
|
|
|
<uni-icons type="right" color="#bbbbbb" size="15"></uni-icons> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="form.siteId" @click="isSiteList=true" class="site-container flex jw"> |
|
|
|
@ -176,7 +177,7 @@ |
|
|
|
|
<view class="site-list "> |
|
|
|
|
<view class="site-list-title flex ac"> |
|
|
|
|
<text class="oneflex">自提油站</text> |
|
|
|
|
<!-- <uni-icons type="close" size="20"></uni-icons> --> |
|
|
|
|
<uni-icons type="closeempty" size="20" @click="isSiteList = false"></uni-icons> |
|
|
|
|
</view> |
|
|
|
|
<view class="site-list-container oneflex"> |
|
|
|
|
<view :class="{selected:item.id==form.siteId}" @click="selectSite(item)" |
|
|
|
@ -338,13 +339,23 @@ |
|
|
|
|
}, |
|
|
|
|
price() { |
|
|
|
|
let data = this.findSpecifications(); |
|
|
|
|
console.log(data, ".site-list.site-list.site-list") |
|
|
|
|
// console.log(data, ".site-list.site-list.site-list") |
|
|
|
|
if (data) { |
|
|
|
|
return Number(data?.sellPrice || 0).toFixed(2) |
|
|
|
|
} else { |
|
|
|
|
return '0.00' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
integral() { |
|
|
|
|
let data = this.findSpecifications(); |
|
|
|
|
// console.log(data, ".site-list.site-list.site-list") |
|
|
|
|
if (data) { |
|
|
|
|
return Number(data.marketPrice || 0) |
|
|
|
|
} else { |
|
|
|
|
return '0' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
stockId() { |
|
|
|
|
let data = this.findSpecifications(); |
|
|
|
|
if (data) { |
|
|
|
@ -401,6 +412,10 @@ |
|
|
|
|
}, |
|
|
|
|
selectSite(e) { |
|
|
|
|
this.form.siteId = e.id; |
|
|
|
|
let instance = setTimeout(() => { |
|
|
|
|
clearTimeout(instance) |
|
|
|
|
this.isSiteList = false |
|
|
|
|
},200) |
|
|
|
|
}, |
|
|
|
|
popupChange(e) { |
|
|
|
|
if (!e.show) { |
|
|
|
@ -685,7 +700,19 @@ |
|
|
|
|
height: 64upx; |
|
|
|
|
padding: 10upx 0; |
|
|
|
|
font-size: 26upx; |
|
|
|
|
color: $base-color; |
|
|
|
|
|
|
|
|
|
> text { |
|
|
|
|
&:nth-of-type(1) { |
|
|
|
|
margin-right: 10rpx; |
|
|
|
|
font-size: 32rpx; |
|
|
|
|
color: $base-color; |
|
|
|
|
} |
|
|
|
|
&:nth-of-type(2), |
|
|
|
|
&:nth-of-type(3){ |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
color: #999; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.price { |
|
|
|
|