From a7a28c10e6a6d756c00e2bd4a590e785b87f1331 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 08 三月 2023 15:37:54 +0800
Subject: [PATCH] 样式反馈调整
---
miniprogram/pages/manager/group/index.ts | 35 +++++++++++++++++++----------------
1 files changed, 19 insertions(+), 16 deletions(-)
diff --git a/miniprogram/pages/manager/group/index.ts b/miniprogram/pages/manager/group/index.ts
index 6380cb1..a3c9f54 100644
--- a/miniprogram/pages/manager/group/index.ts
+++ b/miniprogram/pages/manager/group/index.ts
@@ -6,19 +6,19 @@
data: {
groupList: []
},
- openGroup(e){
+ openGroup(e) {
wx.navigateTo({
- url:"../../manager/group/message/index?id="+e.currentTarget.id
+ url: "../../manager/group/message/index?id=" + e.currentTarget.id
})
},
onLoad() {
var date = new Date()
var month = date.getMonth() + 1
var day = date.getDate()
- var hours=date.getHours()
- var minutes=date.getMinutes()
- var secends=date.getSeconds()
+ var hours = date.getHours()
+ var minutes = date.getMinutes()
+ var secends = date.getSeconds()
var time
if (month < 10) {
month = "0" + month
@@ -35,27 +35,30 @@
if (secends < 10) {
secends = "0" + secends
}
- time = date.getFullYear() + "-" + month + "-" + day + " " + hours+":"+minutes+":"+secends
-console.log(time)
-console.log("lastDate",wx.getStorageSync('time'))
-var lastTime=wx.getStorageSync('time')
+ time = date.getFullYear() + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + secends
+ console.log(time)
+ console.log("lastDate", wx.getStorageSync('time'))
+ var lastTime = wx.getStorageSync('time')
wx.request(
{
url: managerGroup.globalData.url + "/wx/manager/group/list",
method: "GET",
- data:{
- id:wx.getStorageSync('id'),
- newDate:time,
- lastDate:lastTime
+ data: {
+ id: wx.getStorageSync('id'),
+ newDate: time,
+ lastDate: lastTime
},
header: { 'token': wx.getStorageSync('token') },
success: (res) => {
- console.log(res.data.data)
- this.setData({
+ console.log(res.data.data)
+ res.data.data.map(item=>{
+ item.time = item.time.substr(-8)
+ })
+ this.setData({
groupList: res.data.data
})
}
-
+
})
--
Gitblit v1.8.0