Browse Source

1.添加查询次数默认项
2.修改未授权的统一路径
3.修改语音错误提示文本

306132416@qq.com 6 years ago
parent
commit
0a5d36ff07

+ 1 - 1
pages/chat/chat.vue

@@ -40,7 +40,7 @@
       ASRManager.onError = (res) => {
         _this.isShow = false;
         uni.showToast({
-			title:res.msg,
+			title:'系统正在识别,请稍后再试',
         	icon:'none',
 			duration:2000
         })

+ 10 - 3
pages/index/index.vue

@@ -12,7 +12,7 @@
 		>
 			<view class="auth" v-if="!isAuth">
 				<text>对不起,您还未登录!请</text>
-				<button open-type="getUserInfo" @getuserinfo="getUserInfo">授权登录</button>
+				<button @click="goAuthPage">授权登录</button>
 			</view>
 			<!-- <view class="tips-box">
 				{{nowTime}}
@@ -71,7 +71,7 @@
 			<uni-popup ref="showCountsModal" type="center" :custom="true">
 				<view class="uni-tip everyDay-box">
 					<image src="/static/rabotHead.png" mode="aspectFit"></image>
-					<view>恭喜你获取{{ everyDayCounts }}次查询机会</view>
+					<view>恭喜你获取{{ everyDayCounts || 0}}次查询机会</view>
 					<button type="default" @click.stop="addEveryDayCounts">我知道啦</button>
 				</view>
 			</uni-popup>
@@ -505,7 +505,6 @@ export default {
 			}
 		},
 		isNeedAuth(){
-			console.log(this.isAuth)
 			if(!this.isAuth){
 				setTimeout(()=>{
 					uni.navigateTo({
@@ -549,6 +548,14 @@ export default {
 		},
 		clearChat(){
 
+		},
+		goAuthPage(){
+			uni.navigateTo({
+				url: '../auth/index',
+				success: res => {},
+				fail: () => {},
+				complete: () => {}
+			});
 		},
 		openModal(){
 		        // 需要在 popup 组件,指定 ref 为 popup

+ 1 - 1
pages/selfInfo/payList/payList.vue

@@ -9,7 +9,7 @@
 			
 			<view class="pay-content" :class="{'border-select':selectId === search.id}"
 			 v-for="search in searchList" :key='search.id' @click="selectPackage(search)">
-				 <view style="margin-left: 3%;">可查询次数 {{search.times}}</view>
+				 <view style="margin-left: 3%;">可查询次数 {{search.times || 0}}</view>
 				 <view style="margin-right: 5%;">¥ {{search.money}}</view>
 			</view>						
 		</view>

+ 4 - 4
pages/selfInfo/selfInfo.vue

@@ -10,12 +10,12 @@
 		</button>
 		<view class="self-search-box">
 			<view class="search-content">
-				<view class="search-content-value">{{userTime}}</view>
+				<view class="search-content-value">{{userTime || 0}}</view>
 				<view class="search-content-text">剩余查询(次)</view>
 			</view>
 			<view class="line"></view>
 			<view class="search-content">
-				<view class="search-content-value">{{userTotalTime}}</view>
+				<view class="search-content-value">{{userTotalTime || 0}}</view>
 				<view class="search-content-text">累计查询(次)</view>
 			</view>
 			<view class="share-detail" @click.stop="goShareDetail">
@@ -47,11 +47,11 @@
 			
 			<view class="setting-content-box" @click.stop="inviteFriend()">
 				<view class="setting-content-text">
-					<image src="../../static/icon/askIcon.png" mode="" class="askIcon"></image>
+					<image src="../../static/icon/share-icon.png" mode="" class="askIcon"></image>
 				    <text>邀好友</text>
 				</view>
 				<view style="margin-right: 2%;margin-top:2%;display: flex;">
-					<text style="font-size: 25upx;color:#999999;padding-right: 20rpx;">邀1人得{{shareCounts}}次查询机会</text>
+					<text style="font-size: 25upx;color:#999999;padding-right: 20rpx;">邀1人得{{shareCounts || 0}}次查询机会</text>
 					<image src="../../static/icon/arrowIcon.png" mode="" style="width: 32upx;height:32upx;"></image>
 				</view>
 			</view>

+ 2 - 2
pages/selfInfo/shareDetail/shareDetail.vue

@@ -6,7 +6,7 @@
 				<view class="dayGift-box" v-for="(day,index) in dayGiftList" :key='day.id'>
 					<view>{{index + 1}}</view>
 					<view style="margin-left: -35%">{{day.date}}</view>
-					<view style="color: #1AAD19;">+{{day.times}}次</view>
+					<view style="color: #1AAD19;">+{{day.times || 0}}次</view>
 				</view>
 		        <view class="dayGift-box" style="justify-content: center;" v-if="!dayGiftList.length">暂无明细</view>
 			</view>
@@ -22,7 +22,7 @@
 						</view>
 						<view class="friend-time">{{friend.date}}</view>
 					</view>
-					<view style="color: #1AAD19;">+{{friend.times}}次</view>
+					<view style="color: #1AAD19;">+{{friend.times || 0}}次</view>
 				</view>
 			    <view class="dayGift-box" style="justify-content: center;" v-if="!inviteFriendList.length">暂无明细</view>
 			</view>

+ 2 - 2
pages/share/sharePage.vue

@@ -8,11 +8,11 @@
 		     
 			 <view class="share-page-title">
 				 <view class="first-title">每 邀 请 一 位 新 用 户 获 取</view>
-				 <view class="second-title">{{shareCounts}} 次 查 询 次 数</view>
+				 <view class="second-title">{{shareCounts || 0}} 次 查 询 次 数</view>
 			 </view>
 			 
 			<view class="invite-panel-box" style="margin-top: 80%;">
-				 <view>每邀请1人得{{shareCounts}}次查询机会,多邀多得</view>
+				 <view>每邀请1人得{{shareCounts || 0}}次查询机会,多邀多得</view>
 				 <button  class="invite-bth" open-type="share">立 即 邀 请</button>
 				 <button type="warn" class="poster-bth" @click="sharePoster">分 享 海 报</button>
 			 </view>