修复bug
This commit is contained in:
parent
b2ca9716b7
commit
8105e633d4
@ -403,12 +403,12 @@
|
|||||||
case 1:
|
case 1:
|
||||||
uniMP.loadMP(data);
|
uniMP.loadMP(data);
|
||||||
break;
|
break;
|
||||||
// case 2: uniMP.loadMPx(data); break;
|
case 2: uniMP.loadMPx(data); break;
|
||||||
case 2:
|
// case 2:
|
||||||
// this.navigator(data);
|
// // this.navigator(data);
|
||||||
// uniMP.loadMPx(data);
|
// // uniMP.loadMPx(data);
|
||||||
that.navigator(`/pages/moreProject/moreProject`);
|
// that.navigator(`/pages/moreProject/moreProject`);
|
||||||
break;
|
// break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
uniMP.loadMPurl(data);
|
uniMP.loadMPurl(data);
|
||||||
|
@ -95,9 +95,9 @@
|
|||||||
:key="index">
|
:key="index">
|
||||||
<!-- {{item.merchant_category_id}} -->
|
<!-- {{item.merchant_category_id}} -->
|
||||||
<u--image :showLoading="true" :src="imgList[index]" width="94.63rpx" height="99.63rpx"
|
<u--image :showLoading="true" :src="imgList[index]" width="94.63rpx" height="99.63rpx"
|
||||||
style="margin-bottom: 20rpx;"></u--image>
|
></u--image>
|
||||||
<text
|
<text
|
||||||
style="display: block;font-size: 26.29rpx; width: 15vw;">{{item.category_name}}</text>
|
style="display: block;font-size: 26.29rpx;">{{item.category_name}}</text>
|
||||||
</view>
|
</view>
|
||||||
</u-scroll-list>
|
</u-scroll-list>
|
||||||
</view>
|
</view>
|
||||||
@ -1013,7 +1013,11 @@
|
|||||||
.menu_li {
|
.menu_li {
|
||||||
margin-right: 50rpx;
|
margin-right: 50rpx;
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
width: 50vw;
|
// width: 50vw;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
min-width: 15vw;
|
||||||
// width: 120rpx;
|
// width: 120rpx;
|
||||||
// display: inline-block;
|
// display: inline-block;
|
||||||
}
|
}
|
||||||
|
@ -68,8 +68,7 @@
|
|||||||
<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" :value="index" :range="array"
|
<picker @change="bindPickerChange" @columnchange="columnchange" mode="multiSelector" :value="index" :range="[array, array[bindPickerChangeidx].children]" range-key="category_name">
|
||||||
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>
|
||||||
@ -275,6 +274,7 @@
|
|||||||
create,
|
create,
|
||||||
verify,
|
verify,
|
||||||
merClassifly,
|
merClassifly,
|
||||||
|
getCategoryList,
|
||||||
getGoodsDetails,
|
getGoodsDetails,
|
||||||
updateGoodsRecord,
|
updateGoodsRecord,
|
||||||
getStoreTypeApi,
|
getStoreTypeApi,
|
||||||
@ -353,6 +353,7 @@
|
|||||||
category_name: '',
|
category_name: '',
|
||||||
merchant_category_id: ''
|
merchant_category_id: ''
|
||||||
}],
|
}],
|
||||||
|
bindPickerChangeidx: 0,
|
||||||
storeTypeArr: [{
|
storeTypeArr: [{
|
||||||
type_name: '',
|
type_name: '',
|
||||||
mer_type_id: ''
|
mer_type_id: ''
|
||||||
@ -596,11 +597,17 @@
|
|||||||
},
|
},
|
||||||
bindPickerChange: function(e) {
|
bindPickerChange: function(e) {
|
||||||
this.index = e.target.value
|
this.index = e.target.value
|
||||||
let idx = e.target.value
|
let idx = e.target.value;
|
||||||
this.merchantData.classification = this.array[idx]['merchant_category_id']
|
this.merchantData.classification = this.array[idx]['merchant_category_id']
|
||||||
this.mer_classification = this.array[idx]['category_name']
|
this.mer_classification = this.array[idx]['category_name']
|
||||||
this.validateBtn()
|
this.validateBtn()
|
||||||
},
|
},
|
||||||
|
columnchange(e){
|
||||||
|
// console.log(e.detail);
|
||||||
|
if(e.detail.column==0){
|
||||||
|
this.bindPickerChangeidx = e.detail.value;
|
||||||
|
}
|
||||||
|
},
|
||||||
bindPickerChange1: function(e) {
|
bindPickerChange1: function(e) {
|
||||||
|
|
||||||
this.index1 = e.target.value
|
this.index1 = e.target.value
|
||||||
@ -647,15 +654,29 @@
|
|||||||
},
|
},
|
||||||
// 获取商户分类
|
// 获取商户分类
|
||||||
getClassfication: function() {
|
getClassfication: function() {
|
||||||
merClassifly()
|
// merClassifly()
|
||||||
.then(res => {
|
// .then(res => {
|
||||||
this.array = res.data
|
// this.array = res.data
|
||||||
})
|
// })
|
||||||
.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;
|
||||||
|
})
|
||||||
|
.catch(res => {
|
||||||
|
this.$util.Tips({
|
||||||
|
title: res
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 获取店铺类型
|
// 获取店铺类型
|
||||||
getStoreType: function() {
|
getStoreType: function() {
|
||||||
|
@ -609,12 +609,11 @@
|
|||||||
this.isshow = false
|
this.isshow = false
|
||||||
this.town = res.data.address_reference.town.title
|
this.town = res.data.address_reference.town.title
|
||||||
this.street_id = res.data.address_reference.town.id
|
this.street_id = res.data.address_reference.town.id
|
||||||
this.street = res.data.address_component.street
|
this.street = res.data.address_reference.town.title;
|
||||||
this.list(true,this.street_id)
|
this.list(true,this.street_id)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$bus.$emit('value-updated', this.street + ',' + this
|
this.$bus.$emit('value-updated', this.street + ',' + this
|
||||||
.street_id);
|
.street_id);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
@ -602,8 +602,9 @@
|
|||||||
orderData().then(({
|
orderData().then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
// console.log(data);
|
||||||
this.orderMenu.forEach((item, index) => {
|
this.orderMenu.forEach((item, index) => {
|
||||||
// console.log('item')
|
// console.log(item)
|
||||||
switch (item.title) {
|
switch (item.title) {
|
||||||
case '待付款':
|
case '待付款':
|
||||||
item.num = data.noPay
|
item.num = data.noPay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user