gcz 2 lat temu
rodzic
commit
8ccb77024d
2 zmienionych plików z 20 dodań i 11 usunięć
  1. 1 1
      center/paycode.vue
  2. 19 10
      shopping/productdetails.vue

+ 1 - 1
center/paycode.vue

@@ -9,7 +9,7 @@
 		</u-navbar>
 		<view class="content">
 			<img class="qrCode" :src="details.qrCode" alt="">
-			<view class="tip">仅限消费者注册使用</view>
+			<view class="tip">仅限消费者注册使用(微信浏览器长按保存)</view>
 			<text class="save" @click="save">保存本地</text>
 		</view>
 	</view>

+ 19 - 10
shopping/productdetails.vue

@@ -79,26 +79,27 @@
 			</view>
 		</view>
 		<view class="details-tool-wrap">
-			<view class="details-tool u-flex u-row-between">
-				<view class="left u-flex">
-					<!-- <view class="icon-wrap">
+			<view class="details-tool">
+				<view class="full-btn" @click="addCart(details.id)">添加</view>
+				<!-- <view class="left u-flex">
+					<view class="icon-wrap">
 						<button class="share-btn" data-name="shareBtn" open-type="share">
 							<u-icon name="share" color="#676767" size="30"></u-icon>
 							分享
 						</button>
-					</view> -->
-				<!-- 	<view class="icon-wrap" v-if="details.isCredit!=1"  @click="$u.route('/shopping/cart')">
+					</view>
+					<view class="icon-wrap" v-if="details.isCredit!=1"  @click="$u.route('/shopping/cart')">
 						<u-icon name="shopping-cart" color="#676767" size="30"></u-icon>
 						购物车
 						<u-badge class="badge" numberType="overflow" type="error " max="99" :value="cartTotal" :absolute="true" :offset="[0,0]"></u-badge>
-					</view> -->
-				</view>
-				<view class="right">
+					</view>
+				</view> -->
+				<!-- <view class="right">
 					<view class="u-flex">
 						<view class="btn add-btn" @click="addCart(details.id)">添加</view>
-						<!-- <view class="btn buy-btn" @click="buyNow(details.id)">立即购买</view> -->
+						<view class="btn buy-btn" @click="buyNow(details.id)">立即购买</view>
 					</view>
-				</view>
+				</view> -->
 				
 			</view>
 		</view>
@@ -341,6 +342,14 @@
 		bottom: 0;
 		height: 98rpx;
 		background-color: #fff;
+		.full-btn{
+			margin: 0;
+			border-radius: 0;
+			background-color: #ff3333;
+			padding: 0;
+			height: 98rpx;
+			line-height: 98rpx;
+		}
 	}
 	.left{
 		text-align: center;