名优特产
This commit is contained in:
commit
0b8f4e586a
@ -31,7 +31,7 @@
|
|||||||
indicator-active-color="#fff">
|
indicator-active-color="#fff">
|
||||||
<block v-for="(item,index) in swiper['url']" :key="index">
|
<block v-for="(item,index) in swiper['url']" :key="index">
|
||||||
<swiper-item class="swi_item" @click="swiperClick(item)">
|
<swiper-item class="swi_item" @click="swiperClick(item)">
|
||||||
<u--image :showLoading="true" :src="item.img" width="724rpx" height="259rpx" mode="aspectFill">
|
<u--image :showLoading="true" :src="item.img" width="724rpx" height="259rpx" mode="aspectFit">
|
||||||
</u--image>
|
</u--image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</block>
|
</block>
|
||||||
@ -115,9 +115,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
uni.$on('add', (res) => {
|
|
||||||
this.street = res.split(',')[0]
|
|
||||||
})
|
|
||||||
this.$bus.$on('value-updated', (newValue) => {
|
this.$bus.$on('value-updated', (newValue) => {
|
||||||
// 更新组件的值
|
// 更新组件的值
|
||||||
this.street = newValue.split(',')[0]
|
this.street = newValue.split(',')[0]
|
||||||
@ -142,17 +139,12 @@
|
|||||||
this.$emit('selectPlce', e)
|
this.$emit('selectPlce', e)
|
||||||
this.$emit('change', e)
|
this.$emit('change', e)
|
||||||
this.street = e.value[1].name
|
this.street = e.value[1].name
|
||||||
// this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// uni.$emit('add', e.value[1].name + ',' + e.value[1].code)
|
this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code);
|
||||||
// this.$bus.$emit('value-updated',
|
|
||||||
// e.value[1].name + ',' +
|
})
|
||||||
// e.value[1].code);
|
|
||||||
// })
|
|
||||||
|
|
||||||
uni.$emit('add', e.value[1].name + ',' + e.value[1].code)
|
|
||||||
this.$bus.$emit('value-updated',
|
|
||||||
e.value[1].name + ',' +
|
|
||||||
e.value[1].code);
|
|
||||||
|
|
||||||
},
|
},
|
||||||
changeHandler(e) {
|
changeHandler(e) {
|
||||||
|
10
pages.json
10
pages.json
@ -216,6 +216,16 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "supply_chain/suppliers",
|
||||||
|
"style": {
|
||||||
|
"enablePullDownRefresh": true,
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"navigationBarBackgroundColor": "#e93323",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
"path": "supply_chain/maps",
|
"path": "supply_chain/maps",
|
||||||
"style": {
|
"style": {
|
||||||
|
@ -559,9 +559,10 @@
|
|||||||
limit: this.sotreParam.limit,
|
limit: this.sotreParam.limit,
|
||||||
order: this.sotreParam.order,
|
order: this.sotreParam.order,
|
||||||
category_id: this.sotreParam.category_id,
|
category_id: this.sotreParam.category_id,
|
||||||
type_id: 10
|
type_id: this.sotreParam.type_id
|
||||||
|
|
||||||
}
|
}
|
||||||
|
console.log(this.sotreParam.category_id)
|
||||||
if (this.latitude) {
|
if (this.latitude) {
|
||||||
serachData.location = this.latitude + ',' + this.longitude
|
serachData.location = this.latitude + ',' + this.longitude
|
||||||
}
|
}
|
||||||
@ -576,7 +577,7 @@
|
|||||||
this.storeList = this.storeList.concat(res.data.list)
|
this.storeList = this.storeList.concat(res.data.list)
|
||||||
this.count = res.data.count
|
this.count = res.data.count
|
||||||
this.loading = false
|
this.loading = false
|
||||||
console.log(this.storeList);
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 店铺排序
|
// 店铺排序
|
||||||
@ -682,6 +683,7 @@
|
|||||||
},
|
},
|
||||||
// 组件确定
|
// 组件确定
|
||||||
confirm2(data) {
|
confirm2(data) {
|
||||||
|
|
||||||
let arr1 = [],
|
let arr1 = [],
|
||||||
arr2 = []
|
arr2 = []
|
||||||
if (data.storeTypeArr.length == 0) {
|
if (data.storeTypeArr.length == 0) {
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<zbpSwiper :isSelectPlace="true" :location_Arr="locationArr" :town='street' @kkchange='kkchange'></zbpSwiper>
|
<zbpSwiper :isSelectPlace="true" :location_Arr="locationArr" :town='street' @kkchange='kkchange'></zbpSwiper>
|
||||||
<u-empty :show="jurisdiction" marginTop="260" mode="permission" :text="emptyText"
|
<u-empty :show="jurisdiction" mode="permission" :text="emptyText"
|
||||||
icon="http://cdn.uviewui.com/uview/empty/permission.png"></u-empty>
|
icon="http://cdn.uviewui.com/uview/empty/permission.png"></u-empty>
|
||||||
<view class="business com special_work">
|
<view class="business com special_work" v-if='jurisdiction==false'>
|
||||||
<view class="title project">
|
<view class="title project" >
|
||||||
<view>更多功能</view>
|
<view>更多功能</view>
|
||||||
<view class="edit" @click="editFlag = !editFlag">{{editFlag?'完成':'编辑'}}</view>
|
<view class="edit" @click="editFlag = !editFlag">{{editFlag?'完成':'编辑'}}</view>
|
||||||
</view>
|
</view>
|
||||||
@ -57,6 +57,7 @@
|
|||||||
|
|
||||||
<view class="" v-if='jurisdiction==false&&isShow==false'>
|
<view class="" v-if='jurisdiction==false&&isShow==false'>
|
||||||
<emptyPage title="暂无信息"></emptyPage>
|
<emptyPage title="暂无信息"></emptyPage>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -168,6 +169,10 @@
|
|||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
uni.stopPullDownRefresh()
|
uni.stopPullDownRefresh()
|
||||||
},
|
},
|
||||||
|
beforeDestroy () {
|
||||||
|
// 销毁监听事件
|
||||||
|
this.$bus.$off('value-updated')
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.street.length <= 0) {
|
if (this.street.length <= 0) {
|
||||||
this.appLocation()
|
this.appLocation()
|
||||||
@ -333,11 +338,11 @@
|
|||||||
},
|
},
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
this.street = e.value[1].name
|
this.street = e.value[1].name
|
||||||
uni.setStorageSync('ADRESS_LOCATION',
|
|
||||||
e.value[1].name + ',' + e.value[1].name + ',' +
|
this.$nextTick(() => {
|
||||||
|
this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code);
|
||||||
e.value[1].code
|
|
||||||
)
|
})
|
||||||
this.showPicker = false
|
this.showPicker = false
|
||||||
},
|
},
|
||||||
appLocation() {
|
appLocation() {
|
||||||
@ -357,7 +362,10 @@
|
|||||||
let town = res.data.address_reference.town.title
|
let town = res.data.address_reference.town.title
|
||||||
let street_id = res.data.address_reference.town.id
|
let street_id = res.data.address_reference.town.id
|
||||||
this.street = res.data.address_component.street
|
this.street = res.data.address_component.street
|
||||||
uni.$emit('add', this.street + ',' + street_id)
|
this.$nextTick(() => {
|
||||||
|
this.$bus.$emit('value-updated',this.street + ',' +street_id);
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -44,22 +44,22 @@
|
|||||||
<view :class="[index%2==0?'goods_item':'goods_items']" @click="gogogo(item)">
|
<view :class="[index%2==0?'goods_item':'goods_items']" @click="gogogo(item)">
|
||||||
<view class="kk" v-if="index%2==0">
|
<view class="kk" v-if="index%2==0">
|
||||||
|
|
||||||
<image :src="item.image[0]" mode="aspectFill" style="width:'365rpx';height:251rpx">
|
<image :src="item.image[0]" mode="aspectFit" style="width:'365rpx';height:251rpx">
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<view style="width:'365rpx';height:336rpx" v-else>
|
<view style="width:'365rpx';height:336rpx" v-else>
|
||||||
<image :src="item.image[0]" mode="aspectFill" style="width:'365rpx';height:336rpx">
|
<image :src="item.image[0]" mode="aspectFit" style="width:'365rpx';height:336rpx">
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<view class="goods_item_img" v-if="item.video_link.length>0">
|
<view class="goods_item_img" v-if="item.video_link.length>0">
|
||||||
<image src="@/static/images/sp.png" mode="aspectFill"></image>
|
<image src="@/static/images/sp.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="botm">
|
<view class="botm">
|
||||||
<view class="title">{{item.title}}</view>
|
<view class="title">{{item.title}}</view>
|
||||||
<view class="goods_info flex_a_c">
|
<view class="goods_info flex_a_c">
|
||||||
<view class="l_info flex_a_c">
|
<view class="l_info flex_a_c">
|
||||||
<image :src="(item.author && item.author.avatar) || '/static/images/f.png'"
|
<image :src="(item.author && item.author.avatar) || '/static/images/f.png'"
|
||||||
mode="aspectFill" class="g_img"></image>
|
mode="aspectFit" class="g_img"></image>
|
||||||
<view class="g_name">{{item.author && item.author.nickname}}</view>
|
<view class="g_name">{{item.author && item.author.nickname}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="nice_box" @click.stop="giveStart(item)">
|
<view class="nice_box" @click.stop="giveStart(item)">
|
||||||
@ -85,14 +85,14 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="goods_item_img" v-if="item.video_link.length>0">
|
<view class="goods_item_img" v-if="item.video_link.length>0">
|
||||||
<image src="@/static/images/sp.png" mode="aspectFill"></image>
|
<image src="@/static/images/sp.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="botm">
|
<view class="botm">
|
||||||
<view class="title">{{item.title}}</view>
|
<view class="title">{{item.title}}</view>
|
||||||
<view class="goods_info flex_a_c">
|
<view class="goods_info flex_a_c">
|
||||||
<view class="l_info flex_a_c">
|
<view class="l_info flex_a_c">
|
||||||
<image :src="(item.author && item.author.avatar) || '/static/images/f.png'"
|
<image :src="(item.author && item.author.avatar) || '/static/images/f.png'"
|
||||||
mode="aspectFill" class="g_img"></image>
|
mode="aspectFit" class="g_img"></image>
|
||||||
<view class="g_name">{{item.author && item.author.nickname}}</view>
|
<view class="g_name">{{item.author && item.author.nickname}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="nice_box" @click.stop="giveStart(item)">
|
<view class="nice_box" @click.stop="giveStart(item)">
|
||||||
@ -401,11 +401,11 @@
|
|||||||
confirm(e) {
|
confirm(e) {
|
||||||
|
|
||||||
this.street = e.value[1].name
|
this.street = e.value[1].name
|
||||||
uni.setStorageSync('ADRESS_LOCATION',
|
|
||||||
e.value[1].name + ',' +
|
this.$nextTick(() => {
|
||||||
e.value[1].code
|
this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code);
|
||||||
)
|
|
||||||
uni.$emit('init', 1);
|
})
|
||||||
this.showPicker = false
|
this.showPicker = false
|
||||||
},
|
},
|
||||||
changeHandler(e) {
|
changeHandler(e) {
|
||||||
@ -543,10 +543,12 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
let town = res.data.address_reference.town.title
|
let town = res.data.address_reference.town.title
|
||||||
let street_id = res.data.address_reference.town.id
|
let street_id = res.data.address_reference.town.id
|
||||||
|
|
||||||
this.street = res.data.address_component.street
|
this.street = res.data.address_component.street
|
||||||
|
|
||||||
uni.$emit('add',town+','+street_id)
|
this.$nextTick(() => {
|
||||||
|
this.$bus.$emit('value-updated',this.street + ',' +street_id);
|
||||||
|
|
||||||
|
})
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err,
|
title: err,
|
||||||
|
1144
pages/nongKe/supply_chain/suppliers.vue
Normal file
1144
pages/nongKe/supply_chain/suppliers.vue
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -49,17 +49,27 @@
|
|||||||
<view class='name'>¥{{items.cart_info.productAttr.price}}</view>
|
<view class='name'>¥{{items.cart_info.productAttr.price}}</view>
|
||||||
<view class='name'>x {{items.product_num}}</view>
|
<view class='name'>x {{items.product_num}}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="totalfooter">
|
<!-- <view class="totalfooter">
|
||||||
<view class='bnt b-color' v-if="items.is_imported == 0 && item.orderProduct.length > 1"
|
<view class='bnt b-color' v-if="items.is_imported == 0 && item.orderProduct.length > 1"
|
||||||
@click="importshop(items.order_id,items.product_id,items.product_sku)">
|
@click="importshop(items.order_id,items.product_id,items.product_sku)">
|
||||||
立即导入</view>
|
立即导入</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="totalfooter">
|
|
||||||
|
<view class="totalfooter" v-if="items.is_imported == 1 ">
|
||||||
|
<view class='bnt b-color'>
|
||||||
|
已导入</view>
|
||||||
|
</view>
|
||||||
|
<view class="totalfooter" v-else>
|
||||||
|
<view class='bnt b-color'
|
||||||
|
@click="importshop(item.order_id,item.orderProduct[indexs].product_id,item.orderProduct[indexs].product_sku)">
|
||||||
|
立即导入</view>
|
||||||
|
</view>
|
||||||
|
<!-- <view class="totalfooter">
|
||||||
<view class='bnt b-color'
|
<view class='bnt b-color'
|
||||||
@click="importshop(item.order_id,item.orderProduct[indexs].product_id,item.orderProduct[indexs].product_sku)">
|
@click="importshop(item.order_id,item.orderProduct[indexs].product_id,item.orderProduct[indexs].product_sku)">
|
||||||
立即导入</view>
|
立即导入</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user