@@ -12,6 +12,15 @@ Page({ | |||||
hour: "", | hour: "", | ||||
minute: "" | minute: "" | ||||
}, | }, | ||||
phone: function() { | |||||
let that = this; | |||||
console.log(that.data); | |||||
if (that.data.data.merchantLinkPhone) { | |||||
wx.makePhoneCall({ | |||||
phoneNumber: that.data.data.merchantLinkPhone //仅为示例,并非真实的电话号码 | |||||
}); | |||||
} | |||||
}, | |||||
onLoad(options) { | onLoad(options) { | ||||
let that = this; | let that = this; | ||||
console.log(options); | console.log(options); | ||||
@@ -25,6 +25,7 @@ | |||||
<text>{{data.merchantName}}</text> | <text>{{data.merchantName}}</text> | ||||
<text>{{data.addr}}{{data.buildingName}}{{data.floorName}}</text> | <text>{{data.addr}}{{data.buildingName}}{{data.floorName}}</text> | ||||
</view> | </view> | ||||
<image bindtap='phone' class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" /> | |||||
</view> | </view> | ||||
<!-- <view> | <!-- <view> | ||||
<text>更多适用门店</text> | <text>更多适用门店</text> | ||||
@@ -41,7 +42,7 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="buy-view app-border-top"> | <view class="buy-view app-border-top"> | ||||
<button bindtap='orderFunc' class='buy' wx:if="{{data.salePriceStr!=0}}">立即购买</button> | |||||
<button bindtap='orderFunc' class='buy' wx:if="{{data.salePriceStr!=0}}">立即支付</button> | |||||
<button bindtap='orderFunc' class='buy' wx:elif="{{data.salePriceStr==0}}">免费领取</button> | <button bindtap='orderFunc' class='buy' wx:elif="{{data.salePriceStr==0}}">免费领取</button> | ||||
</view> | </view> | ||||
</view> | </view> |
@@ -8,11 +8,6 @@ | |||||
padding-bottom: 120rpx; | padding-bottom: 120rpx; | ||||
} | } | ||||
.coupons-body { | |||||
flex: 1; | |||||
/* overflow: auto; */ | |||||
} | |||||
.banner { | .banner { | ||||
width: 100%; | width: 100%; | ||||
height: 465rpx; | height: 465rpx; | ||||
@@ -80,6 +75,7 @@ | |||||
} | } | ||||
.posi { | .posi { | ||||
position: relative; | |||||
width: 92%; | width: 92%; | ||||
display: flex; | display: flex; | ||||
flex-direction: column; | flex-direction: column; | ||||
@@ -166,7 +162,6 @@ | |||||
.notes view:nth-child(2) { | .notes view:nth-child(2) { | ||||
width: 92%; | width: 92%; | ||||
height: 400rpx; | |||||
padding: 0 4%; | padding: 0 4%; | ||||
background: #fff; | background: #fff; | ||||
border-bottom: 1rpx solid #f5f5f5; | border-bottom: 1rpx solid #f5f5f5; | ||||
@@ -196,7 +191,7 @@ | |||||
background: #fff; | background: #fff; | ||||
position: fixed; | position: fixed; | ||||
padding-top: 10rpx; | padding-top: 10rpx; | ||||
height:98rpx; | |||||
height: 98rpx; | |||||
bottom: 0rpx; | bottom: 0rpx; | ||||
left: 0; | left: 0; | ||||
right: 0; | right: 0; | ||||
@@ -212,3 +207,13 @@ | |||||
line-height: 88rpx; | line-height: 88rpx; | ||||
border-radius: 6rpx; | border-radius: 6rpx; | ||||
} | } | ||||
.tel { | |||||
position: absolute; | |||||
right: 50rpx; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
width: 50rpx; | |||||
height: 50rpx; | |||||
z-index:1000000; | |||||
} |
@@ -46,7 +46,7 @@ | |||||
<text>{{data.merchantName}}</text> | <text>{{data.merchantName}}</text> | ||||
<text>{{data.addr}}{{data.buildingName}}{{data.floorName}}</text> | <text>{{data.addr}}{{data.buildingName}}{{data.floorName}}</text> | ||||
</view> | </view> | ||||
<image bindtap='phone' class="tel" src="./../../../../assets/img/tel.jpg" mode="widthFix" /> | |||||
<image bindtap='phone' class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" /> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='note'> | <view class='note'> | ||||
@@ -145,6 +145,7 @@ | |||||
background: #fff; | background: #fff; | ||||
border-bottom: 20rpx solid #f5f5f5; | border-bottom: 20rpx solid #f5f5f5; | ||||
border-top: 20rpx solid #f5f5f5; | border-top: 20rpx solid #f5f5f5; | ||||
position: relative; | |||||
} | } | ||||
.posi_logo { | .posi_logo { | ||||
@@ -169,6 +170,8 @@ | |||||
} | } | ||||
.posi_logo view:nth-child(2) { | .posi_logo view:nth-child(2) { | ||||
position: relative; | |||||
z-index: 100; | |||||
display: flex; | display: flex; | ||||
flex-direction: column; | flex-direction: column; | ||||
flex: 8; | flex: 8; | ||||