名优特产

This commit is contained in:
THK3121 2023-09-04 18:32:31 +08:00
commit 0b8f4e586a
8 changed files with 2093 additions and 925 deletions

View File

@ -31,7 +31,7 @@
indicator-active-color="#fff">
<block v-for="(item,index) in swiper['url']" :key="index">
<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>
</swiper-item>
</block>
@ -115,9 +115,6 @@
},
mounted() {
uni.$on('add', (res) => {
this.street = res.split(',')[0]
})
this.$bus.$on('value-updated', (newValue) => {
//
this.street = newValue.split(',')[0]
@ -142,17 +139,12 @@
this.$emit('selectPlce', e)
this.$emit('change', e)
this.street = e.value[1].name
// 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.$nextTick(() => {
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) {

View File

@ -216,6 +216,16 @@
"navigationStyle": "custom"
}
},
{
"path": "supply_chain/suppliers",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#e93323",
"navigationStyle": "custom"
}
}, {
"path": "supply_chain/maps",
"style": {

View File

@ -559,9 +559,10 @@
limit: this.sotreParam.limit,
order: this.sotreParam.order,
category_id: this.sotreParam.category_id,
type_id: 10
type_id: this.sotreParam.type_id
}
console.log(this.sotreParam.category_id)
if (this.latitude) {
serachData.location = this.latitude + ',' + this.longitude
}
@ -576,7 +577,7 @@
this.storeList = this.storeList.concat(res.data.list)
this.count = res.data.count
this.loading = false
console.log(this.storeList);
})
},
//
@ -682,6 +683,7 @@
},
//
confirm2(data) {
let arr1 = [],
arr2 = []
if (data.storeTypeArr.length == 0) {

View File

@ -16,10 +16,10 @@
</view>
<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>
<view class="business com special_work">
<view class="title project">
<view class="business com special_work" v-if='jurisdiction==false'>
<view class="title project" >
<view>更多功能</view>
<view class="edit" @click="editFlag = !editFlag">{{editFlag?'完成':'编辑'}}</view>
</view>
@ -57,6 +57,7 @@
<view class="" v-if='jurisdiction==false&&isShow==false'>
<emptyPage title="暂无信息"></emptyPage>
</view>
</view>
@ -168,6 +169,10 @@
this.getUserInfo()
uni.stopPullDownRefresh()
},
beforeDestroy () {
//
this.$bus.$off('value-updated')
},
mounted() {
if (this.street.length <= 0) {
this.appLocation()
@ -333,11 +338,11 @@
},
confirm(e) {
this.street = e.value[1].name
uni.setStorageSync('ADRESS_LOCATION',
e.value[1].name + ',' + e.value[1].name + ',' +
e.value[1].code
)
this.$nextTick(() => {
this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code);
})
this.showPicker = false
},
appLocation() {
@ -357,7 +362,10 @@
let town = res.data.address_reference.town.title
let street_id = res.data.address_reference.town.id
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 => {
uni.showToast({

View File

@ -44,22 +44,22 @@
<view :class="[index%2==0?'goods_item':'goods_items']" @click="gogogo(item)">
<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>
</view>
<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>
</view>
<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 class="botm">
<view class="title">{{item.title}}</view>
<view class="goods_info flex_a_c">
<view class="l_info flex_a_c">
<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>
<view class="nice_box" @click.stop="giveStart(item)">
@ -85,14 +85,14 @@
</view>
<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 class="botm">
<view class="title">{{item.title}}</view>
<view class="goods_info flex_a_c">
<view class="l_info flex_a_c">
<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>
<view class="nice_box" @click.stop="giveStart(item)">
@ -401,11 +401,11 @@
confirm(e) {
this.street = e.value[1].name
uni.setStorageSync('ADRESS_LOCATION',
e.value[1].name + ',' +
e.value[1].code
)
uni.$emit('init', 1);
this.$nextTick(() => {
this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code);
})
this.showPicker = false
},
changeHandler(e) {
@ -543,10 +543,12 @@
}).then(res => {
let town = res.data.address_reference.town.title
let street_id = res.data.address_reference.town.id
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 => {
uni.showToast({
title: err,

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +1,29 @@
<template>
<view class="Circle_friends">
<view class="circle_friends_wrapper">
<view @click="selectLocation" v-if="isFshow">
<view class="site-box flex_a_c_j_sb" :style="{'background-color':backColor}">
<view :class="['place_wrapper','flex_a_c',isFshow?'sitebox':'']">
<view :class="['iconfont','icon-weizhi',isFshow?'sitebox':'']" style="margin-left: 20rpx;">
<view
class="site-box flex_a_c_j_sb"
:style="{ 'background-color': backColor }"
>
<view
:class="['place_wrapper', 'flex_a_c', isFshow ? 'sitebox' : '']"
>
<view
:class="['iconfont', 'icon-weizhi', isFshow ? 'sitebox' : '']"
style="margin-left: 20rpx"
>
</view>
<view class="town_name">{{street}}</view>
<view class="town_name">{{ street }}</view>
</view>
<navigator url="/pages/chat/customer_list/index?type=0" hover-class="none">
<view :class="['iconfont','icon-xiaoxi',isFshow?'sitebox':'']" style="color:#fff;"></view>
<navigator
url="/pages/chat/customer_list/index?type=0"
hover-class="none"
>
<view
:class="['iconfont', 'icon-xiaoxi', isFshow ? 'sitebox' : '']"
style="color: #fff"
></view>
</navigator>
</view>
<!-- <view class="site-box ','flex_a_c_j_sb'" v-if="ishshow">
@ -22,16 +33,20 @@
</view> -->
</view>
<zbpSwiper :isSelectPlace="true" :town='street' :streetname='street' :location_Arr="locationArr"
@change='dchange'>
<zbpSwiper
:isSelectPlace="true"
:town="street"
:streetname="street"
:location_Arr="locationArr"
@change="dchange"
>
</zbpSwiper>
<view class="list">
<navigator hover-class="none"
:url="`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_id}`">
<navigator
hover-class="none"
:url="`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_id}`"
>
<view class="list-m">
<image src="@/static/images/f6.png" mode="aspectFit"></image>
<view class="list-title">
@ -39,33 +54,24 @@
<image src="@/static/images/p9.png" mode="aspectFit"></image>
<view class="titlea-con">
<view class="titlea">september</view>
<view class="titleb">
9
</view>
<view class="titleb"> 9 </view>
</view>
</view>
<view class="list-titleb">
<view class="titlea">
{{town}}
{{ town }}
</view>
<view class="titleb">
综合供销云市场
<view class="titleb"> 综合供销云市场 </view>
</view>
</view>
</view>
<view class="list-title-info" style="color:#3A7331 ;">
<view class="">
点击查看
</view>
<view class="list-title-info" style="color: #3a7331">
<view class=""> 点击查看 </view>
<view class="title-infoimg">
<image src="@/static/images/pj.png" mode="aspectFit"></image>
</view>
</view>
</view>
</navigator>
<view class="list-m" @click="go_shop">
@ -75,18 +81,12 @@
<image src="@/static/images/p8.png" mode="aspectFit"></image>
</view>
<view class="list-titleb">
<view class="titlea">
里海云仓
</view>
<view class="titleb">
行业分类市场
<view class="titlea"> 里海云仓 </view>
<view class="titleb"> 行业分类市场 </view>
</view>
</view>
</view>
<view class="list-title-info" style="color:#FF6B00 ;">
<view class="">
点击查看
</view>
<view class="list-title-info" style="color: #ff6b00">
<view class=""> 点击查看 </view>
<view class="title-infoimg">
<image src="@/static/images/pj1.png" mode="aspectFit"></image>
</view>
@ -95,8 +95,10 @@
</view>
<view class="list-con">
<view class="list-con-left" @tap="navgo('/pages/nongKe/specialty/index')">
<view
class="list-con-left"
@tap="navgo('/pages/nongKe/specialty/index')"
>
<!-- <view class="list-con-title">
<view class="con-titlea">
名优特产
@ -108,7 +110,11 @@
<image src="@/static/images/f5.png" mode="aspectFit"></image>
</view>
<view class="list-con-right">
<view class="con-right" style="margin-bottom: 20rpx;">
<view
class="con-right"
style="margin-bottom: 20rpx"
@click="navaction(1)"
>
<!-- <view class="list-con-title">
<view class="con-titlea">
当地美食
@ -119,7 +125,7 @@
</view> -->
<image src="@/static/images/f7.png" mode="aspectFit"></image>
</view>
<view class="con-right">
<view class="con-right" @click="navaction(2)">
<!-- <view class="list-con-title">
<view class="con-titlea">
特色文旅
@ -130,72 +136,78 @@
</view> -->
<image src="@/static/images/f2.png" mode="aspectFit"></image>
</view>
</view>
</view>
<view class="list-bon">
<image src="@/static/images/f4.png" mode="aspectFit"></image>
</view>
<view class="goodslist">
<WaterfallsFlow :wfList='cateGoods' />
<WaterfallsFlow :wfList="cateGoods" />
</view>
<view class="empty_wrapper" v-if="emptyShow">
<u-empty :show="emptyShow" mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png"></u-empty>
<u-empty
:show="emptyShow"
mode="list"
icon="http://cdn.uviewui.com/uview/empty/list.png"
></u-empty>
</view>
</view>
<u-picker :defaultIndex="[0,0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
<u-loadmore :status="status" v-if="cateGoods.length>=where.limit" />
<u-picker
:defaultIndex="[0, 0]"
:show="showPicker"
ref="uPicker"
:columns="columnData"
@confirm="confirm"
@cancel="showPicker = false"
@change="changeHandler"
keyName="name"
></u-picker>
<u-loadmore :status="status" v-if="cateGoods.length >= where.limit" />
<view class="location" v-if='isshow'>
<view class="locationa">
位置权限使用说明
</view>
<view class="locationb">
用于向你推荐最近门店
</view>
<view class="location" v-if="isshow">
<view class="locationa"> 位置权限使用说明 </view>
<view class="locationb"> 用于向你推荐最近门店 </view>
</view>
</view>
</template>
<script>
import mTabbar from '@/components/m-tabbar/m-tabbar.vue'
import zbpSwiper from '@/components/zbpSwiper'
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
import WaterfallsFlow from '@/components/WaterfallsFlow/WaterfallsFlowo.vue'
import Cache from '@/utils/cache';
import {
import mTabbar from '@/components/m-tabbar/m-tabbar.vue'
import zbpSwiper from '@/components/zbpSwiper'
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
import WaterfallsFlow from '@/components/WaterfallsFlow/WaterfallsFlowo.vue'
import Cache from '@/utils/cache';
import {
getSlideAPI
} from '@/api/lihai.js'
import {
} from '@/api/lihai.js'
import {
graphicLstApi,
getTopicList,
graphicStartApi
} from '@/api/community.js'
import {
} from '@/api/community.js'
import {
getIndexData,
getDiy,
} from '@/api/api.js'
} from '@/api/api.js'
import {
import {
spuInfo
} from '@/api/product.js';
import {
} from '@/api/product.js';
import {
getGeocoder,
merClassifly,
getProductHot
} from '@/api/store.js';
import {
} from '@/api/store.js';
import {
getArea,
getStreet
} from '@/api/article.js';
import {
} from '@/api/article.js';
import {
Toast
} from '@/libs/uniApi'
export default {
} from '@/libs/uniApi'
export default {
components: {
mTabbar,
zbpSwiper,
@ -306,6 +318,7 @@
}
},
// #ifdef APP-PLUS
onPageScroll(e) {
@ -326,6 +339,13 @@
// #endif
methods: {
navaction(val) {
uni.navigateTo({
url: '/pages/nongKe/supply_chain/suppliers?id=' + val
})
},
//
list(id) {
if (id) {
spuInfo(id, this.where1).then(res => {
@ -402,11 +422,11 @@
this.street = e.value[1].name
this.street_id = e.value[1].code
this.town = e.value[1].name
uni.setStorageSync('ADRESS_LOCATION',
e.value[1].name + ',' + e.value[1].name + ',' +
e.value[1].code
)
this.$nextTick(() => {
this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code);
})
this.showPicker = false
},
changeHandler(e) {
@ -516,9 +536,11 @@
this.town = res.data.address_reference.town.title
this.street_id = res.data.address_reference.town.id
this.street = res.data.address_component.street
uni.$emit('add', this.street + ',' + this.street_id)
// uni.setStorageSync('ADRESS_LOCATION',
// this.town + ',' + this.street_id)
this.$nextTick(() => {
this.$bus.$emit('value-updated', this.street + ',' + this
.street_id);
})
this.list(this.street_id)
}).catch(err => {
uni.showToast({
@ -541,22 +563,22 @@
}
}
}
</script>
<style lang="scss" scoped>
/deep/.color-lump {
/deep/.color-lump {
display: none;
}
}
page {
background: #F4F7FE;
page {
background: #f4f7fe;
// background: linear-gradient(180deg, #FFFFFF 0%, #F6F6F6 100%);
}
}
.location {
background-color: #F6F6F6;
.location {
background-color: #f6f6f6;
width: 680rpx;
height: 150rpx;
position: absolute;
@ -580,23 +602,20 @@
font-size: 20rpx;
color: #5a5a5a;
}
}
}
.Circle_friends {
.Circle_friends {
position: relative;
padding: 0 0 87.72rpx 0;
}
}
.sitebox {
.sitebox {
animation-name: fadeIn;
animation-duration: 3s;
animation-fill-mode: forwards;
}
}
@keyframes fadeIn {
@keyframes fadeIn {
from {
opacity: 0;
}
@ -604,10 +623,9 @@
to {
opacity: 1;
}
}
}
.site-box {
.site-box {
width: 100%;
/* #ifdef MP || APP-PLUS */
height: 160rpx;
@ -628,7 +646,6 @@
/* #endif */
// background-color: #e5e5e5;
padding-right: 20rpx;
//
@ -649,47 +666,42 @@
font-size: 30rpx;
font-size: 35.09rpx;
}
}
}
.circle_friends_wrapper {
.circle_friends_wrapper {
position: relative;
z-index: 2;
}
}
/deep/.u-tabs__wrapper__nav__line {
/deep/.u-tabs__wrapper__nav__line {
width: 46rpx;
}
}
/deep/.u-tabs__wrapper__nav__item {
/deep/.u-tabs__wrapper__nav__item {
padding: 0 0px;
padding-right: 10rpx;
}
}
.search_wrapper {
.search_wrapper {
width: 694.74rpx;
margin: 0 auto;
}
}
.tabs_wrapper {
.tabs_wrapper {
width: 720rpx;
margin: 0 auto;
margin-bottom: 21.05rpx;
// margin-left: -20rpx;
}
}
.empty_wrapper {
.empty_wrapper {
display: flex;
align-items: center;
justify-content: center;
}
}
.article_box {
.article_box {
height: 100%;
width: 694.74rpx;
margin: 0 auto;
@ -740,9 +752,9 @@
}
}
}
}
}
.tabs_wrapper {
.tabs_wrapper {
width: 723rpx;
margin: 0rpx auto;
margin-bottom: 21.05rpx;
@ -752,17 +764,17 @@
font-weight: bold;
&::before {
content: '';
content: "";
display: inline-block;
width: 3px;
height: 31.58rpx;
background-color: #F84221;
background-color: #f84221;
margin-right: 7.02rpx;
}
}
}
}
.list {
.list {
display: flex;
padding: 12rpx;
justify-content: space-between;
@ -772,14 +784,12 @@
height: 235rpx;
position: relative;
.list-title {
display: flex;
position: absolute;
top: 20rpx;
.list-titlea {
margin-left: 14rpx;
width: 96rpx;
height: 117rpx;
@ -789,7 +799,7 @@
.titlea-con {
position: absolute;
top: 20rpx;
color: #F4F7FE;
color: #f4f7fe;
.titlea {
margin-top: 12rpx;
@ -803,12 +813,11 @@
font-size: 37rpx;
font-family: PingFang SC-Semibold, PingFang SC;
font-weight: 600;
color: #FFFFFF;
color: #ffffff;
margin-left: 20rpx;
}
}
image {
width: 100%;
height: 100%;
@ -816,24 +825,19 @@
}
.list-titleb {
.titlea {
font-size: 37rpx;
font-family: PingFang SC-Semibold, PingFang SC;
font-weight: 600;
color: #FFFFFF;
color: #ffffff;
margin-top: 10rpx;
}
.titleb {
font-size: 33rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF;
color: #ffffff;
}
}
}
@ -841,14 +845,14 @@
.list-title-info {
// width: 98rpx;
height: 30rpx;
background: #FFFFFF;
background: #ffffff;
padding: 2rpx 2rpx;
display: flex;
font-size: 10rpx;
font-size: 18rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #FF6B00;
color: #ff6b00;
border-radius: 19rpx 19rpx 19rpx 19rpx;
position: absolute;
bottom: 14rpx;
@ -873,9 +877,9 @@
height: 100%;
}
}
}
}
.list-con {
.list-con {
display: flex;
justify-content: space-between;
margin-top: -10rpx;
@ -886,7 +890,6 @@
height: 482rpx;
position: relative;
.list-con-title {
position: absolute;
top: 0;
@ -897,9 +900,8 @@
font-size: 37rpx;
font-family: PingFang SC-Semibold, PingFang SC;
font-weight: 600;
color: #FFFFFF;
color: #ffffff;
margin-top: 10rpx;
}
.con-titleb {
@ -907,7 +909,7 @@
font-size: 33rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF;
color: #ffffff;
}
}
@ -925,7 +927,6 @@
height: 235rpx;
position: relative;
.list-con-title {
position: absolute;
top: 0;
@ -936,9 +937,8 @@
font-size: 37rpx;
font-family: PingFang SC-Semibold, PingFang SC;
font-weight: 600;
color: #FFFFFF;
color: #ffffff;
margin-top: 10rpx;
}
.con-titleb {
@ -946,7 +946,7 @@
font-size: 33rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF;
color: #ffffff;
}
}
@ -956,9 +956,9 @@
}
}
}
}
}
.list-bon {
.list-bon {
width: 724rpx;
height: 128rpx;
margin: 0 auto;
@ -968,10 +968,10 @@
width: 100%;
height: 100%;
}
}
}
.goodslist {
.goodslist {
margin: 0 auto;
width: 725rpx;
}
}
</style>

View File

@ -55,11 +55,21 @@
立即导入</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'
@click="importshop(item.order_id,item.orderProduct[indexs].product_id,item.orderProduct[indexs].product_sku)">
立即导入</view>
</view> -->
</view>
</block>
</view>