Commit c91a3411 by 张立顺

代码合并冲突

1 parent 04399a1c
{
<<<<<<< HEAD
"pages": ["login/loading/loading", "pages/tab/index/index", "pages/tab/output/output", "pages/tab/mine/mine", "pages/webView/webView", "pages/apply/apply", "login/index/index", "login/accountItems/accountItems", "pages/mineDetail/customerManagement/customerManagement", "pages/mineDetail/messageBox/messageBox"],
"requiredPrivateInfos": ["getLocation"],
=======
"pages": [
"login/loading/loading",
"pages/tab/index/index",
"pages/tab/output/output",
"pages/tab/mine/mine",
"pages/webView/webView",
"pages/apply/apply",
"login/index/index",
"login/accountItems/accountItems",
"pages/apply/apply",
"pages/checkProduct/checkProduct",
"packageOutput/pages/summary/summary",
"packageOutput/pages/openBusiness/openBusiness"
"packageOutput/pages/openBusiness/openBusiness",
"pages/mineDetail/customerManagement/customerManagement",
"pages/mineDetail/messageBox/messageBox"
],
"requiredPrivateInfos": [
"getLocation"
],
>>>>>>> aef1a86cdee1049cc02766d36fe62a2bd0c284e5
"requiredPrivateInfos": ["getLocation"],
"lazyCodeLoading": "requiredComponents",
"window": {
"backgroundTextStyle": "light",
......
......@@ -3,9 +3,7 @@ import USERAPI from '~/api/usersApi/index'
import { selectAccountLogin, setLoginInfo, loginModal } from '~/login/lib/index'
import md5 from '~/utils/lib/md5'
import network from '~/utils/network'
import {
imgUrlMixin
} from '~/mixins/index'
import { imgUrlMixin } from '~/mixins/index'
let thisPage
Component({
behaviors: [imgUrlMixin],
......@@ -19,7 +17,6 @@ Component({
loginType: Number,
disabled: Boolean
},
/**
* 组件的初始数据
*/
......@@ -33,7 +30,6 @@ Component({
phoneReady: false,
countDown: null
},
/**
* 组件的方法列表
*/
......@@ -137,7 +133,6 @@ Component({
target = {
1: 'phoneSmsLogin',
2: 'accountLogin'
<<<<<<< HEAD
}[loginType],
obj =
loginType == 1
......@@ -146,37 +141,6 @@ Component({
code: formData.code
}
: {
=======
} [loginType],
obj = loginType == 1 ? {
mobile: formData.phone,
code: formData.code
} : {
userName: formData.account,
password: md5(formData.password)
}
this.setBtnLoading()
USERAPI[target](obj).then(({
code,
data,
message
}) => {
this.setBtnLoading(false)
if (code == '0') {
if (loginType == 1) this.checkLoginUserInfo(data)
else {
const {
autoLogin
} = thisPage.data, {
loginUserInfoList,
sessionId
} = data,
validTime = 3600 * 24 * 30 * 1e3,
autoLoginFailureTime = Date.now() + validTime
if (autoLogin) {
wx.$storage.set('auto_login_object', {
failureTime: autoLoginFailureTime,
>>>>>>> aef1a86cdee1049cc02766d36fe62a2bd0c284e5
userName: formData.account,
password: md5(formData.password)
}
......@@ -206,12 +170,7 @@ Component({
this.setData({
smsError: true
})
<<<<<<< HEAD
wx.$api.showToast(message || '系统异常')
=======
} else wx.$storage.rm('auto_login_object')
setLoginInfo(loginUserInfoList[0], sessionId)
>>>>>>> aef1a86cdee1049cc02766d36fe62a2bd0c284e5
}
})
.catch(err => {
......
......@@ -53,7 +53,7 @@
"ignore": [],
"include": []
},
"appid": "wxfe82b8d65d07808f",
"appid": "wx2c28337db96364d2",
"projectname": "miniprogram-scrm-shopmall",
"condition": {}
}
\ No newline at end of file
......@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试
3生产
*/
const index = 1
const index = 0
const secretKey = {
ip: {},
dev: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!