Commit 1277432e by 胡悦

提交

1 parent 7cf94dc8
......@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布
4生产
*/
const index = 4;
const index = 2;
const secretKey = {
ip: {},
dev: {
......
......@@ -123,8 +123,9 @@ class Request {
return projectName
}
getMock() {
let url = 'https://oss-config.dev.glsx.com.cn/mock/6264ff4760f415276f6dfe62/aicard-config'
if (index == 4 || index == 3) url = 'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config'
let url = 'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config'
// let url = 'https://oss-config.dev.glsx.com.cn/mock/6264ff4760f415276f6dfe62/aicard-config'
// if (index == 4 || index == 3) url = 'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config'
return new Promise((resolve) => {
wx.request({
url,
......
......@@ -4,7 +4,8 @@ module.exports = {
/**wx.login登录 */
jsCodeLogin(data) {
return api.post({
method: `${path}jscode.getOpenId`,
// method: `${path}jscode.getOpenId`,
method: 'scrm.api.sso.weapp.jscode.getOpenIdAndLogin',
...data
}, true)
},
......
/* components/loadding/loadding.wxss */
.loadding {
height: 100vh;
font-weight: 500;
font-size: 48rpx;
font-size: 28rpx;
color: #2D2D33;
text-align: center;
margin-top: 340rpx;
padding-top: 320rpx;
background-color: #fff;
&-img {
width: 432rpx;
width: 300rpx;
height: 300rpx;
margin-bottom: 50rpx;
}
}
\ No newline at end of file
<!--components/loadding/loadding.wxml-->
<view class="loadding">
<glsx-image custom-class="loadding-img" src="home/loadding.webp" />
<view>努力加载中</view>
<glsx-image custom-class="loadding-img" src="home/loadding.gif" />
<view>努力加载中...</view>
</view>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!