Commit c0f41a0f by 张立顺

fix 密码设置功能开发

1 parent e6ce6076
import http from "../request/http"; import http from '../request/http'
module.exports = { module.exports = {
/**获取短信 */ /**获取短信 */
getSmsCode (data = {}) { getSmsCode(data = {}) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.fetch("dj.api.smartcarlife.sms.get.code", data); return http.fetch('dj.api.smartcarlife.sms.get.code', data)
}, },
/**手机验证码登录 */ /**手机验证码登录 */
smsLogin (data = {}) { smsLogin(data = {}) {
data.projectName = 'boutique' data.projectName = 'boutique'
data.source = 'MINIAPP' data.source = 'MINIAPP'
data.productCode = 'PC00c2' data.productCode = 'PC00c2'
return http.fetch('dj.api.smartcarlife.sms.applogin', data) return http.fetch('dj.api.smartcarlife.sms.applogin', data)
}, },
/**免登 */ /**免登 */
autoLogin (data = {}) { autoLogin(data = {}) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.fetch("dj.api.smartcarlife.sms.noSignIn.login", data); return http.fetch('dj.api.smartcarlife.sms.noSignIn.login', data)
}, },
// 获取园区店下的4s店 // 获取园区店下的4s店
getSceneMerchantRefStoreList (data) { getSceneMerchantRefStoreList(data) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.post({ return http.post({
method: "dj.api.scenemerchantref.query4SRefByYqShopByLogin", method: 'dj.api.scenemerchantref.query4SRefByYqShopByLogin',
...data, ...data
}); })
}, },
/**获取帐号列表 */ /**获取帐号列表 */
getListSelectAccount (data = {}) { getListSelectAccount(data = {}) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.fetch("dj.api.smartcarlife.workWechat.listSelectAccount", data); return http.fetch('dj.api.smartcarlife.workWechat.listSelectAccount', data)
}, },
/**选择帐号登陆 */ /**选择帐号登陆 */
selectAccountLogin (data) { selectAccountLogin(data) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.post({ return http.post({
method: "dj.api.smartcarlife.workWechat.selectAccountLogin", method: 'dj.api.smartcarlife.workWechat.selectAccountLogin',
...data, ...data
}); })
}, },
// 选择4s店和场景 // 选择4s店和场景
selectMerchantScene (data) { selectMerchantScene(data) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.post({ return http.post({
method: "dj.api.smartcarlife.selectMerchantScene", method: 'dj.api.smartcarlife.selectMerchantScene',
...data, ...data
}); })
}, },
// 获取园区店开通的场景入口 // 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI (data) { getYqMerchantSceneConfigAPI(data) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.post({ return http.post({
method: "dj.api.smartcarlife.select.openScene.info", method: 'dj.api.smartcarlife.select.openScene.info',
...data, ...data
}); })
}, },
/**退出*/ /**退出*/
logout (data = {}) { logout(data = {}) {
data.projectName = 'boutique' data.projectName = 'boutique'
return http.fetch('dj.api.smartcarlife.logout', data); return http.fetch('dj.api.smartcarlife.logout', data)
}, },
/** /**
* 查询门店品牌 "渠道标识channelType 1.问界 2.比亚迪 3.其他" * 查询门店品牌 "渠道标识channelType 1.问界 2.比亚迪 3.其他"
*/ */
getMerchantBrand (data = {}) { getMerchantBrand(data = {}) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.findMerchantBrand", method: 'dj.api.smartcarlife.recepiton.findMerchantBrand',
...data, ...data
}); })
}, },
/** /**
* 查询门店保险权益 * 查询门店保险权益
*/ */
getMerchantInsuranceList (data = {}) { getMerchantInsuranceList(data = {}) {
data.projectName = "boutique"; data.projectName = 'boutique'
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.findMerchantItem", method: 'dj.api.smartcarlife.recepiton.findMerchantItem',
...data, ...data
}); })
}, },
};
/**
* 员工隐私密码验证
*/
verifyStaffPassword(data = {}) {
data.projectName = 'boutique'
return http.post({
method: 'dj.api.smartcarlife.staff.private.password.verify',
...data
})
}
}
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
components: { DayTips, Password, MyStore }, components: { DayTips, Password, MyStore },
data() { data() {
return { return {
showPassword: false showPassword: true
} }
}, },
inject: ['hideFooter'], inject: ['hideFooter'],
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2 const index = 1
/** /**
* *
0本地 0本地
......
import { getTime } from './util' import { getTime } from './util'
import { serializeIfObject } from '../utils' import { serializeIfObject } from '../utils'
class LogCat { class LogCat {
main = plus.android.runtimeMainActivity()
File = plus.android.importClass('java.io.File')
Environment = plus.android.importClass('android.os.Environment')
BufferedWriter = plus.android.importClass('java.io.BufferedWriter')
FileOutputStream = plus.android.importClass('java.io.FileOutputStream')
OutputStreamWriter = plus.android.importClass('java.io.OutputStreamWriter')
// BufferedReader = plus.android.importClass('java.io.BufferedReader') // BufferedReader = plus.android.importClass('java.io.BufferedReader')
// FileInputStream = plus.android.importClass('java.io.FileInputStream') // FileInputStream = plus.android.importClass('java.io.FileInputStream')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader') // InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
LogPath = '' LogPath = ''
constructor(folderName = '_zyzs_log') { constructor(folderName = '_zyzs_log') {
if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) {
this.LogPath = this.main.getExternalFilesDir(null).getPath() + folderName
} else {
this.LogPath = this.main.getFilesDir().getPath() + folderName
}
console.log('日志文件存放路径->', this.LogPath)
} }
writeLog(tag, messages) { writeLog(tag, messages) {
return
let msg = serializeIfObject(messages) let msg = serializeIfObject(messages)
let date = getTime('YYYY-MM-DD') let date = getTime('YYYY-MM-DD')
let datetime = getTime() let datetime = getTime()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!