panyiping 4 years ago
parent
commit
20a6f64807
  1. 2
      app.js
  2. 2
      pages/info/museumInfo/index.js
  3. 12
      pages/info/museumInfo/index.wxml
  4. 18
      pages/info/museumInfo/index.wxss
  5. 3
      pages/info/sceneProductInfo/index.wxml
  6. 18
      pages/info/sceneProductInfo/index.wxss
  7. 5
      pages/list/museum/index.wxml
  8. 13
      pages/list/museum/index.wxss
  9. 1
      pages/list/scene/index.wxml
  10. 12
      pages/list/scene/index.wxss

2
app.js

@ -22,7 +22,7 @@ App({
unique_key: "wechatxcx" unique_key: "wechatxcx"
}).then(res => { }).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest17?true:false; data.isTest = data.isTest18?true:false;
this.globalData.configJson = data this.globalData.configJson = data
}) })

2
pages/info/museumInfo/index.js

@ -256,7 +256,7 @@ Page({
ctx.setFillStyle("#999999"); ctx.setFillStyle("#999999");
ctx.setFontSize(28 * ratio); //字大小 ctx.setFontSize(28 * ratio); //字大小
ctx.setTextAlign('left'); //是否居中显示,参考点画布中线 ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
let subtitle = that.data.info.product_venue.subtitle; let subtitle = that.data.info.product_venue?that.data.info.product_venue.subtitle:that.data.info.sub_title
if (subtitle.length > 10) { if (subtitle.length > 10) {
subtitle = subtitle.substr(0, 10) + '...' subtitle = subtitle.substr(0, 10) + '...'
} }

12
pages/info/museumInfo/index.wxml

@ -16,16 +16,18 @@
</block> </block>
<view class="title" wx:if="{{info && info.team_order && isGroup}}">{{info.title}}(团体预约)</view> <view class="title" wx:if="{{info && info.team_order && isGroup}}">{{info.title}}(团体预约)</view>
</swiper> </swiper>
<!-- 普通详情样式 -->
<view class="info" wx:if="{{info && !info.team_order && isGroup}}"> <!-- 团体预约的详情样式 -->
<view class="title">{{info.title}}</view> <view class="team_info" wx:if="{{info && info.team_order && isGroup}}">
<view class="location"><text class="iconfont icon-location"></text>{{info.address}}</view> <view class="location"><text class="iconfont icon-location"></text>{{info.address}}</view>
<view class="location" style="margin-bottom:0"><text class="iconfont icon-dianhua2"></text>{{info.tel}}</view> <view class="location" style="margin-bottom:0"><text class="iconfont icon-dianhua2"></text>{{info.tel}}</view>
</view> </view>
<!-- 团体预约的详情样式 --> <!-- 普通详情样式 -->
<view class="team_info" wx:if="{{info && info.team_order && isGroup}}"> <view class="info" wx:else style="position:relative">
<view class="title">{{info.title}}</view>
<view class="location"><text class="iconfont icon-location"></text>{{info.address}}</view> <view class="location"><text class="iconfont icon-location"></text>{{info.address}}</view>
<view class="location" style="margin-bottom:0"><text class="iconfont icon-dianhua2"></text>{{info.tel}}</view> <view class="location" style="margin-bottom:0"><text class="iconfont icon-dianhua2"></text>{{info.tel}}</view>
<view class="status-text{{info.garden_flag==0?' disable':''}}" wx:if="{{info.garden_flag_text && info.garden_flag!=1}}">{{info.garden_flag_text}}</view>
</view> </view>
<view class="menu-box{{fixed?' menu-fixed':''}}" style="top:{{top}}px" wx:if="{{isGroup!=1}}"> <view class="menu-box{{fixed?' menu-fixed':''}}" style="top:{{top}}px" wx:if="{{isGroup!=1}}">
<view class="menu-item{{type==1?' active':''}}" bindtap="changeType" data-type="1">场馆介绍</view> <view class="menu-item{{type==1?' active':''}}" bindtap="changeType" data-type="1">场馆介绍</view>

18
pages/info/museumInfo/index.wxss

@ -306,4 +306,22 @@
width: 33rpx; width: 33rpx;
display: block; display: block;
margin-right: 10rpx; margin-right: 10rpx;
}
.status-text {
position: absolute;
right: 0;
top: 22rpx;
width: 140rpx;
line-height: 47rpx;
background: rgba(11, 137, 142, .1);
text-align: center;
color: #0B898E;
font-size: 25rpx;
font-weight: bold;
border-radius: 23rpx 0px 0px 23rpx;
}
.status-text.disable {
width: 120rpx;
background: rgba(51, 51, 51, .1);
color: #666666;
} }

3
pages/info/sceneProductInfo/index.wxml

@ -14,7 +14,7 @@
</swiper-item> </swiper-item>
</block> </block>
</swiper> </swiper>
<view class="top-info" wx:if="{{info}}"> <view class="top-info" wx:if="{{info}}" style="position:relative">
<view class="title">{{info.title}}</view> <view class="title">{{info.title}}</view>
<view class="tags-box textOver"> <view class="tags-box textOver">
<view class="tag textOver" wx:for="{{info.display_tags}}">{{item}}<view class="line"></view></view> <view class="tag textOver" wx:for="{{info.display_tags}}">{{item}}<view class="line"></view></view>
@ -28,6 +28,7 @@
<view class="info-address">地址:{{info.address}}</view> <view class="info-address">地址:{{info.address}}</view>
<view class="iconfont icon-daohang" bindtap="gotolocation"></view> <view class="iconfont icon-daohang" bindtap="gotolocation"></view>
</view> </view>
<view class="status-text{{info.garden_flag==0?' disable':''}}" wx:if="{{info.garden_flag_text && info.garden_flag!=1}}">{{info.garden_flag_text}}</view>
</view> </view>
<view class="box" wx:if="{{info}}" wx:for="{{info.product}}"> <view class="box" wx:if="{{info}}" wx:for="{{info.product}}">
<view class="box-top"> <view class="box-top">

