Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| be7146b026 | |||
| 07637f1986 | |||
| 50a5e7672c | |||
| efce59d822 | |||
| 5bf0a4e686 | |||
| 855a884c4c | |||
| 85205caa74 | |||
| fbfc97bc3f | |||
| d5bd741dde | |||
| 709eff18c3 | |||
| 1eb645705d | |||
| c65d4a0e78 | |||
| d3dc2e8a87 | |||
| 80c07fe756 | |||
| 4d85921b48 | |||
| b01479803a | |||
| fc64e7b77b | |||
| 4306ba1900 | |||
| 7c2b8b7840 | |||
| d1621e78f1 |
2
App.vue
2
App.vue
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
console.log('App Launch ');
|
console.log('App Launch 11111');
|
||||||
uni.setStorageSync('adRewardedNum',0)
|
uni.setStorageSync('adRewardedNum',0)
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ export async function init() {
|
|||||||
//热搜词
|
//热搜词
|
||||||
http.request({
|
http.request({
|
||||||
url: 'common/type/249',
|
url: 'common/type/249',
|
||||||
|
data: {
|
||||||
|
type: 249
|
||||||
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.setStorageSync('moreSearch', res.data.value)
|
uni.setStorageSync('moreSearch', res.data.value)
|
||||||
@@ -18,6 +21,9 @@ export async function init() {
|
|||||||
export const commonType = (num) => {
|
export const commonType = (num) => {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: `/common/type/${num}`,
|
url: `/common/type/${num}`,
|
||||||
|
data:{
|
||||||
|
type: num
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,13 @@ export const login = (data) => {
|
|||||||
/**
|
/**
|
||||||
* 发送验证码
|
* 发送验证码
|
||||||
*/
|
*/
|
||||||
export const setSendMsg = (mobile,type) => {
|
export const setSendMsg = (mobile, type) => {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: '/Login/sendMsg/' + mobile + '/'+type
|
url: '/Login/sendMsg/' + mobile + '/' + type,
|
||||||
|
data: {
|
||||||
|
phone: mobile,
|
||||||
|
event: type
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,4 +76,4 @@ export const $bindStatus = (data) => {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -17,7 +17,10 @@ export const selectByUserId = (data) => {
|
|||||||
export const commonType = (type) => {
|
export const commonType = (type) => {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: `/common/type/${type}`,
|
url: `/common/type/${type}`,
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
data: {
|
||||||
|
type: type
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,15 +8,16 @@ export const selectNewApp = (data) => {
|
|||||||
return http.request({
|
return http.request({
|
||||||
url: '/user/selectNewApp',
|
url: '/user/selectNewApp',
|
||||||
data: data,
|
data: data,
|
||||||
|
method: 'POST',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户信息
|
* 获取用户信息
|
||||||
*/
|
*/
|
||||||
export const selectUserById = (data) => {
|
export const selectUserById = (data) => {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: '/user/selectUserById',
|
url: '/user/selectUserById',
|
||||||
|
method: 'get',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,10 @@ export function insertHistory(data) {
|
|||||||
export function getJinbiBili(data) {
|
export function getJinbiBili(data) {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: 'common/type/914',
|
url: 'common/type/914',
|
||||||
data
|
data: {
|
||||||
|
...data,
|
||||||
|
type: 914
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,14 +100,16 @@ export function payOrder(data) {
|
|||||||
// #endif
|
// #endif
|
||||||
return http.request({
|
return http.request({
|
||||||
url: 'wuyou/payOrder/' + data.orderId + '?payType=' + payType,
|
url: 'wuyou/payOrder/' + data.orderId + '?payType=' + payType,
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
data:data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//获取订单支付状态
|
//获取订单支付状态
|
||||||
export function getOrderInfo(data) {
|
export function getOrderInfo(data) {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: 'wuyou/queryOrder/' + data.orderId,
|
url: 'wuyou/queryOrder/' + data.orderId,
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
data:data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//金币解锁
|
//金币解锁
|
||||||
@@ -140,11 +145,11 @@ export function playStatus(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取支付次数提示
|
// 获取支付次数提示
|
||||||
export function getPayTips(data){
|
export function getPayTips(data) {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: 'course/getRedEnvelopeTips',
|
url: 'course/getRedEnvelopeTips',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,19 +1,31 @@
|
|||||||
//打包时修改env的值即可
|
//打包时修改env的值即可
|
||||||
const env = 'production' //test,production,local
|
const env = 'php_production' //test,production,local
|
||||||
|
|
||||||
export const encryptKey = '1234567890123456' // http数据加解密的key
|
export const encryptKey = '1234567890123456' // http数据加解密的key
|
||||||
|
|
||||||
export const apiUrl = '/czg/'
|
export const apiUrl = '/czg/app/'
|
||||||
|
// export const apiUrl = '/api/'
|
||||||
export const h5Config = {
|
export const h5Config = {
|
||||||
production: 'https://web.hnsiyao.cn',
|
production: 'https://web.hnsiyao.cn',
|
||||||
test: 'https://web-api.hnsiyao.cn',
|
test: 'https://web-api.hnsiyao.cn',
|
||||||
local: 'http://192.168.1.21:8100'
|
// local: 'http://192.168.1.21:8100',
|
||||||
|
local: 'http://192.168.1.43:1333',
|
||||||
|
zhangsong_local:'http://192.168.1.54:1024',
|
||||||
|
hong:'http://192.168.1.31:8080',
|
||||||
|
php_production:'https://tv-ph.hnsiyao.cn',
|
||||||
|
php_test:'https://playlet.test.sxczgkj.com',
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const AppConfig = {
|
export const AppConfig = {
|
||||||
production: 'https://dj-api.hnsiyao.cn',
|
production: 'https://dj-api.hnsiyao.cn',
|
||||||
test: 'https://web-api.hnsiyao.cn',
|
test: 'https://web-api.hnsiyao.cn',
|
||||||
local: 'http://192.168.1.41:8100'
|
// local: 'http://192.168.1.21:8100',
|
||||||
|
local: 'http://192.168.1.43:1333',
|
||||||
|
zhangsong_local:'http://192.168.1.54:1024',
|
||||||
|
hong:'http://192.168.1.31:8080',
|
||||||
|
php_production:'https://tv-ph.hnsiyao.cn',
|
||||||
|
php_test:'https://playlet.test.sxczgkj.com'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function returnShareUrl() {
|
export function returnShareUrl() {
|
||||||
@@ -23,6 +35,9 @@ export function returnShareUrl() {
|
|||||||
if (env === 'production') {
|
if (env === 'production') {
|
||||||
return 'https://dj-h5.hnsiyao.cn'
|
return 'https://dj-h5.hnsiyao.cn'
|
||||||
}
|
}
|
||||||
|
if (env === 'php_production') {
|
||||||
|
return 'https://ph-h5.hnsiyao.cn'
|
||||||
|
}
|
||||||
if (env === 'local') {
|
if (env === 'local') {
|
||||||
return AppConfig[env]
|
return AppConfig[env]
|
||||||
}
|
}
|
||||||
|
|||||||
25
http/http.js
25
http/http.js
@@ -9,7 +9,8 @@ import {
|
|||||||
import config from "@/commons/config.js";
|
import config from "@/commons/config.js";
|
||||||
|
|
||||||
// 测试服
|
// 测试服
|
||||||
let baseUrl = config.baseApiUrl + "app";
|
// let baseUrl = config.baseApiUrl + "app";
|
||||||
|
let baseUrl = config.baseApiUrl;
|
||||||
const loadingShowTime = 200;
|
const loadingShowTime = 200;
|
||||||
|
|
||||||
function getHeader(data) {
|
function getHeader(data) {
|
||||||
@@ -22,7 +23,7 @@ function getHeader(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 通用处理逻辑
|
// 通用处理逻辑
|
||||||
function commonsProcess(showLoading, httpReqCallback, isreturm) {
|
function commonsProcess(showLoading, httpReqCallback, isreturm, url) {
|
||||||
// 判断是否请求完成(用作 是否loading )
|
// 判断是否请求完成(用作 是否loading )
|
||||||
// 包括: 'ing', 'ingLoading', 'finish'
|
// 包括: 'ing', 'ingLoading', 'finish'
|
||||||
let reqState = "ing";
|
let reqState = "ing";
|
||||||
@@ -49,7 +50,9 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
|
|||||||
|
|
||||||
return httpReqCallback()
|
return httpReqCallback()
|
||||||
.then((httpData) => {
|
.then((httpData) => {
|
||||||
|
// console.log(url);
|
||||||
|
// console.log('httpData');
|
||||||
|
// console.log(httpData);
|
||||||
reqFinishFunc(); // 请求完毕的动作
|
reqFinishFunc(); // 请求完毕的动作
|
||||||
// 从http响应数据中解构响应数据 [ 响应码、 bodyData ]
|
// 从http响应数据中解构响应数据 [ 响应码、 bodyData ]
|
||||||
let {
|
let {
|
||||||
@@ -75,7 +78,7 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
|
|||||||
// http响应码不正确
|
// http响应码不正确
|
||||||
if (statusCode != 200 && statusCode != 204 && statusCode != 201) {
|
if (statusCode != 200 && statusCode != 204 && statusCode != 201) {
|
||||||
isShowErrorToast = true;
|
isShowErrorToast = true;
|
||||||
infoBox.showToast(data.message || "服务器异常");
|
infoBox.showToast(data.message || data.msg || "服务器异常");
|
||||||
return Promise.reject(bodyData); // 跳转到catch函数
|
return Promise.reject(bodyData); // 跳转到catch函数
|
||||||
}
|
}
|
||||||
if (bodyData.code == 401) {
|
if (bodyData.code == 401) {
|
||||||
@@ -117,7 +120,7 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
|
|||||||
|
|
||||||
|
|
||||||
if (bodyData.code != 0) {
|
if (bodyData.code != 0) {
|
||||||
infoBox.showToast(data.message);
|
infoBox.showToast(data.message || data.msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,7 +137,8 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
|
|||||||
return Promise.resolve(result);
|
return Promise.resolve(result);
|
||||||
})
|
})
|
||||||
.catch((res) => {
|
.catch((res) => {
|
||||||
|
console.log('catch res');
|
||||||
|
console.log(res);
|
||||||
if (res.status == 404) {
|
if (res.status == 404) {
|
||||||
infoBox.showToast("接口404").then(() => {});
|
infoBox.showToast("接口404").then(() => {});
|
||||||
reject();
|
reject();
|
||||||
@@ -142,17 +146,18 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (res.code == 401) {
|
if (res.code == 401) {
|
||||||
|
uni.clearStorageSync()
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: "/pages/login/login",
|
url: "/pages/login/login",
|
||||||
});
|
});
|
||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
if (res.code != 0 && res.code != 401) {
|
if (res.code != 0 && res.code != 401) {
|
||||||
infoBox.showToast(res.msg).then(() => {});
|
infoBox.showToast(res.message || res.msg).then(() => {});
|
||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
if (res.code == 500) {
|
if (res.code == 500) {
|
||||||
infoBox.showToast(res.msg || "服务器异常").then(() => {});
|
infoBox.showToast(res.message || res.msg || "服务器异常").then(() => {});
|
||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
reqFinishFunc(); // 请求完毕的动作
|
reqFinishFunc(); // 请求完毕的动作
|
||||||
@@ -207,8 +212,10 @@ function request(args) {
|
|||||||
url = url + '?' + (result.slice(0, result.length - 1))
|
url = url + '?' + (result.slice(0, result.length - 1))
|
||||||
params = null
|
params = null
|
||||||
}
|
}
|
||||||
|
|
||||||
let headerObject = {}
|
let headerObject = {}
|
||||||
return commonsProcess(showLoading, () => {
|
return commonsProcess(showLoading, () => {
|
||||||
|
|
||||||
return uni.request(
|
return uni.request(
|
||||||
Object.assign({
|
Object.assign({
|
||||||
url: slash(baseUrl, url),
|
url: slash(baseUrl, url),
|
||||||
@@ -218,7 +225,7 @@ function request(args) {
|
|||||||
}, extParams)
|
}, extParams)
|
||||||
|
|
||||||
)
|
)
|
||||||
}, isreturm)
|
}, isreturm, url)
|
||||||
}
|
}
|
||||||
// 处理/
|
// 处理/
|
||||||
function slash(baseUrl, url) {
|
function slash(baseUrl, url) {
|
||||||
|
|||||||
@@ -150,7 +150,8 @@
|
|||||||
"title" : "斯耀短剧",
|
"title" : "斯耀短剧",
|
||||||
"template" : "template.html",
|
"template" : "template.html",
|
||||||
"router" : {
|
"router" : {
|
||||||
"mode" : "history"
|
"mode" : "history",
|
||||||
|
"base" : ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
301
package-lock.json
generated
301
package-lock.json
generated
@@ -1,295 +1,110 @@
|
|||||||
{
|
{
|
||||||
|
"name": "抽奖转盘,非固定图片,可自定义传入奖项列表,v2 v3兼容",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"lockfileVersion": 1,
|
"packages": {
|
||||||
"dependencies": {
|
"": {
|
||||||
"@babel/runtime": {
|
"name": "抽奖转盘,非固定图片,可自定义传入奖项列表,v2 v3兼容",
|
||||||
"version": "7.26.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.26.0.tgz",
|
"dependencies": {
|
||||||
"integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==",
|
"lodash": "^4.17.21",
|
||||||
"requires": {
|
"uview-plus": "^3.3.62"
|
||||||
"regenerator-runtime": "^0.14.0"
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"pinia-plugin-unistorage": "^0.1.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base64-js": {
|
"node_modules/clipboard": {
|
||||||
"version": "1.5.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz",
|
|
||||||
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
|
|
||||||
},
|
|
||||||
"buffer": {
|
|
||||||
"version": "5.7.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/buffer/-/buffer-5.7.1.tgz",
|
|
||||||
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
|
|
||||||
"requires": {
|
|
||||||
"base64-js": "^1.3.1",
|
|
||||||
"ieee754": "^1.1.13"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"buffer-from": {
|
|
||||||
"version": "1.1.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz",
|
|
||||||
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
|
|
||||||
},
|
|
||||||
"clipboard": {
|
|
||||||
"version": "2.0.11",
|
"version": "2.0.11",
|
||||||
"resolved": "https://registry.npmmirror.com/clipboard/-/clipboard-2.0.11.tgz",
|
"resolved": "https://registry.npmmirror.com/clipboard/-/clipboard-2.0.11.tgz",
|
||||||
"integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
|
"integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
|
||||||
"requires": {
|
"dependencies": {
|
||||||
"good-listener": "^1.2.2",
|
"good-listener": "^1.2.2",
|
||||||
"select": "^1.1.2",
|
"select": "^1.1.2",
|
||||||
"tiny-emitter": "^2.0.0"
|
"tiny-emitter": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"concat-stream": {
|
"node_modules/dayjs": {
|
||||||
"version": "1.6.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/concat-stream/-/concat-stream-1.6.2.tgz",
|
|
||||||
"integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
|
|
||||||
"requires": {
|
|
||||||
"buffer-from": "^1.0.0",
|
|
||||||
"inherits": "^2.0.3",
|
|
||||||
"readable-stream": "^2.2.2",
|
|
||||||
"typedarray": "^0.0.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"copy-text-to-clipboard": {
|
|
||||||
"version": "3.2.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz",
|
|
||||||
"integrity": "sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q=="
|
|
||||||
},
|
|
||||||
"core-js": {
|
|
||||||
"version": "3.40.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.40.0.tgz",
|
|
||||||
"integrity": "sha512-7vsMc/Lty6AGnn7uFpYT56QesI5D2Y/UkgKounk87OP9Z2H9Z8kj6jzcSGAxFmUtDOS0ntK6lbQz+Nsa0Jj6mQ=="
|
|
||||||
},
|
|
||||||
"core-util-is": {
|
|
||||||
"version": "1.0.3",
|
|
||||||
"resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz",
|
|
||||||
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="
|
|
||||||
},
|
|
||||||
"cross-spawn": {
|
|
||||||
"version": "5.1.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-5.1.0.tgz",
|
|
||||||
"integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==",
|
|
||||||
"requires": {
|
|
||||||
"lru-cache": "^4.0.1",
|
|
||||||
"shebang-command": "^1.2.0",
|
|
||||||
"which": "^1.2.9"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dayjs": {
|
|
||||||
"version": "1.11.13",
|
"version": "1.11.13",
|
||||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz",
|
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz",
|
||||||
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="
|
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="
|
||||||
},
|
},
|
||||||
"delegate": {
|
"node_modules/delegate": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
"resolved": "https://registry.npmmirror.com/delegate/-/delegate-3.2.0.tgz",
|
"resolved": "https://registry.npmmirror.com/delegate/-/delegate-3.2.0.tgz",
|
||||||
"integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw=="
|
"integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw=="
|
||||||
},
|
},
|
||||||
"gm-crypto": {
|
"node_modules/good-listener": {
|
||||||
"version": "0.1.12",
|
|
||||||
"resolved": "https://registry.npmmirror.com/gm-crypto/-/gm-crypto-0.1.12.tgz",
|
|
||||||
"integrity": "sha512-ercd9ionBqxR+/FCXICr0eo+jzC8BvSK0j9L7/eB0uwbyjgeMPTdBNrcQTqIuRXOtOAKSGsTNvtLYFnIxNEoFg==",
|
|
||||||
"requires": {
|
|
||||||
"buffer": "^5.7.0",
|
|
||||||
"jsbn": "^1.1.0",
|
|
||||||
"to-arraybuffer": "^1.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"good-listener": {
|
|
||||||
"version": "1.2.2",
|
"version": "1.2.2",
|
||||||
"resolved": "https://registry.npmmirror.com/good-listener/-/good-listener-1.2.2.tgz",
|
"resolved": "https://registry.npmmirror.com/good-listener/-/good-listener-1.2.2.tgz",
|
||||||
"integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
|
"integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
|
||||||
"requires": {
|
"dependencies": {
|
||||||
"delegate": "^3.1.2"
|
"delegate": "^3.1.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ieee754": {
|
"node_modules/lodash": {
|
||||||
"version": "1.2.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/ieee754/-/ieee754-1.2.1.tgz",
|
|
||||||
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="
|
|
||||||
},
|
|
||||||
"inherits": {
|
|
||||||
"version": "2.0.4",
|
|
||||||
"resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz",
|
|
||||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
|
||||||
},
|
|
||||||
"isarray": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
|
|
||||||
},
|
|
||||||
"isexe": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="
|
|
||||||
},
|
|
||||||
"jsbn": {
|
|
||||||
"version": "1.1.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/jsbn/-/jsbn-1.1.0.tgz",
|
|
||||||
"integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A=="
|
|
||||||
},
|
|
||||||
"lodash": {
|
|
||||||
"version": "4.17.21",
|
"version": "4.17.21",
|
||||||
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
|
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
|
||||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||||
},
|
},
|
||||||
"lru-cache": {
|
"node_modules/node_modules/pinia-plugin-unistorage": {
|
||||||
"version": "4.1.5",
|
"version": "0.1.2",
|
||||||
"resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-4.1.5.tgz",
|
"integrity": "sha512-WXit2cGnm5rG6CDTcLSLehNWhyJS/Yq7WEeeXAapZbCnqoPJxlszqg7rT8S+OP47az0h5nlajGo+LuyMxUQ2uw==",
|
||||||
"integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
|
"extraneous": true,
|
||||||
"requires": {
|
"devDependencies": {
|
||||||
"pseudomap": "^1.0.2",
|
"@types/node": "^18.19.8",
|
||||||
"yallist": "^2.1.2"
|
"bumpp": "^9.3.0",
|
||||||
|
"pinia-plugin-persistedstate": "^3.2.1",
|
||||||
|
"unbuild": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mutation-observer": {
|
"node_modules/node_modules/pre-commit": {
|
||||||
"version": "1.0.3",
|
"version": "1.2.2",
|
||||||
"resolved": "https://registry.npmmirror.com/mutation-observer/-/mutation-observer-1.0.3.tgz",
|
"integrity": "sha512-qokTiqxD6GjODy5ETAIgzsRgnBWWQHQH2ghy86PU7mIn/wuWeTwF3otyNQZxWBwVn8XNr8Tdzj/QfUXpH+gRZA==",
|
||||||
"integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
|
"extraneous": true,
|
||||||
},
|
"hasInstallScript": true,
|
||||||
"os-shim": {
|
"dependencies": {
|
||||||
"version": "0.1.3",
|
"cross-spawn": "^5.0.1",
|
||||||
"resolved": "https://registry.npmmirror.com/os-shim/-/os-shim-0.1.3.tgz",
|
"spawn-sync": "^1.0.15",
|
||||||
"integrity": "sha512-jd0cvB8qQ5uVt0lvCIexBaROw1KyKm5sbulg2fWOHjETisuCzWyt+eTZKEMs8v6HwzoGs8xik26jg7eCM6pS+A=="
|
"which": "1.2.x"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"assume": "1.4.x",
|
||||||
|
"istanbul": "0.4.x",
|
||||||
|
"mocha": "~3.2.0",
|
||||||
|
"pre-commit": "git://github.com/observing/pre-commit.git"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/pinia-plugin-unistorage": {
|
"node_modules/pinia-plugin-unistorage": {
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"resolved": "https://registry.npmmirror.com/pinia-plugin-unistorage/-/pinia-plugin-unistorage-0.1.2.tgz",
|
"resolved": "https://registry.npmmirror.com/pinia-plugin-unistorage/-/pinia-plugin-unistorage-0.1.2.tgz",
|
||||||
"integrity": "sha512-WXit2cGnm5rG6CDTcLSLehNWhyJS/Yq7WEeeXAapZbCnqoPJxlszqg7rT8S+OP47az0h5nlajGo+LuyMxUQ2uw==",
|
"integrity": "sha512-WXit2cGnm5rG6CDTcLSLehNWhyJS/Yq7WEeeXAapZbCnqoPJxlszqg7rT8S+OP47az0h5nlajGo+LuyMxUQ2uw==",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"license": "MIT"
|
|
||||||
},
|
},
|
||||||
"node_modules/pre-commit": {
|
"node_modules/select": {
|
||||||
"version": "1.2.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/pre-commit/-/pre-commit-1.2.2.tgz",
|
|
||||||
"integrity": "sha512-qokTiqxD6GjODy5ETAIgzsRgnBWWQHQH2ghy86PU7mIn/wuWeTwF3otyNQZxWBwVn8XNr8Tdzj/QfUXpH+gRZA==",
|
|
||||||
"requires": {
|
|
||||||
"cross-spawn": "^5.0.1",
|
|
||||||
"spawn-sync": "^1.0.15",
|
|
||||||
"which": "1.2.x"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"process-nextick-args": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
|
||||||
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
|
|
||||||
},
|
|
||||||
"pseudomap": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/pseudomap/-/pseudomap-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ=="
|
|
||||||
},
|
|
||||||
"readable-stream": {
|
|
||||||
"version": "2.3.8",
|
|
||||||
"resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz",
|
|
||||||
"integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
|
|
||||||
"requires": {
|
|
||||||
"core-util-is": "~1.0.0",
|
|
||||||
"inherits": "~2.0.3",
|
|
||||||
"isarray": "~1.0.0",
|
|
||||||
"process-nextick-args": "~2.0.0",
|
|
||||||
"safe-buffer": "~5.1.1",
|
|
||||||
"string_decoder": "~1.1.1",
|
|
||||||
"util-deprecate": "~1.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"regenerator-runtime": {
|
|
||||||
"version": "0.14.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
|
|
||||||
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
|
|
||||||
},
|
|
||||||
"safe-buffer": {
|
|
||||||
"version": "5.1.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
|
||||||
},
|
|
||||||
"select": {
|
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmmirror.com/select/-/select-1.1.2.tgz",
|
"resolved": "https://registry.npmmirror.com/select/-/select-1.1.2.tgz",
|
||||||
"integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA=="
|
"integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA=="
|
||||||
},
|
},
|
||||||
"shebang-command": {
|
"node_modules/tiny-emitter": {
|
||||||
"version": "1.2.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-1.2.0.tgz",
|
|
||||||
"integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
|
|
||||||
"requires": {
|
|
||||||
"shebang-regex": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"shebang-regex": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ=="
|
|
||||||
},
|
|
||||||
"spawn-sync": {
|
|
||||||
"version": "1.0.15",
|
|
||||||
"resolved": "https://registry.npmmirror.com/spawn-sync/-/spawn-sync-1.0.15.tgz",
|
|
||||||
"integrity": "sha512-9DWBgrgYZzNghseho0JOuh+5fg9u6QWhAWa51QC7+U5rCheZ/j1DrEZnyE0RBBRqZ9uEXGPgSSM0nky6burpVw==",
|
|
||||||
"requires": {
|
|
||||||
"concat-stream": "^1.4.7",
|
|
||||||
"os-shim": "^0.1.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"string_decoder": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
|
||||||
"requires": {
|
|
||||||
"safe-buffer": "~5.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tiny-emitter": {
|
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmmirror.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
|
"resolved": "https://registry.npmmirror.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
|
||||||
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
|
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
|
||||||
},
|
},
|
||||||
"to-arraybuffer": {
|
"node_modules/uview-plus": {
|
||||||
"version": "1.0.1",
|
"version": "3.5.10",
|
||||||
"resolved": "https://registry.npmmirror.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz",
|
"resolved": "https://registry.npmmirror.com/uview-plus/-/uview-plus-3.5.10.tgz",
|
||||||
"integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA=="
|
"integrity": "sha512-sn92VKgfFqoBEpWrIULIZbd2z5Rf9iM8U/fKSCVVrU2kCFqcGp68IPr+gttQ7I+KZUVwdGLFECplQQJWytEZYA==",
|
||||||
},
|
"dependencies": {
|
||||||
"typedarray": {
|
|
||||||
"version": "0.0.6",
|
|
||||||
"resolved": "https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz",
|
|
||||||
"integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA=="
|
|
||||||
},
|
|
||||||
"util-deprecate": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
|
||||||
},
|
|
||||||
"uview-plus": {
|
|
||||||
"version": "3.3.61",
|
|
||||||
"resolved": "https://registry.npmmirror.com/uview-plus/-/uview-plus-3.3.61.tgz",
|
|
||||||
"integrity": "sha512-1IdZMYd7KuByW+bfBseEuSaKcYB6F4q8bGqAru1UDKIkRVTxkPlqvsTE8Q0+I0+jk6q1ov1KbGFDuyXxVzXcCg==",
|
|
||||||
"requires": {
|
|
||||||
"clipboard": "^2.0.11",
|
"clipboard": "^2.0.11",
|
||||||
"dayjs": "^1.11.3"
|
"dayjs": "^1.11.3"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"HBuilderX": "^3.1.0",
|
||||||
|
"uni-app": "^4.66",
|
||||||
|
"uni-app-x": ""
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"vconsole": {
|
|
||||||
"version": "3.15.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/vconsole/-/vconsole-3.15.1.tgz",
|
|
||||||
"integrity": "sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g==",
|
|
||||||
"requires": {
|
|
||||||
"@babel/runtime": "^7.17.2",
|
|
||||||
"copy-text-to-clipboard": "^3.0.1",
|
|
||||||
"core-js": "^3.11.0",
|
|
||||||
"mutation-observer": "^1.0.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"which": {
|
|
||||||
"version": "1.2.14",
|
|
||||||
"resolved": "https://registry.npmmirror.com/which/-/which-1.2.14.tgz",
|
|
||||||
"integrity": "sha512-16uPglFkRPzgiUXYMi1Jf8Z5EzN1iB4V0ZtMXcHZnwsBtQhhHeCqoWw7tsUY42hJGNDWtUsVLTjakIa5BgAxCw==",
|
|
||||||
"requires": {
|
|
||||||
"isexe": "^2.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"yallist": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/yallist/-/yallist-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A=="
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,404 +1,407 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="bg" >
|
<view class="bg">
|
||||||
<image src="../../static/default/i_bg.png" style="width: 100%;height:100%" mode="aspectFill"></image>
|
<image src="../../static/default/i_bg.png" style="width: 100%; height: 100%" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="wrapper u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
<view class="wrapper u-relative" style="padding-top: 48rpx; box-sizing: border-box">
|
||||||
<view class="nav" style="width: 100%;height: 96rpx;"></view>
|
<view class="nav" style="width: 100%; height: 96rpx"></view>
|
||||||
<view class="input-content">
|
<view class="input-content">
|
||||||
<view style="font-size: 58rpx;font-weight: bold;color: #333;margin-bottom: 48rpx;">注册</view>
|
<view style="font-size: 58rpx; font-weight: bold; color: #333; margin-bottom: 48rpx">注册</view>
|
||||||
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">手机号</view>
|
<view class="title">手机号</view>
|
||||||
<view class="input" style="padding-left: 20rpx;">
|
<view class="input" style="padding-left: 20rpx">
|
||||||
<input class="input" type="number" :value="data.mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
<input class="input" type="number" :value="data.mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile" @input="inputChange" />
|
||||||
@input="inputChange" />
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<text class="title">验证码</text>
|
<text class="title">验证码</text>
|
||||||
<view class="input flex" style="padding-left: 20rpx;padding-right: 20rpx;">
|
<view class="input flex" style="padding-left: 20rpx; padding-right: 20rpx">
|
||||||
<input type="number" :value="data.code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
<input type="number" :value="data.code" placeholder="请输入验证码" maxlength="6" data-key="code" @input="inputChange" @confirm="toRegister" />
|
||||||
@input="inputChange" @confirm="toRegister" />
|
|
||||||
<button class="send-msg" @click="sendMsg" :disabled="data.sending">{{ data.sendTime }}</button>
|
<button class="send-msg" @click="sendMsg" :disabled="data.sending">{{ data.sendTime }}</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<text class="title">设置密码</text>
|
<text class="title">设置密码</text>
|
||||||
<view class="input" style="padding-left: 20rpx;">
|
<view class="input" style="padding-left: 20rpx">
|
||||||
<input class="input" type="password" :value="data.password" placeholder="请设置新密码" placeholder-class="input-empty"
|
<input
|
||||||
maxlength="20" minlength="6" data-key="password" @input="inputChange" @confirm="toRegister" />
|
class="input"
|
||||||
|
type="password"
|
||||||
|
:value="data.password"
|
||||||
|
placeholder="请设置新密码"
|
||||||
|
placeholder-class="input-empty"
|
||||||
|
maxlength="20"
|
||||||
|
minlength="6"
|
||||||
|
data-key="password"
|
||||||
|
@input="inputChange"
|
||||||
|
@confirm="toRegister"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<button class="confirm-btn" @click="toRegister">注册</button>
|
<button class="confirm-btn" @click="toRegister">注册</button>
|
||||||
<button class="confirm-btn" @click="toLogin">登录</button>
|
<button class="confirm-btn" @click="toLogin">登录</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="footerView">
|
<view class="footerView">
|
||||||
<u-checkbox-group>
|
<u-checkbox-group>
|
||||||
<u-checkbox v-model="data.checked" label-size='24upx' shape="circle" @change="radioChange"></u-checkbox>
|
<u-checkbox v-model="data.checked" label-size="24upx" shape="circle" @change="radioChange"></u-checkbox>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
<view>注册即同意</view>
|
<view>注册即同意</view>
|
||||||
<!-- 协议地址 -->
|
<!-- 协议地址 -->
|
||||||
<view @click="linkTo('/pages/me/privacy')" style="color: #37A6FF;">《隐私政策》</view>
|
<view @click="linkTo('/pages/me/privacy')" style="color: #37a6ff">《隐私政策》</view>
|
||||||
和
|
和
|
||||||
<view @click="linkTo('/pages/me/agreement')" style="color: #37A6FF;">《用户服务协议》</view>
|
<view @click="linkTo('/pages/me/agreement')" style="color: #37a6ff">《用户服务协议》</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { onLoad} from '@dcloudio/uni-app'
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
import {setSendMsg,register} from '@/api/login/login.js';
|
import { setSendMsg, register } from '@/api/login/login.js';
|
||||||
import {commonType} from '@/api/init.js';
|
import { commonType } from '@/api/init.js';
|
||||||
import { linkTo } from '@/utils/app.js';
|
import { linkTo } from '@/utils/app.js';
|
||||||
|
|
||||||
let data = reactive({
|
let data = reactive({
|
||||||
code: '',
|
code: '',
|
||||||
mobile: '',
|
mobile: '',
|
||||||
password: '',
|
password: '',
|
||||||
sending: false,
|
sending: false,
|
||||||
sendTime: '获取验证码',
|
sendTime: '获取验证码',
|
||||||
count: 60,
|
count: 60,
|
||||||
relation: "",
|
relation: '',
|
||||||
invitation: '',
|
invitation: '',
|
||||||
isregisterCode: '',
|
isregisterCode: '',
|
||||||
qdCodeion: '', //渠道码
|
qdCodeion: '', //渠道码
|
||||||
checked: false,
|
checked: false
|
||||||
})
|
});
|
||||||
|
|
||||||
onLoad(async ( options ) => {
|
onLoad(async (options) => {
|
||||||
if (uni.getStorageSync('qdCodeion')) { data.qdCodeion = uni.getStorageSync('qdCodeion') }
|
let localQdCodeion = uni.getStorageSync('qdCodeion');
|
||||||
if (options.qdCode) { data.qdCodeion = options.qdCode }
|
if (localQdCodeion && localQdCodeion != 'null') {
|
||||||
if (options.invitation ) { data.invitation = options.invitation }
|
data.qdCodeion = localQdCodeion;
|
||||||
|
}
|
||||||
let res = await commonType(3)
|
if (options.qdCode && options.qdCode != 'null') {
|
||||||
data.isregisterCode = res.value
|
data.qdCodeion = options.qdCode;
|
||||||
})
|
}
|
||||||
|
if (options.invitation) {
|
||||||
/**
|
data.invitation = options.invitation;
|
||||||
* 发送验证码
|
}
|
||||||
*/
|
|
||||||
async function sendMsg () {
|
console.log('localQdCodeion===', localQdCodeion);
|
||||||
|
console.log('options.qdCode===', typeof options.qdCode);
|
||||||
|
|
||||||
|
let res = await commonType(3);
|
||||||
|
data.isregisterCode = res.value;
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发送验证码
|
||||||
|
*/
|
||||||
|
async function sendMsg() {
|
||||||
|
try {
|
||||||
if (!data.mobile) {
|
if (!data.mobile) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入手机号',
|
title: '请输入手机号',
|
||||||
icon: 'none',
|
icon: 'none'
|
||||||
})
|
});
|
||||||
} else if (data.mobile.length !== 11) {
|
} else if (data.mobile.length !== 11) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入正确的手机号',
|
title: '请输入正确的手机号',
|
||||||
icon: 'none',
|
icon: 'none'
|
||||||
})
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '正在发送验证码...'
|
title: '正在发送验证码...'
|
||||||
})
|
});
|
||||||
let res = await setSendMsg(data.mobile,'login')
|
let res = await setSendMsg(data.mobile, 'login');
|
||||||
uni.hideLoading();
|
|
||||||
uni.hideToast();
|
console.log(res);
|
||||||
if( res ){
|
|
||||||
data.sending = true;
|
|
||||||
uni.showToast({
|
|
||||||
title: '验证码发送成功请注意查收',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
countDown();
|
|
||||||
} else {
|
|
||||||
uni.showModal({
|
|
||||||
showCancel: false,
|
|
||||||
title: '短信发送失败',
|
|
||||||
content: '请一分钟后再获取验证码'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 验证码倒计时
|
|
||||||
*/
|
|
||||||
function countDown() {
|
|
||||||
console.log(data.count)
|
|
||||||
if (data.count === 1) {
|
|
||||||
data.count = 60;
|
|
||||||
data.sending = false;
|
|
||||||
data.sendTime = '获取验证码';
|
|
||||||
} else {
|
|
||||||
data.count = data.count - 1;
|
|
||||||
data.sending = true;
|
data.sending = true;
|
||||||
data.sendTime = data.count - 1 + '秒后重新获取';
|
uni.showToast({
|
||||||
setTimeout(countDown.bind(this), 1000);
|
title: '验证码发送成功请注意查收',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
countDown();
|
||||||
}
|
}
|
||||||
}
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
/**
|
uni.showToast({
|
||||||
* 获取注册值
|
title: error.message,
|
||||||
* @param {Object} e
|
icon: 'none',
|
||||||
*/
|
duration: 1000
|
||||||
function inputChange(e) {
|
|
||||||
const key = e.currentTarget.dataset.key;
|
|
||||||
data[key] = e.detail.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否同意协议
|
|
||||||
* @param {Object} e
|
|
||||||
*/
|
|
||||||
function radioChange(e) {
|
|
||||||
data.checked = e
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 登录
|
|
||||||
*/
|
|
||||||
function toLogin() {
|
|
||||||
uni.reLaunch({
|
|
||||||
url: '/pages/login/login'
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uni.hideLoading();
|
||||||
/**
|
}
|
||||||
* 注册
|
|
||||||
*/
|
/**
|
||||||
async function toRegister() {
|
* 验证码倒计时
|
||||||
const {
|
*/
|
||||||
mobile,
|
function countDown() {
|
||||||
password,
|
console.log(data.count);
|
||||||
code,
|
if (data.count === 1) {
|
||||||
checked,
|
data.count = 60;
|
||||||
invitation,
|
data.sending = false;
|
||||||
isregisterCode,
|
data.sendTime = '获取验证码';
|
||||||
qdCodeion
|
} else {
|
||||||
} = data;
|
data.count = data.count - 1;
|
||||||
if (!mobile) {
|
data.sending = true;
|
||||||
uni.showToast({
|
data.sendTime = data.count - 1 + '秒后重新获取';
|
||||||
title: '请输入账号',
|
setTimeout(countDown.bind(this), 1000);
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!code) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入验证码',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!password) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请设置密码',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (password.length < 6) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '密码位数必须大于六位',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (invitation.length == 0 && isregisterCode == '是') {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入邀请码',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!checked) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请先同意《隐私政策》和《用户协议》',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
data.logining = true;
|
|
||||||
uni.showLoading({
|
|
||||||
title: '注册中...'
|
|
||||||
})
|
|
||||||
let platform = ''
|
|
||||||
// #ifdef APP
|
|
||||||
platform = 'app'
|
|
||||||
// #endif
|
|
||||||
// #ifdef H5
|
|
||||||
platform = 'h5'
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
|
|
||||||
let res = await register({
|
|
||||||
password: password,
|
|
||||||
phone: mobile,
|
|
||||||
msg: code,
|
|
||||||
inviterCode: invitation,
|
|
||||||
platform: platform,
|
|
||||||
qdCode: qdCodeion,
|
|
||||||
})
|
|
||||||
if (res.code === 0) {
|
|
||||||
uni.setStorageSync('token', res.token)
|
|
||||||
uni.setStorageSync('userInfo', res.user)
|
|
||||||
|
|
||||||
uni.showToast({
|
|
||||||
title: '注册成功',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
setTimeout(function() {
|
|
||||||
uni.switchTab({
|
|
||||||
url: '/pages/index/index'
|
|
||||||
});
|
|
||||||
}, 1000)
|
|
||||||
} else {
|
|
||||||
uni.showModal({
|
|
||||||
showCancel: false,
|
|
||||||
title: '注册失败',
|
|
||||||
content: res.msg
|
|
||||||
});
|
|
||||||
}
|
|
||||||
uni.hideLoading();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取注册值
|
||||||
|
* @param {Object} e
|
||||||
|
*/
|
||||||
|
function inputChange(e) {
|
||||||
|
const key = e.currentTarget.dataset.key;
|
||||||
|
data[key] = e.detail.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否同意协议
|
||||||
|
* @param {Object} e
|
||||||
|
*/
|
||||||
|
function radioChange(e) {
|
||||||
|
data.checked = e;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登录
|
||||||
|
*/
|
||||||
|
function toLogin() {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/login/login'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 注册
|
||||||
|
*/
|
||||||
|
async function toRegister() {
|
||||||
|
const { mobile, password, code, checked, invitation, isregisterCode, qdCodeion } = data;
|
||||||
|
if (!mobile) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入账号',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!code) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入验证码',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!password) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请设置密码',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (password.length < 6) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '密码位数必须大于六位',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (invitation.length == 0 && isregisterCode == '是') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入邀请码',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!checked) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请先同意《隐私政策》和《用户协议》',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
data.logining = true;
|
||||||
|
uni.showLoading({
|
||||||
|
title: '注册中...'
|
||||||
|
});
|
||||||
|
let platform = '';
|
||||||
|
// #ifdef APP
|
||||||
|
platform = 'app';
|
||||||
|
// #endif
|
||||||
|
// #ifdef H5
|
||||||
|
platform = 'h5';
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
let res = await register({
|
||||||
|
password: password,
|
||||||
|
phone: mobile,
|
||||||
|
msg: code,
|
||||||
|
inviterCode: invitation,
|
||||||
|
platform: platform,
|
||||||
|
qdCode: qdCodeion
|
||||||
|
});
|
||||||
|
if (res.code === 0) {
|
||||||
|
uni.setStorageSync('token', res.token);
|
||||||
|
uni.setStorageSync('userInfo', res.user);
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: '注册成功',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
setTimeout(function () {
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
}, 1000);
|
||||||
|
} else {
|
||||||
|
uni.showModal({
|
||||||
|
showCancel: false,
|
||||||
|
title: '注册失败',
|
||||||
|
content: res.msg
|
||||||
|
});
|
||||||
|
}
|
||||||
|
uni.hideLoading();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
page {
|
page {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
}
|
}
|
||||||
*{
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.bg{
|
.bg {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
.wrapper{
|
.wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-top: 48rpx;
|
padding-top: 48rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.flex{
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
.footerView {
|
.footerView {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
margin-top: 50rpx;
|
margin-top: 50rpx;
|
||||||
|
}
|
||||||
}
|
.cuIcon::before {
|
||||||
.cuIcon::before{
|
width: 30rpx;
|
||||||
width: 30rpx;
|
height: 30rpx;
|
||||||
height: 30rpx;
|
margin-right: 12rpx;
|
||||||
margin-right: 12rpx;
|
}
|
||||||
}
|
.cuIcon-round::before {
|
||||||
.cuIcon-round::before {
|
content: '\e6d7';
|
||||||
content: "\e6d7";
|
}
|
||||||
}
|
.cuIcon-radiobox:before {
|
||||||
.cuIcon-radiobox:before {
|
content: '\e75b';
|
||||||
content: "\e75b";
|
color: #37a6ff;
|
||||||
color: #37A6FF;
|
}
|
||||||
}
|
.send-msg {
|
||||||
.send-msg {
|
flex-shrink: 0;
|
||||||
line-height: initial;
|
line-height: initial;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #ec6f48;
|
||||||
|
border: none;
|
||||||
|
background-color: transparent;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.send-msg::after {
|
||||||
|
border: none;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #ffffff;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
min-height: 100vh;
|
||||||
|
position: relative;
|
||||||
|
z-index: 90;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-content {
|
||||||
|
padding: 0 56rpx;
|
||||||
|
}
|
||||||
|
.cu-form-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 48rpx;
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0;
|
||||||
|
.title {
|
||||||
|
margin-bottom: 32rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #EC6F48;
|
color: #333333;
|
||||||
border: none;
|
|
||||||
background-color: transparent;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
.send-msg::after{
|
.input {
|
||||||
border: none;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.container {
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
// height: 84rpx;
|
||||||
overflow: hidden;
|
// line-height: 84rpx;
|
||||||
background: #ffffff;
|
background-color: #fff;
|
||||||
box-sizing: border-box;
|
align-items: center;
|
||||||
}
|
// padding: 22rpx 32rpx 22rpx 24rpx;
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
min-height: 100vh;
|
|
||||||
position: relative;
|
|
||||||
z-index: 90;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-content {
|
|
||||||
padding: 0 56rpx;
|
|
||||||
}
|
|
||||||
.cu-form-group{
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
align-items: flex-start;
|
justify-content: space-between;
|
||||||
margin-bottom: 48rpx;
|
input {
|
||||||
background-color: transparent;
|
height: 84rpx !important;
|
||||||
padding: 0;
|
|
||||||
.title{
|
|
||||||
margin-bottom: 32rpx;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333333;
|
|
||||||
}
|
}
|
||||||
.input{
|
v-deep .uni-input-input {
|
||||||
width: 100%;
|
height: 84rpx !important;
|
||||||
// height: 84rpx;
|
|
||||||
// line-height: 84rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
align-items: center;
|
|
||||||
// padding: 22rpx 32rpx 22rpx 24rpx;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
input{
|
|
||||||
height: 84rpx!important;
|
|
||||||
}
|
|
||||||
v-deep .uni-input-input{
|
|
||||||
height: 84rpx!important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.confirm-btn {
|
.confirm-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
background: #EC6F48;
|
background: #ec6f48;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -1,30 +1,37 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="bg" >
|
<view class="bg">
|
||||||
<image src="../../static/default/i_bg.png" style="width: 100%;height:100%" mode="aspectFill"></image>
|
<image src="../../static/default/i_bg.png" style="width: 100%; height: 100%" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="wrapper u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
<view class="wrapper u-relative" style="padding-top: 48rpx; box-sizing: border-box">
|
||||||
<view class="input-content">
|
<view class="input-content">
|
||||||
<view style="font-size: 58rpx;font-weight: bold;color: #333;margin-bottom: 48rpx;">注册</view>
|
<view style="font-size: 58rpx; font-weight: bold; color: #333; margin-bottom: 48rpx">注册</view>
|
||||||
<view class="cu-form-group" >
|
<view class="cu-form-group">
|
||||||
<view class="title">手机号</view>
|
<view class="title">手机号</view>
|
||||||
<input class="input" type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
<input class="input" type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile" @input="inputChange" />
|
||||||
@input="inputChange" />
|
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group" >
|
<view class="cu-form-group">
|
||||||
<text class="title">验证码</text>
|
<text class="title">验证码</text>
|
||||||
<view class="input flex">
|
<view class="input flex">
|
||||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code" @input="inputChange" @confirm="toLogin" />
|
||||||
@input="inputChange" @confirm="toLogin" />
|
|
||||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="cu-form-group" >
|
<view class="cu-form-group">
|
||||||
<text class="title">设置密码</text>
|
<text class="title">设置密码</text>
|
||||||
<input class="input" type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty"
|
<input
|
||||||
maxlength="20" minlength="6" data-key="password" @input="inputChange" @confirm="toLogin" />
|
class="input"
|
||||||
|
type="password"
|
||||||
|
:value="password"
|
||||||
|
placeholder="请设置新密码"
|
||||||
|
placeholder-class="input-empty"
|
||||||
|
maxlength="20"
|
||||||
|
minlength="6"
|
||||||
|
data-key="password"
|
||||||
|
@input="inputChange"
|
||||||
|
@confirm="toLogin"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group"
|
<!-- <view class="cu-form-group"
|
||||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||||
@@ -39,363 +46,350 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="footerView">
|
<view class="footerView">
|
||||||
<u-checkbox-group>
|
<u-checkbox-group>
|
||||||
<u-checkbox v-model="checked" label-size='24upx' shape="circle" @change="radioChange"></u-checkbox>
|
<u-checkbox v-model="checked" label-size="24upx" shape="circle" @change="radioChange"></u-checkbox>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
<view>同意</view>
|
<view>同意</view>
|
||||||
<!-- 协议地址 -->
|
<!-- 协议地址 -->
|
||||||
<navigator url="/me/setting/mimi" open-type="navigate" style="color: #37A6FF;">《隐私政策》</navigator>
|
<navigator url="/me/setting/mimi" open-type="navigate" style="color: #37a6ff">《隐私政策》</navigator>
|
||||||
和
|
和
|
||||||
<navigator url="/me/setting/xieyi" open-type="navigate" style="color: #37A6FF;">《用户协议》</navigator>
|
<navigator url="/me/setting/xieyi" open-type="navigate" style="color: #37a6ff">《用户协议》</navigator>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { onLoad} from '@dcloudio/uni-app'
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
import http from '@/http/http.js';
|
import http from '@/http/http.js';
|
||||||
let data = reactive({
|
let data = reactive({
|
||||||
code: '',
|
code: '',
|
||||||
mobile: '',
|
mobile: '',
|
||||||
password: '',
|
password: '',
|
||||||
sending: false,
|
sending: false,
|
||||||
sendTime: '获取验证码',
|
sendTime: '获取验证码',
|
||||||
count: 60,
|
count: 60,
|
||||||
relation: "",
|
relation: '',
|
||||||
invitation: '',
|
invitation: '',
|
||||||
registerCode: '',
|
registerCode: '',
|
||||||
qdCodeion: '', //渠道码
|
qdCodeion: '', //渠道码
|
||||||
checked: false,
|
checked: false
|
||||||
})
|
});
|
||||||
|
|
||||||
onLoad(( options ) => {
|
onLoad((options) => {
|
||||||
let relation = e.invitation
|
let relation = e.invitation;
|
||||||
if (relation) {
|
if (relation) {
|
||||||
this.relation = relation;
|
this.relation = relation;
|
||||||
this.invitation = relation;
|
this.invitation = relation;
|
||||||
|
}
|
||||||
|
if (e.qdCode) {
|
||||||
|
this.qdCodeion = e.qdCode;
|
||||||
|
}
|
||||||
|
http.request({
|
||||||
|
url: 'app/common/type/3',
|
||||||
|
data: {
|
||||||
|
type: 3
|
||||||
}
|
}
|
||||||
if (e.qdCode) {
|
}).then((res) => {
|
||||||
this.qdCodeion = e.qdCode
|
if (res.code == 0) {
|
||||||
|
this.registerCode = res.data.value;
|
||||||
}
|
}
|
||||||
http.request({
|
});
|
||||||
url:'app/common/type/3',
|
});
|
||||||
}).then(res => {
|
|
||||||
if (res.code == 0) {
|
/**
|
||||||
this.registerCode = res.data.value
|
* 是否同意协议
|
||||||
}
|
* @param {Object} e
|
||||||
|
*/
|
||||||
|
function radioChange(e) {
|
||||||
|
this.checked = e;
|
||||||
|
}
|
||||||
|
|
||||||
|
function showMa() {
|
||||||
|
//查询官方邀请码
|
||||||
|
this.$Request.getT('/common/type/88', { type: 88 }).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.invitation = res.data.value;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function sendMsg() {
|
||||||
|
const { mobile } = this;
|
||||||
|
if (!mobile) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入手机号',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
});
|
});
|
||||||
})
|
} else if (mobile.length !== 11) {
|
||||||
|
uni.showToast({
|
||||||
/**
|
title: '请输入正确的手机号',
|
||||||
* 是否同意协议
|
icon: 'none',
|
||||||
* @param {Object} e
|
duration: 1000
|
||||||
*/
|
|
||||||
function radioChange(e) {
|
|
||||||
this.checked = e
|
|
||||||
}
|
|
||||||
|
|
||||||
function showMa() {
|
|
||||||
//查询官方邀请码
|
|
||||||
this.$Request.getT('/common/type/88').then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.invitation = res.data.value;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
} else {
|
||||||
|
|
||||||
function sendMsg() {
|
|
||||||
const {
|
|
||||||
mobile
|
|
||||||
} = this;
|
|
||||||
if (!mobile) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入手机号',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
} else if (mobile.length !== 11) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入正确的手机号',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
uni.showLoading({
|
|
||||||
title: '正在发送验证码...'
|
|
||||||
})
|
|
||||||
http.request({
|
|
||||||
url:'app/Login/sendMsg/' + mobile + '/login',
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
this.sending = true;
|
|
||||||
uni.showToast({
|
|
||||||
title: '验证码发送成功请注意查收',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
this.countDown();
|
|
||||||
} else {
|
|
||||||
uni.showModal({
|
|
||||||
showCancel: false,
|
|
||||||
title: '短信发送失败',
|
|
||||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
uni.hideLoading();
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function countDown() {
|
|
||||||
const {
|
|
||||||
count
|
|
||||||
} = this;
|
|
||||||
if (count === 1) {
|
|
||||||
this.count = 60;
|
|
||||||
this.sending = false;
|
|
||||||
this.sendTime = '获取验证码';
|
|
||||||
} else {
|
|
||||||
this.count = count - 1;
|
|
||||||
this.sending = true;
|
|
||||||
this.sendTime = count - 1 + '秒后重新获取';
|
|
||||||
setTimeout(this.countDown.bind(this), 1000);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function inputChange(e) {
|
|
||||||
const key = e.currentTarget.dataset.key;
|
|
||||||
this[key] = e.detail.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
function toLogin() {
|
|
||||||
console.log("123");
|
|
||||||
uni.reLaunch({
|
|
||||||
url: '/pages/login/login'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function toRegister() {
|
|
||||||
const {
|
|
||||||
mobile,
|
|
||||||
password,
|
|
||||||
code,
|
|
||||||
checked,
|
|
||||||
invitation,
|
|
||||||
registerCode,
|
|
||||||
qdCodeion
|
|
||||||
} = this;
|
|
||||||
if (!mobile) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入账号',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!code) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入验证码',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!password) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请设置密码',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (password.length < 6) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '密码位数必须大于六位',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (invitation.length == 0 && registerCode == '是') {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入邀请码',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!checked) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请先同意《隐私政策》和《用户协议》',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.logining = true;
|
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '注册中...'
|
title: '正在发送验证码...'
|
||||||
})
|
});
|
||||||
let platform = ''
|
|
||||||
// #ifdef APP
|
|
||||||
platform = 'app'
|
|
||||||
// #endif
|
|
||||||
// #ifdef H5
|
|
||||||
platform = 'h5'
|
|
||||||
// #endif
|
|
||||||
http.request({
|
http.request({
|
||||||
url: 'app/Login/registerCode?password=' + password + '&phone=' + mobile + '&msg=' + code +
|
url: 'app/Login/sendMsg/' + mobile + '/login'
|
||||||
'&inviterCode=' + invitation + '&platform=' + platform + '&qdCode=' + qdCodeion,
|
}).then((res) => {
|
||||||
method: 'post'
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
// this.$queue.remove('invitation');
|
this.sending = true;
|
||||||
uni.setStorageSync('token', res.token)
|
|
||||||
uni.setStorageSync('userId', res.user.userId)
|
|
||||||
uni.setStorageSync('phone', res.user.phone)
|
|
||||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
|
||||||
//设置渠道码
|
|
||||||
if (res.user.qdCode) {
|
|
||||||
uni.setStorageSync('qdCode', res.user.qdCode)
|
|
||||||
}
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '注册成功',
|
title: '验证码发送成功请注意查收',
|
||||||
icon: 'none'
|
icon: 'none',
|
||||||
})
|
duration: 1000
|
||||||
setTimeout(function() {
|
});
|
||||||
uni.navigateTo({
|
this.countDown();
|
||||||
url: '/pages/login/appEq'
|
|
||||||
})
|
|
||||||
}, 1000)
|
|
||||||
} else {
|
} else {
|
||||||
uni.hideLoading();
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
title: '注册失败',
|
title: '短信发送失败',
|
||||||
content: res.msg
|
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uni.hideLoading();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
function countDown() {
|
||||||
|
const { count } = this;
|
||||||
|
if (count === 1) {
|
||||||
|
this.count = 60;
|
||||||
|
this.sending = false;
|
||||||
|
this.sendTime = '获取验证码';
|
||||||
|
} else {
|
||||||
|
this.count = count - 1;
|
||||||
|
this.sending = true;
|
||||||
|
this.sendTime = count - 1 + '秒后重新获取';
|
||||||
|
setTimeout(this.countDown.bind(this), 1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function inputChange(e) {
|
||||||
|
const key = e.currentTarget.dataset.key;
|
||||||
|
this[key] = e.detail.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
function toLogin() {
|
||||||
|
console.log('123');
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/login/login'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function toRegister() {
|
||||||
|
const { mobile, password, code, checked, invitation, registerCode, qdCodeion } = this;
|
||||||
|
if (!mobile) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入账号',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!code) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入验证码',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!password) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请设置密码',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (password.length < 6) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '密码位数必须大于六位',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (invitation.length == 0 && registerCode == '是') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入邀请码',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!checked) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请先同意《隐私政策》和《用户协议》',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.logining = true;
|
||||||
|
uni.showLoading({
|
||||||
|
title: '注册中...'
|
||||||
|
});
|
||||||
|
let platform = '';
|
||||||
|
// #ifdef APP
|
||||||
|
platform = 'app';
|
||||||
|
// #endif
|
||||||
|
// #ifdef H5
|
||||||
|
platform = 'h5';
|
||||||
|
// #endif
|
||||||
|
http.request({
|
||||||
|
url: 'app/Login/registerCode?password=' + password + '&phone=' + mobile + '&msg=' + code + '&inviterCode=' + invitation + '&platform=' + platform + '&qdCode=' + qdCodeion,
|
||||||
|
method: 'post'
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
// this.$queue.remove('invitation');
|
||||||
|
uni.setStorageSync('token', res.token);
|
||||||
|
uni.setStorageSync('userId', res.user.userId);
|
||||||
|
uni.setStorageSync('phone', res.user.phone);
|
||||||
|
uni.setStorageSync('invitationCode', res.user.invitationCode);
|
||||||
|
//设置渠道码
|
||||||
|
if (res.user.qdCode) {
|
||||||
|
uni.setStorageSync('qdCode', res.user.qdCode);
|
||||||
|
}
|
||||||
|
uni.showToast({
|
||||||
|
title: '注册成功',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
setTimeout(function () {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/login/appEq'
|
||||||
|
});
|
||||||
|
}, 1000);
|
||||||
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showModal({
|
||||||
|
showCancel: false,
|
||||||
|
title: '注册失败',
|
||||||
|
content: res.msg
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
page {
|
page {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
}
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.flex {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.bg {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
.wrapper {
|
||||||
|
position: relative;
|
||||||
|
padding-top: 48rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.footerView {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #333333;
|
||||||
|
// position: absolute;
|
||||||
|
// left: 0;
|
||||||
|
// right: 0;
|
||||||
|
// bottom: 178rpx;
|
||||||
|
.cuIcon::before {
|
||||||
|
width: 30rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
margin-right: 12rpx;
|
||||||
}
|
}
|
||||||
*{
|
.cuIcon-round::before {
|
||||||
box-sizing: border-box;
|
content: '\e6d7';
|
||||||
}
|
}
|
||||||
.flex{
|
.cuIcon-radiobox:before {
|
||||||
display: flex;
|
content: '\e75b';
|
||||||
}
|
color: #37a6ff;
|
||||||
.bg{
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
.wrapper{
|
|
||||||
position: relative;
|
|
||||||
padding-top: 48rpx;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
.footerView {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 24rpx;
|
|
||||||
color: #333333;
|
|
||||||
// position: absolute;
|
|
||||||
// left: 0;
|
|
||||||
// right: 0;
|
|
||||||
// bottom: 178rpx;
|
|
||||||
.cuIcon::before{
|
|
||||||
width: 30rpx;
|
|
||||||
height: 30rpx;
|
|
||||||
margin-right: 12rpx;
|
|
||||||
}
|
|
||||||
.cuIcon-round::before {
|
|
||||||
content: "\e6d7";
|
|
||||||
}
|
|
||||||
.cuIcon-radiobox:before {
|
|
||||||
content: "\e75b";
|
|
||||||
color: #37A6FF;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.send-msg {
|
.send-msg {
|
||||||
line-height: initial;
|
line-height: initial;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #EC6F48;
|
color: #ec6f48;
|
||||||
border: none;
|
border: none;
|
||||||
background-color: transparent!important;
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
.send-msg::after{
|
.send-msg::after {
|
||||||
border: none;
|
border: none;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
position: relative;
|
||||||
|
z-index: 90;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-content {
|
||||||
|
padding: 0 56rpx;
|
||||||
|
.cu-form-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 48rpx;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
padding: 0;
|
||||||
|
.title {
|
||||||
.container {
|
margin-bottom: 32rpx;
|
||||||
position: relative;
|
font-weight: 400;
|
||||||
width: 100%;
|
font-size: 28rpx;
|
||||||
height: 100%;
|
color: #333333;
|
||||||
overflow: hidden;
|
}
|
||||||
background: #fff;
|
.input {
|
||||||
}
|
width: 100%;
|
||||||
|
height: 84rpx;
|
||||||
.wrapper {
|
line-height: 84rpx;
|
||||||
position: relative;
|
background-color: #fff;
|
||||||
z-index: 90;
|
align-items: center;
|
||||||
min-height: 100vh;
|
padding: 22rpx 32rpx 22rpx 24rpx;
|
||||||
}
|
|
||||||
|
|
||||||
.input-content {
|
|
||||||
padding: 0 56rpx;
|
|
||||||
.cu-form-group{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-start;
|
|
||||||
margin-bottom: 48rpx;
|
|
||||||
background-color: transparent;
|
|
||||||
padding: 0;
|
|
||||||
.title{
|
|
||||||
margin-bottom: 32rpx;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333333;
|
|
||||||
}
|
|
||||||
.input{
|
|
||||||
width: 100%;
|
|
||||||
height: 84rpx;
|
|
||||||
line-height: 84rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
align-items: center;
|
|
||||||
padding: 22rpx 32rpx 22rpx 24rpx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.confirm-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 100rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 100rpx;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
background: #ec6f48;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #ffffff;
|
||||||
|
|
||||||
.confirm-btn {
|
&:after {
|
||||||
width: 100%;
|
border: none;
|
||||||
height: 100rpx;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 100rpx;
|
|
||||||
border-radius: 16rpx;
|
|
||||||
margin-top: 40rpx;
|
|
||||||
background: #EC6F48;
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: #FFFFFF;
|
|
||||||
|
|
||||||
&:after {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user