diff --git a/src/pages.json b/src/pages.json index d4c86ae0..bcf62dd3 100644 --- a/src/pages.json +++ b/src/pages.json @@ -298,6 +298,27 @@ "navigationBarTitleText": "邀请福利", "navigationStyle": "custom" } + }, + { + "path": "pages/gift/index", + "style": { + "navigationBarTitleText": "邀请福利", + "navigationStyle": "custom" + } + }, + { + "path": "pages/gift/history", + "style": { + "navigationBarTitleText": "礼物账单", + "navigationStyle": "custom" + } + }, + { + "path": "pages/inviter/index", + "style": { + "navigationBarTitleText": "邀请历史", + "navigationStyle": "custom" + } } ] } diff --git a/src/pages/profile/view-record.vue b/src/pages/profile/view-record.vue index 27b66563..ee334140 100644 --- a/src/pages/profile/view-record.vue +++ b/src/pages/profile/view-record.vue @@ -17,33 +17,25 @@ - + - + diff --git a/src/pages/wechat/index.vue b/src/pages/wechat/index.vue index 314c3f06..747903a1 100644 --- a/src/pages/wechat/index.vue +++ b/src/pages/wechat/index.vue @@ -27,7 +27,8 @@ - + {{ v.value }} {{ v.title }} @@ -96,14 +97,17 @@ const data = { { title: '累计收益', value: '100', + path: "/pages/wechat/pages/gift/history", }, { title: '可提现', value: '200', + path: "/pages/wechat/pages/gift/index", }, { title: '成功邀请', value: '300', + path: "/pages/wechat/pages/gift/index", }, ], menuTab: [ @@ -111,7 +115,7 @@ const data = { title: '礼物奖励', icon: 'icon-liwu', bgColor: '#fad34a', - path: "", + path: "/pages/wechat/pages/gift/index", }, { title: '钻石充值', @@ -142,6 +146,14 @@ const data = { ], } +const doTxItem = (item) => { + if (item.path) { + uni.navigateTo({ + url: item.path, + }); + } +} + const doItem = (item) => { if (item.path) { uni.navigateTo({ diff --git a/src/pages/wechat/pages/gift/history.vue b/src/pages/wechat/pages/gift/history.vue new file mode 100644 index 00000000..8140ed10 --- /dev/null +++ b/src/pages/wechat/pages/gift/history.vue @@ -0,0 +1,21 @@ + + \ No newline at end of file diff --git a/src/pages/wechat/pages/gift/index.vue b/src/pages/wechat/pages/gift/index.vue new file mode 100644 index 00000000..2cd2deb6 --- /dev/null +++ b/src/pages/wechat/pages/gift/index.vue @@ -0,0 +1,47 @@ + + \ No newline at end of file diff --git a/src/pages/wechat/pages/inviter/index.vue b/src/pages/wechat/pages/inviter/index.vue new file mode 100644 index 00000000..66fbedfc --- /dev/null +++ b/src/pages/wechat/pages/inviter/index.vue @@ -0,0 +1,16 @@ + + \ No newline at end of file