This commit is contained in:
weipengfei 2023-09-05 16:52:40 +08:00
commit 9c2bd07e8a
27 changed files with 5469 additions and 3329 deletions

16
App.vue
View File

@ -77,7 +77,6 @@
this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'; this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
this.globalData.uid = this.$store.state.app.uid; this.globalData.uid = this.$store.state.app.uid;
// #ifdef APP-PLUS
//uni //uni
mp.onUniMPEventReceive(ret => { mp.onUniMPEventReceive(ret => {
console.log('小程序事件: ', ret); console.log('小程序事件: ', ret);
@ -87,7 +86,6 @@
}); });
} }
}); });
// #endif
let that = this; let that = this;
// #ifdef MP // #ifdef MP
@ -231,6 +229,20 @@
}, 1500) }, 1500)
// #endif // #endif
}, },
mounted() {
uni.onTabBarMidButtonTap((e) => {
// console.log("", e);
uni.switchTab({
url: '/pages/plant_release/index'
})
// uni.navigateTo({
// url: '/pages/plant_release/index'
// })
});
uni.setTabBarItem((e) => { console.log("点击了", e)});
},
methods: { methods: {
/** /**
* 语音播报 * 语音播报

View File

@ -278,6 +278,22 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, {
"path": "food/index",
"style": {
"navigationBarTitleText": "当地美食",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "tourism/index",
"style": {
"navigationBarTitleText": "特色文旅",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
} }
] ]
}, },
@ -1497,6 +1513,7 @@
"selectedColor": "#E93323", "selectedColor": "#E93323",
"borderStyle": "white", "borderStyle": "white",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"fontSize": "25rpx",
"list": [{ "list": [{
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"iconPath": "static/tabbar_icon/a.png", "iconPath": "static/tabbar_icon/a.png",
@ -1513,10 +1530,12 @@
"pagePath": "pages/plant_release/index", "pagePath": "pages/plant_release/index",
"iconPath": "static/tabbar_icon/d.png", "iconPath": "static/tabbar_icon/d.png",
"selectedIconPath": "static/tabbar_icon/d-a.png", "selectedIconPath": "static/tabbar_icon/d-a.png",
"text": "发布" "text": "发布",
"visible":false
}, },
{ {
"pagePath": "pages/supply_chains/supply_chains", "pagePath": "pages/supply_chains/supply_chains",
"iconPath": "static/tabbar_icon/c.png", "iconPath": "static/tabbar_icon/c.png",
"selectedIconPath": "static/tabbar_icon/c-a.png", "selectedIconPath": "static/tabbar_icon/c-a.png",
"text": "供应" "text": "供应"
@ -1529,7 +1548,7 @@
} }
], ],
"midButton": { "midButton": {
"width": "138rpx", "width": "78rpx",
"height": "126rpx", "height": "126rpx",
"iconWidth": "78rpx", "iconWidth": "78rpx",
"pagePath": "pages/plant_release/index", "pagePath": "pages/plant_release/index",

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,7 @@
:show="jurisdiction" :show="jurisdiction"
mode="permission" mode="permission"
:text="emptyText" :text="emptyText"
icon="/static/empty/permission.png" icon="http://cdn.uviewui.com/uview/empty/permission.png"
></u-empty> ></u-empty>
<view class="business com special_work" v-if="jurisdiction == false"> <view class="business com special_work" v-if="jurisdiction == false">
<view class="title project"> <view class="title project">
@ -101,9 +101,12 @@
</view> </view>
</view> </view>
<!-- <view class="" v-if="jurisdiction == false && isShow == false"> <view class="" v-if="jurisdiction == false && isShow == false">
<emptyPage title="暂无信息"></emptyPage> <emptyPage title="暂无信息"></emptyPage>
</view> --> </view>
<u-picker :defaultIndex="[0,0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
</view> </view>
</template> </template>
@ -139,9 +142,7 @@ import {
import { import {
getDiy getDiy
} from '@/api/api.js'; } from '@/api/api.js';
// #ifdef APP-PLUS
import uniMP from '@/utils/uniMP.js'; import uniMP from '@/utils/uniMP.js';
// #endif
export default { export default {
components: { components: {
@ -337,7 +338,7 @@ export default {
uni.setStorageSync('gatherNowMenuList', JSON.stringify(this.nowMenuList)); uni.setStorageSync('gatherNowMenuList', JSON.stringify(this.nowMenuList));
}, },
getUniMp (appid) { getUniMp (appid) {
console.log('点击小程序'); console.log('点击供销平台');
// #ifdef APP-PLUS // #ifdef APP-PLUS
uniMP.loadMP(appid); uniMP.loadMP(appid);
return; return;

View File

@ -2,15 +2,29 @@
<view class="Circle_friends"> <view class="Circle_friends">
<view class="circle_friends_wrapper"> <view class="circle_friends_wrapper">
<view v-if="isFshow"> <view v-if="isFshow">
<view class="site-box flex_a_c_j_sb" :style="{'background-color':backColor}"> <view
class="site-box flex_a_c_j_sb"
<view :class="['place_wrapper','flex_a_c',isFshow?'sitebox':'']" @click="selectLocation"> :style="{ 'background-color': backColor }"
<view :class="['iconfont','icon-weizhi',isFshow?'sitebox':'']" style="color:#000;margin-left: 20rpx;"> >
<view
:class="['place_wrapper', 'flex_a_c', isFshow ? 'sitebox' : '']"
@click="selectLocation"
>
<view
:class="['iconfont', 'icon-weizhi', isFshow ? 'sitebox' : '']"
style="color: #000; margin-left: 20rpx"
>
</view> </view>
<view class="town_name" style="color:#000;">{{street}}</view> <view class="town_name" style="color: #000">{{ street }}</view>
</view> </view>
<navigator url="/pages/chat/customer_list/index?type=0" hover-class="none"> <navigator
<view :class="['iconfont','icon-xiaoxi',isFshow?'sitebox':'']" style="color:#000;"></view> url="/pages/chat/customer_list/index?type=0"
hover-class="none"
>
<view
:class="['iconfont', 'icon-xiaoxi', isFshow ? 'sitebox' : '']"
style="color: #000"
></view>
</navigator> </navigator>
</view> </view>
<!-- <view class="site-box ','flex_a_c_j_sb'" v-if="ishshow"> <!-- <view class="site-box ','flex_a_c_j_sb'" v-if="ishshow">
@ -18,33 +32,52 @@
<img :src="bgColor" alt=""> <img :src="bgColor" alt="">
</view> </view>
</view> --> </view> -->
</view> </view>
<zbpSwiper
<zbpSwiper ref='list' :isSelectPlace="true" :town='street' :show='show' :location_Arr="locationArr" @kkchange='kkchange' ref="list"
@change='dchange'> :isSelectPlace="true"
:town="street"
:show="show"
:location_Arr="locationArr"
@kkchange="kkchange"
@change="dchange"
>
</zbpSwiper> </zbpSwiper>
<view class="tabs_wrapper"> <view class="tabs_wrapper">
<u-tabs :list="tabsData.list" @click="tabsChange" lineColor="#F84221" keyName="cate_name" <u-tabs
:activeStyle="activeStyle" itemStyle="padding-left: 0px; height: 33px;"></u-tabs> :list="tabsData.list"
</view> @click="tabsChange"
<view class=""> lineColor="#F84221"
keyName="cate_name"
:activeStyle="activeStyle"
itemStyle="padding-left: 0px; height: 33px;"
></u-tabs>
</view> </view>
<view class=""> </view>
<view class="goodslist"> <view class="goodslist">
<WaterfallsFlow :wfList='cateGoods' /> <WaterfallsFlow :wfList="cateGoods" />
</view> </view>
<view class="empty_wrapper" v-if="emptyShow"> <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>
</view> </view>
<u-picker :defaultIndex="[0,0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm" <u-picker
@cancel="showPicker = false" @change="changeHandler" keyName="name"></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-loadmore :status="status" v-if="cateGoods.length >= where.limit" />
<!-- <view class="bg_color"></view> --> <!-- <view class="bg_color"></view> -->
@ -55,13 +88,9 @@
</view> </view>
</template> </template>
</m-tabbar> --> </m-tabbar> -->
<view class="location" v-if='isshow'> <view class="location" v-if="isshow">
<view class="locationa"> <view class="locationa"> 位置权限使用说明 </view>
位置权限使用说明 <view class="locationb"> 用于向你推荐最近门店 </view>
</view>
<view class="locationb">
用于向你推荐最近门店
</view>
</view> </view>
</view> </view>
</template> </template>
@ -159,11 +188,18 @@
}, },
onLoad () { onLoad () {
this.getCateList() this.getCateList()
this.getArticle() // this.getArticle()
this.getGoods() this.getGoods()
this.Area() this.Area()
//this.setPermissions() //this.setPermissions()
// this.openTongZhi() // this.openTongZhi()
uni.$on('connectstatusChange', (connectstatus) => { uni.$on('connectstatusChange', (connectstatus) => {
var connectstr = '' var connectstr = ''
@ -177,7 +213,15 @@
}) })
}, },
onTabItemTap (e) {
if (e.text.length >= 4) {
uni.pageScrollTo({
selector: ".Circle_friends",
scrollTop: 0
})
}
},
onReachBottom () { onReachBottom () {
if (this.status == 'nomore') return; if (this.status == 'nomore') return;
this.status = 'loading'; this.status = 'loading';
@ -208,6 +252,12 @@
this.backColor = 'rgba(252, 252, 252, 0.0)' this.backColor = 'rgba(252, 252, 252, 0.0)'
this.isFshow = false this.isFshow = false
this.show = true this.show = true
uni.setTabBarItem({
index: 0,
text: "泸州",
iconPath: '/static/tabbar_icon/a.png',
selectedIconPath: '/static/tabbar_icon/a-a.png'
});
} else if (20 < scrollTop && scrollTop <= 100) { } else if (20 < scrollTop && scrollTop <= 100) {
this.backColor = 'rgba(255, 255, 255, 0.5)' this.backColor = 'rgba(255, 255, 255, 0.5)'
this.isFshow = true this.isFshow = true
@ -216,12 +266,21 @@
this.backColor = 'rgba(252, 252, 252, 1.0)' this.backColor = 'rgba(252, 252, 252, 1.0)'
this.isFshow = true this.isFshow = true
this.show = false this.show = false
uni.setTabBarItem({
index: 0,
text: '返回顶部',
iconPath: '/static/tabbar_icon/top.png',
selectedIconPath: '/static/tabbar_icon/top.png'
});
} }
}, },
// #endif // #endif
beforeDestroy () {
//
this.$bus.$off('value-updated')
},
methods: { methods: {
scrolling () { scrolling () {
@ -250,6 +309,12 @@
if (scrollTop <= 20) { if (scrollTop <= 20) {
this.backColor = 'rgba(252, 252, 252, 0.0)' this.backColor = 'rgba(252, 252, 252, 0.0)'
this.isFshow = false this.isFshow = false
uni.setTabBarItem({
index: 0,
text: "泸州",
iconPath: '/static/tabbar_icon/a.png',
selectedIconPath: '/static/tabbar_icon/a-a.png'
});
} else if (20 < scrollTop && scrollTop <= 100) { } else if (20 < scrollTop && scrollTop <= 100) {
this.backColor = 'rgba(255, 255, 255, 0.5)' this.backColor = 'rgba(255, 255, 255, 0.5)'
this.isFshow = true this.isFshow = true
@ -257,7 +322,12 @@
this.backColor = 'rgba(252, 252, 252, 1.0)' this.backColor = 'rgba(252, 252, 252, 1.0)'
this.isFshow = true this.isFshow = true
uni.setTabBarItem({
index: 0,
text: '返回顶部',
iconPath: '/static/tabbar_icon/top.png',
selectedIconPath: '/static/tabbar_icon/top.png'
});
} }
@ -468,7 +538,8 @@
this.street = res.data.address_component.street this.street = res.data.address_component.street
this.$nextTick(() => { this.$nextTick(() => {
this.$bus.$emit('value-updated',this.street + ',' +street_id); this.$bus.$emit('value-updated', this.street + ',' +
street_id);
}) })
}).catch(err => { }).catch(err => {
@ -580,13 +651,13 @@
<style lang="scss" scoped> <style lang="scss" scoped>
page { page {
background-color: #F4F7FE; background-color: #f4f7fe;
// background: linear-gradient(180deg, #FFFFFF 0%, #F6F6F6 100%); // background: linear-gradient(180deg, #FFFFFF 0%, #F6F6F6 100%);
} }
.location { .location {
background-color: #F6F6F6; background-color: #f6f6f6;
width: 680rpx; width: 680rpx;
height: 150rpx; height: 150rpx;
position: absolute; position: absolute;
@ -616,11 +687,9 @@
position: relative; position: relative;
padding: 0 0 87.72rpx 0; padding: 0 0 87.72rpx 0;
background: linear-gradient(180deg, #FFFFFF 0%, #F6F6F6 100%); background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
} }
// .bg-img { // .bg-img {
// position: absolute; // position: absolute;
// width: 100%; // width: 100%;
@ -637,7 +706,6 @@
// filter: blur(0); // filter: blur(0);
// overflow: hidden; // overflow: hidden;
// img { // img {
// width: 100%; // width: 100%;
// height: 100%; // height: 100%;
@ -646,7 +714,6 @@
// } // }
// } // }
.sitebox { .sitebox {
animation-name: fadeIn; animation-name: fadeIn;
animation-duration: 3s; animation-duration: 3s;
@ -663,7 +730,6 @@
} }
} }
.site-box { .site-box {
width: 100%; width: 100%;
/* #ifdef MP || APP-PLUS */ /* #ifdef MP || APP-PLUS */
@ -707,8 +773,6 @@
} }
} }
.circle_friends_wrapper { .circle_friends_wrapper {
position: relative; position: relative;
@ -717,8 +781,7 @@
/deep/.u-tabs__wrapper__nav__line { /deep/.u-tabs__wrapper__nav__line {
width: 46rpx; width: 46rpx;
margin-left: -2rpx;
} }
/deep/.u-tabs__wrapper__nav__item { /deep/.u-tabs__wrapper__nav__item {
@ -736,7 +799,6 @@
margin: 0 auto; margin: 0 auto;
margin-bottom: 21.05rpx; margin-bottom: 21.05rpx;
// margin-left: -20rpx; // margin-left: -20rpx;
} }
.empty_wrapper { .empty_wrapper {
@ -808,11 +870,11 @@
font-weight: bold; font-weight: bold;
&::before { &::before {
content: ''; content: "";
display: inline-block; display: inline-block;
width: 3px; width: 3px;
height: 31.58rpx; height: 31.58rpx;
background-color: #F84221; background-color: #f84221;
margin-right: 7.02rpx; margin-right: 7.02rpx;
} }
} }
@ -921,7 +983,7 @@
align-items: center; align-items: center;
.isshow { .isshow {
color: #FE3530 !important; color: #fe3530 !important;
} }
.iconfont { .iconfont {
@ -929,7 +991,7 @@
} }
.icon-shoucang1 { .icon-shoucang1 {
color: #F84221; color: #f84221;
} }
.collect { .collect {
@ -941,11 +1003,9 @@
} }
} }
.goods_items { .goods_items {
width: 356rpx; width: 356rpx;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
background-color: #fff; background-color: #fff;
@ -1026,7 +1086,7 @@
align-items: center; align-items: center;
.isshow { .isshow {
color: #FE3530 !important; color: #fe3530 !important;
} }
.iconfont { .iconfont {
@ -1034,7 +1094,7 @@
} }
.icon-shoucang1 { .icon-shoucang1 {
color: #F84221; color: #f84221;
} }
.collect { .collect {
@ -1045,6 +1105,5 @@
} }
} }
} }
} }
</style> </style>

