lilei 5 months ago
parent
commit
7dfcd2ce6a
1 changed files with 27 additions and 2 deletions
  1. 27 2
      pagesB/shopiing/productDetail.vue

+ 27 - 2
pagesB/shopiing/productDetail.vue

@@ -54,11 +54,15 @@
 				<view class="row">原厂编码:<text>{{detail.product.origCode||'--'}} </text> <view class="copyText" v-if="detail.product.origCode" @click="copy(detail.product.origCode)">复制</view></view>
 				<view class="row">产品编码:<text>{{detail.product.code||'--'}}</text> <view class="copyText" v-if="detail.product.code" @click="copy(detail.product.code)">复制</view></view>
 				<view class="row">条形码:<text>{{detail.product.qrCode||'--'}}</text> <view class="copyText" v-if="detail.product.qrCode" @click="copy(detail.product.qrCode)">复制</view></view>
-				<view class="row-ban">商品尺寸:<text>{{detail.product.size||'--'}}</text></view>
+				<view class="row">商品尺寸:<text>{{detail.product.size||'--'}}</text></view>
 				<view class="row-ban">计量单位:<text>{{detail.product.unit||'--'}}</text></view>
 				<view class="row-ban">重量:<text>{{detail.product.weight||'--'}}</text></view>
 				<view class="row-ban">包装数:<text>{{ (detail.product.packQty) || '--' }}{{ detail.product.packQty ? detail.product.unit : '' }}/{{ detail.product.packQtyUnit||'--' }}</text></view>
 			</view>
+			<view class="flex align_center row-info">
+				<view class="flex"><u-icon :size='24' name="checkbox-mark"></u-icon> <view class="txt">由汽配啇发货</view></view>
+				<view class="flex"><u-icon :size='24' name="checkbox-mark"></u-icon> <view class="txt">退换货及售后请联系汽配啇</view></view>
+			</view>
 			<view class="product-info-content">
 				<rich-text v-if="detail && detail.product && detail.product.description" :nodes="detail.product.description"></rich-text>
 				<view v-else style="font-size: 12px;color: #999;text-align: center;">暂无产品介绍</view>
@@ -337,6 +341,11 @@
 			copy(text){
 				uni.setClipboardData({
 					data: text,
+					success: function () {
+						uni.showToast({
+							title: '复制成功'
+						})
+					}
 				})
 			},
 			viewImg(index){
@@ -847,7 +856,7 @@
 					flex-wrap: wrap;
 					justify-content: space-between;
 					background:#fff;
-					margin: 10px 0;
+					margin: 10px 0 0;
 					padding: 10px;
 					line-height: 28px;
 					.row{
@@ -863,6 +872,22 @@
 						}
 					}
 				}
+				.row-info{
+					width: 100%;
+					background: #fff;
+					font-size: 24rpx;
+					text-align: center;
+					margin: 20rpx 0;
+					padding: 15rpx;
+					.txt{
+						margin-left: 10rpx;
+						color: #666;
+						font-weight: bold;
+					}
+					> view{
+						padding: 0 10px;
+					}
+				}
 				.product-info-content{
 					background:#fff;
 					margin-bottom: 10px;