Browse Source

git清除文件添加

wcni 5 năm trước cách đây
mục cha
commit
cc4840857c
2 tập tin đã thay đổi với 8 bổ sung4 xóa
  1. 1 0
      .gitgnore
  2. 7 4
      pages/index/shop.vue

+ 1 - 0
.gitgnore

@@ -0,0 +1 @@
+unpackage/  #unpackage 下文件不上传

+ 7 - 4
pages/index/shop.vue

@@ -115,7 +115,7 @@
  				<view class="a-t">
  					<image :src="nuberImg==''?firstImg:nuberImg"></image>
  					<view class="right">
- 						<text class="price" style="font-size: 36upx;color: #303133">{{totalprice==0?datalist.goods_price:totalprice}}</text>
+ 						<text class="price" style="font-size: 36upx;color: #303133">{{totalprice==0?datalist.goods_price:totalprice}}</text>
 						<view v-if="datalist.spec_list.length > 0 ">
 							<view class="selected" v-if="specSelected.length > 0 ">
 								<text class="selected-text" v-for="(sItem, sIndex) in specSelected" :key="sIndex">
@@ -153,7 +153,7 @@
 				<!-- :max="goods_storage"  -->
 				<view class="numberchange">
 					  <span>数量</span>
-					  <uninumberbox :min="1" @change="changestorage"/>
+					  <uninumberbox :max="goods_storage" :min="1" @change="changestorage"/>
 				</view>
  			</view>
  		</view>
@@ -322,8 +322,11 @@
 			},
 			// 更改商品数量
 			changestorage(e) {
-				if(e == goods_storage) {
-					this.$msg("到达商品最大规格啦");
+				
+				console.log(e)
+				console.log(this.goods_storage);
+				if(e == this.goods_storage) {
+					this.$msg("您选择的数量已超过最大库存数");
 					return;
 				}
 				this.shopnumber = e;