1308
pages/nongKe/food/index.vue Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,324 @@
<template>
<view class="box">
<view class="head">
<view style="height: var(--status-bar-height);"></view>
<!-- <u--image style="position: absolute;" :showLoading="true" src="/static/images/MYTC/BG.png" width="750rpx"
height="748.25rpx" @click="click"></u--image> -->
<view class="head_tit">
<view class="head_tit_l">
<view class="iconfont icon-xiangzuo"></view>
<view
style="font-size: 40rpx;font-weight: 700;margin-left: 30rpx; transform: skewX(-10deg);color:white;">
名优特产
</view>
</view>
<view class="head_tit_r" style="font-size: 29.79rpx;">
江阳区 <text style="margin-left: 10rpx;" class="iconfont icon-xiangxia"></text>
<view class="" style="font-size: 22.78rpx;">
晴天30
</view>
</view>
</view>
<view class="head_serch">
<view style="position: relative;">
<!-- <u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="搜索店铺名称"
v-model="keyword" class="serch_cls"></u-search> -->
<!-- <u--image class="img_cls" style="position: absolute; top: 3px;right: 3px;" :showLoading="true"
src="/static/images/MYTC/SS.png" width="115.65rpx" height="56.82rpx"></u--image> -->
</view>
</view>
<view class="head_content">
<view style="font-size: 40rpx;font-weight: 700;color:white; margin-bottom: 10rpx;">
精选特产
</view>
<view class="head_content_card">
<u-scroll-list>
<view v-for="(item, index) in list" :key="index" class="goods_card">
<u--image :showLoading="true" src="https://cdn.uviewui.com/uview/album/1.jpg"
width="210.28rpx" height="210.28rpx"></u--image>
<view class="goods_tit">
笑口常开地方就是的开发建设的开发建设的,v空间和客户可怜见立刻就
</view>
<view class="goods_price">
10.00
</view>
<!-- <image :src="item.thumb"></image> -->
</view>
</u-scroll-list>
</view>
</view>
</view>
<view class="store" style="background-color: white;">
<view class="goods_list">
<view class="goods_cards" @click="goStore(item.mer_id)" v-for="(item,index) in storeList" :key="index">
<view class="left">
<u--image :showLoading="true" :src="item.mer_avatar" width="157.71rpx"
height="157.71rpx"></u--image>
</view>
<view class="right">
<view class="li heads" style="display: flex;">
<text class="flag">特产</text>
<text class="com_name">{{item.mer_name}}</text>
<text
style="font-weight: normal; font-size: 10rpx;color: #737373;padding:0 10rpx; border-radius: 10rpx; border: 1px solid #737373;">{{item.type_name}}</text>
</view>
<view class="li">
<u--image v-for="item,index in [1,1,,1,1,1]" :key="index" :showLoading="true"
src="/static/images/GXSC/PF.png" width="20.85rpx" height="19.85rpx"></u--image>
<text style="margin-left: 10rpx;color: #FF6D20; ">5.0</text>
<text>月销2000+</text>
<text>20分钟</text>
<text>1.1km</text>
</view>
<view class="li" style="align-items: center;">
<u--image :showLoading="true" src="/static/images/GXSC/DH.png" width="33.85rpx"
height="33.85rpx"></u--image>
<text> {{item.service_phone}}</text>
</view>
<view class="li" style="align-items: center;">
<u--image :showLoading="true" src="/static/images/GXSC/SJ.png" width="33.85rpx"
height="33.85rpx"></u--image>
<text>{{item.mer_take_time[0]}}-{{item.mer_take_time[1]}}</text>
</view>
<view class="li" style="align-items: center;">
<u--image :showLoading="true" src="/static/images/GXSC/DW.png" width="33.85rpx"
height="33.85rpx"></u--image>
<text class="address">{{item.mer_address}}</text>
</view>
<view class="">
<u-scroll-list>
<view v-for="(item, index) in list" :key="index" style="margin-right: 20rpx;">
<u--image :showLoading="true" src="https://cdn.uviewui.com/uview/album/1.jpg"
width="164.72rpx" height="164.72rpx"></u--image>
<view class="goods_tit_a">
笑口常开地方就是的开发建设的开发建设的,v空间和客户可怜见立刻就
</view>
<view style="color: red;">
$10.00
</view>
<!-- <image :src="item.thumb"></image> -->
</view>
<!-- <view v-for="(item, index) in list" :key="index">
<image :src="item.thumb"></image>
</view> -->
</u-scroll-list>
</view>
<!-- <view class="">
<u-scroll-list>
<view v-for="(item, index) in list" :key="index" class="goods_card_a">
<u--image :showLoading="true" src="https://cdn.uviewui.com/uview/album/1.jpg"
width="164.72rpx" height="164.72rpx" @click="click"></u--image>
<view class="goods_tit_a">
笑口常开地方就是的开发建设的开发建设的,v空间和客户可怜见立刻就
</view>
<view class="goods_price">
$10.00
</view>
</view>
</u-scroll-list>
</view>
-->
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import {
storeMerchantList,
} from '@/api/store.js';
export default {
data() {
return {
keyword: "",
list: [1, 1, 1, 11, 1, 11, 11],
storeList: [1, 1, 1, 1, 1, 1, 1, 1, 1]
}
},
onLaunch() {
console.log(46545)
// storeMerchantList().then(res => {
// // this.count = res.data.count
// // this.storeList = this.storeList.concat(res.data.list)
// // this.loading = false
// // this.loadingIcon = false
// console.log(res)
// })
},
onShow() {
// console.log(46545)
storeMerchantList().then(res => {
// this.count = res.data.count
this.storeList = res.data.list
// this.loading = false
// this.loadingIcon = false
// console.log(res)
})
},
methods: {},
onPullDownRefresh() {
uni.stopPullDownRefresh()
}
}
</script>
<style lang="scss" scoped>
.head {
// background-color: #F94621;
background: url('/static/images/MYTC/BG.png') no-repeat;
padding: 20rpx;
border-radius: 0rpx 0rpx 31.54rpx 31.54rpx;
.head_tit {
display: flex;
justify-content: space-between;
color: white;
// margin-bottom: 20rpx;
.head_tit_l {
display: flex;
align-items: center;
}
.head_tit_r {
// display: flex;
// align-items: center;
}
}
.head_serch {
margin: 20rpx 0;
}
.head_content {
.head_content_card {
background: linear-gradient(to bottom, #FCB9AD, #FFFBF9, #FFFFFF);
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
overflow: hidden;
padding: 20rpx 10rpx;
.goods_card {
margin-right: 20rpx;
}
.goods_tit {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.goods_price {
color: #F84221;
font-size: 29.79rpx;
}
}
}
}
.store {
.goods_list {
margin-top: 20rpx;
.goods_cards {
margin-top: 20rpx;
height: auto;
background-color: white;
padding: 20rpx;
border-radius: 20rpx;
display: flex;
// align-items: center;
.left {
margin-right: 20rpx;
width: 158rpx;
height: 158rpx;
// background-color: red;
border-radius: 20rpx;
overflow: hidden;
}
.right {
// box-sizing: border-box;
width: 75vw;
overflow: hidden;
// background-color: red;
.heads {
font-weight: bold;
.flag {
background: linear-gradient(to bottom, #F84221, #FF6D20);
width: 66.59rpx;
height: 36.8rpx;
text-align: center;
font-size: 22.78rpx;
color: white;
border-radius: 10.51rpx 10.51rpx 10.51rpx 10.51rpx;
}
}
.goods_card_a {
margin-right: 20rpx;
}
.goods_price_a {
color: #F84221;
}
.goods_tit_a {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.li {
display: flex;
font-size: 26.29rpx;
margin-bottom: 10rpx;
align-items: center;
color: #737373;
text {
margin: 0 10rpx 0;
}
}
}
}
}
.address {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 200px;
}
}
</style>

View File

@ -7,22 +7,26 @@
<view style="height: 10px;"> <view style="height: 10px;">
</view> </view>
<view style="display: flex;justify-content: space-around; align-items: center;">
<view class="back" @click='backjJump()'>
<view class="head_tit">
<view class="" style="display: flex;align-items: center;">
<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;transform: skewX(-10deg);">
供销综合云市场 供销综合云市场
</view> </view>
</view>
<view style="position: relative;width: 289.14rpx;"> <view style="position: relative;width: 289.14rpx;">
<!-- <text class='iconfont icon-sousuo'></text> <!-- <text class='iconfont icon-sousuo'></text>
<input placeholder='搜索店铺名称' placeholder-class='placeholder' confirm-type='search' name="search" <input placeholder='搜索店铺名称' placeholder-class='placeholder' confirm-type='search' name="search"
:value='sotreParam.keyword' @confirm="searchSubmit"></input> --> :value='sotreParam.keyword' @confirm="searchSubmit"></input> -->
<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" style="position: absolute; top: 3px;right: 3px;" <u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
:showLoading="true" src="/static/images/GXSC/SS.png" width="115.65rpx" src="/static/images/GXSC/SS.png" width="115.65rpx" height="56.82rpx"></u--image>
height="56.82rpx"></u--image>
</view> </view>
<view class='iconfont search-right' <view class='iconfont search-right'
@click="goMap(`/pages/nongKe/supply_chain/maps?street_id=${street_id}`)"> @click="goMap(`/pages/nongKe/supply_chain/maps?street_id=${street_id}`)">
@ -30,6 +34,9 @@
height="50.82rpx"></u--image> height="50.82rpx"></u--image>
</view> </view>
</view> </view>
</view> </view>
<view class="content"> <view class="content">
<view style="background-color: red;height: 10px"> <view style="background-color: red;height: 10px">
@ -771,6 +778,14 @@
/* 可根据实际情况调整容器宽度 */ /* 可根据实际情况调整容器宽度 */
} }
.head_tit {
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding: 0 20rpx;
}
.productList { .productList {
// padding-top: 50rpx; // padding-top: 50rpx;
// padding: 0 20rpx 0; // padding: 0 20rpx 0;
@ -1350,6 +1365,14 @@
margin: 30px auto; margin: 30px auto;
} }
.img_cls {
position: absolute;
top: 50%;
right: 7rpx;
transform: translateY(-50%);
}
.pop { .pop {
z-index: 1; z-index: 1;
} }

View File

@ -6,22 +6,26 @@
<view class="top"> <view class="top">
<view style="height: 10px;"> <view style="height: 10px;">
</view> </view>
<view style="display: flex;justify-content: space-around; align-items: center;"> <view class="head_tit">
<view class="back" @click='backjJump()'> <view class="" style="display: flex;align-items: center;">
<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 style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);"> <view class="" style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);">
{{titName}} {{titName}}
</view> </view>
</view>
<view class="">
</view>
<view style="position: relative;"> <view style="position: relative;">
<!-- <text class='iconfont icon-sousuo'></text> <!-- <text class='iconfont icon-sousuo'></text>
<input placeholder='搜索店铺名称' placeholder-class='placeholder' confirm-type='search' name="search" <input placeholder='搜索店铺名称' placeholder-class='placeholder' confirm-type='search' name="search"
:value='sotreParam.keyword' @confirm="searchSubmit"></input> --> :value='sotreParam.keyword' @confirm="searchSubmit"></input> -->
<u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="搜索店铺名称" <u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="搜索店铺名称"
v-model="sotreParam.keyword" class="serch_cls"></u-search> v-model="sotreParam.keyword" class="serch_cls"></u-search>
<u--image @tap="searchSubmit" class="img_cls" style="position: absolute; top: 3px;right: 3px;" <u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
:showLoading="true" src="/static/images/GXSC/SS.png" width="115.65rpx" src="/static/images/GXSC/SS.png" width="115.65rpx" height="56.82rpx"></u--image>
height="56.82rpx"></u--image>
</view> </view>
</view> </view>
@ -374,6 +378,7 @@
if (options.street_id != undefined) { if (options.street_id != undefined) {
this.sotreParam.street_id = options.street_id this.sotreParam.street_id = options.street_id
} }
this.credit_buy = options.credit_buy this.credit_buy = options.credit_buy
this.sotreParam.type_id = options.type_id this.sotreParam.type_id = options.type_id
this.sotreParam.type_id = options.type_id && options.type_id.split(',').toString() || '' this.sotreParam.type_id = options.type_id && options.type_id.split(',').toString() || ''
@ -391,7 +396,14 @@
let index = this.menuList.findIndex((item) => { let index = this.menuList.findIndex((item) => {
return item.merchant_category_id == options.merchant_category_id; return item.merchant_category_id == options.merchant_category_id;
}); });
if (options.tit) {
this.titName = "先货后款"
return
}
this.titName = this.menuList[index].category_name this.titName = this.menuList[index].category_name
// console.log(this.menuList) // console.log(this.menuList)
}) })
// console.log(this.menuList) // console.log(this.menuList)
@ -1034,6 +1046,14 @@
margin-left: 10rpx; margin-left: 10rpx;
} }
.head_tit {
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding: 0 20rpx;
}
.store-wrapper { .store-wrapper {
margin-top: 235rpx; margin-top: 235rpx;
border-top: 1px solid #F6F6F6; border-top: 1px solid #F6F6F6;
@ -1307,13 +1327,11 @@
} }
} }
.guanbi { .img_cls {
width: 20px; position: absolute;
height: 20px; top: 50%;
margin: 30px auto; right: 7rpx;
} transform: translateY(-50%);
.pop {
z-index: 1;
} }
</style> </style>

