初始化
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
// pages/distributionDesc/index.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
distributionType: 0
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
this.setData({
|
||||
distributionType: parseInt(options.distributionType)
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "分销模式说明",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<view class="dd-page">
|
||||
<view wx:if="{{distributionType===1}}">
|
||||
<view class="dd-title">
|
||||
<view class="dd-title-icon">
|
||||
<image src="https://pxboss.xiaohebang.cn/system/material/mini/com/i-serial.png" mode="aspectFit" />
|
||||
<view>1</view>
|
||||
</view>
|
||||
<text>无需购买 随时分销</text>
|
||||
</view>
|
||||
<view class="dd-text">家长无需购买即可直接获取自己的专属海报,成为推广员获得佣金奖励,实现最大化传播裂变</view>
|
||||
<view class="dd-img-box">
|
||||
<image src="https://pxboss.xiaohebang.cn/system/material/mini/com/distribution1.png" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="dd-img-box">
|
||||
<image src="https://pxboss.xiaohebang.cn/system/material/mini/com/distribution2.png" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{distributionType===0}}">
|
||||
<view class="dd-title">
|
||||
<view class="dd-title-icon">
|
||||
<image src="https://pxboss.xiaohebang.cn/system/material/mini/com/i-serial.png" mode="aspectFit" />
|
||||
<view>1</view>
|
||||
</view>
|
||||
<text>购买后分销</text>
|
||||
</view>
|
||||
<view class="dd-text">家长需付费购买报名后才能获取专属海报,成为推广员获得佣金奖励,锁定精准生源</view>
|
||||
<view class="dd-img-box">
|
||||
<image src="https://pxboss.xiaohebang.cn/system/material/mini/com/distribution3.png" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="dd-img-box">
|
||||
<image src="https://pxboss.xiaohebang.cn/system/material/mini/com/distribution2.png" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,44 @@
|
||||
.dd-page {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.dd-title {
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.dd-title-icon {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
.dd-title-icon > image {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
.dd-title-icon > view {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.dd-text {
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.dd-img-box {
|
||||
margin: 1rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
.dd-img-box > image {
|
||||
max-width: 100%;
|
||||
}
|
||||
Reference in New Issue
Block a user