shop-applet/pages/nongKe/tourism/indexa.vue

459 lines
9.3 KiB
Vue

<template>
<view class="box">
<view class="head">
<view style="height: var(--status-bar-height);"></view>
<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);">
特色文旅
</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 @tap="searchSubmit" class="img_cls" :showLoading="true" src="/static/images/GXSC/SS.png"
width="115.65rpx" height="56.82rpx"></u--image>
</view>
</view>
</view>
<!-- 热门景点 -->
<view class="hot_attractions">
<view class="hot_tit">
热门景点
</view>
<view class="container">
<view class="left">
<view class="video">
<video src=""></video>
</view>
</view>
<view class="container_right">
<view class="containerli" style="margin-bottom: 20rpx;">
<view class="container_img">
sdsd
</view>
<view class="tit">
sdssds
</view>
</view>
<view class="containerli">
<view class="container_img">
sdsd
</view>
<view class="tit">
<view class="">
asdsadasdsd
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 趣玩帮 -->
<view class="play">
<view class="hot_tit">
趣玩榜
</view>
<view class="content">
<view class="content_li" v-for="item,index in [1,1,1,1,1,1]">
<view class="num">
3.5万人游玩过
</view>
</view>
</view>
</view>
<!-- 商家 -->
<view style="padding: 0 20rpx;">
<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="227rpx"></u--image>
</view>
<view class="right">
<view class="li heads" style="display: flex;">
<text class="com_name">{{item.mer_name}}</text>
<text class="leavl">AAAA</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>
</view>
<view class="li" style="align-items: center;">
<text> 距离你6.8KM</text>
<text> 江阳区</text>
</view>
<view class="li display_bet" style="align-items: center;">
<view class="">
<text class="leavl">公园</text>
<text class="leavl">绿化</text>
</view>
<view class="">
<text>免费预约</text>
</view>
</view>
<view class="li" style="margin-top: 20rpx;">
<text style="font-weight: bold;">必玩</text>
<text>张家大叔卧龙树京杭太</text>
</view>
</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],
lists: [1, 1, 1, 1, 1],
storeList: [1, 1, 1, 1, 1, 1, 1, 1, 1],
list1: [{
name: "美食餐厅"
}, {
name: "聚餐宴请"
}, {
name: "单人餐"
}, ]
}
},
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;
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;
}
.foodType {
display: flex;
justify-content: space-around;
background-color: #fff;
padding: 21rpx 38rpx;
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
.foodLi {}
}
.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;
}
}
}
}
.hot_tit {
margin-bottom: 20rpx;
font-weight: bold;
font-size: 33rpx;
}
.hot_attractions {
// justify-content: space-between;
padding: 0 20rpx;
.container {
display: flex;
}
.left {
width: 210.28rpx;
height: 336.45rpx;
background-color: red;
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
margin-right: 22rpx;
overflow: hidden;
}
.container_right {
.containerli {
display: flex;
.container_img {
width: 210.28rpx;
height: 157.71rpx;
background-color: red;
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
// margin-right: 12rpx;
}
.tit {
float: right;
}
}
}
}
.play {
padding: 0 20rpx;
margin-top: 20rpx;
.content {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.content_li {
width: 227.8rpx;
height: 169.98rpx;
background-color: green;
margin-top: 20rpx;
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
position: relative;
.num {
bottom: 20rpx;
left: 50%;
transform: translateX(-50%);
font-size: 19.28rpx;
padding: 0 10rpx;
text-align: center;
position: absolute;
width: 192.76rpx;
background: url(/static/images/TSWL/WG.png);
background-size: cover;
color: white;
}
}
}
}
.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: 227rpx;
// background-color: red;
border-radius: 20rpx;
overflow: hidden;
}
.right {
width: 75vw;
overflow: hidden;
.leavl {
border-radius: 10.51rpx 10.51rpx 10.51rpx 10.51rpx;
padding: 0 10rpx;
font-size: 26.29rpx;
font-weight: normal;
color: #F84221;
border: 1px solid #F84221;
}
.heads {
// font-weight: bold;
.com_name {
font-size: 33rpx;
font-weight: bold;
// color: red;
}
}
.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;
}
}
.package {
margin-top: 30rpx;
align-items: center;
.hui {
border-radius: 10.51rpx 10.51rpx 10.51rpx 10.51rpx;
background-color: #FEEBE7;
color: #F84221;
font-size: 22.78rpx;
// padding: 5rpx;
width: 36rpx;
height: 35rpx;
text-align: center;
}
.price {
color: #F84221;
font-size: 36.8rpx;
font-weight: bold;
}
.sale {
width: 77.1rpx;
height: 44rpx;
background-color: white;
color: #F84221;
border: 1px solid #F84221;
border-radius: 10.51rpx 10.51rpx 10.51rpx 10.51rpx;
font-size: 22.78rpx;
text-align: center;
line-height: 40rpx;
}
}
}
}
}
.address {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 200px;
}
}
.img_cls {
position: absolute;
top: 50%;
right: 7rpx;
transform: translateY(-50%);
}
.display_around {
display: flex;
justify-content: space-around;
}
.display_bet {
display: flex;
justify-content: space-between;
}
</style>