From f05a26bb7e036c3d09c84e295f1b77fdb8d9ba08 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期四, 06 四月 2023 20:46:42 +0800
Subject: [PATCH] 修改定时
---
miniprogram/pages/user/report/index.ts | 75 +++++++++++++++++++------------------
1 files changed, 39 insertions(+), 36 deletions(-)
diff --git a/miniprogram/pages/user/report/index.ts b/miniprogram/pages/user/report/index.ts
index 844b17e..3672873 100644
--- a/miniprogram/pages/user/report/index.ts
+++ b/miniprogram/pages/user/report/index.ts
@@ -3,41 +3,44 @@
const userReport = getApp()
Page({
- data: {
- reportList:[],
- isShow:false
- },
- // 浜嬩欢澶勭悊鍑芥暟
- bindViewTap() {
- wx.navigateTo({
- url: '../logs/logs',
- })
- },
- getDetail(e){
- wx.navigateTo({
- url:'../report/detail/index?id='+e.currentTarget.id
- })
- },
-report(){
- wx.navigateTo({
- url:'../report/submitReport/index'
- })
-},
- onLoad() {
- wx.request(
- {
- url:userReport.globalData.url+"/wx/user/cause",
- method:"GET",
- header:{'token':wx.getStorageSync('token')},
- data:{
- id:wx.getStorageSync('id')
- },
- success:(res)=>{
- console.log(res)
- this.setData({
- reportList:res.data.data
- })
- }
- })
+ data: {
+ reportList: [],
+ isShow: false
+ },
+ // 浜嬩欢澶勭悊鍑芥暟
+ bindViewTap() {
+ wx.navigateTo({
+ url: '../logs/logs',
+ })
+ },
+ getDetail(e) {
+ let url = '../report/detail/index?id=' + e.currentTarget.id
+ if (e.currentTarget.dataset.word == 2) {
+ url = '../report/submitReport/index?id=' + e.currentTarget.id
+ }
+ wx.navigateTo({
+ url
+ })
+ },
+ report() {
+ wx.navigateTo({
+ url: '../report/submitReport/index'
+ })
+ },
+ onLoad() {
+ wx.request(
+ {
+ url: userReport.globalData.url + "/wx/user/cause",
+ method: "GET",
+ header: { 'token': wx.getStorageSync('token') },
+ data: {
+ id: wx.getStorageSync('id')
+ },
+ success: (res) => {
+ this.setData({
+ reportList: res.data.data
+ })
+ }
+ })
}
})
--
Gitblit v1.8.0