更新 点击红点为消除问题
This commit is contained in:
parent
a938838bcd
commit
2d170eaa28
@ -78,16 +78,22 @@ Page({
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
putMessageReadNotice(notice_id){
|
||||
putMessageReadNotice(notice_id,index){
|
||||
api.putMessageReadNotice({notice_id: notice_id}).then(response => {
|
||||
if(response.code==200){
|
||||
let currentItem=`list[${index}].read_status`
|
||||
this.setData({
|
||||
[currentItem]:1
|
||||
})
|
||||
}
|
||||
console.log(response);
|
||||
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
go(e){
|
||||
let item = e.currentTarget.dataset.item;
|
||||
this.putMessageReadNotice(item.notice_id);
|
||||
console.log(item);
|
||||
let index=e.currentTarget.dataset.index;
|
||||
this.putMessageReadNotice(item.notice_id,index);
|
||||
let link_type = item.link_type;
|
||||
link_type = Number(link_type);
|
||||
// 跳转页面类型(1:聊天详情页 2:问诊结束列表页 3:问诊消息列表页 4:我的名片 5:我的简介 6:我的账户 7:我的福利 8:药品订单详情页 9:物流详情 10:问诊订单详情 11:联系客服 12:协议详情 13:处方详情)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<view class="list">
|
||||
<view class="item" wx:for="{{list}}" bindtap="go" data-item="{{item}}">
|
||||
<view class="item" wx:for="{{list}}" bindtap="go" data-index="{{index}}" data-item="{{item}}" >
|
||||
<view class="item_top">
|
||||
<view class="item_img" wx:if="{{item.inquiry_type == 1}}">
|
||||
<text style="margin-left: 10rpx;">在线问诊</text>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user