123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <template>
- <view class="content">
- <view class="box" v-for=" item in shopList" @click="navTo(item)">
- <view class="img">
- <image :src=item.img mode=""></image>
- </view>
- <view class="title">
- {{item.title}}
- </view>
- <view class="right">
- <image src="../../static/user/right01.png" mode=""></image>
- </view>
- </view>
- <uBottom class="uBottom"></uBottom>
- </view>
- </template>
- <script>
- import uBottom from '@/components/ubottom.vue'
- export default{
- components:{
- uBottom
- },
- data(){
- return{
- shopList:[
- {
- title:'商家推荐',
- img:'../../static/img/hot01.png',
- id:6
- },
- {
- title:'特优促销',
- img:'../../static/img/hot02.png',
- id:7
- },
- {
- title:'订单预售',
- img:'../../static/img/hot03.png',
- id:8
- },
- {
- title:'拼团抢购',
- img:'../../static/img/hot04.png',
- id:9
- }
- ]
- }
- },
- methods:{
- navTo(item){
- uni.navigateTo({
- url: '/pages/index/shopList?vip=0&tit=' + encodeURI(item.title)+'&cid='+item.id,
- });
- }
- }
- }
- </script>
- <style lang="scss">
-
- page{
- margin: 0;
- padding: 0;
- }
- .content{
- color: #F8F8F8;
- // margin: 0 30rpx;
- margin: 0;
- padding: 0;
- }
-
- .box{
- background: #FFFFFF;
- box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
- border-radius: 10px;
- display: flex;
- justify-content: space-around;
- align-items: center;
- margin: 20rpx 30rpx;
- padding: 20rpx 0;
- .img{
- width: 125rpx;
- height: 125rpx;
- border-radius: 10rpx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .title{
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- line-height: 42rpx;
- }
- .right{
- width: 21rpx;
- height: 36rpx;
-
- image{
- width: 100%;
- height: 100%;
- }
- }
- }
- </style>
|