diff --git a/api/init.js b/api/init.js
index 5a7398f..b2343d7 100644
--- a/api/init.js
+++ b/api/init.js
@@ -10,4 +10,13 @@ export async function init() {
uni.setStorageSync('moreSearch', res.data.value)
}
})
+}
+
+/**
+ *
+ */
+export const commonType = (num) => {
+ return http.request({
+ url: `/common/type/${num}`,
+ })
}
\ No newline at end of file
diff --git a/api/login/login.js b/api/login/login.js
new file mode 100644
index 0000000..ad323a6
--- /dev/null
+++ b/api/login/login.js
@@ -0,0 +1,43 @@
+import http from '@/http/http.js'
+
+/**
+ * 登录
+ */
+export const login = (data) => {
+ return http.request({
+ url: '/Login/registerCode',
+ method: 'POST',
+ params: data
+ })
+}
+
+/**
+ * 发送验证码
+ */
+export const setSendMsg = (mobile,type) => {
+ return http.request({
+ url: '/Login/sendMsg/' + mobile + '/'+type
+ })
+}
+
+/**
+ * 注册
+ */
+export const registerCode = (params) => {
+ return http.request({
+ url: '/Login/registerCode',
+ params: params
+ })
+}
+
+/**
+ * 修改密码
+ */
+export const forgetPwd = (data) => {
+ return http.request({
+ url: '/Login/forgetPwd',
+ method: 'POST',
+ params: data
+ })
+}
+
diff --git a/api/user/user.js b/api/user/user.js
new file mode 100644
index 0000000..0f89981
--- /dev/null
+++ b/api/user/user.js
@@ -0,0 +1,11 @@
+import http from '@/http/http.js'
+
+/**
+ * 获取用户信息
+ */
+export const selectUserById = (data) => {
+ return http.request({
+ url: '/user/selectUserById',
+ data: data
+ })
+}
\ No newline at end of file
diff --git a/components/my-video-list/my-video-list.vue b/components/my-video-list/my-video-list.vue
new file mode 100644
index 0000000..96a79a3
--- /dev/null
+++ b/components/my-video-list/my-video-list.vue
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/http/http.js b/http/http.js
index bc0a20e..79d3e2a 100644
--- a/http/http.js
+++ b/http/http.js
@@ -82,7 +82,7 @@ function commonsProcess(showLoading, httpReqCallback) {
});
}
// 构造请求成功的响应数据
- return Promise.resolve(bodyData.data || bodyData.page);
+ return Promise.resolve(bodyData.data || bodyData.page|| bodyData);
})
.catch((res) => {
console.log(res);
@@ -141,28 +141,36 @@ function req(uri, data, method = "GET", showLoading = true, extParams = {}) {
// 默认 显示loading(控制 xxs 内 不提示loading )
function request(args) {
- const {
- url,
- data,
- params,
- method = "GET",
- showLoading = true,
- extParams = {},
- } = args;
- let headerObject = {};
- return commonsProcess(showLoading, () => {
- return uni.request(
- Object.assign(
- {
- url: slash(baseUrl, url),
- data: params || data,
- method: method,
- header: getHeader(),
- },
- extParams
- )
- );
- });
+ let {
+ url,
+ data,
+ params,
+ method = "GET",
+ showLoading = true,
+ extParams = {}
+ } = args
+ if (params) {
+ let result = ''
+ Object.keys(params).forEach((key) => {
+ if (!Object.is(params[key], undefined) && !Object.is(params[key], null) && !Object.is(JSON.stringify(params[key]), '{}')) {
+ result += encodeURIComponent(key) + '=' + encodeURIComponent(params[key]) + "&"
+ }
+ })
+ url = url+'?'+result
+ params = null
+ }
+ let headerObject = {}
+ return commonsProcess(showLoading, () => {
+ return uni.request(
+ Object.assign({
+ url: slash(baseUrl, url),
+ data: params || data,
+ method: method,
+ header: getHeader()
+ }, extParams)
+
+ )
+ })
}
// 处理/
function slash(baseUrl, url) {
diff --git a/pages.json b/pages.json
index 14a959e..394c668 100644
--- a/pages.json
+++ b/pages.json
@@ -21,7 +21,15 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
- }, {
+ },
+ {
+ "path": "pages/video/detail",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom"
+ }
+ },
+ {
"path": "pages/task/index",
"style": {
"navigationBarTitleText": "",
@@ -71,6 +79,16 @@
"style": {
"navigationBarTitleText": "个人资料"
}
+ }, {
+ "path": "pages/me/privacy",
+ "style": {
+ "navigationBarTitleText": "隐私协议"
+ }
+ }, {
+ "path": "pages/me/agreement",
+ "style": {
+ "navigationBarTitleText": "服务协议"
+ }
},
{
"path": "pages/index/search/index",
diff --git a/pages/login/bind.vue b/pages/login/bind.vue
index a18dc15..7d8245a 100644
--- a/pages/login/bind.vue
+++ b/pages/login/bind.vue
@@ -19,137 +19,134 @@
diff --git a/pages/login/forgetPwd.vue b/pages/login/forgetPwd.vue
index 2652676..3be07f2 100644
--- a/pages/login/forgetPwd.vue
+++ b/pages/login/forgetPwd.vue
@@ -8,21 +8,21 @@
重置密码
手机号
-
验证码
-
-
+
设置密码
-
@@ -32,169 +32,132 @@
-
diff --git a/pages/me/privacy.vue b/pages/me/privacy.vue
new file mode 100644
index 0000000..ceb90a8
--- /dev/null
+++ b/pages/me/privacy.vue
@@ -0,0 +1,70 @@
+
+
+
+
+ 拒绝
+ 同意
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/me/userInfo.vue b/pages/me/userInfo.vue
index c044ecb..c7baad0 100644
--- a/pages/me/userInfo.vue
+++ b/pages/me/userInfo.vue
@@ -3,18 +3,18 @@
-
-
+
-
+
@@ -22,144 +22,141 @@
-
diff --git a/pages/video/detail.nvue b/pages/video/detail.nvue
new file mode 100644
index 0000000..cdd2158
--- /dev/null
+++ b/pages/video/detail.nvue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/video/index.vue b/pages/video/index.vue
index 10d2b9e..a908416 100644
--- a/pages/video/index.vue
+++ b/pages/video/index.vue
@@ -1,11 +1,15 @@
-
+ toDetail