供销综合云市场
This commit is contained in:
parent
cbecd61c64
commit
31a5da396b
@ -67,14 +67,14 @@
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
location_Arr: {
|
// location_Arr: {
|
||||||
type: Object,
|
// type: Object,
|
||||||
default: () => ({})
|
// default: () => ({})
|
||||||
},
|
// },
|
||||||
town: {
|
// town: {
|
||||||
type: String,
|
// type: String,
|
||||||
default: false
|
// default: false
|
||||||
},
|
// },
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -130,7 +130,7 @@
|
|||||||
},
|
},
|
||||||
selectLocation() {
|
selectLocation() {
|
||||||
this.isSelectPlace ? this.showPicker = true : ''
|
this.isSelectPlace ? this.showPicker = true : ''
|
||||||
|
console.log(this.columnData)
|
||||||
},
|
},
|
||||||
|
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
|
@ -128,8 +128,7 @@
|
|||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}, {
|
||||||
,{
|
|
||||||
"path": "uni_modules/guyue-updater/pages/updater",
|
"path": "uni_modules/guyue-updater/pages/updater",
|
||||||
"style": {
|
"style": {
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
|
@ -19,23 +19,54 @@
|
|||||||
<view class="" v-if="cloudList.length>0">
|
<view class="" v-if="cloudList.length>0">
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<!-- <view :style="`height: ${appInfo.top}px;background-color: red;z-index: 99999;`"></view> -->
|
<view style="padding-top: var(--status-bar-height);" v-if="showtit">
|
||||||
<!-- <transition name="fade"> -->
|
<view :class="{'head':true,'show':showtit}">
|
||||||
<view :class="{'head':true,'show':showtit}" style="padding-top: var(--status-bar-height);"
|
|
||||||
v-if="showtit">
|
|
||||||
<view style="display: flex;align-items: center;">
|
<view style="display: flex;align-items: center;">
|
||||||
<u--image :showLoading="true" src="/static/images/LHYC/FH.png" width="50.82rpx"
|
<u--image :showLoading="true" src="/static/images/LHYC/FH.png" width="50.82rpx"
|
||||||
height="50.82rpx" @click='goBack'></u--image>
|
height="50.82rpx" @click='goBack'></u--image>
|
||||||
|
|
||||||
<view class="head_tit">
|
<view class="head_tit">
|
||||||
{{town}}里海云仓
|
{{town}}里海云仓
|
||||||
</view>
|
</view>
|
||||||
|
<view style="margin-left: 20rpx;" @click="showSelect=true">
|
||||||
|
<u--image :showLoading="true" src="/static/images/GXSC/XL.png" width="33.29rpx"
|
||||||
|
height="33.29rpx"></u--image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="" style="display: flex;align-items: center;">
|
||||||
|
<view style="display: flex;align-items: center;" @click="showPicker=!showPicker">
|
||||||
|
<u--image :showLoading="true" src="/static/images/GXSC/DW.png" width="50.82rpx"
|
||||||
|
height="50.82rpx"></u--image>
|
||||||
|
<view class="town_name">{{street}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="head_r" @click="showPop=true">
|
<view class="head_r" @click="showPop=true">
|
||||||
<u--image :showLoading="true" src="/static/images/LHYC/QB.png" width="50.82rpx"
|
<u--image :showLoading="true" src="/static/images/LHYC/QB.png" width="50.82rpx"
|
||||||
height="50.82rpx"></u--image>
|
height="50.82rpx"></u--image>
|
||||||
<text>全部</text>
|
<text>全部</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="selected-list" v-show="showSelect">
|
||||||
|
<div class="triangle-up"></div>
|
||||||
|
<view class="selected-li"
|
||||||
|
@click="navgo(`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_code}&townName=${street}`)">
|
||||||
|
供销综合云市场 <text></text>
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
供销综合云商品
|
||||||
|
</view>
|
||||||
|
<!-- SDFSDF -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- </transition> -->
|
<!-- </transition> -->
|
||||||
<!-- <transition name="fade"> -->
|
<!-- <transition name="fade"> -->
|
||||||
<!-- 滚动 -->
|
<!-- 滚动 -->
|
||||||
@ -175,7 +206,7 @@
|
|||||||
<view class="info">
|
<view class="info">
|
||||||
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
||||||
height="400.09rpx"></u--image>
|
height="400.09rpx"></u--image>
|
||||||
<view class="" style="text-align: center;">
|
<view class="" style="text-align: center;color:#999">
|
||||||
暂无商品
|
暂无商品
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -251,7 +282,7 @@
|
|||||||
|
|
||||||
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
||||||
height="400.09rpx"></u--image>
|
height="400.09rpx"></u--image>
|
||||||
<view class="" style="text-align: center;">
|
<view class="" style="text-align: center;color:#999">
|
||||||
当前区域暂无云仓
|
当前区域暂无云仓
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -315,7 +346,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<u-picker :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm" @cancel="showPicker = false"
|
||||||
|
@change="changeHandler" keyName="name"></u-picker>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -350,13 +382,27 @@
|
|||||||
import {
|
import {
|
||||||
goShopDetail
|
goShopDetail
|
||||||
} from '@/libs/order.js'
|
} from '@/libs/order.js'
|
||||||
|
// 7200 = 8 = 80000 8616
|
||||||
import {
|
import {
|
||||||
postCartAdd,
|
postCartAdd,
|
||||||
} from '@/api/store.js';
|
} from '@/api/store.js';
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
|
||||||
|
import {
|
||||||
|
getArea,
|
||||||
|
getStreet
|
||||||
|
} from '@/api/article.js';
|
||||||
|
import {
|
||||||
|
getIndexData,
|
||||||
|
getDiy
|
||||||
|
} from '@/api/api.js'
|
||||||
|
import {
|
||||||
|
getGeocoder
|
||||||
|
} from '@/api/store.js';
|
||||||
import {
|
import {
|
||||||
mapGetters
|
mapGetters
|
||||||
} from "vuex";
|
} from 'vuex'
|
||||||
|
import Cache from '@/utils/cache';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize,
|
authorize,
|
||||||
@ -368,6 +414,8 @@
|
|||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
showPicker: false,
|
||||||
|
columnData: [],
|
||||||
skusize: 0,
|
skusize: 0,
|
||||||
skuNumber: 1,
|
skuNumber: 1,
|
||||||
showcartpop: false,
|
showcartpop: false,
|
||||||
@ -383,10 +431,12 @@
|
|||||||
isEmpty: false,
|
isEmpty: false,
|
||||||
winHeight: 0,
|
winHeight: 0,
|
||||||
cloudList: [],
|
cloudList: [],
|
||||||
|
street: '',
|
||||||
street_code: '',
|
street_code: '',
|
||||||
totalMoney: 0,
|
totalMoney: 0,
|
||||||
town: '',
|
town: '',
|
||||||
list: [1, 1, 1, 1, 1],
|
list: [1, 1, 1, 1, 1],
|
||||||
|
showSelect: false,
|
||||||
showPop: false,
|
showPop: false,
|
||||||
keyword: "",
|
keyword: "",
|
||||||
showLoading: false,
|
showLoading: false,
|
||||||
@ -430,6 +480,8 @@
|
|||||||
this.street_code = e.street
|
this.street_code = e.street
|
||||||
this.town = e.town
|
this.town = e.town
|
||||||
this.getCloundShop()
|
this.getCloundShop()
|
||||||
|
this.street = e.town
|
||||||
|
this.Area()
|
||||||
// console.log(this.appInfo, "手机信息")
|
// console.log(this.appInfo, "手机信息")
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@ -522,6 +574,102 @@
|
|||||||
|
|
||||||
// },
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
|
swiperClick(item) {
|
||||||
|
const url = item.info[1].value
|
||||||
|
uni.navigateTo({
|
||||||
|
url: url
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selectLocation() {
|
||||||
|
this.isSelectPlace ? this.showPicker = true : ''
|
||||||
|
console.log(this.columnData)
|
||||||
|
},
|
||||||
|
|
||||||
|
confirm(e) {
|
||||||
|
|
||||||
|
this.showPicker = false
|
||||||
|
this.$emit('selectPlce', e)
|
||||||
|
this.$emit('change', e)
|
||||||
|
this.street = e.value[1].name
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code);
|
||||||
|
|
||||||
|
})
|
||||||
|
this.street_code = e.value[1].code
|
||||||
|
|
||||||
|
this.getCloundShop()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
changeHandler(e) {
|
||||||
|
const {
|
||||||
|
columnIndex,
|
||||||
|
value,
|
||||||
|
values,
|
||||||
|
index,
|
||||||
|
picker = this.$refs.uPicker
|
||||||
|
} = e;
|
||||||
|
if (columnIndex === 0) {
|
||||||
|
getStreet({
|
||||||
|
area_code: value[0]['code']
|
||||||
|
}).then(res => {
|
||||||
|
picker.setColumnValues(1, res.data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Area() {
|
||||||
|
getArea({
|
||||||
|
city_code: 510500
|
||||||
|
}).then(res => {
|
||||||
|
this.$refs.uPicker.setColumnValues(0, res.data);
|
||||||
|
this.Street(res.data[0]['code']);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
Street(code) {
|
||||||
|
getStreet({
|
||||||
|
area_code: code
|
||||||
|
}).then(res => {
|
||||||
|
this.$refs.uPicker.setColumnValues(1, res.data);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
swiperChange(e) {
|
||||||
|
let {
|
||||||
|
current,
|
||||||
|
source
|
||||||
|
} = e.detail;
|
||||||
|
if (source === 'autoplay' || source === 'touch') {
|
||||||
|
this.bgColor = this.swiper.url[e.detail.current]['img']
|
||||||
|
this.$emit('kkchange', this.bgColor)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// 对象转数组
|
||||||
|
objToArr(data) {
|
||||||
|
let obj = Object.keys(data).sort();
|
||||||
|
let m = obj.map(key => data[key]);
|
||||||
|
return m;
|
||||||
|
},
|
||||||
|
async getBanner(id) {
|
||||||
|
let that = this;
|
||||||
|
const {
|
||||||
|
data
|
||||||
|
} = await getDiy({
|
||||||
|
id: 0
|
||||||
|
})
|
||||||
|
that.styleConfig = that.objToArr(data.value);
|
||||||
|
/* 循环数组得到数据*/
|
||||||
|
that.styleConfig.forEach((item, index, arr) => {
|
||||||
|
if (item.name == 'headerSerch' || item.name == 'homeComb') {
|
||||||
|
if (item.name == 'homeComb') {
|
||||||
|
that.swiper.url = item.swiperConfig.list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.bgColor = this.swiper.url[0].img
|
||||||
|
},
|
||||||
skusizechange(i) {
|
skusizechange(i) {
|
||||||
|
|
||||||
this.skusize = i
|
this.skusize = i
|
||||||
@ -786,6 +934,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selected-list {
|
||||||
|
padding: 24rpx 14rpx;
|
||||||
|
border-radius: 10.51rpx 10.51rpx 10.51rpx 10.51rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
position: absolute;
|
||||||
|
left: 100rpx;
|
||||||
|
font-size: 29.79rpx;
|
||||||
|
z-index: 9999;
|
||||||
|
top: 100rpx;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.triangle-up {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 10rpx solid transparent;
|
||||||
|
border-right: 10rpx solid transparent;
|
||||||
|
border-bottom: 10rpx solid white;
|
||||||
|
position: absolute;
|
||||||
|
top: -10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-li {
|
||||||
|
margin-bottom: 35rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.sku {
|
.sku {
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
|
|
||||||
@ -1019,7 +1195,7 @@
|
|||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
// font-weight: 700;
|
// font-weight: 700;
|
||||||
transform: skewX(-10deg);
|
// transform: skewX(-10deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1029,7 +1205,7 @@
|
|||||||
|
|
||||||
.head {
|
.head {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 100;
|
z-index: 999;
|
||||||
color: white;
|
color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@ -1068,6 +1244,10 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.town_name {
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.goods_list {
|
.goods_list {
|
||||||
min-height: 95vh;
|
min-height: 95vh;
|
||||||
padding: 0 10rpx;
|
padding: 0 10rpx;
|
||||||
|
@ -14,29 +14,51 @@
|
|||||||
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
|
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
|
||||||
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
|
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="" style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);">
|
<view class="" style="font-size: 40rpx;font-weight: 700;">
|
||||||
供销综合云市场
|
供销综合云市场
|
||||||
</view>
|
</view>
|
||||||
|
<view style="margin-left: 20rpx;" @click="showSelect=true">
|
||||||
|
<u--image :showLoading="true" src="/static/images/GXSC/XL.png" width="33.29rpx"
|
||||||
|
height="33.29rpx"></u--image>
|
||||||
|
</view>
|
||||||
|
<!-- <view style="margin-left: 20rpx;">
|
||||||
|
<u--image :showLoading="true" src="/static/images/GXSC/SL.png" width="33.29rpx"
|
||||||
|
height="33.29rpx"></u--image>
|
||||||
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="position: relative;width: 289.14rpx;">
|
|
||||||
|
<!-- <view style="position: relative;width: 289.14rpx;">
|
||||||
<u-search borderColor="#FF6D20" bgColor="white" @change="test" :showAction="false"
|
<u-search borderColor="#FF6D20" bgColor="white" @change="test" :showAction="false"
|
||||||
placeholder="请输入..." v-model="sotreParam.keyword" class="serch_cls"></u-search>
|
placeholder="请输入..." v-model="sotreParam.keyword" class="serch_cls"></u-search>
|
||||||
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
||||||
src="/static/images/GXSC/SS.png" width="115.65rpx" height="56.82rpx"></u--image>
|
src="/static/images/GXSC/SS.png" width="115.65rpx" height="56.82rpx"></u--image>
|
||||||
</view>
|
</view> -->
|
||||||
<view class='iconfont search-right'
|
<view class='iconfont search-right' style="display: flex;align-items: center;"
|
||||||
@click="goMap(`/pages/nongKe/supply_chain/maps?street_id=${street_id}`)">
|
@click="showPicker=!showPicker">
|
||||||
<u--image :showLoading="true" src="/static/images/GXSC/DW.png" width="50.82rpx"
|
<u--image :showLoading="true" src="/static/images/GXSC/DW.png" width="50.82rpx"
|
||||||
height="50.82rpx"></u--image>
|
height="50.82rpx"></u--image>
|
||||||
|
<view class="town_name">{{street}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="selected-list" v-show="showSelect">
|
||||||
|
<div class="triangle-up"></div>
|
||||||
|
<view class="selected-li">
|
||||||
|
供销综合云市场 <text></text>
|
||||||
|
</view>
|
||||||
|
<view class=""
|
||||||
|
@click="navGoto(`/pages/nongKe/cloud_entrepot/index?street=${street_id}&town=${street}`)">
|
||||||
|
供销综合云商品
|
||||||
|
</view>
|
||||||
|
<!-- SDFSDF -->
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view style="background-color: red;height: 10px">
|
<view style="height: 10px">
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="hot_serch">
|
<view class="hot_serch">
|
||||||
@ -274,6 +296,11 @@
|
|||||||
<image :src="image"></image>
|
<image :src="image"></image>
|
||||||
<image src="@/static/images/guanbi.png" class="guanbi" @click="close"></image>
|
<image src="@/static/images/guanbi.png" class="guanbi" @click="close"></image>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
<view class="">
|
||||||
|
<u-picker :defaultIndex=" defaInd" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
||||||
|
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -303,6 +330,18 @@
|
|||||||
configMap
|
configMap
|
||||||
} from '@/utils';
|
} from '@/utils';
|
||||||
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
||||||
|
import {
|
||||||
|
getArea,
|
||||||
|
getStreet
|
||||||
|
} from '@/api/article.js';
|
||||||
|
import {
|
||||||
|
getIndexData,
|
||||||
|
getDiy
|
||||||
|
} from '@/api/api.js'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import Cache from '@/utils/cache';
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -312,6 +351,8 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
defaInd: [0, 0],
|
||||||
|
columnData: [],
|
||||||
imgList: [
|
imgList: [
|
||||||
"/static/images/GXSC/BBY.png",
|
"/static/images/GXSC/BBY.png",
|
||||||
"/static/images/GXSC/NYSC.png",
|
"/static/images/GXSC/NYSC.png",
|
||||||
@ -331,6 +372,7 @@
|
|||||||
"/static/images/GXSC/JDMS.png",
|
"/static/images/GXSC/JDMS.png",
|
||||||
],
|
],
|
||||||
street_id: "",
|
street_id: "",
|
||||||
|
showSelect: false,
|
||||||
price: 0,
|
price: 0,
|
||||||
stock: 0,
|
stock: 0,
|
||||||
nows: false,
|
nows: false,
|
||||||
@ -348,6 +390,8 @@
|
|||||||
downKey: 0,
|
downKey: 0,
|
||||||
downStatus: false,
|
downStatus: false,
|
||||||
menuList: [],
|
menuList: [],
|
||||||
|
street: "",
|
||||||
|
showPicker: false,
|
||||||
// 下拉菜单
|
// 下拉菜单
|
||||||
downMenu: [{
|
downMenu: [{
|
||||||
title: '默认',
|
title: '默认',
|
||||||
@ -406,6 +450,7 @@
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
// console.log(options);
|
// console.log(options);
|
||||||
this.street_id = options.street_id
|
this.street_id = options.street_id
|
||||||
|
this.street = options.townName
|
||||||
this.product_type = options.product_type ?? 0
|
this.product_type = options.product_type ?? 0
|
||||||
if (options.street_id != undefined) {
|
if (options.street_id != undefined) {
|
||||||
this.sotreParam.street_id = options.street_id
|
this.sotreParam.street_id = options.street_id
|
||||||
@ -424,7 +469,7 @@
|
|||||||
supMenuApi().then(res => {
|
supMenuApi().then(res => {
|
||||||
this.menuList = res.data
|
this.menuList = res.data
|
||||||
})
|
})
|
||||||
|
this.Area()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
downMenus: function() {
|
downMenus: function() {
|
||||||
@ -445,6 +490,96 @@
|
|||||||
}, mapGetters(['viewColor'])),
|
}, mapGetters(['viewColor'])),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
selectLocation() {
|
||||||
|
this.isSelectPlace ? this.showPicker = true : ''
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
confirm(e) {
|
||||||
|
this.showPicker = false
|
||||||
|
this.$emit('selectPlce', e)
|
||||||
|
this.$emit('change', e)
|
||||||
|
console.log(e)
|
||||||
|
this.street = e.value[1].name
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code);
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
this.sotreParam.street_id = e.value[1].code
|
||||||
|
this.street_id = e.value[1].code
|
||||||
|
this.storeMerchantList()
|
||||||
|
|
||||||
|
},
|
||||||
|
changeHandler(e) {
|
||||||
|
const {
|
||||||
|
columnIndex,
|
||||||
|
value,
|
||||||
|
values,
|
||||||
|
index,
|
||||||
|
picker = this.$refs.uPicker
|
||||||
|
} = e;
|
||||||
|
if (columnIndex === 0) {
|
||||||
|
getStreet({
|
||||||
|
area_code: value[0]['code']
|
||||||
|
}).then(res => {
|
||||||
|
picker.setColumnValues(1, res.data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Area() {
|
||||||
|
getArea({
|
||||||
|
city_code: 510500
|
||||||
|
}).then(res => {
|
||||||
|
this.$refs.uPicker.setColumnValues(0, res.data);
|
||||||
|
this.Street(res.data[0]['code']);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
Street(code) {
|
||||||
|
getStreet({
|
||||||
|
area_code: code
|
||||||
|
}).then(res => {
|
||||||
|
this.$refs.uPicker.setColumnValues(1, res.data);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
swiperChange(e) {
|
||||||
|
let {
|
||||||
|
current,
|
||||||
|
source
|
||||||
|
} = e.detail;
|
||||||
|
if (source === 'autoplay' || source === 'touch') {
|
||||||
|
this.bgColor = this.swiper.url[e.detail.current]['img']
|
||||||
|
this.$emit('kkchange', this.bgColor)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// 对象转数组
|
||||||
|
objToArr(data) {
|
||||||
|
let obj = Object.keys(data).sort();
|
||||||
|
let m = obj.map(key => data[key]);
|
||||||
|
return m;
|
||||||
|
},
|
||||||
|
async getBanner(id) {
|
||||||
|
let that = this;
|
||||||
|
const {
|
||||||
|
data
|
||||||
|
} = await getDiy({
|
||||||
|
id: 0
|
||||||
|
})
|
||||||
|
that.styleConfig = that.objToArr(data.value);
|
||||||
|
/* 循环数组得到数据*/
|
||||||
|
that.styleConfig.forEach((item, index, arr) => {
|
||||||
|
if (item.name == 'headerSerch' || item.name == 'homeComb') {
|
||||||
|
if (item.name == 'homeComb') {
|
||||||
|
that.swiper.url = item.swiperConfig.list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.bgColor = this.swiper.url[0].img
|
||||||
|
},
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
if (this.sotreParam.keyword.length > 3) {
|
if (this.sotreParam.keyword.length > 3) {
|
||||||
this.sotreParam.keyword.slice(0, 3)
|
this.sotreParam.keyword.slice(0, 3)
|
||||||
@ -462,6 +597,11 @@
|
|||||||
url
|
url
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
navGoto(url) {
|
||||||
|
uni.redirectTo({
|
||||||
|
url
|
||||||
|
})
|
||||||
|
},
|
||||||
navGo(id) {
|
navGo(id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/nongKe/supply_chain/supplierA?type_id=10&merchant_category_id=${id}&street_id=${this.street_id}`
|
url: `/pages/nongKe/supply_chain/supplierA?type_id=10&merchant_category_id=${id}&street_id=${this.street_id}`
|
||||||
@ -644,7 +784,7 @@
|
|||||||
// console.log(rqData)
|
// console.log(rqData)
|
||||||
storeMerchantList(rqData).then(res => {
|
storeMerchantList(rqData).then(res => {
|
||||||
this.count = res.data.count
|
this.count = res.data.count
|
||||||
this.storeList = this.storeList.concat(res.data.list)
|
this.storeList = (res.data.list)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.loadingIcon = false
|
this.loadingIcon = false
|
||||||
})
|
})
|
||||||
@ -674,7 +814,7 @@
|
|||||||
this.rightBox = true
|
this.rightBox = true
|
||||||
},
|
},
|
||||||
// 组件确定
|
// 组件确定
|
||||||
confirm(data) {
|
confirm1(data) {
|
||||||
let arr1 = [],
|
let arr1 = [],
|
||||||
arr2 = []
|
arr2 = []
|
||||||
if (data.storeTypeArr.length == 0) {
|
if (data.storeTypeArr.length == 0) {
|
||||||
@ -1086,6 +1226,31 @@
|
|||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selected-list {
|
||||||
|
padding: 24rpx 14rpx;
|
||||||
|
border-radius: 10.51rpx 10.51rpx 10.51rpx 10.51rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
position: absolute;
|
||||||
|
left: 100rpx;
|
||||||
|
font-size: 29.79rpx;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.triangle-up {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 10rpx solid transparent;
|
||||||
|
border-right: 10rpx solid transparent;
|
||||||
|
border-bottom: 10rpx solid white;
|
||||||
|
position: absolute;
|
||||||
|
top: -10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-li {
|
||||||
|
margin-bottom: 35rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.store-wrapper {
|
.store-wrapper {
|
||||||
margin-top: 235rpx;
|
margin-top: 235rpx;
|
||||||
border-top: 1px solid #F6F6F6;
|
border-top: 1px solid #F6F6F6;
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<view class="list">
|
<view class="list">
|
||||||
<navigator hover-class="none"
|
<navigator hover-class="none"
|
||||||
:url="`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_id}`">
|
:url="`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_id}&townName=${town}`">
|
||||||
<view class="list-m">
|
<view class="list-m">
|
||||||
<image src="@/static/images/f6.png" mode="aspectFit"></image>
|
<image src="@/static/images/f6.png" mode="aspectFit"></image>
|
||||||
<view class="list-title">
|
<view class="list-title">
|
||||||
|
BIN
static/images/GXSC/SL.png
Normal file
BIN
static/images/GXSC/SL.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
static/images/GXSC/XL.png
Normal file
BIN
static/images/GXSC/XL.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
x
Reference in New Issue
Block a user