hmp 4 lat temu
rodzic
commit
dad2ee7379
1 zmienionych plików z 6 dodań i 9 usunięć
  1. 6 9
      pages/index/index.vue

+ 6 - 9
pages/index/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="">
 		<u-navbar :is-back="false" title="联兑通商户版"></u-navbar>
-		<u-top-tips ref="uTips" :navbar-height="statusBarHeight + 44"></u-top-tips>
+		<u-notice-bar mode="horizontal" :show="noticeShow" :list="noticeList"></u-notice-bar>
 		<view class="margin-30">
 			<view class="flex justify-between">
 				<view class="title ">
@@ -113,6 +113,9 @@
 	export default {
 		data() {
 			return {
+				noticeShow:true,
+				noticeList: [],
+				
 				//状态栏高度
 				statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
 
@@ -239,7 +242,8 @@
 				this.webSocket.acceptMessage = (res) => {
 					///用户已支付
 					if (!this.$isEmpty(res.content) && res.content != '连接成功' && res.content != '心跳') {
-						this.showTips(res.content)
+						this.noticeShow=true
+						this.noticeList.push(res.content)
 					}
 				}
 			},
@@ -327,13 +331,6 @@
 					this.$jump('/pages/card/card')
 				}
 			},
-			showTips(title) {
-				this.$refs.uTips.show({
-					title,
-					type: 'success',
-					duration: '5000'
-				})
-			}
 		}
 	}
 </script>