diff --git a/api/me/message.js b/api/me/message.js
new file mode 100644
index 0000000..c670391
--- /dev/null
+++ b/api/me/message.js
@@ -0,0 +1,11 @@
+import http from '@/http/http.js'
+
+/**
+ * 获取消息列表
+ */
+export const selectMessageByUserId = (data) => {
+ return http.request({
+ url: '/message/selectMessageByUserId',
+ data: data,
+ })
+}
\ No newline at end of file
diff --git a/api/me/withdraw.js b/api/me/withdraw.js
new file mode 100644
index 0000000..e1458b9
--- /dev/null
+++ b/api/me/withdraw.js
@@ -0,0 +1,63 @@
+import http from '@/http/http.js'
+
+
+
+
+/**
+ * 获取提现金额
+ */
+export const selectUserMoney = (data) => {
+ return http.request({
+ url: '/moneyDetails/selectUserMoney',
+ })
+}
+
+/**
+ * 获取提现记录
+ */
+export const selectPayDetails = (data) => {
+ return http.request({
+ url: '/cash/selectPayDetails',
+ data: data
+ })
+}
+
+/**
+ * 修改提现账号
+ */
+export const updateUser = (data) => {
+ return http.request({
+ url: '/user/updateUser',
+ params: data
+ })
+}
+
+/**
+ * 获取看广告状态
+ */
+export const canCash = (data) => {
+ return http.request({
+ url: '/cash/canCash',
+ })
+}
+
+/**
+ * 广告状态修改
+ */
+export const state = (data) => {
+ return http.request({
+ url: '/ad/state',
+ data: data,
+ })
+}
+
+/**
+ * 广告状态修改
+ */
+export const withdraw = (data) => {
+ return http.request({
+ url: '/cash/withdraw',
+ data: data,
+ })
+}
+
diff --git a/pages.json b/pages.json
index 394c668..fe85ca4 100644
--- a/pages.json
+++ b/pages.json
@@ -89,6 +89,30 @@
"style": {
"navigationBarTitleText": "服务协议"
}
+ }, {
+ "path": "pages/me/message",
+ "style": {
+ "navigationBarTitleText": "消息中心"
+ }
+ }, {
+ "path": "pages/me/withdraw/index",
+ "style": {
+ "navigationBarTitleText": "申请提现",
+ "navigationBarTextStyle": "#fff",
+ "navigationBarBackgroundColor": "rgb(255, 117, 129)",
+ "titleNView": {
+ "buttons": [{
+ "text": "规则",
+ "fontSize": "30rpx",
+ "onclick": "onNavigationBarButtonTap"
+ }]
+ }
+ }
+ }, {
+ "path": "pages/me/withdraw/alipay",
+ "style": {
+ "navigationBarTitleText": "提现账号"
+ }
},
{
"path": "pages/index/search/index",
diff --git a/pages/login/login.vue b/pages/login/login.vue
index d4dae0c..66f7e8b 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -130,17 +130,19 @@
})
console.log(res)
uni.setStorageSync('token', res.token)
- uni.setStorageSync('userId', res.user.userId)
- uni.setStorageSync('userName', res.user.userName)
- uni.setStorageSync('avatar', res.user.avatar ? res.user.avatar : '../../static/default/avatar.png')
- uni.setStorageSync('phone', res.user.phone)
- uni.setStorageSync('invitationCode', res.user.invitationCode)
- uni.setStorageSync('sex', res.user.sex)
- uni.setStorageSync('userId', res.user.userId)
+ uni.setStorageSync('userInfo', res.user)
+
+ // uni.setStorageSync('userId', res.user.userId)
+ // uni.setStorageSync('userName', res.user.userName)
+ // uni.setStorageSync('avatar', res.user.avatar ? res.user.avatar : '../../static/default/avatar.png')
+ // uni.setStorageSync('phone', res.user.phone)
+ // uni.setStorageSync('invitationCode', res.user.invitationCode)
+ // uni.setStorageSync('sex', res.user.sex)
+ // uni.setStorageSync('userId', res.user.userId)
//设置渠道码
- if (res.user.qdCode) {
- uni.setStorageSync('qdCode', res.user.qdCode)
- }
+ // if (res.user.qdCode) {
+ // uni.setStorageSync('qdCode', res.user.qdCode)
+ // }
uni.hideLoading();
uni.showToast({
title: '登录成功',
diff --git a/pages/me/agreement.vue b/pages/me/agreement.vue
index e82dc7d..a034ba9 100644
--- a/pages/me/agreement.vue
+++ b/pages/me/agreement.vue
@@ -11,8 +11,6 @@
+
+
\ No newline at end of file
diff --git a/pages/me/privacy.vue b/pages/me/privacy.vue
index ceb90a8..18e749d 100644
--- a/pages/me/privacy.vue
+++ b/pages/me/privacy.vue
@@ -11,8 +11,6 @@
+
+
\ No newline at end of file
diff --git a/pages/me/withdraw/index.vue b/pages/me/withdraw/index.vue
new file mode 100644
index 0000000..93d11fb
--- /dev/null
+++ b/pages/me/withdraw/index.vue
@@ -0,0 +1,462 @@
+
+
+
+
+
+ 可提现总额
+ ¥ {{ data.mayMoney }}
+
+
+
+ 提现金额
+
+
+
+
+ ¥
+
+
+
+ 全部
+
+
+
+
+
+
+
+
+ {{!data.isWithdraw?'观看广告提现':'立即提现'}}
+
+
+
+
+ 提现账号
+
+
+ 红包明细
+
+
+
+
+
+
+
+
+ 提现成功
+
+ 提现中
+
+ 提现失败
+
+
+
+
+ 收款人账号:{{ item.zhifubao }}
+ 收款人姓名:{{ item.zhifubaoName }}
+ 发起时间:{{ item.createAt }}
+ 成功时间 {{ item.outAt }}
+
+ 失败原因:{{ item.refund }}
+
+
+
+
+ ¥{{ item.money }}
+
+
+
+
+
+
+
+
+
+ 暂无记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/me/jifen.png b/static/me/jifen.png
new file mode 100644
index 0000000..2700c27
Binary files /dev/null and b/static/me/jifen.png differ
diff --git a/static/me/message.png b/static/me/message.png
new file mode 100644
index 0000000..8acef4d
Binary files /dev/null and b/static/me/message.png differ