瀏覽代碼

bug 修复

lilei 4 年之前
父節點
當前提交
c5c4c2fdd7

+ 3 - 3
components/jyf-parser/libs/trees.vue

@@ -2,7 +2,7 @@
 	<view :class="'interlayer '+(c||'')" :style="s">
 		<block v-for="(n, i) in nodes" v-bind:key="i">
 			<!--图片-->
-			<view v-if="n.name=='img'" :class="'_img '+n.attrs.class" :style="n.attrs.style" :data-attrs="n.attrs" @tap.stop="imgtap">
+			<view v-if="n.name=='img'" :class="'_img '+n.attrs.class" :style="n.attrs.style" :data-attrs="n.attrs" @click.stop="imgtap">
 				<rich-text v-if="ctrl[i]!=0" :nodes="[{attrs:{src:loading&&(ctrl[i]||0)<2?loading:(lazyLoad&&!ctrl[i]?placeholder:(ctrl[i]==3?errorImg:n.attrs.src||'')),alt:n.attrs.alt||'',width:n.attrs.width||'',style:'-webkit-touch-callout:none;max-width:100%;display:block'+(n.attrs.height?';height:'+n.attrs.height:'')},name:'img'}]" />
 				<image class="_image" :src="lazyLoad&&!ctrl[i]?placeholder:n.attrs.src" :lazy-load="lazyLoad"
 				 :show-menu-by-longpress="!n.attrs.ignore" :data-i="i" :data-index="n.attrs.i" data-source="img" @load="loadImg"
@@ -15,7 +15,7 @@
 			<!--#endif-->
 			<!--视频-->
 			<view v-else-if="((n.lazyLoad&&!n.attrs.autoplay)||(n.name=='video'&&!loadVideo))&&ctrl[i]==undefined" :id="n.attrs.id"
-			 :class="'_video '+(n.attrs.class||'')" :style="n.attrs.style" :data-i="i" @tap.stop="_loadVideo" />
+			 :class="'_video '+(n.attrs.class||'')" :style="n.attrs.style" :data-i="i" @click.stop="_loadVideo" />
 			<video v-else-if="n.name=='video'" :id="n.attrs.id" :class="n.attrs.class" :style="n.attrs.style" :autoplay="n.attrs.autoplay||ctrl[i]==0"
 			 :controls="n.attrs.controls" :loop="n.attrs.loop" :muted="n.attrs.muted" :poster="n.attrs.poster" :src="n.attrs.source[ctrl[i]||0]"
 			 :unit-id="n.attrs['unit-id']" :data-id="n.attrs.id" :data-i="i" data-source="video" @error="error" @play="play" />
@@ -26,7 +26,7 @@
 			 @play.native="play" />
 			<!--链接-->
 			<view v-else-if="n.name=='a'" :id="n.attrs.id" :class="'_a '+(n.attrs.class||'')" hover-class="_hover" :style="n.attrs.style"
-			 :data-attrs="n.attrs" @tap.stop="linkpress">
+			 :data-attrs="n.attrs" @click.stop="linkpress">
 				<trees class="_span" c="_span" :nodes="n.children" />
 			</view>
 			<!--广告-->

+ 3 - 3
components/uni-coods/uni-coods.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="goods-list">
 		<view class="goods-item" v-for="item in list" :key="item.id">
-			<view class="goods-imgs"  @tap="toDetail(item)">
+			<view class="goods-imgs"  @click="toDetail(item)">
 				<view v-if="item.inventoryQty == 0" class="goods-staus">已售罄</view>
 				<view v-if="item.delFlage == 0 || item.state == 0" class="goods-staus">已失效</view>
 				<u-lazy-load 
@@ -12,13 +12,13 @@
 				:error-img="errorImg">
 				</u-lazy-load>
 			</view>
-			<view class="name ellipsis-two"  @tap="toDetail(item)">{{item.name}}</view>
+			<view class="name ellipsis-two" @click="toDetail(item)">{{item.name}}</view>
 			<view class="price">
 				<view>
 					<text>{{item.sellGold}}</text>
 					<u-image mode="scaleToFill" width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
 				</view>
-				<view @tap="addCart(item)" v-if="item.inventoryQty > 0">
+				<view @click="addCart(item)" v-if="item.inventoryQty > 0">
 					<u-image mode="scaleToFill" width="45rpx" height="45rpx" src="/static/addCart.png"></u-image>
 				</view>
 			</view>

+ 2 - 2
pages/goods/goodsDetail.vue

@@ -48,8 +48,8 @@
 		</view>
 		<!-- 底部浮动按钮 -->
 		<view class="bottom-btns" v-if="goodContent&&goodContent.inventoryQty > 0&&goodContent.state==1">
