lilei 4 yıl önce
ebeveyn
işleme
6974bb2081
2 değiştirilmiş dosya ile 7 ekleme ve 5 silme
  1. 2 2
      main.js
  2. 5 3
      pages/cart/cart.vue

+ 2 - 2
main.js

@@ -41,11 +41,11 @@ Vue.prototype.$hasPermissions = function (value) {
 // 防止重复触发事件
 Vue.prototype.$bindClick = function (fun) {
 	if(!store.state.vuex_isClick){
-		fun()
 		store.state.vuex_isClick = true
+		fun()
 		setTimeout(()=>{
 			store.state.vuex_isClick = false
-		},300)
+		},2000)
 	}
 }
 const app = new Vue({

+ 5 - 3
pages/cart/cart.vue

@@ -24,7 +24,7 @@
 					</view>
 					<view class="des">
 						<view>商品满<text>{{item.goldLimit}}</text></view>
-						<u-image mode="scaleToFill" width="26rpx" height="26rpx" src="/static/ledou.png"></u-image>
+						<image mode="scaleToFill" style="width: 26rpx;height: 26rpx;" src="/static/ledou.png"></image>
 						<view>才可购买</view>
 					</view>
 				</view>
@@ -45,14 +45,14 @@
 								<view v-if="good.goods.inventoryQty==0||good.goods.state == 0||good.goods.delFlage == 0" class="goods-staus">
 									<text>已失效</text>
 								</view>
-								<u-image border-radius="12" width="158rpx" height="140rpx" :src="good.goods.homeImage+'?x-oss-process=image/resize,m_pad,h_252,w_325,color_ffffff'"></u-image>
+								<u-image border-radius="12" width="158rpx" height="140rpx" :src="good.goods.homeImage+'?x-oss-process=image/resize,m_pad,h_140,w_158,color_ffffff'"></u-image>
 							</view>
 							<view class="goods-text">
 								<view class="good-name">{{good.goods.name}}</view>
 								<view class="goods-price">
 									<view>
 										<text>{{good.goods.sellGold}}</text>
-										<u-image mode="scaleToFill" width="30rpx" height="30rpx" src="/static/ledou.png"></u-image>
+										<image mode="scaleToFill" style="width: 30rpx;height: 30rpx;"src="/static/ledou.png"></image>
 									</view>
 									<view v-if="good.goods.inventoryQty>0&&good.goods.state==1">
 										<uni-numbers-box @change="goodsNumsChange()" :index="cindex+'-'+index" :value="good.buyQty" :min="1"></uni-numbers-box>
@@ -414,6 +414,8 @@ page{
 				flex-grow: 1;
 				.goods-imgs{
 					position: relative;
+					border:1px solid #eee;
+					border-radius: 10rpx;
 					.goods-staus{
 						width: 100%;
 						height: 100%;