Przeglądaj źródła

improve: 移动端问题处理

From-wh 2 lat temu
rodzic
commit
c963500a95

Plik diff jest za duży
+ 1578 - 1587
template/uni-app/pages.json


Plik diff jest za duży
+ 612 - 609
template/uni-app/pages/admin/delivery/index.vue


+ 0 - 1
template/uni-app/pages/admin/orderDetail/index.vue

@@ -718,7 +718,6 @@
 
 	.order-details .wrapper .item .conter {
 		color: #868686;
-		width: 500upx;
 		text-align: right;
 	}
 

+ 2 - 2
template/uni-app/pages/extension/customer_list/chat.vue

@@ -1,13 +1,13 @@
 <template>
 	<view class="chat-box" :style="colorStyle">
 		<!-- #ifdef MP -->
-		<view class="head-box">
+<!-- 		<view class="head-box">
 			<view class="system-head" :style="{ height: sysHead }"></view>
 			<view class="title-hd">
 				<view class="iconfont icon-fanhui" @click="goBack"></view>
 				<view>{{ titleName }}</view>
 			</view>
-		</view>
+		</view> -->
 		<!-- #endif -->
 		<view class="broadcast-details_order">
 			<!-- 商品信息 -->

+ 1 - 0
template/uni-app/pages/goods/goods_list/index.vue

@@ -59,6 +59,7 @@
 		<view class='noCommodity' v-if="productList.length==0 && where.page > 1">
 			<view class='emptyBox'>
 				<image :src="imgHost + '/statics/images/no-thing.png'"></image>
+				<view class="tips">{{$t(`暂无商品,去看点别的吧`)}}</view>
 			</view>
 			<recommend :hostProduct="hostProduct"></recommend>
 		</view>

+ 3 - 1
template/uni-app/pages/goods/order_pay_status/index.vue

@@ -38,9 +38,11 @@
 			<view @tap="goOrderDetails" v-if="status==0">
 				<button formType="submit" class='returnBnt bg-color' hover-class='none'>{{$t(`查看订单`)}}</button>
 			</view>
-			<view @tap="getOrderPayInfo" v-if="payType == 'ALLINPAY_PAY'">
+			<!-- #ifdef H5 -->
+			<view @tap="getOrderPayInfo" v-if="order_pay_info.paid==0">
 				<button class='returnBnt bg-color' hover-class='none'>{{$t(`刷新支付状态`)}}</button>
 			</view>
+			<!-- #endif -->
 			<view @tap="goOrderDetails" v-if="order_pay_info.paid==0 && status==1">
 				<button class='returnBnt bg-color' hover-class='none'>{{$t(`重新购买`)}}</button>
 			</view>

+ 23 - 23
template/uni-app/pages/user/index.vue

@@ -529,30 +529,30 @@
 				})
 			},
 			getphonenumber(e) {
-				Routine.getCode()
-					.then(code => {
-						let data = {
-							code,
-							iv: e.detail.iv,
-							encryptedData: e.detail.encryptedData,
-						}
-						mpBindingPhone(data).then(res => {
-							this.getUserInfo()
-							this.$util.Tips({
-								title: res.msg,
-								icon: 'success'
-							});
-						}).catch(err => {
-							return this.$util.Tips({
-								title: err
-							});
+				if (e.detail.errMsg == 'getPhoneNumber:ok') {
+					Routine.getCode()
+						.then(code => {
+							let data = {
+								code,
+								iv: e.detail.iv,
+								encryptedData: e.detail.encryptedData,
+							}
+							mpBindingPhone(data).then(res => {
+								this.getUserInfo()
+								this.$util.Tips({
+									title: res.msg,
+									icon: 'success'
+								});
+							}).catch(err => {
+								return this.$util.Tips({
+									title: err
+								});
+							})
 						})
-					})
-					.catch(error => {
-						uni.hideLoading();
-					});
-
-				console.log(e)
+						.catch(error => {
+							uni.hideLoading();
+						});
+				}
 			},
 			/**
 			 * 获取个人用户信息