This commit is contained in:
@fawn-nine
2023-03-06 09:45:27 +08:00
parent 5e751ac276
commit f2878a13c7
3 changed files with 18 additions and 364 deletions

View File

@@ -15,7 +15,7 @@
<view class="commodityContent">
<view class="commodityPrice">
<span></span><em>{{productInfo.price}}</em>
<span class="oldPrice ">原价45</span>
<span class="oldPrice " v-if="productInfo.activityPrice">原价{{productInfo.activityPrice}}</span>
</view>
<view class="commodityyName">
{{productInfo.productName}}
@@ -29,20 +29,18 @@
<view class="bookInfo">
<u-row customStyle="margin-bottom: 10px">
<u-col span="6"><span>书名{{productInfo.productName}}</span></u-col>
<u-col span="6"><span>作者{{productInfo.author}}</span></u-col>
</u-row>
<u-row customStyle="margin-bottom: 10px">
<u-col span="6"><span>出版社{{productInfo.publisher}}</span></u-col>
<u-col span="6"><span>出版时间{{ productInfo.pubDate | formatDate }}</span></u-col>
</u-row>
<u-row customStyle="margin-bottom: 10px">
<u-col span="6"><span>开本{{productInfo.format}}</span></u-col>
<u-col span="6"><span>页数{{productInfo.pageNum}}</span></u-col>
</u-row>
<u-row customStyle="margin-bottom: 10px">
<u-col span="6"><span>内文用纸材质{{productInfo.quality}}</span></u-col>
</u-row>
<u-col span="6" v-if="productInfo.author"><span>作者{{productInfo.author}}</span></u-col>
<u-col span="6" v-if="productInfo.publisher"><span>出版社{{productInfo.publisher}}</span></u-col>
<u-col span="6" v-if="productInfo.pubDate"><span>出版时间{{ productInfo.pubDate | formatDate }}</span></u-col>
<u-col span="6" v-if="productInfo.format"><span>开本{{productInfo.format}}</span></u-col>
<u-col span="6" v-if="productInfo.pageNum"><span>页数{{productInfo.pageNum}}</span></u-col>
<u-col span="6" v-if="productInfo.quality"><span>内文用纸材质{{productInfo.quality}}</span></u-col>
</u-row>
</view>
<!-- <view class="commodityIntroduce" v-html="productInfo.productDetails"> -->

View File

@@ -433,7 +433,10 @@
this.youhuiShow = false
},
// 提交结算
goBuyJie() {
goBuyJie() {
if(this.addressList.length == 0) {
this.dizhiShow = true // 如果没有地址信息
}
if (!this.nowClick) {
return
}