Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d31ba88c
authored
Oct 28, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
活动申请添加手机号授权
1 parent
9512fd1a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
5 deletions
components/PhoneNumber/PhoneNumber.js
components/PhoneNumber/PhoneNumber.wxml
components/PhoneNumber/PhoneNumber.wxss
pages/tab/index/index.wxml
pages/template/channel/channel.wxml
pages/template/channel/channel.wxss
components/PhoneNumber/PhoneNumber.js
View file @
d31ba88
...
@@ -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
:
{},
...
...
components/PhoneNumber/PhoneNumber.wxml
View file @
d31ba88
<button class="{{isHidden ? 'hidden-phone':'phone-number'}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
<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>
<image class="icon-arrow" src="{{IMGURL}}home/icon-arrow.png"></image>
{{phoneText}}
{{phoneText}}
<image class="icon-arrow" src="{{IMGURL}}home/icon-arrow.png"></image>
<image class="icon-arrow" src="{{IMGURL}}home/icon-arrow.png"></image>
</button>
\ No newline at end of file
\ No newline at end of file
</button>
</block>
\ No newline at end of file
\ No newline at end of file
components/PhoneNumber/PhoneNumber.wxss
View file @
d31ba88
...
@@ -30,3 +30,13 @@
...
@@ -30,3 +30,13 @@
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
pages/tab/index/index.wxml
View file @
d31ba88
...
@@ -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">
...
...
pages/template/channel/channel.wxml
View file @
d31ba88
...
@@ -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
pages/template/channel/channel.wxss
View file @
d31ba88
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment