调试未读人数
This commit is contained in:
		| @@ -56,7 +56,7 @@ Page({ | ||||
|       return false; | ||||
|     } | ||||
|     this.init() | ||||
|     getDot(); | ||||
|     this.getUnReadNumber() | ||||
|   }, | ||||
|   async init() { | ||||
|     const result = await getUserInfo(); | ||||
| @@ -67,6 +67,17 @@ Page({ | ||||
|     this.setData({ user: result.data }) | ||||
|     wx.setStorageSync('user', result.data) | ||||
|   }, | ||||
|   async getUnReadNumber() { | ||||
|     const dot = await getDot(); | ||||
|     this.setData({ | ||||
|       dot | ||||
|     }) | ||||
|   }, | ||||
|   bindTenement() { | ||||
|     wx.navigateTo({ | ||||
|       url: '/pages/handleLogin/index', | ||||
|     }) | ||||
|   }, | ||||
|   connect() { | ||||
|     Dialog.alert({ | ||||
|       title: '提示', | ||||
|   | ||||
| @@ -7,14 +7,15 @@ | ||||
|  | ||||
|   <van-cell title="联系客服" value="" is-link bind:tap="connect" /> | ||||
|   <van-cell wx:if="{{!!user.isAdmin}}" title="二维码" value="" is-link bind:click="jumpToQrCode" /> | ||||
|   <van-cell is-link bind:click="jumpToMember" > | ||||
|   <van-cell wx:if="{{!!user.isAdmin}}" is-link bind:click="jumpToMember"> | ||||
|     <view slot="title"> | ||||
|       <view  class="cellWrapper">         | ||||
|         <view class="text"> 成员管理 </view> | ||||
|         <dot number="{{100}}" /> | ||||
|         <dot wx:if="{{dot > 0}}" number="{{dot}}" /> | ||||
|       </view> | ||||
|     </view> | ||||
|   </van-cell> | ||||
|   <van-cell title="绑定企业" value="" is-link bind:tap="bindTenement" /> | ||||
| <!-- </van-cell-group> --> | ||||
| <!-- <van-cell-group title=" "> | ||||
|   <van-cell title="单元格" value="内容" is-link /> | ||||
|   | ||||
| @@ -20,4 +20,5 @@ export const getDot = async () => { | ||||
|       index: 1, | ||||
|     }) | ||||
|   } | ||||
|   return data; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user