From b9d08f45e3dc1fce9b8ae37ae8b95562843d4cbe Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期四, 19 九月 2024 14:23:26 +0800 Subject: [PATCH] pdf --- pages/personalCenter/index.js | 71 +++++++++-------------------------- 1 files changed, 18 insertions(+), 53 deletions(-) diff --git a/pages/personalCenter/index.js b/pages/personalCenter/index.js index 930b345..6199b78 100644 --- a/pages/personalCenter/index.js +++ b/pages/personalCenter/index.js @@ -18,7 +18,8 @@ { title: '鎴戠殑璇佷功', icon: '/static/images/personal/certificate.png', - url: '', + // url: '', + url: '/pages/personalCenter/certificate/index', type: 'certificate', }, { @@ -42,12 +43,14 @@ { title: '鎴戠殑涓婁紶', icon: '/static/images/personal/upload.png', - url: '', + // url: '', + url: '/pages/personalCenter/myUpload/index', type: 'upload', }, { title: '鍑轰功鐢宠', icon: '/static/images/personal/chushu.png', + // url: '', url: '/packagePersonal/pages/publishBooks/index', type: 'publishBooks', } @@ -125,8 +128,6 @@ size: '10rpx', }, scrollTop: 0, - visibleIntegral: false, - recordList: [] }, /** * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 @@ -349,56 +350,12 @@ }) }, getIntegralList() { - app.MG.store - .getWalletHistory({ - Size: 999, - Start: 0, - sort: { - type: 'Desc', - field: 'CreateDate' - }, - type: 'integral' - }) - .then((res) => { - if (res.datas.length > 0) { - res.datas.forEach((element) => { - element.createDate = moment(element.createDate).format('YYYY-MM-DD HH:mm:ss') - if (element.refType == 'sign') { - element.type = '姣忔棩鐧诲綍' - } - if (element.refType == 'Reward') { - element.type = '涓婁紶璧勬簮濂栧姳' - } - if (element.refType == 'OrderCoinBonus') { - element.type = '璁㈠崟鏀粯濂栧姳' - } - if (element.refType == 'Order' && element.value < 0) { - element.type = '璁㈠崟鏀粯鎶垫墸' - } - if (element.refType == 'Order' && element.value > 0) { - element.type = '璁㈠崟鍙栨秷閫�鍥�' - } - if (element.refType == 'AdminRecharge') { - element.type = '绠$悊鍛樺厖鍊�' - } - }) - this.setData({ - recordList: res.datas, - visibleIntegral: true - }); - } - }) - }, - onVisibleIntegralChange(e) { - this.setData({ - visibleIntegral: e.detail.visible, + wx.navigateTo({ + url: `/pages/personalCenter/pointsRecord/index`, }); + }, - onClose() { - this.setData({ - visibleIntegral: false, - }); - }, + //鐐瑰嚮鐩綍 toPages(item) { @@ -435,7 +392,15 @@ isWhite: data }) }, - + // delectBtn() { + // app.MG.ugc + // .delTopicMessage({ + // messageIds: [2986, 1302, 1301, 3074, 1305, 1304] + // }) + // .then((res) => { + // console.log('鍒犻櫎鎴愬姛') + // }) + // }, /** * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� -- Gitblit v1.9.1