Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
GaoQuYingJiH5-ASD
Commits
08eda11b
Commit
08eda11b
authored
May 21, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 商户编辑 字典接口对接。
parent
23120e78
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
11 deletions
+43
-11
axios_http.js
sdk/axios_http.js
+1
-1
_shanghu_detail-edit.html
src/_shanghu_detail-edit.html
+9
-8
_shanghu_detail-edit.js
src/_shanghu_detail-edit.js
+33
-2
No files found.
sdk/axios_http.js
View file @
08eda11b
...
@@ -14,7 +14,7 @@ axios.defaults.headers.common['Authorization'] =
...
@@ -14,7 +14,7 @@ axios.defaults.headers.common['Authorization'] =
// admin账号token
// admin账号token
// axios.defaults.headers.common['Authorization'] =
// axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5Ijoi
YjA1MWRmZmEtYWE4Yy00NTNiLThlNGUtMTdjOTEzYmMwOWFkIn0.nj2miSFFPQRDabzhq_05z_wW0w13quXBooQbbtnyRZQxOhxenEQQZM3OgKjgd8AxjY7W2uKlpdyqGuTmMb1PR
Q'
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5Ijoi
NTljMWVhMTMtODNmYy00OWI2LWI5YzMtM2VkNzliODFhZjg4In0.XHl0IpagNwLJBqW_s2n6Kzhs9eY-TrMUBfAO8oeikYRUH72eshEXwMsTyTWgVnX_okY4tuB4U124AeF6EO_qi
Q'
// 请求拦截器
// 请求拦截器
...
...
src/_shanghu_detail-edit.html
View file @
08eda11b
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<div
id=
"app"
>
<div
id=
"app"
>
<div
class=
"wrapper"
v-cloak
>
<div
class=
"wrapper"
v-cloak
>
<!-- form开始 -->
<div
class=
"form-container"
>
<div
class=
"form-container"
>
<div
class=
"form-item"
>
<div
class=
"form-item"
>
<span
class=
"form-label"
>
商家名称
</span>
<span
class=
"form-label"
>
商家名称
</span>
...
@@ -144,12 +144,13 @@
...
@@ -144,12 +144,13 @@
<div
class=
"form-item"
>
<div
class=
"form-item"
>
<span
class=
"form-label"
>
场所类型
</span>
<span
class=
"form-label"
>
场所类型
</span>
<div
class=
"form-input-wrap"
>
<div
class=
"form-input-wrap"
>
<select
style=
"width: 4rem;height:.4rem;"
name=
""
v-model=
"formData.smallPlaceTypeName"
<select
style=
"width: 4rem;height:.4rem;"
name=
""
v-model=
"formData.smallPlaceTypeName"
>
@
change=
"handlesmallPlaceTypeNameConfirm($event, item)"
>
<option
<option
value=
"0"
>
0
</option>
v-for=
"(item, i) in dict4changhsuoType"
<option
value=
"1"
>
1
</option>
:key=
"i"
<option
value=
"2"
>
2
</option>
:label=
"item.dictLabel"
<option
value=
"3"
>
3
</option>
:value=
"Number(item.dictValue)"
></option>
</select>
</select>
</div>
</div>
</div>
</div>
...
@@ -196,8 +197,8 @@
...
@@ -196,8 +197,8 @@
<img
:src=
"formData.qrCodeUrl"
style=
"margin-left: 50%; transform: translateX(-50%);"
/>
<img
:src=
"formData.qrCodeUrl"
style=
"margin-left: 50%; transform: translateX(-50%);"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- form结束 -->
</div>
</div>
</div>
</div>
</body>
</body>
...
...
src/_shanghu_detail-edit.js
View file @
08eda11b
...
@@ -49,15 +49,46 @@ window.addEventListener('load', function () {
...
@@ -49,15 +49,46 @@ window.addEventListener('load', function () {
}
}
],
// 新增图片数组字段
],
// 新增图片数组字段
},
},
showTypePicker
:
false
,
dict4changhsuoType
:[],
typeOptions
:
[
'
小餐饮
'
,
'
酒店
'
,
'
商场
'
,
'
学校
'
,
'
医疗机构
'
],
}
}
},
},
computed
:
{},
computed
:
{},
mounted
()
{
mounted
()
{
this
.
detail
()
this
.
detail
()
this
.
getDict4changhsuoType
()
},
},
methods
:
{
methods
:
{
getDict4changhsuoType
(){
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
page
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
page
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
page
"
][
"
privateKey
"
],
reqParams
:
{
page
:
1
,
size
:
9999
,
sign
:
15
,
}
},
(
res
)
=>
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
setTimeout
(()
=>
{
this
.
getDict4changhsuoType
()
},
0
);
return
}
if
(
res
)
{
console
.
log
(
'
接口回调数据
'
,
JSON
.
parse
(
res
))
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
);
var
result
=
JSON
.
parse
(
res
)
this
.
dict4changhsuoType
=
result
.
rows
}
})
},
save
(){
save
(){
vant
.
Toast
.
loading
({
vant
.
Toast
.
loading
({
message
:
'
正在处理...
'
,
message
:
'
正在处理...
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment