123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <template>
- <view class="goPlayRank">
- <image class="top-bg"
- src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/kynrF1ZmdXVI649d1cace048eb7433a05834312872ce.png/1.png"
- mode=""></image>
- <view class="recommend-box">
- <view class="left-box">
- <view class="item">
- <image class="icon"
- src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/HBkaaPIYl3HF7dff4e9fb2931dab0ccae15e045f0bea.png/1.png"
- mode=""></image>
- </view>
- </view>
- <view class="right-box">
- <view class="item">
- <image class="icon"
- src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/noSKNjBdB8ui89742d420a79b0f3993e269d66649c9a.png/1.png"
- mode=""></image>
- </view>
- <view class="item">
- <image class="icon"
- src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/kozSJdN59XK9ed45006bf5d4a5339fcc6a47f2b8bbda.png/1.png"
- mode=""></image>
- </view>
- </view>
- </view>
- <image class="title-bg"
- src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/fK7AypgN5KfWb967da8ba8f6ca5dcd756a65b11831f8.png/1.png"
- mode=""></image>
-
- <zs-list class="store-box" mt="0" @load="loadMore" :status="status">
- <view class="left">
- <view class="store-item" v-for="(item,index) in list" :key="index" @click="goShopDetail(item)">
- <zs-img :src="item.src" width="335rpx" mode="widthFix" ></zs-img>
- <view class="info">
- <view class="title">
- {{item.title}}
- </view>
- <view class="desc">
- <view class="label">
- 折
- </view>
- <view class="value">
- {{item.desc}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="right">
- <view class="store-item" v-for="(item,index) in list1" :key="index" @click="goShopDetail(item)">
- <zs-img :src="item.src" width="335rpx" mode="widthFix" ></zs-img>
- <view class="info">
- <view class="title">
- {{item.title}}
- </view>
- <view class="desc">
- <view class="label">
- 折
- </view>
- <view class="value">
- {{item.desc}}
- </view>
- </view>
- </view>
- </view>
- </view>
-
- </zs-list>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- status: 'more',
- list: [{
- src: 'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/lDTOgZR2SPIUbece750289a8a2210d95336d78c03385.png/1.png',
- title: 'V9健身房',
- desc:'满200享7折'
-
- },
- {
- src: 'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/rSFr1hJyeCyX3992256c11e35eb35a6b5bcd6241aecb.png/1.png',
- title: '奥尔良烤鸡排',
- desc:'满200享7折'
-
- },
- {
- id: 2,
- src:'https://img2.baidu.com/it/u=242243300,1128843585&fm=253&fmt=auto&app=138&f=JPEG?w=696&h=500',
- title: '泊斯曼酒店',
- desc:'满200享7折',
-
- },
- {
- id: 3,
- src:'https://img-md.veimg.cn/meadinindex/img5/2021/11/69F51D249ADA446EB5507352AA4ABD6E.jpg',
- title: '贵阳万丽酒店',
- desc:'满200享7折',
-
- },
- {
- id: 2,
- src:'https://img2.baidu.com/it/u=242243300,1128843585&fm=253&fmt=auto&app=138&f=JPEG?w=696&h=500',
- title: '泊斯曼酒店',
- desc:'满200享7折',
-
- },
-
- ],
- list1: [
- {
- id: 3,
- src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/RLcEyVwfImHU4c2c52e4d6e58373bbf024639ce148a1.png/1.png',
- title: '黄果树瀑布',
- desc:'满200享7折',
-
- },
- {
- id: 3,
- src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/XNDGAjYTjDOe8e144e30e1ffda0d1d2bc2f6fe0d0d82.png/1.png',
- title: '星巴克咖啡(复地...',
- desc:'满200享7折',
-
- },
- {
- id: 3,
- src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/RkslqrV9Gj3f7c363ce5d4d2151c4ea19208860164d4.png/1.png',
- title: '陈言V+健身房',
- desc:'满200享7折',
-
- },
- {
- id: 2,
- src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/Ez80sIneA4PXa7fb2a53743a00f05921b08a7fa070a6.png/1.png',
- title: '泊斯曼酒店',
- desc:'满200享7折',
-
- },
- {
- id: 3,
- src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/Ez80sIneA4PXa7fb2a53743a00f05921b08a7fa070a6.png/1.png',
- title: '贵阳万丽酒店',
- desc:'满200享7折',
-
- },
- {
- id: 2,
- src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/Ez80sIneA4PXa7fb2a53743a00f05921b08a7fa070a6.png/1.png',
- title: '泊斯曼酒店',
- desc:'满200享7折',
-
- },
-
- ]
- }
- },
- methods: {
- goShopDetail(item) {
- uni.setStorageSync('shopInfo', JSON.stringify(item))
- uni.navigateTo({
- url: `../../detail/shopDetail/shopDetail`
- })
- },
- loadMore() {
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- .goPlayRank {
- .top-bg {
- height: 652rpx;
- width: 100%;
- }
- .recommend-box {
- margin: 20rpx 30rpx;
- height: 430rpx;
- padding: 130rpx 35rpx 30rpx;
- box-sizing: border-box;
- background: url('http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/ZDbdEx1qHgky546a4685e9f7bdc0654b72922b0e0fe5.png/1.png') no-repeat;
- background-size: 100% 100%;
- display: flex;
- .left-box {
- width: 230rpx;
- .item {
- .icon {
- width: 230rpx;
- height: 268rpx;
- }
- }
- }
- .right-box {
- flex: 1;
- padding-left: 20rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .item {
- .icon {
- width: 374rpx;
- height: 124rpx;
- }
- }
- }
- }
- .title-bg {
- width: 100%;
- height: 142rpx;
- }
- zs-list ::v-deep .zs-list {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- padding: 0 30rpx;
- .store-item {
- width: 335rpx;
- margin-bottom: 25rpx;
- border-radius: 16rpx;
- box-shadow: 0rpx 0rpx 24rpx 2rpx rgba(0, 0, 0, 0.08);
-
- .icon {
- width: 100%;
- height: 300rpx;
- border-radius: 16rpx 16rpx 0 0;
- }
- .info {
- padding: 20rpx;
- background: #fff;
- border-radius: 0 0 16rpx 16rpx;
- .title {
- font-weight: bold;
- }
- .desc {
- display: flex;
- align-items: center;
- height: 44rpx;
- line-height: 44rpx;
- margin-top: 24rpx;
- font-size: 24rpx;
- .label {
- background: linear-gradient(180deg, #FF4A39 0%, #FC8B45 100%);
- color: #fff;
- width: 44rpx;
- text-align: center;
- border-radius: 8rpx 0 0 8rpx;
- }
- .value {
- color: #FE5B47;
- background: rgba(254, 91, 71, 0.1);
- padding: 0 15rpx;
- border-radius: 0 8rpx 8rpx 0;
- }
- }
- }
- }
- }
- }
- </style>
|