File diff suppressed because it is too large Load Diff

View File

@ -320,7 +320,7 @@
<view class="sys-head" :style="{height:statusBarHeight}"></view> <view class="sys-head" :style="{height:statusBarHeight}"></view>
<view class="tool-bar" @click='goBack()'> <view class="tool-bar" @click='goBack()'>
<image class="icon-xiangzuo" src="../static/img/index/icon-back.png"></image> <image class="icon-xiangzuo" src="@/static/image/icon-back.png"></image>
</view> </view>
</view> </view>
</view> </view>
@ -704,7 +704,12 @@
// }); // });
// })' // })'
// that.isUser ? // that.isUser ?
videoList().then(res=>{ videoList({
page: that.page,
limit: that.limit,
id:this.videoID
}).then(res=>{
that.getVideoData(res.data.list); that.getVideoData(res.data.list);
}) })
@ -1325,7 +1330,7 @@
.userInfo { .userInfo {
position: absolute; position: absolute;
bottom: 120px; bottom: 400rpx;
right: 10px; right: 10px;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -15,10 +15,14 @@
<!-- 头部导航 --> <!-- 头部导航 -->
<!-- <view v-if="!isUser" class="header" :style="{backgroundColor:'#Fff'}">
<view class="header"> <view class="header">
<view class="tool-bar"> <view class="tool-bar">
<view class='xiangzuo' @tap='goBack'>
<image src="@/static/images/icon-back.png" mode="aspectFit"></image>
</view>
</view>
<!-- <view class="tool-bar">
<view class='iconfont icon-xiangzuo' @tap='goBack'></view> <view class='iconfont icon-xiangzuo' @tap='goBack'></view>
</view> </view>
<view class="items" @click.stop="navTap(2)"> <view class="items" @click.stop="navTap(2)">
@ -32,11 +36,12 @@
</view> </view>
<view class="items" @click.stop="navTap(4)"> <view class="items" @click.stop="navTap(4)">
<text class="tName" :class="currentNav==4?'on':''">社区</text> <text class="tName" :class="currentNav==4?'on':''">社区</text>
</view>
</view> --> </view> -->
<swiper v-show="currentNav !== 3&&currentNav != 4" :style="'width: '+ windowWidth +'px; height: '+ windowHeight +'px;'"
:vertical="true" @animationfinish="animationfinish" @change="change" :current="k" :indicator-dots="false"> </view>
<swiper v-show="currentNav !== 3&&currentNav != 4"
:style="'width: '+ windowWidth +'px; height: '+ windowHeight +'px;'" :vertical="true"
@animationfinish="animationfinish" @change="change" :current="k" :indicator-dots="false">
<swiper-item v-for="(list,index) in dataList"> <swiper-item v-for="(list,index) in dataList">
<view v-if="max > index"> <view v-if="max > index">
@ -425,6 +430,7 @@
communityId: '', communityId: '',
Listcount: '', Listcount: '',
loadMore: true, loadMore: true,
videoshow: true
} }
}, },
watch: { watch: {
@ -742,9 +748,11 @@
} }
}, },
get() { get() {
let that = this let that = this
// 1.这里引入后端请求数据 // 1.这里引入后端请求数据
if(this.videoID){ if (that.videoshow) {
deoList(this.videoID).then(res => { deoList(this.videoID).then(res => {
that.videoData([res.data]) that.videoData([res.data])
if (res.data.list.length < that.limit) { if (res.data.list.length < that.limit) {
@ -757,10 +765,29 @@
duration: 2000 duration: 2000
}); });
}) })
this.videoID='' this.videoshow = false
} else { } else {
videoList().then(res=>{ // videoList().then(res=>{
that.videoData(res.data.list); // that.videoData(res.data.list);
// })
// console.log(that.userUid,that.videoID)
videoList({
page: that.page,
limit: that.limit,
id: this.videoID
// is_star: that.isSatrt,
// community_id: that.videoID
}).then(res => {
that.videoData(res.data.list)
if (res.data.list.length < that.limit) {
this.loadMore = false;
}
}).catch(err => {
return uni.showToast({
title: err,
icon: 'none',
duration: 2000
});
}) })
} }
@ -781,7 +808,8 @@
// icon: 'none', // icon: 'none',
// duration: 2000 // duration: 2000
// }); // });
// }) : // })
//:
// graphicLstApi({ // graphicLstApi({
// page: that.page, // page: that.page,
// limit: that.limit, // limit: that.limit,
@ -1307,12 +1335,16 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
.icon-xiangzuo { .xiangzuo {
width: 23rpx;
height: 42rpx;
margin-right: 40rpx; margin-right: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
font-size: 30rpx;
color: #333; image {
margin-top: 60rpx; width: 100%;
height: 100%;
}
} }
} }
@ -1413,7 +1445,7 @@
.userInfo { .userInfo {
position: absolute; position: absolute;
bottom: 60rpx; bottom: 420rpx;
right: 20rpx; right: 20rpx;
flex-direction: column; flex-direction: column;
text-align: center; text-align: center;

View File

@ -74,7 +74,8 @@
</view> </view>
<view class="list-con"> <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?type_code=TypeFamousSpecialties')">
<!-- <view class="list-con-title"> <!-- <view class="list-con-title">
<view class="con-titlea"> <view class="con-titlea">
名优特产 名优特产
@ -86,7 +87,8 @@
<image src="@/static/images/f5.png" mode="aspectFit"></image> <image src="@/static/images/f5.png" mode="aspectFit"></image>
</view> </view>
<view class="list-con-right"> <view class="list-con-right">
<view class="con-right" style="margin-bottom: 20rpx" @click="navaction(1)"> <view class="con-right" style="margin-bottom: 20rpx"
@tap="navgo('/pages/nongKe/food/index?type_code=TypeLocalCuisine')">
<!-- <view class="list-con-title"> <!-- <view class="list-con-title">
<view class="con-titlea"> <view class="con-titlea">
当地美食 当地美食
@ -97,7 +99,7 @@
</view> --> </view> -->
<image src="@/static/images/f7.png" mode="aspectFit"></image> <image src="@/static/images/f7.png" mode="aspectFit"></image>
</view> </view>
<view class="con-right" @click="navaction(2)"> <view class="con-right" @tap="navgo('/pages/nongKe/tourism/index?type_code=TypeFeaturedCultural')">
<!-- <view class="list-con-title"> <!-- <view class="list-con-title">
<view class="con-titlea"> <view class="con-titlea">
特色文旅 特色文旅

View File

@ -1301,6 +1301,7 @@
}); });
}, },
fail: (e) => { fail: (e) => {
console.log(e,'111111111')
// //
let url = '/pages/order_pay_status/index?order_id=' + orderId + let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=取消支付' + '&product_type=' + that.product_type; '&msg=取消支付' + '&product_type=' + that.product_type;
@ -1311,16 +1312,17 @@
url: url url: url
}); });
}, },
complete: () => { complete: (res) => {
uni.hideLoading();
// //
let url = '/pages/order_pay_status/index?order_id=' + orderId + // let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=取消支付' + '&product_type=' + that.product_type; // '&msg=' + '&product_type=' + that.product_type;
return that.$util.Tips({ // return that.$util.Tips({
title: '取消支付', // title: '',
}, { // }, {
tab: 4, // tab: 4,
url: url // url: url
}); // });
}, },
}); });
// #endif // #endif
@ -1414,17 +1416,17 @@
}, },
complete: () => { complete: () => {
uni.hideLoading(); uni.hideLoading();
// // //
let pages = '/pages/order_pay_status/index?order_id=' + // let pages = '/pages/order_pay_status/index?order_id=' +
orderId + '&msg=取消支付' + '&product_type=' + that // orderId + '&msg=' + '&product_type=' + that
.product_type // .product_type
return that.$util.Tips({ // return that.$util.Tips({
title: '取消支付' // title: ''
}, { // }, {
tab: 5, // tab: 5,
url: pages // url: pages
}); // });
}, },
}); });
break; break;

