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 d6919fb9
authored
Dec 15, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
手机号授权传参
1 parent
54f0bc13
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
102 additions
and
12 deletions
components/PhoneNumber/PhoneNumber.js
packagesList/pages/activityApply/activityApply.js
packagesList/pages/activityApply/activityApply.wxml
packagesList/pages/activityDetail/activityDetail.js
packagesList/pages/applySuccess/applySuccess.js
packagesList/pages/applySuccess/applySuccess.scss
packagesList/pages/applySuccess/applySuccess.wxml
packagesList/pages/videoDetal/videoDetal.js
packagesList/pages/videoDetal/videoDetal.wxml
pages/tab/index/components/activity/activity.js
pages/tab/index/components/scenario/scenario.js
pages/tab/index/index.wxml
components/PhoneNumber/PhoneNumber.js
View file @
d6919fb
...
...
@@ -76,7 +76,9 @@ Component({
}
},
jump
()
{
this
.
triggerEvent
(
'toApplication'
)
// this.triggerEvent('toApplication')
console
.
log
(
333
);
wx
.
$router
.
go
(
"/packagesList/pages/activityApply/activityApply"
);
},
forward
()
{
this
.
triggerEvent
(
'toForward'
)
...
...
packagesList/pages/activityApply/activityApply.js
View file @
d6919fb
...
...
@@ -9,7 +9,7 @@ Page({
* 页面的初始数据
*/
data
:
{
isStaff
:
false
},
// 提交表单
...
...
@@ -58,6 +58,9 @@ Page({
}
entmicroApi
.
checkPhone
(
params
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
setData
({
isStaff
:
res
.
data
})
})
}
},
...
...
packagesList/pages/activityApply/activityApply.wxml
View file @
d6919fb
...
...
@@ -8,7 +8,7 @@
</view>
<button class="submit-btn" bindtap="submitApply">提交申请</button>
<!-- 展业测算 -->
<view class="caculate-box">
<view class="caculate-box"
wx:if="{{isStaff}}"
>
<image class="caculate-img" mode="widthFix" webp src="{{IMGURL}}application/caculate_icon.png?v={{img_version}}"></image>
<text class="caculate-text">展业测算</text>
</view>
...
...
packagesList/pages/activityDetail/activityDetail.js
View file @
d6919fb
...
...
@@ -16,7 +16,13 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
console
.
log
(
options
)
wx
.
$router
.
getData
(
res
=>
{
console
.
log
(
res
)
this
.
setData
({
hasPhoneNumber
:
res
})
})
},
/**
...
...
packagesList/pages/applySuccess/applySuccess.js
View file @
d6919fb
// packagesList/pages/applySuccess/applySuccess.js
import
{
commonMixin
}
from
'../../../mixins/index'
Page
({
behaviors
:
[
commonMixin
],
/**
* 页面的初始数据
...
...
packagesList/pages/applySuccess/applySuccess.scss
View file @
d6919fb
...
...
@@ -58,3 +58,49 @@
.apply-margin
{
margin-top
:
32rpx
;
}
.jump-box
{
margin
:
auto
;
display
:
flex
;
margin-top
:
136rpx
;
&
-item
{
width
:
320rpx
;
height
:
152rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
&
-item
:first-child
{
background-image
:
url("https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/application/bussi_bg.png?v=1.0.3")
;
background-repeat
:
no-repeat
;
background-size
:
320rpx
152rpx
;
margin-right
:
16rpx
;
}
&
-item
:last-child
{
background-image
:
url("https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/application/store_bg.png?v=1.0.3")
;
background-repeat
:
no-repeat
;
background-size
:
320rpx
152rpx
;
}
.bussi-icon
{
width
:
88rpx
;
height
:
88rpx
;
margin-right
:
20rpx
;
}
.jump-title
{
font-family
:
PingFangSC-Medium
;
font-weight
:
500
;
font-size
:
32rpx
;
color
:
#333333
;
}
.jump-text
{
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
28rpx
;
color
:
linear-gradient
(
180deg
,
#65DDCE
0%
,
#406DFB
51%
,
#3666FE
100%
);
}
}
\ No newline at end of file
packagesList/pages/applySuccess/applySuccess.wxml
View file @
d6919fb
...
...
@@ -7,8 +7,30 @@
<view class="apply-tip">请耐心等待顾问专员与您联系。</view>
</view>
<view class="back-text">返回名片</view>
<view class="jump-box">
<view class="jump-box-item" bindtap="toBusinessMiniProgram">
<view>
<image webp mode="widthFix" class="bussi-icon" src="{{IMGURL}}application/bussi_icon.png?v={{img_version}}"></image>
</view>
<view>
<view class="jump-title">生意助手</view>
<view class="jump-text">立即前往</view>
</view>
<view>
</view>
</view>
<view class="jump-box-item" bindtap="toStoreMiniProgram">
<view>
<image webp mode="widthFix" class="bussi-icon" src="{{IMGURL}}application/bussi_icon.png?v={{img_version}}"></image>
</view>
<view>
<view class="jump-title">生意助手</view>
<view class="jump-text">立即前往</view>
</view>
</view>
</view>
<view class="apply-margin">
<view class="apply-info">自申请成功后,Demo有效期为<text class="info-tip">7</text>天</view>
<view class="apply-info">关闭此页面后,智能名片将显示两个Demo入口</view>
</view>
</view>
\ No newline at end of file
</view>
\ No newline at end of file
packagesList/pages/videoDetal/videoDetal.js
View file @
d6919fb
...
...
@@ -8,7 +8,8 @@ Page({
videoItem
:
{
index
:
0
,
videoList
:
[],
videoUrl
:
''
videoUrl
:
''
,
hasPhoneNumber
:
false
}
},
...
...
packagesList/pages/videoDetal/videoDetal.wxml
View file @
d6919fb
<!--packagesList/pages/videoDetal/videoDetal.wxml-->
<!-- aaa -->
<gl-video-detail list="{{videoItem.videoList}}" index="{{videoItem.index}}"></gl-video-detail>
<phone-number type="{{'video'}}" bindvideodown="downVideo" bindtoForward="toForward" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}"></phone-number>
\ No newline at end of file
<phone-number type="{{'video'}}" bindvideodown="downVideo" bindtoForward="toForward" bindtoApplication="toApplication" hasPhoneNumber="{{videoItem.hasPhoneNumber}}"></phone-number>
\ No newline at end of file
pages/tab/index/components/activity/activity.js
View file @
d6919fb
...
...
@@ -13,7 +13,10 @@ Component({
* 组件的属性列表
*/
properties
:
{
hasPhoneNumber
:
{
type
:
Boolean
,
value
:
false
}
},
/**
...
...
@@ -40,7 +43,7 @@ Component({
toActivity
(
e
)
{
console
.
log
(
this
.
data
.
current
,
e
.
target
.
dataset
)
const
{
activityId
}
=
e
.
target
.
dataset
wx
.
$router
.
go
(
'/packagesList/pages/activityDetail/activityDetail'
)
wx
.
$router
.
go
(
'/packagesList/pages/activityDetail/activityDetail'
,{
hasPhoneNumber
:
this
.
properties
.
hasPhoneNumber
}
)
}
}
})
pages/tab/index/components/scenario/scenario.js
View file @
d6919fb
...
...
@@ -15,6 +15,10 @@ Component({
observer
(
n
)
{
console
.
log
(
n
)
}
},
hasPhoneNumber
:
{
type
:
Boolean
,
value
:
false
}
},
...
...
@@ -51,7 +55,8 @@ Component({
wx
.
$router
.
go
(
'/packagesList/pages/videoDetal/videoDetal'
,
{
index
,
videoList
,
videoUrl
:
videoUrl
videoUrl
:
videoUrl
,
hasPhoneNumber
:
this
.
properties
.
hasPhoneNumber
})
}
}
...
...
pages/tab/index/index.wxml
View file @
d6919fb
...
...
@@ -15,8 +15,8 @@
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<scenario productData="{{productData}}" senceData="{{senceData}}">
<activity-info slot="swiper"></activity-info>
<scenario productData="{{productData}}" senceData="{{senceData}}"
hasPhoneNumber="{{hasPhoneNumber}}"
>
<activity-info slot="swiper"
hasPhoneNumber="{{hasPhoneNumber}}"
></activity-info>
</scenario>
</block>
<block wx:if="{{curTabIndex == 1}}">系统订阅</block>
...
...
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