Commit 08eda11b authored by xinzhedeai's avatar xinzhedeai

add: 商户编辑 字典接口对接。

parent 23120e78
......@@ -14,7 +14,7 @@ axios.defaults.headers.common['Authorization'] =
// admin账号token
// axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiYjA1MWRmZmEtYWE4Yy00NTNiLThlNGUtMTdjOTEzYmMwOWFkIn0.nj2miSFFPQRDabzhq_05z_wW0w13quXBooQbbtnyRZQxOhxenEQQZM3OgKjgd8AxjY7W2uKlpdyqGuTmMb1PRQ'
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiNTljMWVhMTMtODNmYy00OWI2LWI5YzMtM2VkNzliODFhZjg4In0.XHl0IpagNwLJBqW_s2n6Kzhs9eY-TrMUBfAO8oeikYRUH72eshEXwMsTyTWgVnX_okY4tuB4U124AeF6EO_qiQ'
// 请求拦截器
......
......@@ -108,7 +108,7 @@
<div id="app">
<div class="wrapper" v-cloak>
<!-- form开始 -->
<div class="form-container">
<div class="form-item">
<span class="form-label">商家名称</span>
......@@ -144,12 +144,13 @@
<div class="form-item">
<span class="form-label">场所类型</span>
<div class="form-input-wrap">
<select style="width: 4rem;height:.4rem;" name="" v-model="formData.smallPlaceTypeName"
@change="handlesmallPlaceTypeNameConfirm($event, item)">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<select style="width: 4rem;height:.4rem;" name="" v-model="formData.smallPlaceTypeName">
<option
v-for="(item, i) in dict4changhsuoType"
:key="i"
:label="item.dictLabel"
:value="Number(item.dictValue)"
></option>
</select>
</div>
</div>
......@@ -196,8 +197,8 @@
<img :src="formData.qrCodeUrl" style="margin-left: 50%; transform: translateX(-50%);" />
</div>
</div>
</div>
<!-- form结束 -->
</div>
</div>
</body>
......
......@@ -49,15 +49,46 @@ window.addEventListener('load', function () {
}
], // 新增图片数组字段
},
showTypePicker: false,
typeOptions: ['小餐饮', '酒店', '商场', '学校', '医疗机构'],
dict4changhsuoType:[],
}
},
computed: {},
mounted() {
this.detail()
this.getDict4changhsuoType()
},
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(){
vant.Toast.loading({
message: '正在处理...',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment