去除unicloud空间绑定,修复已知错误
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
/*————接口预设————*/
|
||||
{
|
||||
"index": "/index/index",
|
||||
"IndexData": "/index/h5data",
|
||||
"AdsSplash": "/index/ads-splash",
|
||||
"AdsBanner": "/index/ads-banner",
|
||||
//获取短信验证码
|
||||
|
||||
"getVcode": "/sms/vcode",
|
||||
"getCwVcode": "/sms/caiwu",
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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,
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
})
|
||||
}
|
||||
})
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user