-			<view><u-button :custom-style="addCartButton" type="warning" @tap="addCart">加入购物车</u-button></view>
-			<view><u-button :custom-style="toOrderButton" type="error" @tap="toOrder()">立即下单</u-button></view>
+			<view><u-button :custom-style="addCartButton" type="warning" @click="addCart">加入购物车</u-button></view>
+			<view><u-button :custom-style="toOrderButton" type="error" @click="toOrder()">立即下单</u-button></view>
 		</view>
 		<!-- 购物车 -->
 		<uni-cart-fix></uni-cart-fix>

+ 2 - 2
pages/goods/index.vue

@@ -1,13 +1,13 @@
 <template>
 	<view class="content">
-		<u-swiper height="250" @tap="clickBanner" :list="imageTopList"></u-swiper>
+		<u-swiper height="250" @click="clickBanner" :list="imageTopList"></u-swiper>
 		<view class="t1">
 			<u-image height="40" src="/static/t1.png"></u-image>
 		</view>
 		<!-- 商品 -->
 		<view class="goods">
 			<view v-for="(item,index) in goodsList" :key="index" v-if="goodsList.length&&item.list.length">
-				<u-section :title="item.type.name" font-size="35" line-color="#01c9b2" sub-title="更多" @tap="toGoods(item.type)"></u-section>
+				<u-section :title="item.type.name" font-size="35" line-color="#01c9b2" sub-title="更多" @click="toGoods(item.type)"></u-section>
 				<view class="goods-list">
 					<uni-coods :goldLimit="item.type.goldLimit" :list="item.list"></uni-coods>
 				</view>

+ 4 - 4
pages/toOrder/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="cart-pages">
-		<view v-if="!userInfo.receiveAddress" @tap="editAddress" class="noAddress">
+		<view v-if="!userInfo.receiveAddress" @click="editAddress" class="noAddress">
 			<view>请输入收货地址</view>
 			<u-icon name="arrow-right" size="36"></u-icon>
 		</view>
@@ -12,7 +12,7 @@
 				 <view class="address">{{receiveAddress}}</view>
 				 <view>{{userInfo.receiverName +'&nbsp;&nbsp;&nbsp;' + userInfo.receiverPhone}}</view>
 			</view>
-			<view @tap="editAddress">
+			<view @click="editAddress">
 				<u-image height="50rpx" width="50rpx" src="/static/edit.png"></u-image>
 			</view>
 		</view>
@@ -54,7 +54,7 @@
 			  <u-image mode="scaleToFill" width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
 			</view>
 			<view>
-				<u-button size="mini" :loading="btnLoading" :custom-style="toOrderButton" type="error" @tap="toSaveOrder">确认支付</u-button>
+				<u-button size="mini" :loading="btnLoading" :custom-style="toOrderButton" type="error" @click="toSaveOrder">确认支付</u-button>
 			</view>
 		</view>
 		<!-- 提示用户设置支付密码 -->
@@ -92,7 +92,7 @@
 					placeholder="请输入支付密码" />
 				</view>
 				<view class="fot-btn">
-					<u-button :loading="payBtn" @tap="toPay" type="error" >确认支付</u-button>
+					<u-button :loading="payBtn" @click="toPay" type="error" >确认支付</u-button>
 				</view>
 			</view>
 		</u-popup>

+ 1 - 1
pages/userCenter/userInfo/paymentPwd.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="paymentPwd-container">
 		<text class="pwd-describe">{{nowSetp == 1 ? '请设置6位数字支付密码' : nowSetp == 2 ? '请再次输入密码' : ''}}</text>
-		<view class="sms-item" @tap="showKeyboard=!showKeyboard">
+		<view class="sms-item" @click="showKeyboard=!showKeyboard">
 			<u-message-input mode="bottomLine" :maxlength="6" v-model="value" :dot-fill="true" :disabled-keyboard="true"></u-message-input>
 		</view>
 		<!-- 数字键盘 -->

+ 1 - 1
pages/userCenter/userInfo/smsVerification.vue

@@ -3,7 +3,7 @@
 		<view v-if="sendCode" class="">
 			<view class="sms-title">输入短信验证码</view>
 			<text class="sms-describe">验证码已发送至{{userPhone}},请在下方输入框内输入6位数字验证码</text>
-			<view class="sms-item" @tap="showKeyboard=!showKeyboard">
+			<view class="sms-item" @click="showKeyboard=!showKeyboard">
 				<u-message-input mode="bottomLine" :maxlength="6" v-model="value" :disabled-keyboard="true"></u-message-input>
 			</view>
 			<view class="sendcode-con">