Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c0f41a0f
authored
Jan 13, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 密码设置功能开发
1 parent
e6ce6076
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
60 deletions
api/module/userApi.js
components/HomeFrame/components/Income/Password.vue
components/HomeFrame/components/Income/index.vue
env.js
utils/logger/LogCat.js
api/module/userApi.js
View file @
c0f41a0
import
http
from
"../request/http"
;
import
http
from
'../request/http'
module
.
exports
=
{
/**获取短信 */
getSmsCode
(
data
=
{})
{
data
.
projectName
=
"boutique"
;
return
http
.
fetch
(
"dj.api.smartcarlife.sms.get.code"
,
data
);
getSmsCode
(
data
=
{})
{
data
.
projectName
=
'boutique'
return
http
.
fetch
(
'dj.api.smartcarlife.sms.get.code'
,
data
)
},
/**手机验证码登录 */
smsLogin
(
data
=
{})
{
smsLogin
(
data
=
{})
{
data
.
projectName
=
'boutique'
data
.
source
=
'MINIAPP'
data
.
productCode
=
'PC00c2'
return
http
.
fetch
(
'dj.api.smartcarlife.sms.applogin'
,
data
)
},
/**免登 */
autoLogin
(
data
=
{})
{
data
.
projectName
=
"boutique"
;
return
http
.
fetch
(
"dj.api.smartcarlife.sms.noSignIn.login"
,
data
);
autoLogin
(
data
=
{})
{
data
.
projectName
=
'boutique'
return
http
.
fetch
(
'dj.api.smartcarlife.sms.noSignIn.login'
,
data
)
},
// 获取园区店下的4s店
getSceneMerchantRefStoreList
(
data
)
{
data
.
projectName
=
"boutique"
;
getSceneMerchantRefStoreList
(
data
)
{
data
.
projectName
=
'boutique'
return
http
.
post
({
method
:
"dj.api.scenemerchantref.query4SRefByYqShopByLogin"
,
...
data
,
})
;
method
:
'dj.api.scenemerchantref.query4SRefByYqShopByLogin'
,
...
data
})
},
/**获取帐号列表 */
getListSelectAccount
(
data
=
{})
{
data
.
projectName
=
"boutique"
;
return
http
.
fetch
(
"dj.api.smartcarlife.workWechat.listSelectAccount"
,
data
);
getListSelectAccount
(
data
=
{})
{
data
.
projectName
=
'boutique'
return
http
.
fetch
(
'dj.api.smartcarlife.workWechat.listSelectAccount'
,
data
)
},
/**选择帐号登陆 */
selectAccountLogin
(
data
)
{
data
.
projectName
=
"boutique"
;
selectAccountLogin
(
data
)
{
data
.
projectName
=
'boutique'
return
http
.
post
({
method
:
"dj.api.smartcarlife.workWechat.selectAccountLogin"
,
...
data
,
})
;
method
:
'dj.api.smartcarlife.workWechat.selectAccountLogin'
,
...
data
})
},
// 选择4s店和场景
selectMerchantScene
(
data
)
{
data
.
projectName
=
"boutique"
;
selectMerchantScene
(
data
)
{
data
.
projectName
=
'boutique'
return
http
.
post
({
method
:
"dj.api.smartcarlife.selectMerchantScene"
,
...
data
,
})
;
method
:
'dj.api.smartcarlife.selectMerchantScene'
,
...
data
})
},
// 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI
(
data
)
{
data
.
projectName
=
"boutique"
;
getYqMerchantSceneConfigAPI
(
data
)
{
data
.
projectName
=
'boutique'
return
http
.
post
({
method
:
"dj.api.smartcarlife.select.openScene.info"
,
...
data
,
})
;
method
:
'dj.api.smartcarlife.select.openScene.info'
,
...
data
})
},
/**退出*/
logout
(
data
=
{})
{
logout
(
data
=
{})
{
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
=
{})
{
data
.
projectName
=
"boutique"
;
getMerchantBrand
(
data
=
{})
{
data
.
projectName
=
'boutique'
return
http
.
post
({
method
:
"dj.api.smartcarlife.recepiton.findMerchantBrand"
,
...
data
,
})
;
method
:
'dj.api.smartcarlife.recepiton.findMerchantBrand'
,
...
data
})
},
/**
* 查询门店保险权益
*/
getMerchantInsuranceList
(
data
=
{})
{
data
.
projectName
=
"boutique"
;
getMerchantInsuranceList
(
data
=
{})
{
data
.
projectName
=
'boutique'
return
http
.
post
({
method
:
"dj.api.smartcarlife.recepiton.findMerchantItem"
,
...
data
,
})
;
method
:
'dj.api.smartcarlife.recepiton.findMerchantItem'
,
...
data
})
},
};
/**
* 员工隐私密码验证
*/
verifyStaffPassword
(
data
=
{})
{
data
.
projectName
=
'boutique'
return
http
.
post
({
method
:
'dj.api.smartcarlife.staff.private.password.verify'
,
...
data
})
}
}
components/HomeFrame/components/Income/Password.vue
View file @
c0f41a0
This diff is collapsed.
Click to expand it.
components/HomeFrame/components/Income/index.vue
View file @
c0f41a0
...
...
@@ -38,7 +38,7 @@ export default {
components
:
{
DayTips
,
Password
,
MyStore
},
data
()
{
return
{
showPassword
:
fals
e
showPassword
:
tru
e
}
},
inject
:
[
'hideFooter'
],
...
...
env.js
View file @
c0f41a0
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
2
const
index
=
1
/**
*
0本地
...
...
utils/logger/LogCat.js
View file @
c0f41a0
import
{
getTime
}
from
'./util'
import
{
serializeIfObject
}
from
'../utils'
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')
// FileInputStream = plus.android.importClass('java.io.FileInputStream')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
LogPath
=
''
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
date
=
getTime
(
'YYYY-MM-DD'
)
let
datetime
=
getTime
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment