Selaa lähdekoodia

1.修改清空功能问题

306132416@qq.com 6 vuotta sitten
vanhempi
commit
153d30be5a
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      pages/index/index.vue

+ 4 - 2
pages/index/index.vue

@@ -30,7 +30,7 @@
 				</view>
 				<view class="talk-box">
 					<view class="talk-head-box">
-						<image :src='rabotHeadImg' mode="" class="talk-head"></image>
+						<image :src='rabotHeadImg' mode="" class="talk-head" ></image>
 					</view>
 					<view class="talk-content">{{chat.reply}}<text class="goRechargeText" v-if='chat.isRecharge' @click.stop="goSharePage()">去分享</text></view>   
 				</view>
@@ -41,7 +41,7 @@
 		<view class="send-box" :style="{ 'padding-bottom' : isShowKeyBoard + 'px'}">
 			<image :src="[!isVoiceType ? '/static/icon/voice-icon.png' : '/static/icon/keyBoard-icon.png']"  @click.stop='tabVoice()'></image>
 		    
-			<view class="voice-mode" v-if='isVoiceType'  @click="asrStart">语音识别</view>
+			<view class="voice-mode" v-if='isVoiceType'  @click="asrStart" >语音识别</view>
 			  <!-- <view>{{arsRes}}</view> -->
 			    <!-- 语音识别 -->
 			  <wechat-asr ref="weixinAsr" @callback="asrResult"/>
@@ -468,6 +468,7 @@
 			lower() {
 				if (this.scrollRequestEnable) {
 					// 允许滚动时,触底page加一,重新请求数据
+					console.log(666)
 					page++;
 					this.getHistory();
 				} else {
@@ -538,6 +539,7 @@
 								duration:1500
 							});
 							that.$refs.popup.close();
+							page = 1;
 							that.getHistory();
 						}else{
 							uni.showToast({