瀏覽代碼

预定须知

wcni 5 年之前
父節點
當前提交
322c0e6b0f
共有 2 個文件被更改,包括 14 次插入4 次删除
  1. 1 1
      pages/index/cart.vue
  2. 13 3
      pages/index/sureBuy.vue

+ 1 - 1
pages/index/cart.vue

@@ -20,7 +20,7 @@
 			  				    <van-checkbox  checked-color="#D9332E" :name="index"></van-checkbox>
 			  				  </van-checkbox-group> 
 			  			  </view>
-			  			  <view style="flex: 15;"  @click.stop="checkboxChange()">
+			  			  <view style="flex: 15;">
 			  			  <van-card
 			  			    title-class="changewidth"
 			  				price-class ="priceClass"

+ 13 - 3
pages/index/sureBuy.vue

@@ -112,13 +112,17 @@
 		
 		 <van-dialog
 		   use-slot
-		   title="标题"
+		   title="预订须知"
 		   :show="ishow"
 		   @confirm="confirmOrder"
 		   :show-cancel-button="false"
 		 >
+		 
 		  <view style="padding: 0 32rpx;">
-			  <rich-text :nodes="store.buy_notice"></rich-text>
+			  <scroll-view style="height: 40vh;" :scroll-top="scrollTop"  scroll-y="true" :refresher-enabled="false">
+				  <rich-text :nodes="store.buy_notice"></rich-text>
+			  </scroll-view>
+			  
 		  </view>
 		 
 		 </van-dialog>
@@ -227,7 +231,13 @@
 		
 		methods: {
 			readshouknow() {
-				this.ishow = true;
+				if(this.store.buy_notice!='') {
+					this.ishow = true;
+					
+				}else {
+					this.$msg("暂无预定须知哦")
+				}
+				
 			},
 			confirmOrder() {
 				this.ishow = false;