Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 19de0ce7
authored
Jun 23, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
代码优化
1 parent
7e2b8c21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
src/config/index.js
src/views/account/components/baseInfo.vue
src/views/baseInfo/editInfo.vue
src/config/index.js
View file @
19de0ce
...
...
@@ -17,8 +17,8 @@ export const fetchConfig = function(isEnv = false) {
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
cfg
)
}
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/617ba1df1072f92988f05a14/account/config'
)
// return new Http().get('http://oss-config.dev.glsx.com.cn/mock/617ba1df1072f92988f05a14/account/config'
)
//
return new Http().get('https://oss-config.test.glsx.com.cn/mock/617ba1df1072f92988f05a14/account/config')
return
new
Http
().
get
(
'http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=setting-kyq'
).
then
(
res
=>
res
.
data
)
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/views/account/components/baseInfo.vue
View file @
19de0ce
...
...
@@ -302,8 +302,8 @@ export default {
if
(
this
.
$refs
.
mapForm
.
geocoderAddress
.
addressComponent
)
{
fullAddress
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
addressComponent
provincecode
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
adcode
this
.
addressData
.
fullAddress
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
addressComponent
this
.
addressData
.
provincecode
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
ad
code
this
.
addressData
.
fullAddress
=
fullAddress
this
.
addressData
.
provincecode
=
province
code
}
else
{
fullAddress
=
this
.
addressData
.
fullAddress
provincecode
=
this
.
addressData
.
provincecode
...
...
@@ -330,7 +330,7 @@ export default {
}
// 判断省市是否匹配
if
(
this
.
accountAddForm
.
provinceName
)
{
if
(
this
.
accountAddForm
.
provinceName
!==
province
||
this
.
accountAddForm
.
cityName
!==
city
)
{
if
(
this
.
accountAddForm
.
provinceName
!==
province
&&
this
.
accountAddForm
.
cityName
!==
city
)
{
this
.
$message
.
error
(
'您选择的地址错误,请重新选择'
)
this
.
accountAddForm
.
merchantAddress
=
''
return
...
...
src/views/baseInfo/editInfo.vue
View file @
19de0ce
...
...
@@ -187,8 +187,10 @@ export default {
if
(
this
.
$refs
.
mapForm
.
geocoderAddress
.
addressComponent
)
{
fullAddress
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
addressComponent
provincecode
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
adcode
this
.
addressData
.
fullAddress
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
addressComponent
this
.
addressData
.
provincecode
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
adcode
this
.
addressData
.
fullAddress
=
fullAddress
this
.
addressData
.
provincecode
=
provincecode
// this.addressData.fullAddress = this.$refs.mapForm.geocoderAddress.addressComponent
// this.addressData.provincecode = this.$refs.mapForm.geocoderAddress.adcode
}
else
{
fullAddress
=
this
.
addressData
.
fullAddress
provincecode
=
this
.
addressData
.
provincecode
...
...
@@ -215,7 +217,7 @@ export default {
}
// 判断省市是否匹配
if
(
this
.
infoForm
.
provinceName
)
{
if
(
this
.
infoForm
.
provinceName
!==
province
||
this
.
infoForm
.
cityName
!==
city
)
{
if
(
this
.
infoForm
.
provinceName
!==
province
&&
this
.
infoForm
.
cityName
!==
city
)
{
this
.
$message
.
error
(
'您选择的地址错误,请重新选择'
)
this
.
infoForm
.
merchantAddress
=
''
return
...
...
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