Просмотр исходного кода

隐藏个人二维码,登录码失效解决

gcz 6 месяцев назад
Родитель
Сommit
5eed2d5eb2
2 измененных файлов с 11 добавлено и 6 удалено
  1. 7 6
      center/orderdetails.vue
  2. 4 0
      common/request.js

+ 7 - 6
center/orderdetails.vue

@@ -158,19 +158,20 @@
 		<u-popup :show="showSingleQR" @close="closeSingleQR" @open="openSingleQR" @touchmove.stop.prevent="handleMoveQrcode" :round="10" mode="center">
 			<view class="singleQR-wrap">
 				<view class="title">
-					二维码
+					详情
 					<!-- <u-icon class="close" @click="closeSingleQR" name="close" color="#333" size="36rpx"></u-icon> -->
 				</view>
 				<view class="single-info">
 					<view class="item">姓名:{{singleInfo.name}}</view>
 					<view class="item">身份证号码:{{singleInfo.idcard|maskID}}</view>
-					<view class="item">座位:{{singleInfo.seatName}}</view>
+					<view class="item" style="font-size: 28rpx;font-weight: bold">座位:{{singleInfo.seatName}}</view>
 					<view class="item">状态:{{singleInfo.qrcodeStatus|filterSingleState}}</view>
 				</view>
 				<template v-if="orderDetails.supportQrcode">
-				<view class="singleQrcode">
-					<uv-qrcode ref="singleQrcode" size="180px" :options="singleQrOptions" :value="singleQrContent" ></uv-qrcode>
-				</view>
+					<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场</view>
+					<!-- <view class="singleQrcode">
+						<uv-qrcode ref="singleQrcode" size="180px" :options="singleQrOptions" :value="singleQrContent" ></uv-qrcode>
+					</view> -->
 				</template>
 				<template v-else-if="orderDetails.supportIdcard && !orderDetails.supportQrcode">
 					<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场,或凭「身份证原件」入场</view>
@@ -178,7 +179,7 @@
 				<template v-else>
 					<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场</view>
 				</template>
-				<view class="order-num" :class="{'del-line':singleInfo.qrcodeStatus!==0}">取票:{{singleInfo.qrcodeNo}}</view>
+				<view class="order-num" :class="{'del-line':singleInfo.qrcodeStatus!==0}">取票:{{singleInfo.qrcodeNo}}</view>
 			</view>
 		</u-popup>
 		<u-toast ref="uToast"></u-toast>

+ 4 - 0
common/request.js

@@ -129,6 +129,10 @@ module.exports = (vm) => {
 				}
 				// uni.$u.toast(data.msg)
 			}
+			if(data.msg == "不合法的 oauth_code"){
+				window.location.href = commonConfig.authUrl;
+				return
+			}
 			if(data.msg == "令牌验证失败" || data.msg == "令牌不能为空" || data.code == 401){
 				unlogin()
 			}