From 0f5aa91afcb3f0a947fdecc68e2d23b1693acdc5 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 22 三月 2023 18:20:05 +0800
Subject: [PATCH] 图片修改
---
miniprogram/pages/user/group/index.ts | 33 +++++++++++++++------------------
1 files changed, 15 insertions(+), 18 deletions(-)
diff --git a/miniprogram/pages/user/group/index.ts b/miniprogram/pages/user/group/index.ts
index 3d4f850..5165c9e 100644
--- a/miniprogram/pages/user/group/index.ts
+++ b/miniprogram/pages/user/group/index.ts
@@ -6,19 +6,21 @@
data: {
groupList: []
},
- openGroup(e){
- console.log(e)
+ toHome() {
+ wx.navigateBack()
+ },
+ openGroup(e) {
wx.navigateTo({
- url:"../../user/group/message/index?id="+e.currentTarget.id+"&&ban="+e.currentTarget.dataset.ban+"&&reportId="+e.currentTarget.dataset.rptid
+ url: "../../user/group/message/index?id=" + e.currentTarget.id + "&&ban=" + e.currentTarget.dataset.ban + "&&reportId=" + e.currentTarget.dataset.rptid
})
},
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,29 +37,24 @@
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
+ var lastTime = wx.getStorageSync('time')
wx.request(
{
url: userGroup.globalData.url + "/wx/user/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)
+ console.log(res.data.data)
this.setData({
groupList: res.data.data
})
}
-
})
-
-
}
})
--
Gitblit v1.8.0