Commit 70f17c31 by 胡悦

Merge branch 'huyue_v3.3.0' of http://192.168.3.233:8090/saas/mini-program/ai-card into huyue_v3.3.0

2 parents e500853e 8b3a0a1f
...@@ -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')
......
...@@ -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
})
}) })
} }
}, },
......
...@@ -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>
......
...@@ -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 // packagesList/pages/applySuccess/applySuccess.js
import {commonMixin} from '../../../mixins/index'
Page({ Page({
behaviors: [commonMixin],
/** /**
* 页面的初始数据 * 页面的初始数据
......
...@@ -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
...@@ -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
...@@ -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--> <!--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
...@@ -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})
} }
} }
}) })
...@@ -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
}) })
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!