Commit d31ba88c by 胡悦

活动申请添加手机号授权

1 parent 9512fd1a
...@@ -14,6 +14,10 @@ Component({ ...@@ -14,6 +14,10 @@ Component({
phoneText: { phoneText: {
type: String, type: String,
value: '了解更多案例' value: '了解更多案例'
},
isImage: {
type: Boolean,
value: false
} }
}, },
observers: {}, observers: {},
......
<button class="{{isHidden ? 'hidden-phone':'phone-number'}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
<image class="icon-arrow" src="{{IMGURL}}home/icon-arrow.png"></image>
{{phoneText}}
<image class="icon-arrow" src="{{IMGURL}}home/icon-arrow.png"></image>
</button>
\ No newline at end of file \ No newline at end of file
<block wx:if="{{isImage}}">
<button class="imageBtn" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
</button>
</block>
<block wx:else>
<button class="{{isHidden ? 'hidden-phone':'phone-number'}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
<image class="icon-arrow" src="{{IMGURL}}home/icon-arrow.png"></image>
{{phoneText}}
<image class="icon-arrow" src="{{IMGURL}}home/icon-arrow.png"></image>
</button>
</block>
\ No newline at end of file \ No newline at end of file
...@@ -29,4 +29,14 @@ ...@@ -29,4 +29,14 @@
bottom: 0; bottom: 0;
z-index: 2; z-index: 2;
background-color: transparent; background-color: transparent;
}
.imageBtn {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
right: 0;
bottom: 0;
background-color: transparent;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<user-info data-skeleton-hide="cardInfo" shareDisabled="{{shareDisabled}}" cardInfo="{{cardInfo}}"></user-info> <user-info data-skeleton-hide="cardInfo" shareDisabled="{{shareDisabled}}" cardInfo="{{cardInfo}}"></user-info>
<view class="main-bottom"> <view class="main-bottom">
<!-- 面向渠道 --> <!-- 面向渠道 -->
<template is="channel" data="{{IMGURL, img_version}}"></template> <template is="channel" data="{{IMGURL, img_version, hasPhoneNumber}}"></template>
<!-- tab介绍 --> <!-- tab介绍 -->
<view class="tab-list"> <view class="tab-list">
<block wx:for="{{tabList}}" wx:key="index"> <block wx:for="{{tabList}}" wx:key="index">
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
<view class="channel-text">助力数字化转型,实现获客增值</view> <view class="channel-text">助力数字化转型,实现获客增值</view>
</view> --> </view> -->
<image class="channel-img" mode="widthFix" webp src="{{IMGURL}}home/banner-left.png?v={{img_version}}" bindtap="jumpBanner" data-path="left"></image> <image class="channel-img" mode="widthFix" webp src="{{IMGURL}}home/banner-left.png?v={{img_version}}" bindtap="jumpBanner" data-path="left"></image>
<image class="channel-img" mode="widthFix" webp src="{{IMGURL}}home/banner-right.png?v={{img_version}}" bindtap="jumpBanner" data-path="right"></image> <view class="channel-img channel-phone">
<image class="channel-image" mode="widthFix" webp src="{{IMGURL}}home/banner-right.png?v={{img_version}}" bindtap="jumpBanner" data-path="right"></image>
<phone-number wx:if="{{!hasPhoneNumber}}" class="channel-image" bind:updatePhoneNumber="updatePhoneNumber" isImage="true"></phone-number>
</view>
</view> </view>
</template> </template>
\ No newline at end of file \ No newline at end of file
...@@ -6,13 +6,19 @@ ...@@ -6,13 +6,19 @@
} }
.channel-img { .channel-img {
display: inline-block;
width: calc(50% - 10rpx); width: calc(50% - 10rpx);
height: 168rpx; height: 168rpx;
} }
.channel-img:first-child { .channel-img:first-child {
margin-right: 16rpx; margin-right: 16rpx;
} }
.channel-image {
width: 100%;
}
.channel-phone {
position: relative;
}
.channel-word { .channel-word {
position: absolute; position: absolute;
top: 24rpx; top: 24rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!