Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-assistant
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 4674451f
authored
Dec 22, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
省市区选择bug修复
1 parent
81300294
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
packageCustomer/components/SelectArea/SelectArea.js
packageCustomer/pages/createPotential/createPotential.wxml
packageCustomer/components/SelectArea/SelectArea.js
View file @
4674451
...
@@ -72,7 +72,7 @@ Component({
...
@@ -72,7 +72,7 @@ Component({
// 已是区级
// 已是区级
if
(
input
.
length
===
6
&&
input
.
slice
(
4
)
!==
'00'
)
return
input
if
(
input
.
length
===
6
&&
input
.
slice
(
4
)
!==
'00'
)
return
input
// 传市级:找该市下第一个区
// 传市级:找该市下第一个区
if
(
areaList
&&
areaList
.
county_list
&&
areaList
.
county_list
[
cityCode
])
return
cityCode
// unlikely
if
(
areaList
&&
areaList
.
county_list
&&
!
areaList
.
county_list
[
cityCode
])
return
cityCode
// 当市下没有区级数据时 选中市级
if
(
areaList
&&
areaList
.
county_list
)
{
if
(
areaList
&&
areaList
.
county_list
)
{
const
prefix
=
cityCode
.
slice
(
0
,
4
)
const
prefix
=
cityCode
.
slice
(
0
,
4
)
const
match
=
Object
.
keys
(
areaList
.
county_list
).
find
(
c
=>
c
.
slice
(
0
,
4
)
===
prefix
)
const
match
=
Object
.
keys
(
areaList
.
county_list
).
find
(
c
=>
c
.
slice
(
0
,
4
)
===
prefix
)
...
...
packageCustomer/pages/createPotential/createPotential.wxml
View file @
4674451
...
@@ -102,6 +102,6 @@
...
@@ -102,6 +102,6 @@
<car-brand id="car-brand" popupShow="{{carBrandPopupShow}}" multiple selectedList="{{selectedMainBrand}}"></car-brand>
<car-brand id="car-brand" popupShow="{{carBrandPopupShow}}" multiple selectedList="{{selectedMainBrand}}"></car-brand>
</popup>
</popup>
<select-popup show="{{showSelectPopup}}" options="{{selectOptions}}" multiple="{{selectMultiple}}" values="{{selectValues}}" value="{{selectValue}}" bindconfirm="handlePopupConfirm" bindcancel="hideSelectPopup" title="{{selectTitle}}"></select-popup>
<select-popup show="{{showSelectPopup}}" options="{{selectOptions}}" multiple="{{selectMultiple}}" values="{{selectValues}}" value="{{selectValue}}" bindconfirm="handlePopupConfirm" bindcancel="hideSelectPopup" title="{{selectTitle}}"></select-popup>
<select-area show="{{showSelectArea}}" areaList="{{areaList}}" bindconfirm="areaConfirm" bindcancel="areaCancel" value="{{infoData.districtId || ''}}"></select-area>
<select-area show="{{showSelectArea}}" areaList="{{areaList}}" bindconfirm="areaConfirm" bindcancel="areaCancel" value="{{infoData.districtId ||
infoData.cityId ||
''}}"></select-area>
<!-- 结果弹窗组件:统一反馈弹窗 -->
<!-- 结果弹窗组件:统一反馈弹窗 -->
<result-dialog id="resultDialog" bind:ok="onDialogOk" bind:close="onDialogClose" />
<result-dialog id="resultDialog" bind:ok="onDialogOk" bind:close="onDialogClose" />
\ No newline at end of file
\ No newline at end of file
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