修改商户入驻功能
This commit is contained in:
parent
da010bf09d
commit
8cab22e4a6
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view class="page">
|
||||||
<!-- #ifdef MP || APP-PLUS -->
|
<!-- #ifdef MP || APP-PLUS -->
|
||||||
|
|
||||||
<view class="conten-top" :style="'height:'+statusBarHeight+'px'">
|
<view class="conten-top" :style="'height:'+statusBarHeight+'px'">
|
||||||
@ -68,11 +68,16 @@
|
|||||||
<view class="uni-list-cell">
|
<view class="uni-list-cell">
|
||||||
<view class="uni-list-cell-db acea-row row-middle">
|
<view class="uni-list-cell-db acea-row row-middle">
|
||||||
<text class="item-name">商户分类</text>
|
<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
|
<input placeholder="请选择商户分类" type="text" readonly disabled
|
||||||
v-model="mer_classification">
|
v-model="mer_classification">
|
||||||
<view class='iconfont icon-jiantou'></view>
|
<view class='iconfont icon-jiantou'></view>
|
||||||
</picker>
|
</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> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -612,10 +617,13 @@
|
|||||||
},
|
},
|
||||||
bindPickerChange: function(e) {
|
bindPickerChange: function(e) {
|
||||||
// console.log(e.detail);
|
// console.log(e.detail);
|
||||||
this.index = e.target.value[1];
|
// this.index = e.target.value[1];
|
||||||
let idx = e.target.value[1];
|
let idx = e.target.value;
|
||||||
this.merchantData.classification = this.bindPickerChangeidx[idx]['store_category_id']
|
// let idx = e.target.value[1];
|
||||||
this.mer_classification = this.bindPickerChangeidx[idx]['cate_name']
|
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()
|
this.validateBtn()
|
||||||
},
|
},
|
||||||
columnchange(e){
|
columnchange(e){
|
||||||
@ -671,30 +679,30 @@
|
|||||||
},
|
},
|
||||||
// 获取商户分类
|
// 获取商户分类
|
||||||
getClassfication: function() {
|
getClassfication: function() {
|
||||||
// merClassifly()
|
merClassifly()
|
||||||
// .then(res => {
|
|
||||||
// this.array = res.data
|
|
||||||
// })
|
|
||||||
// .catch(res => {
|
|
||||||
// this.$util.Tips({
|
|
||||||
// title: res
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
getCategoryList()
|
|
||||||
.then(res => {
|
.then(res => {
|
||||||
// console.log(res);
|
this.array = res.data
|
||||||
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 => {
|
.catch(res => {
|
||||||
this.$util.Tips({
|
this.$util.Tips({
|
||||||
title: res
|
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() {
|
getStoreType: function() {
|
||||||
@ -1139,8 +1147,7 @@
|
|||||||
|
|
||||||
.merchantsSettled {
|
.merchantsSettled {
|
||||||
background-image: linear-gradient(var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
|
background-image: linear-gradient(var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
|
||||||
|
height: 2300rpx;
|
||||||
height: 140vh;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user