Commit b06280209d477c8052e273a074f93241d49fa923

Authored by wangfan
1 parent 32f85979

C端调整

// components/reserve/discount.js
Component({
/**
* 组件的属性列表
*/
properties: {},
/**
* 组件的初始数据
*/
data: {
display:false,
},
/**
* 组件的方法列表
*/
methods: {
hide(){
this.setData({
display:false,
})
},
show(){
this.setData({
display:true,
})
},
}
})
... ...
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
... ...
<!--components/reserve/discount.wxml-->
<view class="mask" bindtap="hide" wx:if="{{display}}">
<view class="discount" catchtap="">
<view class="discount-name Semibold" bindtap="hide">
优惠信息
<view class="close"></view>
</view>
<view class="slogan">致电商家时,请说明是一键订平台的客户</view>
<view class="list">
<view class="item flex-ll">
<view class="left flex-vc">123213</view>
<view class="right flex-vc">
123321312
</view>
</view>
</view>
</view>
</view>
... ...
/* components/reserve/discount.wxss */
@import "../../app.wxss";
.discount{
position: fixed;
bottom: 0;
background-color: #ffffff;
border-radius: 10rpx 10rpx 0rpx 0rpx;
color: #353535;
width: 90%;
padding: 30rpx 5%;
}
.discount view{
background-size: 100% 100%;
}
.discount-name{
font-size: 32rpx;
height: 44rpx;
line-height: 44rpx;
width: 100%;
position: relative;
text-align: center;
}
.discount-name .close{
background-image: url("http://qn.colorcun.com/reserve/images/%E5%85%B3%20%20%E9%97%AD.png");
width: 32rpx;
height: 32rpx;
position: absolute;
right:0;
top:6rpx;
}
.slogan{
background-color: #FEF1EA;
height: 70rpx;
line-height: 70rpx;
font-size: 28rpx;
color:#C28C56;
margin-top: 30rpx;
text-align: center;
border-radius: 6rpx;
}
.list{
max-height: 730rpx;
overflow-y: auto;
}
.item{
width: 100%;
max-width: 690rpx;
height: 190rpx;
background-image: url("http://qn.colorcun.com/reserve/images/%E4%BC%98%E6%83%A0%E5%88%B8.jpg");
margin-top: 40rpx;
}
.item .left{
width: 200rpx;
height: 190rpx;
color: #fff;
}
.item .right{
max-width: 300rpx;
height: 190rpx;
margin-left: 50rpx;
font-size: 28rpx;
}
\ No newline at end of file
... ...
... ... @@ -190,4 +190,7 @@ Page({
urls:urls
})
},
showDiscount(){
this.selectComponent('#discount').show()
},
})
\ No newline at end of file
... ...
... ... @@ -8,6 +8,7 @@
"stat":"/components/stat/stat",
"as":"/components/actionSheet/index",
"nav":"/components/nav/nav",
"getpos":"/components/userinfo/getpos"
"getpos":"/components/userinfo/getpos",
"discount":"/components/reserve/discount"
}
}
\ No newline at end of file
... ...
... ... @@ -32,7 +32,7 @@
<view class="icon car" wx:if="{{seller.is_parking==1}}">停车场</view>
</view>
</view>
<formids wx:if="{{seller.activity.length>0}}" url="/pages/reserve/activity?id={{seller.id}}">
<formids wx:if="{{seller.activity.length>0}}" bindclick="showDiscount">
<view class="activity-view" >
<view class="activity" >
<view class="flex-lr">
... ... @@ -132,4 +132,5 @@
</view>
</view>
<as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预定</as>
<getpos bindpos="onpos" id="getpos"></getpos>
\ No newline at end of file
<getpos bindpos="onpos" id="getpos"></getpos>
<discount id="discount"></discount>
\ No newline at end of file
... ...