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