From cfdb5dd5655a2970f06b648ac28ea480f1c858ed Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期四, 29 二月 2024 10:37:09 +0800 Subject: [PATCH] docs: y --- pages/testLogin/index.wxml | 8 pages/teacherCertification/index.wxml | 2 pages/testLogin/index.js | 132 +++++ pages/personalCenter/feedBack/index.js | 66 ++ pages/personalCenter/sampleBooks/index.wxml | 2 pages/personalCenter/activateProduct/index.wxml | 2 pages/personalCenter/components/user-center-card/index.wxml | 33 + pages/personalCenter/components/user-center-card/index.wxss | 60 ++ pages/personalCenter/activateProduct/index.js | 66 ++ pages/personalCenter/index.wxml | 2 pages/personalCenter/myCollection/index.wxml | 2 pages/personalCenter/myOrder/index.js | 66 ++ pages/personalCenter/feedBackSubmit/index.js | 66 ++ pages/personalCenter/certificate/index.wxml | 2 pages/personalCenter/myMassage/index.wxss | 60 ++ pages/personalCenter/publishBooks/index.js | 66 ++ pages/teacherCertification/index.js | 66 ++ pages/personalCenter/downloads/index.js | 66 ++ pages/personalCenter/index.js | 200 +++++++ pages/personalCenter/myMassage/massageDetail/index.wxml | 8 pages/personalCenter/myMassage/index.wxml | 35 + pages/personalCenter/myMassage/massageDetail/index.wxss | 28 + pages/personalCenter/sampleBooks/index.js | 66 ++ pages/testLogin/index.json | 6 pages/personalCenter/publishBooks/index.wxml | 2 pages/personalCenter/certificate/index.js | 66 ++ pages/personalCenter/feedBack/index.wxml | 2 pages/personalCenter/downloads/index.wxml | 2 static/images/personal/notification1.png | 0 custom-tab-bar/data.js | 2 app.json | 16 pages/personalCenter/myCollection/index.js | 66 ++ pages/personalCenter/myMassage/massageDetail/index.json | 4 pages/personalCenter/myMassage/index.js | 155 +++++ pages/personalCenter/myMassage/massageDetail/index.js | 79 +++ pages/personalCenter/myOrder/index.wxml | 2 pages/testLogin/index.wxss | 4 pages/personalCenter/feedBackSubmit/index.wxml | 2 38 files changed, 1,510 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 734dd72..11481de 100644 --- a/app.json +++ b/app.json @@ -31,7 +31,21 @@ "pages/order/fill-tracking-no/index", "pages/order/delivery-detail/index", "pages/order/invoice/index", - "pages/usercenter/name-edit/index" + "pages/usercenter/name-edit/index", + "pages/teacherCertification/index", + "pages/personalCenter/index", + "pages/personalCenter/myOrder/index", + "pages/personalCenter/myCollection/index", + "pages/personalCenter/myMassage/index", + "pages/personalCenter/myMassage/massageDetail/index", + "pages/personalCenter/feedBack/index", + "pages/personalCenter/feedBackSubmit/index", + "pages/personalCenter/certificate/index", + "pages/personalCenter/publishBooks/index", + "pages/personalCenter/sampleBooks/index", + "pages/personalCenter/downloads/index", + "pages/personalCenter/activateProduct/index", + "pages/testLogin/index" ], "tabBar": { "custom": true, diff --git a/custom-tab-bar/data.js b/custom-tab-bar/data.js index 7691a71..34da94e 100644 --- a/custom-tab-bar/data.js +++ b/custom-tab-bar/data.js @@ -23,6 +23,6 @@ { icon: 'person', text: '涓汉涓績', - url: 'pages/usercenter/index', + url: 'pages/personalCenter/index', }, ]; diff --git a/pages/personalCenter/activateProduct/index.js b/pages/personalCenter/activateProduct/index.js new file mode 100644 index 0000000..7db447e --- /dev/null +++ b/pages/personalCenter/activateProduct/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/activateProduct/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/activateProduct/index.wxml b/pages/personalCenter/activateProduct/index.wxml new file mode 100644 index 0000000..880b74d --- /dev/null +++ b/pages/personalCenter/activateProduct/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/activateProduct/index.wxml--> +<text>pages/personalCenter/activateProduct/index.wxml</text> diff --git a/pages/personalCenter/certificate/index.js b/pages/personalCenter/certificate/index.js new file mode 100644 index 0000000..9f7a333 --- /dev/null +++ b/pages/personalCenter/certificate/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/certificate/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/certificate/index.wxml b/pages/personalCenter/certificate/index.wxml new file mode 100644 index 0000000..a960ce8 --- /dev/null +++ b/pages/personalCenter/certificate/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/certificate/index.wxml--> +<text>pages/personalCenter/certificate/index.wxml</text> diff --git a/pages/personalCenter/components/user-center-card/index.wxml b/pages/personalCenter/components/user-center-card/index.wxml new file mode 100644 index 0000000..d6af2e3 --- /dev/null +++ b/pages/personalCenter/components/user-center-card/index.wxml @@ -0,0 +1,33 @@ +<view class="user-center-card"> + <!-- 鏈櫥褰曠殑鎯呭喌 --> + <block wx:if="{{currAuthStep === AuthStepType.ONE}}"> + <view class="user-center-card__header" bind:tap="gotoUserEditPage"> + <t-avatar image="{{userInfo.avatarUrl || defaultAvatarUrl}}" class="user-center-card__header__avatar" /> + <view class="user-center-card__header__name">{{'璇风櫥褰�'}}</view> + <view class="setting"> + <image src="/static/images/personal/setting.png" mode="heightFix" class="img" /> + <text>璁剧疆</text> + </view> + </view> + </block> + <!-- 宸茬櫥褰曚絾鏈巿鏉冪敤鎴蜂俊鎭儏鍐� --> + <block wx:if="{{currAuthStep === AuthStepType.TWO}}"> + <view class="user-center-card__header"> + <t-avatar image="{{userInfo.avatarUrl || defaultAvatarUrl}}" class="user-center-card__header__avatar" /> + <view class="user-center-card__header__name">{{userInfo.nickName || '寰俊鐢ㄦ埛'}}</view> + <!-- 闇�瑕佹巿鏉冪敤鎴蜂俊鎭紝閫氳繃slot娣诲姞寮圭獥 --> + <view class="user-center-card__header__transparent" wx:if="{{isNeedGetUserInfo}}"> + <slot name="getUserInfo" /> + </view> + <!-- 涓嶉渶瑕佹巿鏉冪敤鎴蜂俊鎭紝浠嶇劧瑙﹀彂gotoUserEditPage浜嬩欢 --> + <view class="user-center-card__header__transparent" bind:tap="gotoUserEditPage" wx:else></view> + </view> + </block> + <!-- 宸茬櫥褰曚笖宸茬粡鎺堟潈鐢ㄦ埛淇℃伅鐨勬儏鍐� --> + <block wx:if="{{currAuthStep === AuthStepType.THREE}}"> + <view class="user-center-card__header" bind:tap="gotoUserEditPage"> + <t-avatar t-class="avatar" mode="aspectFill" class="user-center-card__header__avatar" image="{{userInfo.avatarUrl || defaultAvatarUrl}}" /> + <view class="user-center-card__header__name">{{userInfo.nickName || '寰俊鐢ㄦ埛'}}</view> + </view> + </block> +</view> \ No newline at end of file diff --git a/pages/personalCenter/components/user-center-card/index.wxss b/pages/personalCenter/components/user-center-card/index.wxss new file mode 100644 index 0000000..4bb493f --- /dev/null +++ b/pages/personalCenter/components/user-center-card/index.wxss @@ -0,0 +1,60 @@ +.user-center-card { + background-image: url('https://cdn-we-retail.ym.tencent.com/miniapp/template/user-center-bg-v1.png'); + background-size: cover; + background-repeat: no-repeat; + padding: 0 24rpx; +} + +.user-center-card__header { + margin-top: 160rpx; + margin-bottom: 30rpx; + margin-left: 20rpx; + height: 96rpx; + line-height: 48rpx; + display: flex; + justify-content: flex-start; + align-items: center; + color: #333; + position: relative; +} + +.user-center-card__header__avatar { + width: 96rpx; + height: 96rpx; + border-radius: 48rpx; + overflow: hidden; +} + +.user-center-card__header__name { + font-size: 36rpx; + line-height: 48rpx; + color: #333; + font-weight: bold; + margin-left: 24rpx; + margin-right: 16rpx; +} + +.user-center-card__header__transparent { + position: absolute; + left: 0; + top: 0; + background-color: transparent; + height: 100%; + width: 100%; +} + +.user-center-card__icon { + line-height: 96rpx; +} + +.setting { + margin-left: auto; + display: flex; + align-items: center; +} + +.setting .img { + height: 34rpx; + width: 34rpx; + margin-right: 10rpx; +} \ No newline at end of file diff --git a/pages/personalCenter/downloads/index.js b/pages/personalCenter/downloads/index.js new file mode 100644 index 0000000..2e5078a --- /dev/null +++ b/pages/personalCenter/downloads/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/downloads/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/downloads/index.wxml b/pages/personalCenter/downloads/index.wxml new file mode 100644 index 0000000..b64266a --- /dev/null +++ b/pages/personalCenter/downloads/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/downloads/index.wxml--> +<text>pages/personalCenter/downloads/index.wxml</text> diff --git a/pages/personalCenter/feedBack/index.js b/pages/personalCenter/feedBack/index.js new file mode 100644 index 0000000..9e4b25b --- /dev/null +++ b/pages/personalCenter/feedBack/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/feedBack/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/feedBack/index.wxml b/pages/personalCenter/feedBack/index.wxml new file mode 100644 index 0000000..134e541 --- /dev/null +++ b/pages/personalCenter/feedBack/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/feedBack/index.wxml--> +<text>pages/personalCenter/feedBack/index.wxml</text> diff --git a/pages/personalCenter/feedBackSubmit/index.js b/pages/personalCenter/feedBackSubmit/index.js new file mode 100644 index 0000000..545c533 --- /dev/null +++ b/pages/personalCenter/feedBackSubmit/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/feedBackSubmit/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/feedBackSubmit/index.wxml b/pages/personalCenter/feedBackSubmit/index.wxml new file mode 100644 index 0000000..675b7b0 --- /dev/null +++ b/pages/personalCenter/feedBackSubmit/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/feedBackSubmit/index.wxml--> +<text>pages/personalCenter/feedBackSubmit/index.wxml</text> diff --git a/pages/personalCenter/index.js b/pages/personalCenter/index.js new file mode 100644 index 0000000..1405558 --- /dev/null +++ b/pages/personalCenter/index.js @@ -0,0 +1,200 @@ +const app = getApp() +const menuData = [ + { + title: '鎴戠殑璁㈠崟', + icon: '/static/images/personal/order.png', + url: '/pages/personalCenter/myOrder/index', + type: 'order', + }, + { + title: '婵�娲诲晢鍝�', + icon: '/static/images/personal/jihuo.png', + url: '/pages/personalCenter/activateProduct/index', + type: 'activateProduct', + }, + { + title: '鎴戠殑璇佷功', + icon: '/static/images/personal/certificate.png', + url: '/pages/personalCenter/certificate/index', + type: 'certificate', + }, + { + title: '鎴戠殑鏀惰棌', + icon: '/static/images/personal/wodeshoucang.png', + url: '/pages/personalCenter/myCollection/index', + type: 'collection', + }, + { + title: '鎴戠殑涓嬭浇', + icon: '/static/images/personal/download.png', + url: '/pages/personalCenter/downloads/index', + type: 'download', + }, + { + title: '鏍蜂功鐢宠', + icon: '/static/images/personal/yangshushenqing.png', + url: '/pages/personalCenter/sampleBooks/index', + type: 'sampleBook', + }, + { + title: '鍑轰功鐢宠', + icon: '/static/images/personal/chushu.png', + url: '/pages/personalCenter/publishBooks/index', + type: 'publishBooks', + }, + { + title: '鎴戠殑涓婁紶', + icon: '/static/images/personal/upload.png', + url: '', + type: 'upload', + } +]; +const moreMenu = [ + { + title: '鎴戠殑娑堟伅', + icon: '/static/images/personal/notification.png', + url: '/pages/personalCenter/myMassage/index', + type: 'message', + }, + { + title: '寤鸿涓庡弽棣�', + icon: '/static/images/personal/feedback.png', + url: '/pages/personalCenter/feedback/index', + type: 'feedback', + } +]; +const moreMenu1 = [ + { + title: '鍏充簬鎴戜滑', + icon: '/static/images/personal/about.png', + url: '', + type: 'aboutUs', + }, + { + title: '鑱旂郴鎴戜滑', + icon: '/static/images/personal/contact.png', + url: '', + type: 'contact', + } +]; +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + show: false, + userInfo: { + avatarUrl: + 'https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/avatar/avatar-1.jpg', + nickName: 'TDesign', + phoneNumber: '13438358888', + }, + currAuthStep: 1, + teacherState: { + state: '', + reasonTxt: '', + }, + integral: 0, + menuData, + moreMenu, + moreMenu1 + }, + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + }, + + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + if (wx.getStorageSync(app.config.userInfoKey)) { + this.setData({ + show: true, + userInfo: JSON.parse(wx.getStorageSync(app.config.userInfoKey)) + }) + + if (typeof this.getTabBar === 'function' && this.getTabBar()) { + this.getTabBar().setData({ + selected: 4 //杩欎釜鏁板瓧鏄綋鍓嶉〉闈㈠湪tabBar涓璴ist鏁扮粍鐨勭储寮� + }) + } + this.getTeacherInfo() + } else { + wx.navigateTo({ + url: "/pages/testLogin/index", + }); + } + }, + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + this.setData({ + show: false + }) + }, + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + this.init(); + }, + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + }, + //鏁欏笀淇℃伅 + getTeacherInfo() { + const data = { + start: 0, + size: 10, + topicIdOrRefCode: 'teacherRoleApproval', + appRefCode: app.config.appRefCode, + sort: { + type: 'Desc', + field: 'CreateDate' + } + } + app.MG.ugc.getTopicMessageList(data).then((res) => { + console.log(this.data.userInfo, "userInfo") + const resData = res.datas.find((i) => i.appUserCreator.userId == this.data.userInfo.userId) + if (resData) { + this.setData({ + teacherState: { + state: resData.state, + reasonTxt: resData.feedBack != null ? JSON.parse(resData.feedBack).reason : '' + } + }) + } + }) + }, + + //鐐瑰嚮鐩綍 + toPages(item) { + console.log(item) + let info = item.target.dataset.info + if (info.url) { + wx.navigateTo({ + url: info.url + }) + } else { + wx.showToast({ + title: "寤鸿涓�", + icon: 'none', + duration: 2000 + }) + } + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/index.wxml b/pages/personalCenter/index.wxml new file mode 100644 index 0000000..d93ae03 --- /dev/null +++ b/pages/personalCenter/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/index.wxml--> +<text>pages/personalCenter/index.wxml</text> diff --git a/pages/personalCenter/myCollection/index.js b/pages/personalCenter/myCollection/index.js new file mode 100644 index 0000000..93fc08e --- /dev/null +++ b/pages/personalCenter/myCollection/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/myCollection/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/myCollection/index.wxml b/pages/personalCenter/myCollection/index.wxml new file mode 100644 index 0000000..c7503c3 --- /dev/null +++ b/pages/personalCenter/myCollection/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/myCollection/index.wxml--> +<text>pages/personalCenter/myCollection/index.wxml</text> diff --git a/pages/personalCenter/myMassage/index.js b/pages/personalCenter/myMassage/index.js new file mode 100644 index 0000000..b6c2b58 --- /dev/null +++ b/pages/personalCenter/myMassage/index.js @@ -0,0 +1,155 @@ +import moment from 'moment' +const app = getApp(); +Page({ + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + list: [], + //鍒嗛〉 + page: 1, + limit: 10, + pageTotalCount: 0, + bottomLoading: false, + isMoreData: false, + // 杩斿洖椤堕儴 + isBackTop: false, + setScrollValue: 0, + skeletonLoding: true, + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + this.getDataList(false); + }, + + getDataList(isReachBottom) { + app.MG.app.getAppMessageList({ + appRefCode: app.config.appRefCode, + start: this.data.page * this.data.limit - this.data.limit, + size: this.data.limit, + sort: { + type: "Desc", + field: "CreateDate" + } + }) + .then(res => { + try { + if (res.datas.length > 0) { + res.datas.forEach((item) => { + item.createDate = moment(item.createDate).format("YYYY-MM-DD HH:mm"); + }); + let dataList = res.datas; + + //瑙﹀簳鍔犺浇鏂版暟鎹苟淇濈暀鑰佹暟鎹� + if (isReachBottom) { + dataList = [...this.data.list, ...dataList] //灏嗘柊鏁版嵁鍔犲叆鑰佹暟鎹腑 + } + this.setData({ + list: dataList, + pageTotalCount: res.total, + bottomLoading: false, + isMoreData: dataList.length > 0 ? false : true, + skeletonLoding: false, + }) + } else { + this.setData({ + skeletonLoding: false, + }) + } + } catch (error) { + console.log(error) + } + }) + }, + + toList(itemData) { + let info = itemData.currentTarget.dataset.info; + wx.navigateTo({ + url: "/pages/personalCenter/myMassage/massageDetail/index?id=" + info.id, + }); + }, + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + if (this._freshing) return + this.setData({ + page: 1, + limit: 10, + pageTotalCount: 0, + bottomLoading: false, + isMoreData: false + }) + this._freshing = true; + this.setData({ + triggered: false, + }) + this.getDataList(false); + this._freshing = false + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + this.setData({ + bottomLoading: true, + isMoreData: false + }) + let bool = false; + if (this.data.pageTotalCount > this.data.list.length) { + bool = true; + this.setData({ + page: this.data.page + 1, + }) + } else { + setTimeout(() => { + this.setData({ + bottomLoading: false, + isMoreData: true + }) + }, 100) + return false; + } + this.getDataList(bool); + + }, + + // 鐩戝惉婊氬姩璺濈 + onPageScroll(e) { + if (e && e.scrollTop >= 1000) { + this.setData({ + isBackTop: true + }) + } else { + this.setData({ + isBackTop: false + }) + } + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/myMassage/index.wxml b/pages/personalCenter/myMassage/index.wxml new file mode 100644 index 0000000..5a96715 --- /dev/null +++ b/pages/personalCenter/myMassage/index.wxml @@ -0,0 +1,35 @@ +<view class="container" wx:if="{{!skeletonLoding}}"> + <scroll-view class="scroll content" bind:scroll="onPageScroll" model:scroll-top="{{setScrollValue}}" scroll-y refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherpulling="{{refresh.onPulling}}" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom"> + <view slot="refresher" class="refresh-container"> + <view class="loading"> + <t-loading theme="circular" size="40rpx" text="姝e湪鍒锋柊..." class="wrapper" /> + </view> + </view> + <view class="pageInfo" wx:if="{{list.length > 0}}"> + <view class="content-item" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"> + <view class="icon"> + <t-image src="/static/images/personal/notification1.png" mode="heightFix" class="img" /> + </view> + <view class="item-con" data-info="{{item}}" bindtap="toList"> + <view class="titleBox"> + <view class="item-title">{{item.name}}</view> + <view class="createDate">{{item.createDate}}</view> + </view> + <view class="description"> + {{item.description}} + </view> + </view> + </view> + </view> + <view wx:if="{{list.length == 0}}" class="empyt"> + <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> + </view> + <view class="bottom-loading" wx:if="{{bottomLoading}}"> + <t-loading theme="circular" size="40rpx" text="鍔犺浇涓�..." class="wrapper" /> + </view> + <view class="bottom-loading" style="color: #ccc;font-size: 28rpx;" wx:if="{{isMoreData}}"> + <text>娌℃湁鏇村浜�</text> + </view> + </scroll-view> + <t-back-top theme="round" wx:if="{{isBackTop}}" text="椤堕儴" bind:to-top="onToTop"></t-back-top> +</view> \ No newline at end of file diff --git a/pages/personalCenter/myMassage/index.wxss b/pages/personalCenter/myMassage/index.wxss new file mode 100644 index 0000000..2848b48 --- /dev/null +++ b/pages/personalCenter/myMassage/index.wxss @@ -0,0 +1,60 @@ +.pageInfo { + padding: 40rpx 20rpx; +} + +.content-item { + padding: 20rpx 0; + border-bottom: 1px solid #EDEDED; + display: flex; +} + +.content-item .icon { + width: 58rpx; + height: 58rpx; +} + +.content-item .icon .img { + width: 100%; + height: 100%; +} + +.item-con { + flex: 1; + margin-left: 30rpx; +} + +.titleBox { + display: flex; + justify-content: space-between +} + +.titleBox .item-title { + font-weight: bold; +} + +.createDate { + font-size: 24rpx; + color: #949494; +} + +.description { + font-size: 24rpx; + height: 88rpx; + line-height: 40rpx; + display: -webkit-box; + margin-top: 20rpx; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; +} + +.refresh-container { + margin: 0 auto; +} + +.bottom-loading, +.loading { + padding: 20rpx; + text-align: center; +} \ No newline at end of file diff --git a/pages/personalCenter/myMassage/massageDetail/index.js b/pages/personalCenter/myMassage/massageDetail/index.js new file mode 100644 index 0000000..e8ed824 --- /dev/null +++ b/pages/personalCenter/myMassage/massageDetail/index.js @@ -0,0 +1,79 @@ +const app = getApp(); +import moment from 'moment' +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + dataInfo: {} + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + this.getDataInfo(options.id) + }, + getDataInfo(id) { + app.MG.app.getMessage({ + messageId: id + }) + .then(res => { + res.createDate = moment(res.createDate).format("YYYY-MM-DD HH:mm"); + this.setData({ + dataInfo: res, + }) + + }) + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/myMassage/massageDetail/index.json b/pages/personalCenter/myMassage/massageDetail/index.json new file mode 100644 index 0000000..211820b --- /dev/null +++ b/pages/personalCenter/myMassage/massageDetail/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "鎴戠殑娑堟伅", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/personalCenter/myMassage/massageDetail/index.wxml b/pages/personalCenter/myMassage/massageDetail/index.wxml new file mode 100644 index 0000000..80216eb --- /dev/null +++ b/pages/personalCenter/myMassage/massageDetail/index.wxml @@ -0,0 +1,8 @@ +<view class="container"> + <view> + <view class="name">{{dataInfo.name}}</view> + <view class="createDate">{{dataInfo.createDate}}</view> + <view class="description">{{dataInfo.description}}</view> + <rich-text space="emsp" nodes="{{dataInfo.content}}" class="content" /> + </view> +</view> \ No newline at end of file diff --git a/pages/personalCenter/myMassage/massageDetail/index.wxss b/pages/personalCenter/myMassage/massageDetail/index.wxss new file mode 100644 index 0000000..67696db --- /dev/null +++ b/pages/personalCenter/myMassage/massageDetail/index.wxss @@ -0,0 +1,28 @@ +.container { + padding: 20rpx; +} + +.name { + text-align: center; + font-size: 32rpx; + font-weight: bold; +} + +.createDate { + margin-top: 20rpx; + color: #999; + text-align: center; + font-size: 28rpx; +} + +.description { + padding: 30rpx 0; + color: #999; + font-size: 28rpx; + line-height: 40rpx; +} + +.content { + font-size: 28rpx; + line-height: 40rpx; +} \ No newline at end of file diff --git a/pages/personalCenter/myOrder/index.js b/pages/personalCenter/myOrder/index.js new file mode 100644 index 0000000..b7ca12c --- /dev/null +++ b/pages/personalCenter/myOrder/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/myOrder/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/myOrder/index.wxml b/pages/personalCenter/myOrder/index.wxml new file mode 100644 index 0000000..2413eb4 --- /dev/null +++ b/pages/personalCenter/myOrder/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/myOrder/index.wxml--> +<text>pages/personalCenter/myOrder/index.wxml</text> diff --git a/pages/personalCenter/publishBooks/index.js b/pages/personalCenter/publishBooks/index.js new file mode 100644 index 0000000..8036f4a --- /dev/null +++ b/pages/personalCenter/publishBooks/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/publishBooks/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/publishBooks/index.wxml b/pages/personalCenter/publishBooks/index.wxml new file mode 100644 index 0000000..0fb8c8b --- /dev/null +++ b/pages/personalCenter/publishBooks/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/publishBooks/index.wxml--> +<text>pages/personalCenter/publishBooks/index.wxml</text> diff --git a/pages/personalCenter/sampleBooks/index.js b/pages/personalCenter/sampleBooks/index.js new file mode 100644 index 0000000..ff7d82d --- /dev/null +++ b/pages/personalCenter/sampleBooks/index.js @@ -0,0 +1,66 @@ +// pages/personalCenter/sampleBooks/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/personalCenter/sampleBooks/index.wxml b/pages/personalCenter/sampleBooks/index.wxml new file mode 100644 index 0000000..d4eb5c9 --- /dev/null +++ b/pages/personalCenter/sampleBooks/index.wxml @@ -0,0 +1,2 @@ +<!--pages/personalCenter/sampleBooks/index.wxml--> +<text>pages/personalCenter/sampleBooks/index.wxml</text> diff --git a/pages/teacherCertification/index.js b/pages/teacherCertification/index.js new file mode 100644 index 0000000..09555f3 --- /dev/null +++ b/pages/teacherCertification/index.js @@ -0,0 +1,66 @@ +// pages/teacherCertification/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/teacherCertification/index.wxml b/pages/teacherCertification/index.wxml new file mode 100644 index 0000000..ffa6ee5 --- /dev/null +++ b/pages/teacherCertification/index.wxml @@ -0,0 +1,2 @@ +<!--pages/teacherCertification/index.wxml--> +<text>pages/teacherCertification/index.wxml</text> diff --git a/pages/testLogin/index.js b/pages/testLogin/index.js new file mode 100644 index 0000000..e402ac9 --- /dev/null +++ b/pages/testLogin/index.js @@ -0,0 +1,132 @@ +// pages/testLogin/index.js +const app = getApp(); + +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + textName: "18892081234", + textPassword: "xA123456", + loading: false, + userInfo: { + name: "", + icon: "" + } + }, + + // 鐧诲綍 + onLogin() { + this.setData({ + loading: true + }) + const data = { + loginName: this.data.textName, + password: this.data.textPassword, + appRefCode: app.config.appRefCode, + platform: "Mobile", + }; + app.MG.identity.loginByPassword(data).then(res => { + if (res && res.status == "Ok") { + this.setData({ + loginInfo: JSON.stringify(res) + }) + wx.setStorageSync(app.config.tokenKey, res.token); + this.getUserInfo() + } else { + wx.showToast({ + title: res.message || "鎵嬫満鍙锋垨瀵嗙爜閿欒", + icon: "error", + duration: 2000 + }) + } + }); + }, + + // 鑾峰彇鐢ㄦ埛淇℃伅 + // 鑾峰彇鐧诲綍鐢ㄦ埛韬唤 + getUserInfo() { + app.MG.identity.getCurrentAppUser().then(res => { + // 鐢ㄦ埛淇℃伅浼樺厛绾э細鏁欏笀璁よ瘉 > 寰俊 > 瀛︾敓锛堟敞鍐屾椂榛樿锛� + if (res) { + console.log(res, "user"); + let defaultUser = {}; + let secretData = res.secretList.find(i => i.type == 'LoginNameAndPassword') + let WeChatInfo = res.infoList.find((item) => item.type === "WeChat"); + if (WeChatInfo) { + defaultUser = { + nickName: WeChatInfo.name, + avatarUrl: WeChatInfo.icon, + userId: res.userId + } + } + if (secretData) { + defaultUser = { + nickName: secretData.credential, + avatarUrl: "../../static/images/index/tab.png", + userId: res.userId + } + } + + this.setData({ + userInfo: defaultUser, + loading: false + }) + wx.setStorageSync(app.config.userInfoKey, JSON.stringify(this.data.userInfo)); + } + wx.switchTab({ + url: '/pages/home/home' + }) + }); + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + } +}) \ No newline at end of file diff --git a/pages/testLogin/index.json b/pages/testLogin/index.json new file mode 100644 index 0000000..fd16c3b --- /dev/null +++ b/pages/testLogin/index.json @@ -0,0 +1,6 @@ +{ + "usingComponents": { + "t-input": "tdesign-miniprogram/input/input", + "t-button": "tdesign-miniprogram/button/button" + } +} \ No newline at end of file diff --git a/pages/testLogin/index.wxml b/pages/testLogin/index.wxml new file mode 100644 index 0000000..b538be0 --- /dev/null +++ b/pages/testLogin/index.wxml @@ -0,0 +1,8 @@ +<!--pages/testLogin/index.wxml--> +<view> + <t-input label="鐢ㄦ埛璐﹀彿" placeholder="璇疯緭鍏ョ敤鎴峰悕" model:value="{{textName}}" suffixIcon="{{ { name: 'user-avatar', ariaLabel: '閫氳褰�' } }}"></t-input> + <t-input label="鐢ㄦ埛瀵嗙爜" placeholder="璇疯緭鍏ュ瘑鐮�" type="password" model:value="{{textPassword}}" clearable /> +</view> +<view class="button-example"> + <t-button theme="primary" loading="{{loading}}" bindtap="onLogin" size="large" block>绔嬪嵆鐧诲綍</t-button> +</view> \ No newline at end of file diff --git a/pages/testLogin/index.wxss b/pages/testLogin/index.wxss new file mode 100644 index 0000000..7eb603b --- /dev/null +++ b/pages/testLogin/index.wxss @@ -0,0 +1,4 @@ +/* pages/testLogin/index.wxss */ +.button-example { + margin: 60rpx 32rpx; +} \ No newline at end of file diff --git a/static/images/personal/notification1.png b/static/images/personal/notification1.png new file mode 100644 index 0000000..8132730 --- /dev/null +++ b/static/images/personal/notification1.png Binary files differ -- Gitblit v1.9.1