View File

@ -1,6 +1,7 @@
<template> <template>
<view class="conent"> <view class="conent">
<view class="con_kuo" @click="navigator(`/pages/nongKe/supply_chain/supplier?type_id=12&isDetail=1&product_type=98&cate_id=${id}`)"> <view class="con_kuo"
@click="navigator(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${id}`)">
<image class="con_img" src="@/static/images/bg1.png" mode=""></image> <image class="con_img" src="@/static/images/bg1.png" mode=""></image>
<image class="con_ico" src="@/static/images/bgic1.png" mode=""></image> <image class="con_ico" src="@/static/images/bgic1.png" mode=""></image>
<view class="con_text"> <view class="con_text">
@ -8,7 +9,8 @@
<span>先付款后发货</span> <span>先付款后发货</span>
</view> </view>
</view> </view>
<view class="con_kuo" @click="navigator(`/pages/nongKe/supply_chain/supplier?type_id=12&isDetail=1&product_type=98&cate_id=${id}&credit_buy=1`)"> <view class="con_kuo"
@click="navigator(`/pages/nongKe/supply_chain/supplier?type_id=12&isDetail=1&product_type=98&cate_id=${id}&credit_buy=1`)">
<image class="con_img" src="@/static/images/bg2.png" mode=""></image> <image class="con_img" src="@/static/images/bg2.png" mode=""></image>
<image class="con_ico" src="@/static/images/bgic2.png" mode=""></image> <image class="con_ico" src="@/static/images/bgic2.png" mode=""></image>
<view class="con_text"> <view class="con_text">
@ -38,7 +40,6 @@
}, },
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -46,17 +47,21 @@
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
.conent { .conent {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
margin-top: 20px; margin-top: 20px;
.con_kuo { .con_kuo {
position: relative; position: relative;
.con_img { .con_img {
width: 192px; width: 192px;
height: 92px; height: 92px;
} }
.con_ico { .con_ico {
position: absolute; position: absolute;
left: 25px; left: 25px;
@ -64,6 +69,7 @@
width: 31px; width: 31px;
height: 32px; height: 32px;
} }
.con_text { .con_text {
position: absolute; position: absolute;
left: 66px; left: 66px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 827 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB