修改商户入驻功能

This commit is contained in:
weipengfei 2023-11-21 10:55:54 +08:00
parent da010bf09d
commit 8cab22e4a6

View File

@ -1,5 +1,5 @@
<template>
<view class="">
<view class="page">
<!-- #ifdef MP || APP-PLUS -->
<view class="conten-top" :style="'height:'+statusBarHeight+'px'">
@ -68,11 +68,16 @@
<view class="uni-list-cell">
<view class="uni-list-cell-db acea-row row-middle">
<text class="item-name">商户分类</text>
<picker @change="bindPickerChange" @columnchange="columnchange" mode="multiSelector" :value="index" :range="[array, bindPickerChangeidx]" range-key="cate_name">
<picker @change="bindPickerChange" @columnchange="columnchange" mode="selector" :value="index" :range="array" range-key="category_name">
<input placeholder="请选择商户分类" type="text" readonly disabled
v-model="mer_classification">
<view class='iconfont icon-jiantou'></view>
</picker>
<!-- <picker @change="bindPickerChange" @columnchange="columnchange" mode="multiSelector" :value="index" :range="[array, bindPickerChangeidx]" range-key="cate_name">
<input placeholder="请选择商户分类" type="text" readonly disabled
v-model="mer_classification">
<view class='iconfont icon-jiantou'></view>
</picker>
</picker> -->
</view>
</view>
</view>
@ -612,10 +617,13 @@
},
bindPickerChange: function(e) {
// console.log(e.detail);
this.index = e.target.value[1];
let idx = e.target.value[1];
this.merchantData.classification = this.bindPickerChangeidx[idx]['store_category_id']
this.mer_classification = this.bindPickerChangeidx[idx]['cate_name']
// this.index = e.target.value[1];
let idx = e.target.value;
// let idx = e.target.value[1];
this.merchantData.classification = this.array[idx]['merchant_category_id']
this.mer_classification = this.array[idx]['category_name']
// this.merchantData.classification = this.bindPickerChangeidx[idx]['store_category_id']
// this.mer_classification = this.bindPickerChangeidx[idx]['cate_name']
this.validateBtn()
},
columnchange(e){
@ -671,30 +679,30 @@
},
//
getClassfication: function() {
// merClassifly()
// .then(res => {
// this.array = res.data
// })
// .catch(res => {
// this.$util.Tips({
// title: res
// });
// });
getCategoryList()
.then(res => {
// console.log(res);
res.data.list.forEach(item=>{
item.category_name = item.cate_name;
item.merchant_category_id = item.store_category_id;
})
this.array = res.data.list;
this.bindPickerChangeidx = this.array[0].children;
})
.catch(res => {
this.$util.Tips({
title: res
});
});
merClassifly()
.then(res => {
this.array = res.data
})
.catch(res => {
this.$util.Tips({
title: res
});
});
// getCategoryList()
// .then(res => {
// // console.log(res);
// res.data.list.forEach(item=>{
// item.category_name = item.cate_name;
// item.merchant_category_id = item.store_category_id;
// })
// this.array = res.data.list;
// this.bindPickerChangeidx = this.array[0].children;
// })
// .catch(res => {
// this.$util.Tips({
// title: res
// });
// });
},
//
getStoreType: function() {
@ -1138,9 +1146,8 @@
}
.merchantsSettled {
background-image: linear-gradient(var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
height: 140vh;
background-image: linear-gradient(var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
height: 2300rpx;
position: relative;
}