系统消息已读修改

master
Tuisku 3 years ago
parent f3fb56445c
commit c9d791a914

@ -78,7 +78,8 @@
"waterf": "/components/waterf/index",
"l-calendar": "/miniprogram_npm/lin-ui/calendar/index",
"l-mask": "/miniprogram_npm/lin-ui/mask/index"
"l-mask": "/miniprogram_npm/lin-ui/mask/index",
"l-badge": "/miniprogram_npm/lin-ui/badge/index"
},
"style": "v2",
"sitemapLocation": "sitemap.json"

@ -179,7 +179,8 @@
.card_tip1,
.card_model {
width: 108rpx;
/* width: 108rpx; */
padding: 0rpx 8rpx;
height: 44rpx;
font-size: 20rpx;
display: flex;
@ -195,7 +196,7 @@
}
.card_model {
width: 104rpx;
/* width: 104rpx; */
height: 40rpx;
border: 1px solid #FFB17C;
color: #FFB17C;

@ -90,6 +90,12 @@ Component({
icon: 'none',
duration: 2000
})
} else if (this.data.link.indexOf('http') === -1) {
wx.showToast({
title: '请输入正确的链接',
icon: 'none',
duration: 2000
})
} else {
http("/video/userAdd", "post", {
id: this.data.data.id,

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -27,7 +27,7 @@
<view class="hr"></view>
<!-- 平台账号 -->
<view class="title">
<image style="width: 48rpx;height: 48rpx;margin-right: 16rpx;" src="../../../quest/subpage/detail/image/ic_sjh@2x.png"></image>
<image style="width: 48rpx;height: 48rpx;margin-right: 16rpx;" src="../../../quest/subpage/detail/image/ic_dsfzh@2x.png"></image>
第三方账号<text style="color: red;">*</text>
</view>
<textarea disabled="{{dis}}" auto-height class="placeholder" placeholder="输入第三方账号" bindblur="blur" data-mes="account" value="{{form.account}}"></textarea>

@ -1,5 +1,7 @@
// pages/user/subpage/system/system.js
import {http} from '../../../../utils/util'
import {
http
} from '../../../../utils/util'
Page({
/**
@ -18,7 +20,6 @@ Page({
wx.setNavigationBarTitle({
title: '系统消息',
})
this.getdata()
},
getdata() {
http("/userMessage/list", "post", {
@ -27,7 +28,7 @@ Page({
}).then(res => {
let array = res.data.records
for (let index = 0; index < array.length; index++) {
array[index].createDate = array[index].createDate.replace('T',' ')
array[index].createDate = array[index].createDate.replace('T', ' ')
}
this.setData({
list: res.data.records,
@ -35,9 +36,13 @@ Page({
})
})
},
to (e) {
wx.navigateTo({
url: '/' + e.currentTarget.dataset.url,
to(e) {
http("/userMessage/read", "post", {
id: e.currentTarget.dataset.id
}).then(res => {
wx.navigateTo({
url: '/' + e.currentTarget.dataset.url,
})
})
},
/**
@ -51,7 +56,12 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
this.setData({
list: [],
page: 1,
max: 0
})
this.getdata()
},
/**

@ -3,8 +3,10 @@
<view wx:if="{{list.length === 0}}">
<button style="color: lightgrey;" disabled>当前暂无消息</button>
</view>
<view class="card" wx:for="{{list}}" wx:key="index" style="margin-bottom: 12rpx;" data-url="{{item.url}}" bindtap="to">
<view class="title">{{item.title}}</view>
<view class="card" wx:for="{{list}}" wx:key="index" style="margin-bottom: 12rpx;" data-url="{{item.url}}" data-id="{{item.id}}" bindtap="to">
<view class="title">{{item.title}}
<view class="dot" wx:if="{{item.settled===0}}"></view>
</view>
<view class="text">{{item.description}}</view>
<view class="time">{{item.createDate}}</view>
</view>

@ -21,6 +21,9 @@
color: #333333;
line-height: 28rpx;
margin-bottom: 16rpx;
display: flex;
align-items: center;
flex-wrap: wrap;
}
.text {
@ -38,4 +41,12 @@
font-weight: 400;
color: #999999;
line-height: 20rpx;
}
.dot{
background-color: red;
height: 14rpx;
width: 14rpx;
border-radius: 50%;
margin-left: 10rpx;
}
Loading…
Cancel
Save