From cef6f2be856fc70c0ae66808afab52a06b06231a Mon Sep 17 00:00:00 2001
From: gyq <875626088@qq.com>
Date: Wed, 8 Jan 2025 11:01:34 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=84=8F=E8=A7=81=E5=8F=8D?=
=?UTF-8?q?=E9=A6=88=E3=80=81=E5=B8=AE=E5=8A=A9=E4=B8=AD=E5=BF=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/me/me.js | 63 ++++++++
pages.json | 38 ++++-
pages/chasingDrama/index.vue | 5 +-
pages/login/login.vue | 2 +
pages/me/contact.vue | 74 ++++++++++
pages/me/feedback.vue | 124 ++++++++++++++++
pages/me/gold_record.vue | 89 ++++++++++++
pages/me/help_center.vue | 88 ++++++++++++
pages/me/help_center_detail.vue | 27 ++++
pages/me/index.vue | 152 ++++++++++++++------
pages/me/setting.vue | 77 ++++++++++
pages/watching_history/watching_history.vue | 22 ++-
utils/app.js | 50 +++++--
13 files changed, 752 insertions(+), 59 deletions(-)
create mode 100644 pages/me/contact.vue
create mode 100644 pages/me/feedback.vue
create mode 100644 pages/me/gold_record.vue
create mode 100644 pages/me/help_center.vue
create mode 100644 pages/me/help_center_detail.vue
create mode 100644 pages/me/setting.vue
diff --git a/api/me/me.js b/api/me/me.js
index 3da06c2..72d2b8e 100644
--- a/api/me/me.js
+++ b/api/me/me.js
@@ -9,4 +9,67 @@ export const selectByUserId = (data) => {
data: data,
method: 'GET'
})
+}
+
+/**
+ * 获取客服微信
+ */
+export const commonType = (type) => {
+ return http.request({
+ url: `/common/type/${type}`,
+ method: 'GET'
+ })
+}
+
+/**
+ * 金币明细
+ */
+export const queryUserMoneyDetails = (data) => {
+ return http.request({
+ url: '/moneyDetails/queryUserMoneyDetails',
+ method: 'GET',
+ data: data
+ })
+}
+
+/**
+ * 意见反馈
+ */
+export const sendMessage = (data) => {
+ return http.request({
+ url: '/message/sendMessage',
+ method: 'POST',
+ data: data
+ })
+}
+
+/**
+ * 帮助中心
+ */
+export const selectHelpList = (data) => {
+ return http.request({
+ url: '/helpWord/selectHelpList',
+ method: 'GET',
+ data: data
+ })
+}
+
+/**
+ * 个人中心数据
+ */
+export const collectVideoSummary = () => {
+ return http.request({
+ url: '/courseCollect/collectVideoSummary',
+ method: 'GET'
+ })
+}
+
+/**
+ * 金币
+ */
+export const selectUserMoney = () => {
+ return http.request({
+ url: '/moneyDetails/selectUserMoney',
+ method: 'GET'
+ })
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 394c668..fe6a09a 100644
--- a/pages.json
+++ b/pages.json
@@ -28,7 +28,7 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
- },
+ },
{
"path": "pages/task/index",
"style": {
@@ -43,13 +43,47 @@
"enablePullDownRefresh": true
}
}, {
- "path": "pages/watching_history/watching_history"
+ "path": "pages/watching_history/watching_history",
+ "style": {
+ "enablePullDownRefresh": true
+ }
}, {
"path": "pages/me/index",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
+ }, {
+ "path": "pages/me/contact",
+ "style": {
+ "navigationBarTitleText": "联系客服"
+ }
+ }, {
+ "path": "pages/me/gold_record",
+ "style": {
+ "navigationBarTitleText": "金币明细",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/me/feedback",
+ "style": {
+ "navigationBarTitleText": "意见反馈"
+ }
+ }, {
+ "path": "pages/me/help_center",
+ "style": {
+ "navigationBarTitleText": "帮助中心"
+ }
+ }, {
+ "path": "pages/me/setting",
+ "style": {
+ "navigationBarTitleText": "设置"
+ }
+ }, {
+ "path": "pages/me/help_center_detail",
+ "style": {
+ "navigationBarTitleText": ""
+ }
}, {
"path": "pages/login/login",
"style": {
diff --git a/pages/chasingDrama/index.vue b/pages/chasingDrama/index.vue
index 33a131c..190d722 100644
--- a/pages/chasingDrama/index.vue
+++ b/pages/chasingDrama/index.vue
@@ -53,12 +53,15 @@ import { onLoad, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app';
async function selectByUserIdAjax() {
try {
const res1 = await selectByUserId({ page: 1, limit: 6, classify: 3 });
- const res2 = await selectByUserId({ page: 1, limit: 6, classify: 6 });
+ const res2 = await selectByUserId({ page: 1, limit: 6, classify: 1 });
data.list1 = res1.records;
data.list2 = res2.records;
} catch (error) {
console.log(error);
}
+ setTimeout(() => {
+ uni.stopPullDownRefresh();
+ }, 500);
}
const data = reactive({
diff --git a/pages/login/login.vue b/pages/login/login.vue
index d4dae0c..3bd0699 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -137,6 +137,8 @@
uni.setStorageSync('invitationCode', res.user.invitationCode)
uni.setStorageSync('sex', res.user.sex)
uni.setStorageSync('userId', res.user.userId)
+
+ uni.setStorageSync('userInfo', res.user)
//设置渠道码
if (res.user.qdCode) {
uni.setStorageSync('qdCode', res.user.qdCode)
diff --git a/pages/me/contact.vue b/pages/me/contact.vue
new file mode 100644
index 0000000..808ed7b
--- /dev/null
+++ b/pages/me/contact.vue
@@ -0,0 +1,74 @@
+
+
+
+
+ 添加客服微信咨询
+ {{ info.wx }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/feedback.vue b/pages/me/feedback.vue
new file mode 100644
index 0000000..8226a61
--- /dev/null
+++ b/pages/me/feedback.vue
@@ -0,0 +1,124 @@
+
+
+
+
+ 问题和意见
+ 快速键入
+
+
+
+
+
+
+
+ QQ/邮箱
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
diff --git a/pages/me/gold_record.vue b/pages/me/gold_record.vue
new file mode 100644
index 0000000..870f6cf
--- /dev/null
+++ b/pages/me/gold_record.vue
@@ -0,0 +1,89 @@
+
+
+
+
+ 类型:{{ item.title }}
+ 内容:{{ item.content }}
+ 时间:{{ item.createTime }}
+ +{{ item.money }}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/help_center.vue b/pages/me/help_center.vue
new file mode 100644
index 0000000..a93abde
--- /dev/null
+++ b/pages/me/help_center.vue
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+ {{ val.helpWordTitle }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/help_center_detail.vue b/pages/me/help_center_detail.vue
new file mode 100644
index 0000000..60c46dd
--- /dev/null
+++ b/pages/me/help_center_detail.vue
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/index.vue b/pages/me/index.vue
index c938966..808992b 100644
--- a/pages/me/index.vue
+++ b/pages/me/index.vue
@@ -11,27 +11,29 @@
-
+
- 159****3331
+ {{ userInfo.phone || '请登录' }}
-
+
我的喜欢
- 0
-
-
+ {{ likeData.likeCount }}
+
+
我的追剧
- 0
-
+ {{ likeData.collectCount }}
+
我的红包
- 0
+ {{ amount || 0 }}
@@ -39,47 +41,44 @@
- 123133.00
+ {{ gold }}
- 金币明细
-
-
- 观看历史
-
+
+ 金币明细
+
+
+
+ 观看历史
+
+
+
-
-
- 我在八零年代当后妈
- 看到8集
-
-
-
- 姜小姐的反击
- 看到12集
-
-
-
- 霸道载誉归来
- 看到3集
+
+
+ {{ item.title }}
+ 看到{{ item.courseDetailsName }}
+
+
+