Commit d6919fb9 by 前端

手机号授权传参

1 parent 54f0bc13
......@@ -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')
......
......@@ -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
})
})
}
},
......
......@@ -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>
......
......@@ -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
import {commonMixin} from '../../../mixins/index'
Page({
behaviors: [commonMixin],
/**
* 页面的初始数据
......
......@@ -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
......@@ -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
......@@ -8,7 +8,8 @@ Page({
videoItem: {
index: 0,
videoList: [],
videoUrl: ''
videoUrl: '',
hasPhoneNumber: false
}
},
......
<!--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
......@@ -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})
}
}
})
......@@ -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
})
}
}
......
......@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!