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
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
106 additions
and
16 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({
...
@@ -76,7 +76,9 @@ Component({
}
}
},
},
jump
()
{
jump
()
{
this
.
triggerEvent
(
'toApplication'
)
// this.triggerEvent('toApplication')
console
.
log
(
333
);
wx
.
$router
.
go
(
"/packagesList/pages/activityApply/activityApply"
);
},
},
forward
()
{
forward
()
{
this
.
triggerEvent
(
'toForward'
)
this
.
triggerEvent
(
'toForward'
)
...
...
packagesList/pages/activityApply/activityApply.js
View file @
d6919fb
...
@@ -9,7 +9,7 @@ Page({
...
@@ -9,7 +9,7 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
isStaff
:
false
},
},
// 提交表单
// 提交表单
...
@@ -58,6 +58,9 @@ Page({
...
@@ -58,6 +58,9 @@ Page({
}
}
entmicroApi
.
checkPhone
(
params
).
then
(
res
=>
{
entmicroApi
.
checkPhone
(
params
).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
this
.
setData
({
isStaff
:
res
.
data
})
})
})
}
}
},
},
...
...
packagesList/pages/activityApply/activityApply.wxml
View file @
d6919fb
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</view>
</view>
<button class="submit-btn" bindtap="submitApply">提交申请</button>
<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>
<image class="caculate-img" mode="widthFix" webp src="{{IMGURL}}application/caculate_icon.png?v={{img_version}}"></image>
<text class="caculate-text">展业测算</text>
<text class="caculate-text">展业测算</text>
</view>
</view>
...
...
packagesList/pages/activityDetail/activityDetail.js
View file @
d6919fb
...
@@ -16,7 +16,13 @@ Page({
...
@@ -16,7 +16,13 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
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
// packagesList/pages/applySuccess/applySuccess.js
import
{
commonMixin
}
from
'../../../mixins/index'
Page
({
Page
({
behaviors
:
[
commonMixin
],
/**
/**
* 页面的初始数据
* 页面的初始数据
...
...
packagesList/pages/applySuccess/applySuccess.scss
View file @
d6919fb
...
@@ -57,4 +57,50 @@
...
@@ -57,4 +57,50 @@
.apply-margin
{
.apply-margin
{
margin-top
:
32rpx
;
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
\ No newline at end of file
packagesList/pages/applySuccess/applySuccess.wxml
View file @
d6919fb
...
@@ -4,11 +4,33 @@
...
@@ -4,11 +4,33 @@
<view class="apply-top">申请成功</view>
<view class="apply-top">申请成功</view>
<view class="apply-margin">
<view class="apply-margin">
<view class="apply-tip">您的申请已提交,</view>
<view class="apply-tip">您的申请已提交,</view>
<view class="apply-tip">请耐心等待顾问专员与您联系。</view>
<view class="apply-tip">请耐心等待顾问专员与您联系。</view>
</view>
</view>
<view class="back-text">返回名片</view>
<view class="back-text">返回名片</view>
<view class="apply-margin">
<view class="jump-box">
<view class="apply-info">自申请成功后,Demo有效期为<text class="info-tip">7</text>天</view>
<view class="jump-box-item" bindtap="toBusinessMiniProgram">
<view class="apply-info">关闭此页面后,智能名片将显示两个Demo入口</view>
<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>
</view>
\ No newline at end of file
\ No newline at end of file
<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
\ No newline at end of file
packagesList/pages/videoDetal/videoDetal.js
View file @
d6919fb
...
@@ -8,7 +8,8 @@ Page({
...
@@ -8,7 +8,8 @@ Page({
videoItem
:
{
videoItem
:
{
index
:
0
,
index
:
0
,
videoList
:
[],
videoList
:
[],
videoUrl
:
''
videoUrl
:
''
,
hasPhoneNumber
:
false
}
}
},
},
...
...
packagesList/pages/videoDetal/videoDetal.wxml
View file @
d6919fb
<!--packagesList/pages/videoDetal/videoDetal.wxml-->
<!--packagesList/pages/videoDetal/videoDetal.wxml-->
<!-- aaa -->
<!-- aaa -->
<gl-video-detail list="{{videoItem.videoList}}" index="{{videoItem.index}}"></gl-video-detail>
<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
\ 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
\ No newline at end of file
pages/tab/index/components/activity/activity.js
View file @
d6919fb
...
@@ -13,7 +13,10 @@ Component({
...
@@ -13,7 +13,10 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
hasPhoneNumber
:
{
type
:
Boolean
,
value
:
false
}
},
},
/**
/**
...
@@ -40,7 +43,7 @@ Component({
...
@@ -40,7 +43,7 @@ Component({
toActivity
(
e
)
{
toActivity
(
e
)
{
console
.
log
(
this
.
data
.
current
,
e
.
target
.
dataset
)
console
.
log
(
this
.
data
.
current
,
e
.
target
.
dataset
)
const
{
activityId
}
=
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({
...
@@ -15,6 +15,10 @@ Component({
observer
(
n
)
{
observer
(
n
)
{
console
.
log
(
n
)
console
.
log
(
n
)
}
}
},
hasPhoneNumber
:
{
type
:
Boolean
,
value
:
false
}
}
},
},
...
@@ -51,7 +55,8 @@ Component({
...
@@ -51,7 +55,8 @@ Component({
wx
.
$router
.
go
(
'/packagesList/pages/videoDetal/videoDetal'
,
{
wx
.
$router
.
go
(
'/packagesList/pages/videoDetal/videoDetal'
,
{
index
,
index
,
videoList
,
videoList
,
videoUrl
:
videoUrl
videoUrl
:
videoUrl
,
hasPhoneNumber
:
this
.
properties
.
hasPhoneNumber
})
})
}
}
}
}
...
...
pages/tab/index/index.wxml
View file @
d6919fb
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<view class="main-content">
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<!-- 增值转化 -->
<scenario productData="{{productData}}" senceData="{{senceData}}">
<scenario productData="{{productData}}" senceData="{{senceData}}"
hasPhoneNumber="{{hasPhoneNumber}}"
>
<activity-info slot="swiper"></activity-info>
<activity-info slot="swiper"
hasPhoneNumber="{{hasPhoneNumber}}"
></activity-info>
</scenario>
</scenario>
</block>
</block>
<block wx:if="{{curTabIndex == 1}}">系统订阅</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