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