18
pages/info/sceneProductInfo/index.wxss

@ -401,4 +401,22 @@ page {
font-size: 31rpx; font-size: 31rpx;
font-weight: 500; font-weight: 500;
margin-top: 50rpx; margin-top: 50rpx;
}
.status-text {
position: absolute;
right: 0;
top: 22rpx;
width: 140rpx;
line-height: 47rpx;
background: rgba(11, 137, 142, .1);
text-align: center;
color: #0B898E;
font-size: 25rpx;
font-weight: bold;
border-radius: 23rpx 0px 0px 23rpx;
}
.status-text.disable {
width: 120rpx;
background: rgba(51, 51, 51, .1);
color: #666666;
} }

5
pages/list/museum/index.wxml

@ -2,7 +2,10 @@
<search bind:onload="search"></search> <search bind:onload="search"></search>
<view class="list"> <view class="list">
<view bindtap="gotoDetail" wx:if="{{item.title!=='苏州博物馆西馆' && item.title!=='苏州博物馆西馆探索体验馆'}}" data-item="{{item}}" url="/pages/info/museumInfo/index?id={{item.id}}" class="item" wx:for="{{list}}"> <view bindtap="gotoDetail" wx:if="{{item.title!=='苏州博物馆西馆' && item.title!=='苏州博物馆西馆探索体验馆'}}" data-item="{{item}}" url="/pages/info/museumInfo/index?id={{item.id}}" class="item" wx:for="{{list}}">
<image src="{{item.headimg}}" style="{{item.title!='苏州博物馆'?'':'height:353rpx'}}" mode="aspectFill"></image> <view style="position:relative">
<image src="{{item.headimg}}" style="{{item.title!='苏州博物馆'?'':'height:353rpx'}}" mode="aspectFill"></image>
<view class="status-text" wx:if="{{item.garden_flag_text && item.garden_flag!=1}}">{{item.garden_flag_text}}</view>
</view>
<view class="info textOver" wx:if="{{item.title!='苏州博物馆'}}"> <view class="info textOver" wx:if="{{item.title!='苏州博物馆'}}">
<view class="title textOver">{{item.title}}</view> <view class="title textOver">{{item.title}}</view>
<view class="address textOver">地址:{{item.address}}</view> <view class="address textOver">地址:{{item.address}}</view>

13
pages/list/museum/index.wxss

@ -11,6 +11,7 @@ page {
width: 353rpx; width: 353rpx;
height: 296rpx; height: 296rpx;
border-radius: 17rpx; border-radius: 17rpx;
display: block;
} }
.list .item:nth-child(2n){ .list .item:nth-child(2n){
flex-direction: row-reverse; flex-direction: row-reverse;
@ -85,4 +86,16 @@ page {
} }
.info .tip-box .com-flex { .info .tip-box .com-flex {
height: 71rpx; height: 71rpx;
}
.status-text {
position: absolute;
left: 0;
right: 0;
bottom: 0;
line-height: 57rpx;
text-align: center;
color: #fff;
background: rgba(0, 0, 0, 0.5);
font-size: 31rpx;
border-radius: 0 0 17rpx 17rpx;
} }

1
pages/list/scene/index.wxml

@ -9,6 +9,7 @@
<view bindtap="gotoDetail" data-item="{{item}}" wx:for="{{list}}" url="/pages/info/sceneProductInfo/index?id={{item.id}}" class="item"> <view bindtap="gotoDetail" data-item="{{item}}" wx:for="{{list}}" url="/pages/info/sceneProductInfo/index?id={{item.id}}" class="item">
<image src="{{item.headimg}}" mode="aspectFill"></image> <image src="{{item.headimg}}" mode="aspectFill"></image>
<view class="no-text" wx:if="{{index<3 && keywords==''}}">NO.{{index+1}}</view> <view class="no-text" wx:if="{{index<3 && keywords==''}}">NO.{{index+1}}</view>
<view class="status-text" wx:if="{{item.garden_flag_text && item.garden_flag!=1}}">{{item.garden_flag_text}}</view>
<view class="right-info"> <view class="right-info">
<view class="title textOver2">{{item.title}}</view> <view class="title textOver2">{{item.title}}</view>
<view class="tags"> <view class="tags">

12
pages/list/scene/index.wxss

@ -58,6 +58,18 @@
top: 0; top: 0;
text-align: center; text-align: center;
} }
.item .status-text {
position: absolute;
left: 0;
bottom: 0;
width: 233rpx;
line-height: 47rpx;
background: rgba(0, 0, 0, 0.5);
border-radius: 0 0 11rpx 11rpx;
font-size: 25rpx;
color: #ffffff;
text-align: center;
}
.tags { .tags {
display: flex; display: flex;
margin-top: 16rpx; margin-top: 16rpx;

Loading…
Cancel
Save