Browse Source

博物馆修改

master
panyiping 4 years ago
parent
commit
5856604073
  1. 2
      app.js
  2. 5
      pages/list/museum/index.js
  3. 27
      pages/list/museum/index.wxml
  4. 35
      pages/list/museum/index.wxss
  5. 4
      project.private.config.json

2
app.js

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

5
pages/list/museum/index.js

@ -22,6 +22,11 @@ Page({
let item = e.currentTarget.dataset.item;
util.gotoDetail(item,1);
},
gotoDetailOther: function(e) {
wx.navigateTo({
url: '/pages/info/museumInfo/index?id='+e.currentTarget.dataset.id
})
},
search:function(e){
this.setData(e.detail);
this.setData({

27
pages/list/museum/index.wxml

@ -2,13 +2,36 @@
<search bind:onload="search"></search>
<view class="list">
<view bindtap="gotoDetail" data-item="{{item}}" url="/pages/info/museumInfo/index?id={{item.id}}" class="item" wx:for="{{list}}">
<image src="{{item.headimg}}" mode="aspectFill"></image>
<view class="info textOver">
<image src="{{item.headimg}}" style="{{item.title!='苏州博物馆'?'':'height:353rpx'}}" mode="aspectFill"></image>
<view class="info textOver" wx:if="{{item.title!='苏州博物馆'}}">
<view class="title textOver">{{item.title}}</view>
<view class="address textOver">地址:{{item.address}}</view>
<view class="tel textOver">电话:{{item.tel}}</view>
<view class="btn">点击预约</view>
</view>
<view class="info textOver" wx:else style="height:320rpx">
<view class="title textOver">{{item.title}}</view>
<view class="com-flex">
<text>博物馆本馆</text>
<view class="iconfont icon-you"></view>
</view>
<view class="tip-box">
<view class="com-flex" catchtap="gotoDetailOther" data-id='44703'>
<view>
<text>博物馆西馆</text>
<view style="color:#888888;font-size:21rpx">不含探索体验馆</view>
</view>
<view class="iconfont icon-you"></view>
</view>
<view class="com-flex" style="margin-bottom:0" catchtap="gotoDetailOther" data-id='52136'>
<view>
<text>探索体验馆</text>
<view style="color:#888888;font-size:21rpx">含博物馆西馆</view>
</view>
<view class="iconfont icon-you"></view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{list.length==0}}" class="common-empty" style="z-index:-1">

35
pages/list/museum/index.wxss

@ -50,4 +50,39 @@ page {
}
.info .address {
margin-bottom: 15rpx;
}
.info .com-flex {
width: 240rpx;
height: 67rpx;
background: #FFFFFF;
box-shadow: 0px 0px 6rpx 0px rgba(108, 74, 33, 0.35);
border-radius: 33rpx;
justify-content: center;
font-size: 28rpx;
color: #333333;
font-weight: bold;
margin: 0 auto;
margin-bottom: 13rpx;
}
.info .com-flex .iconfont {
width: 27rpx;
line-height: 27rpx;
background: #CA2A28;
text-align: center;
border-radius: 50%;
font-size: 16rpx;
color: #fff;
margin-left: 10rpx;
}
.info .tip-box {
height: 180rpx;
background: #FBECDC;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.info .tip-box .com-flex {
height: 71rpx;
}

4
project.private.config.json

@ -13,8 +13,8 @@
"miniprogram": {
"list": [
{
"name": "pages/user/order/expressInfo/index",
"pathName": "pages/user/order/expressInfo/index",
"name": "pages/list/museum/index",
"pathName": "pages/list/museum/index",
"query": "id=59532203100900035699",
"scene": null
},

Loading…
Cancel
Save