xiaobin.zhang 2 vuotta sitten
vanhempi
commit
1a8ea8e4fe
1 muutettua tiedostoa jossa 10 lisäystä ja 3 poistoa
  1. 10 3
      pages/index/index.vue

+ 10 - 3
pages/index/index.vue

@@ -286,14 +286,14 @@
 			</view>
 		</view>
 		<msgNumber></msgNumber>
-		<view class="chat-fixed" v-if="recommendCard">
+		<!-- <view class="chat-fixed" v-if="recommendCard">
 			<view class="chat-box ddflex" @click="jumpSingleChatRoom()">
 				<image :src="recommendCard.avatar?recommendCard.avatar:'../../static/pages/images/userimg.png'"></image>
 				<view class="chat-lyl">聊一聊</view>
 			</view>
 		</view> -->
 		<view :class="'chat-fixed '+(chatShow?'chat-fixed-long':'')" v-if="recommendCard">
-			<view class="chat-box ddflex">
+			<view class="chat-box ddflex" @click="jumpSingleChatRoom()">
 				<image :src="recommendCard.avatar?recommendCard.avatar:'../../static/pages/images/userimg.png'"></image>
 				<view v-if="chatShowText" class="fflex tover"
 					style="font-size: 24rpx;color: #333333;margin-left: 20rpx;">您好,我是{{recommendCard.realName}},欢迎访问我的微页
@@ -401,7 +401,7 @@
 				fxIndex: 0,
 				fxContentList: [],
 
-				recommendCard: {}, //销售
+				recommendCard: '', //销售
 
 				isShowCodePop: false,
 
@@ -421,6 +421,7 @@
 		},
 		props: {},
 		onLoad: async function(options) {
+			
 			// console.log("扫码进去参数===" + JSON.stringify(options));
 			// if (options.scene) {
 			//   // this.scene = options.scene || '1290926887903780865';
@@ -539,6 +540,12 @@
 				req.getRequest('/api/visiting/card/recommendCardInfo', {}, res => {
 					this.recommendCard = res
 					console.log('获取推荐销售》》》》》', res);
+					setTimeout(() => {
+						this.chatShow = false
+						setTimeout(() => {
+							this.chatShowText = false
+						}, 1500)
+					}, 3000)
 				})
 			},
 			// 获取热门活动