Преглед изворни кода

[优惠券详情页面电话按钮][增加]:优惠券详情页面增加商户电话的按钮并添加触发事件

tags/2.2.4
meo пре 6 година
родитељ
комит
b0f9de2570
5 измењених фајлова са 27 додато и 9 уклоњено
  1. +9
    -0
      pages/coupon/detail/index.js
  2. +2
    -1
      pages/coupon/detail/index.wxml
  3. +12
    -7
      pages/coupon/detail/index.wxss
  4. +1
    -1
      pages/couponorder/detail/index.wxml
  5. +3
    -0
      pages/couponorder/detail/index.wxss

+ 9
- 0
pages/coupon/detail/index.js Прегледај датотеку

@@ -12,6 +12,15 @@ Page({
hour: "",
minute: ""
},
phone: function() {
let that = this;
console.log(that.data);
if (that.data.data.merchantLinkPhone) {
wx.makePhoneCall({
phoneNumber: that.data.data.merchantLinkPhone //仅为示例,并非真实的电话号码
});
}
},
onLoad(options) {
let that = this;
console.log(options);


+ 2
- 1
pages/coupon/detail/index.wxml Прегледај датотеку

@@ -25,6 +25,7 @@
<text>{{data.merchantName}}</text>
<text>{{data.addr}}{{data.buildingName}}{{data.floorName}}</text>
</view>
<image bindtap='phone' class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" />
</view>
<!-- <view>
<text>更多适用门店</text>
@@ -41,7 +42,7 @@
</view>
</view>
<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>
</view>
</view>

+ 12
- 7
pages/coupon/detail/index.wxss Прегледај датотеку

@@ -8,11 +8,6 @@
padding-bottom: 120rpx;
}

.coupons-body {
flex: 1;
/* overflow: auto; */
}

.banner {
width: 100%;
height: 465rpx;
@@ -80,6 +75,7 @@
}

.posi {
position: relative;
width: 92%;
display: flex;
flex-direction: column;
@@ -166,7 +162,6 @@

.notes view:nth-child(2) {
width: 92%;
height: 400rpx;
padding: 0 4%;
background: #fff;
border-bottom: 1rpx solid #f5f5f5;
@@ -196,7 +191,7 @@
background: #fff;
position: fixed;
padding-top: 10rpx;
height:98rpx;
height: 98rpx;
bottom: 0rpx;
left: 0;
right: 0;
@@ -212,3 +207,13 @@
line-height: 88rpx;
border-radius: 6rpx;
}
.tel {
position: absolute;
right: 50rpx;
top: 0;
bottom: 0;
margin: auto;
width: 50rpx;
height: 50rpx;
z-index:1000000;
}

+ 1
- 1
pages/couponorder/detail/index.wxml Прегледај датотеку

@@ -46,7 +46,7 @@
<text>{{data.merchantName}}</text>
<text>{{data.addr}}{{data.buildingName}}{{data.floorName}}</text>
</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 class='note'>


+ 3
- 0
pages/couponorder/detail/index.wxss Прегледај датотеку

@@ -145,6 +145,7 @@
background: #fff;
border-bottom: 20rpx solid #f5f5f5;
border-top: 20rpx solid #f5f5f5;
position: relative;
}

.posi_logo {
@@ -169,6 +170,8 @@
}

.posi_logo view:nth-child(2) {
position: relative;
z-index: 100;
display: flex;
flex-direction: column;
flex: 8;


Loading…
Откажи
Сачувај