去除unicloud空间绑定,修复已知错误

This commit is contained in:
fm453
2025-07-16 03:39:53 +08:00
parent c62d15b288
commit b5b8cc5cbb
412 changed files with 507 additions and 40065 deletions

View File

@ -1,10 +1,9 @@
/**/
{
"index": "/index/index",
"IndexData": "/index/h5data",
"AdsSplash": "/index/ads-splash",
"AdsBanner": "/index/ads-banner",
//获取短信验证码
"getVcode": "/sms/vcode",
"getCwVcode": "/sms/caiwu",

View File

@ -1,3 +1,11 @@
/**
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2023-07-19 16:03:07
* @FilePath: apis/ctms/fab.js
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
*/
export default {
// 登录方法
login: function(username, password, smscode, uuid) {

View File

@ -1,5 +1,14 @@
/**
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2023-07-19 16:03:07
* @FilePath: apis/ctms/index.js
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
*/
import user from './user.js';
import ads from './ads.js';
import datas from './datas.js';
import order from './order.js';
import orderpre from './orderpre.js';
import notice from './notice.js';
@ -42,6 +51,7 @@ const cache = {
const ctms = {
user,
ads,
datas,
order,
orderpre,
notice,

View File

@ -1,3 +1,11 @@
/**
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2023-07-19 16:03:07
* @FilePath: apis/ctms/news.js
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
*/
import request from './_utils/request.js'
import apis from './apis.json'
import constant from './_utils/constant.js'

View File

@ -1,3 +1,11 @@
/**
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2023-07-19 16:03:07
* @FilePath: apis/ctms/notice.js
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
*/
import request from './_utils/request.js'
import apis from './apis.json'
import constant from './_utils/constant.js'

View File

@ -1,3 +1,11 @@
/**
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2023-07-19 16:03:07
* @FilePath: apis/ctms/orderpre.js
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
*/
import request from './_utils/request.js'
import apis from './apis.json'
import constant from './_utils/constant.js'

View File

@ -1,3 +1,11 @@
/**
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2023-07-19 16:03:07
* @FilePath: apis/ctms/sync.js
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
*/
// 对异步函数进行同步化模拟
const Confirm = {
modalPromise: function(title, content, editable) {

View File

@ -1,3 +1,11 @@
/**
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2023-07-19 16:03:07
* @FilePath: apis/ctms/user.js
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
*/
import request from './_utils/request.js'
import apis from './apis.json'
import constant from './_utils/constant.js'
@ -10,9 +18,13 @@ export default {
checkLogin: function() {
var user = store.state.user,
isCloud = config.isUserUnicloud;
if (user.hasLogin && !isCloud) {
return user.info;
if (!isCloud) {
if (user.hasLogin) {
return user.info;
}
return false;
}
var userCloud = store.state.userCloud;
if (isCloud && userCloud.hasLogin) {
var data = {
@ -30,8 +42,11 @@ export default {
getInfo: function() {
var user = store.state.user,
isCloud = config.isUserUnicloud;
if (user.hasLogin && !isCloud) {
return user.info;
if (!isCloud) {
if (user.hasLogin) {
return user.info;
}
return false;
}
var userCloud = store.state.userCloud;
if (isCloud && userCloud.hasLogin) {
@ -66,7 +81,7 @@ export default {
cancelText: '放弃',
success() {
uni.navigateTo({
url: 'uni_modules/uni-id-pages/pages/login/login-withoutpwd'
url: config.uniCloudLoginUrl
})
}
})

View File

@ -1,3 +1,11 @@
/**
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2023-07-19 16:03:07
* @FilePath: apis/ctms/vcode.js
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
*/
import request from './_utils/request.js'
import apis from './apis.json'
import constant from './_utils/constant.js'