master
xiaozhiyong 10 months ago
parent f756390529
commit 555e990180
  1. 3
      Product/pages/placeOrder.vue
  2. 35
      Product/pages/product.vue
  3. 2
      pages.json

@ -10,10 +10,11 @@
<view class="order-details-item flex"> <view class="order-details-item flex">
<text class="oneflex">自提时间</text> <text class="oneflex">自提时间</text>
<uni-datetime-picker v-model="single"> <uni-datetime-picker v-model="single">
<view style="width: 100%;text-align: right;"> <view style="width: 100%;text-align: right;font-weight:550">
{{single?single:'请选择自提时间'}} {{single?single:'请选择自提时间'}}
</view> </view>
</uni-datetime-picker> </uni-datetime-picker>
<uni-icons style="margin-left: 5rpx;" type="right" color="#333" size="15"></uni-icons>
</view> </view>
<view style="margin: 10rpx 0;" class="order-details-item flex"> <view style="margin: 10rpx 0;" class="order-details-item flex">
<text class="oneflex">商品合计</text> <text class="oneflex">商品合计</text>

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

@ -101,7 +101,7 @@
"path": "pages/product", "path": "pages/product",
"style": { "style": {
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": "分类商品", "navigationBarTitleText": "商品明细",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, { }, {

Loading…
Cancel
Save