Browse Source

更新下

master
Myth 5 years ago
parent
commit
f20084c342
  1. 2
      pages/activity/springten/index.js
  2. 11
      pages/activity/springten/index.wxml
  3. 22
      pages/activity/springten/index.wxss

2
pages/activity/springten/index.js

@ -54,7 +54,7 @@ Page({
commonApi._post("scene/get_scene_by_tag",{ commonApi._post("scene/get_scene_by_tag",{
offset:this.data.list.length, offset:this.data.list.length,
limit:10, limit:10,
tag_id:17+Number(this.data.type), tag_id:this.data.type!=0?17+Number(this.data.type):27,
area_id:this.data.areaIndex>-1?this.data.areas[this.data.areaIndex].area_id:null area_id:this.data.areaIndex>-1?this.data.areas[this.data.areaIndex].area_id:null
}).then(res=>{ }).then(res=>{
res.data.list.map(item=>{ res.data.list.map(item=>{

11
pages/activity/springten/index.wxml

@ -13,22 +13,19 @@
<view class="icon-text">{{item}}</view> <view class="icon-text">{{item}}</view>
</view> </view>
</view> </view>
<view style="height:13rpx"></view>
<view class="list"> <view class="list">
<view style="height:13rpx"></view>
<view class="item" wx:for="{{list}}"> <view class="item" wx:for="{{list}}">
<view class="item-in"> <view class="item-in">
<image src="{{item.headimg}}" mode="aspectFill"></image> <image src="{{item.headimg}}" mode="aspectFill"></image>
<view class="item-info"> <view class="item-info">
<view class="item-title textOver">{{item.title}}</view> <view class="item-title textOver">{{item.title}}</view>
<view class="item-tags"> <view class="item-result textOver">上榜理由:{{item.brief_intro}}</view>
<view class="tag textOver" wx:for="{{item.display_tags}}">{{item}}</view>
</view>
<view class="item-address textOver">地址:{{item.address}}</view> <view class="item-address textOver">地址:{{item.address}}</view>
</view> </view>
</view> </view>
<view class="item-result textOver">上榜理由:{{item.brief_intro}}</view>
<view class="item-btn" bindtap="gotoWeb" data-item="{{item}}" wx:if="{{item.ext_link}}">前往购买</view> <view class="item-btn" bindtap="gotoLocation" data-item="{{item}}" wx:if="{{item.is_nav || item.ext_link}}">打开导航</view>
<view class="item-btn" bindtap="gotoLocation" data-item="{{item}}" wx:elif="{{item.is_nav}}">打开导航</view>
<view class="item-btn" bindtap="gotoFoodInfo" data-item="{{item}}" wx:elif="{{item.isYunHe}}">查看详情</view> <view class="item-btn" bindtap="gotoFoodInfo" data-item="{{item}}" wx:elif="{{item.isYunHe}}">查看详情</view>
<view bindtap="gotoDetail" data-item="{{item}}" class="item-btn" wx:else>立即预订</view> <view bindtap="gotoDetail" data-item="{{item}}" class="item-btn" wx:else>立即预订</view>
</view> </view>

22
pages/activity/springten/index.wxss

@ -44,16 +44,16 @@
width: 124rpx; width: 124rpx;
} }
.list { .list {
background:url(https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/springten/bg2.png) repeat-y; background:url(https://m.cloud.sz-trip.com/static/images/activity/topten/hua0326.png) repeat-y;
background-size: 100%; background-size: 100%;
} }
.item { .item {
margin: 0 25rpx; margin: 0 25rpx;
margin-top: 43rpx; margin-top: 43rpx;
background:url(https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/springten/bg1.png); background:url(https://m.cloud.sz-trip.com/static/images/activity/topten/itemBac0326.png);
background-size: 100% 100%; background-size: 100% 100%;
width: 700rpx; width: 700rpx;
height: 325rpx; height: 177rpx;
position: relative; position: relative;
} }
.nomore { .nomore {
@ -64,13 +64,12 @@
} }
.item-in { .item-in {
display: flex; display: flex;
padding: 30rpx; padding: 20rpx;
padding-bottom: 20rpx;
justify-content: space-between; justify-content: space-between;
} }
.item-in image { .item-in image {
width: 253rpx; width: 199rpx;
height: 213rpx; height: 133rpx;
display: block; display: block;
flex-shrink: 0; flex-shrink: 0;
} }
@ -103,16 +102,17 @@
.item-address { .item-address {
font-size: 23rpx; font-size: 23rpx;
color: #666666; color: #666666;
width: 280rpx;
} }
.item-result { .item-result {
font-size: 25rpx; font-size: 25rpx;
color: #333; color: #C01717;
margin: 0 30rpx; margin:10rpx 0
} }
.item-btn { .item-btn {
position: absolute; position: absolute;
right: 37rpx; right: 20rpx;
bottom: 70rpx; bottom: 17rpx;
width: 160rpx; width: 160rpx;
line-height: 53rpx; line-height: 53rpx;
background: #8356A6; background: #8356A6;

Loading…
Cancel
Save