Commit 9c453fc7 by 前端

活动申请

1 parent cb664ab0
...@@ -16,7 +16,10 @@ ...@@ -16,7 +16,10 @@
"pages": [ "pages": [
"pages/index/index", "pages/index/index",
"pages/measure/measure/measure", "pages/measure/measure/measure",
"pages/measure/measureResult/measureResult" "pages/measure/measureResult/measureResult",
"pages/activityApply/activityApply",
"pages/applySuccess",
"pages/applySuccess/applySuccess"
] ]
} }
], ],
......
// components/CooperationApply/CooperationApply.js // components/CooperationApply/CooperationApply.js
import WxValidate from "../../utils/WxValidate"; import WxValidate from "../../utils/WxValidate";
import util from "../../utils/util" import util from "../../utils/util"
import {
componentsMixin
} from "../../mixins/index";
Component({ Component({
behaviors: [componentsMixin],
options: {
// 基础库2.2.3开始支持
addGlobalClass: true
},
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
...@@ -11,23 +19,25 @@ Component({ ...@@ -11,23 +19,25 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
tabData: [ tabData: [{
{ name: "增值转化",
name: "门店合作申请",
value: 0, value: 0,
}, },
{ {
name: "代理商合作申请", name: "系统订阅",
value: 1, value: 1,
}, },
], ],
tabIndex: 0, tabIndex: 0,
applyForm: { applyForm: {
applyType: '1',
merchantName: "", merchantName: "",
carModel: "", carModel: "",
contactName: "", contactName: "",
contactPhone: "", contactPhone: "",
}, },
foldFlag: false,
selectApply: 1
}, },
/** /**
...@@ -40,10 +50,27 @@ Component({ ...@@ -40,10 +50,27 @@ Component({
tabIndex: e.currentTarget.dataset.index, tabIndex: e.currentTarget.dataset.index,
}); });
}, },
// 合作方式切换
applyChange(e) {
console.log(e.detail.value);
this.setData({
selectApply: e.detail.value,
});
this.selectComponent("#sceneBox").resetScene()
},
// 展开收起
handleFold() {
this.setData({
foldFlag: !this.data.foldFlag
})
},
// 表单验证规则 // 表单验证规则
initValidate() { initValidate() {
console.log(123123); console.log(123123);
const rules = { const rules = {
applyType: {
required: true,
},
merchantName: { merchantName: {
required: true, required: true,
}, },
...@@ -97,7 +124,17 @@ Component({ ...@@ -97,7 +124,17 @@ Component({
this.showModal(error); this.showModal(error);
return false; return false;
} else { } else {
return [params, this.data.tabIndex]; // return [params, this.data.tabIndex, this.data.applyForm.applyType];
let selectScene = this.selectComponent("#sceneBox").getSceneItems();
console.log(selectScene, 999);
if (selectScene) {
params.businessScenario = selectScene[0].title;
params.productItems = selectScene[1].join(",");
}
let applyType = this.data.tabIndex == 0 ? '增值转化' : '系统订阅';
let ccoperationType = this.data.applyForm.applyType == 1 ? '门店' : '代理商';
params.merchantName = params.merchantName + '(' + applyType + '-' + ccoperationType + ')'
return params
} }
}, },
...@@ -116,8 +153,8 @@ Component({ ...@@ -116,8 +153,8 @@ Component({
// 初始化验证规则函数 // 初始化验证规则函数
this.initValidate(); this.initValidate();
}, },
attached: function() { attached: function () {
if (util.getUserInfo()&& util.getUserInfo().phone) { if (util.getUserInfo() && util.getUserInfo().phone) {
this.setPhone(util.getUserInfo().phone) this.setPhone(util.getUserInfo().phone)
console.log(this.data.applyForm) console.log(this.data.applyForm)
} }
......
{ {
"component": true, "component": true,
"usingComponents": {} "usingComponents": {
"scene" : "../scene/scene"
}
} }
\ No newline at end of file \ No newline at end of file
/* components/CooperationApply/CooperationApply.wxss */ /* components/CooperationApply/CooperationApply.wxss */
.apply-main {
width: 702rpx;
background: #FFFFFF;
box-shadow: 0 6rpx 24rpx 0 rgba(175, 181, 219, 0.40);
border-radius: 16rpx;
}
.tab-top { .tab-top {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
...@@ -16,7 +23,7 @@ ...@@ -16,7 +23,7 @@
.tab-title-active { .tab-title-active {
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
font-weight: 600; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #323436; color: #323436;
line-height: 110rpx; line-height: 110rpx;
...@@ -47,6 +54,10 @@ ...@@ -47,6 +54,10 @@
border-bottom: 1rpx solid #eee; border-bottom: 1rpx solid #eee;
} }
.info-list:last-child {
border-bottom: none;
}
.info-lable { .info-lable {
width: 176rpx; width: 176rpx;
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
...@@ -58,3 +69,23 @@ ...@@ -58,3 +69,23 @@
.require { .require {
color: #EB4E4E; color: #EB4E4E;
} }
.apply-fold {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #5850FF;
text-align: center;
padding: 32rpx 0 40rpx 0;
}
.fold-icon {
width: 24rpx;
height: 24rpx;
vertical-align: middle;
margin-left: 8rpx;
}
.scene-box {
padding-bottom: 50rpx;
}
\ No newline at end of file \ No newline at end of file
<!-- components/CooperationApply/CooperationApply.wxml --> <!-- components/CooperationApply/CooperationApply.wxml -->
<view> <view class="apply-main">
<view class="tab-top"> <view class="tab-top">
<view wx:for="{{tabData}}" wx:key="index" class="tab-title {{item.value == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{item.value}}"> <view wx:for="{{tabData}}" wx:key="index" class="tab-title {{item.value == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{item.value}}">
{{item.name}} {{item.name}}
...@@ -8,13 +8,25 @@ ...@@ -8,13 +8,25 @@
<form> <form>
<view class="apply-info"> <view class="apply-info">
<view class='info-list'> <view class='info-list'>
<text class="info-lable">门店名称<text class="require">*</text> <text class="info-lable">合作方式<text class="require">*</text>
</text>
<radio-group name="applyType" class="radio-wrap" bindchange="applyChange">
<label>
<radio value="1" checked />门店合作
</label>
<label>
<radio value="2" />代理商合作
</label>
</radio-group>
</view>
<view class='info-list'>
<text class="info-lable">{{tabIndex == 0 ? '门店名称' : '企业名称'}}<text class="require">*</text>
</text> </text>
<input name="merchantName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入门店名称' value="{{applyForm.merchantName}}" bindinput="handleInput" data-name="merchantName" maxlength="30"></input> <input name="merchantName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入门店名称' value="{{applyForm.merchantName}}" bindinput="handleInput" data-name="merchantName" maxlength="30"></input>
</view> </view>
<view class='info-list'> <view class='info-list'>
<text class="info-lable">{{tabIndex == 0 ? '主营品牌' : '合作品牌'}}</text> <text class="info-lable">{{tabIndex == 0 ? '主营品牌' : '合作品牌'}}</text>
<input name="carModel" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder="{{tabIndex == 0 ? '请输入主营品牌' : '请输入合作品牌'}}"value="{{applyForm.carModel}}" bindinput="handleInput" data-name="carModel" maxlength="30"></input> <input name="carModel" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder="{{tabIndex == 0 ? '请输入主营品牌' : '请输入合作品牌'}}" value="{{applyForm.carModel}}" bindinput="handleInput" data-name="carModel" maxlength="30"></input>
</view> </view>
<view class='info-list'> <view class='info-list'>
<text class="info-lable">联系人<text class="require">*</text> <text class="info-lable">联系人<text class="require">*</text>
...@@ -22,10 +34,21 @@ ...@@ -22,10 +34,21 @@
<input name="contactName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入姓名' value="{{applyForm.contactName}}" bindinput="handleInput" data-name="contactName" maxlength="30"></input> <input name="contactName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入姓名' value="{{applyForm.contactName}}" bindinput="handleInput" data-name="contactName" maxlength="30"></input>
</view> </view>
<view class='info-list'> <view class='info-list'>
<text class="info-lable">手机号<text class="require">*</text> <text class="info-lable">联系电话<text class="require">*</text>
</text> </text>
<input name="contactPhone" type='text' maxlength="11" placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入手机号' value="{{applyForm.contactPhone}}" bindinput="handleInput" data-name="contactPhone"></input> <input name="contactPhone" type='text' maxlength="11" placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入手机号' value="{{applyForm.contactPhone}}" bindinput="handleInput" data-name="contactPhone"></input>
</view> </view>
</view> </view>
</form> </form>
<!-- 展开收起 -->
<view class="apply-fold" bindtap="handleFold">
<text wx:if="{{!foldFlag}}">选择业务场景</text>
<text wx:else>收起</text>
<image wx:if="{{!foldFlag}}" class="fold-icon" mode="widthFix" webp src="{{IMGURL}}application/down_icon.png?v={{img_version}}"></image>
<image wx:else class="fold-icon" mode="widthFix" webp src="{{IMGURL}}application/up_icon.png?v={{img_version}}"></image>
</view>
<!-- 选择产品和场景 -->
<view class="scene-box">
<scene id="sceneBox" foldFlag="{{foldFlag}}" selectApply="{{selectApply}}"></scene>
</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
// components/scene/scene.js
import {
componentsMixin
} from "../../mixins/index";
Component({
behaviors: [componentsMixin],
/**
* 组件的属性列表
*/
properties: {
foldFlag: {
type: Boolean,
value: false
},
selectApply: {
type: Number,
value: 1
}
},
/**
* 组件的初始数据
*/
data: {
productTabList: [{
id: "0",
name: "scene1",
title: "车损升级",
url: "car4",
},
{
id: "1",
name: "scene2",
title: "精品升级",
url: "car1",
},
{
id: "2",
name: "scene3",
title: "膨胀金活动",
url: "car2",
},
{
id: "3",
name: "scene4",
title: "众筹活动",
url: "car3",
},
],
productSubscribTabList: [{
id: "0",
name: "scene1",
title: "客户沉淀",
url: "car4",
},
{
id: "1",
name: "scene2",
title: "客户活跃",
url: "car1",
},
],
productList: {
scene1: [{
name: "equity",
url: "digital_icon",
nameZh: "数字无忧权益卡",
isSelect: false,
actNum: 0,
activeNavIdx: 0,
},
{
nameZh: "其他",
isSelect: false,
},
],
scene2: [{
name: "solarFilm",
url: "solar_icon",
nameZh: "汽车太阳膜",
isSelect: false,
actNum: 1,
activeNavIdx: 0,
},
{
nameZh: "其他",
isSelect: false,
},
],
scene3: [{
name: "paintProtect",
url: "protect_icon",
nameZh: "漆面保护膜",
isSelect: false,
actNum: 2,
activeNavIdx: 0,
},
{
name: "changingFilm",
url: "change_icon",
nameZh: "改色膜",
isSelect: false,
actNum: 2,
activeNavIdx: 1,
},
{
nameZh: "其他",
isSelect: false,
},
],
scene4: [{
name: "carBeauty",
url: "beauty_icon",
nameZh: "数字化美容",
isSelect: false,
actNum: 3,
activeNavIdx: 0,
},
{
name: "seatVentilate",
url: "seat_icon",
nameZh: "座椅通风",
isSelect: false,
actNum: 3,
activeNavIdx: 1,
},
{
name: "arNavigation",
url: "ar_icon",
nameZh: "AR导航",
isSelect: false,
actNum: 3,
activeNavIdx: 2,
},
{
name: "ambientLighting",
url: "light_icon",
nameZh: "氛围灯",
isSelect: false,
actNum: 3,
activeNavIdx: 3,
},
{
name: "navigationArround",
url: "arround_icon",
nameZh: "360全景导航",
isSelect: false,
actNum: 3,
activeNavIdx: 4,
},
{
name: "fragrance",
url: "fragrance",
nameZh: "智能香氛系统",
isSelect: false,
actNum: 3,
activeNavIdx: 5,
},
{
nameZh: "其他",
isSelect: false,
},
],
},
productSubscibList: {
scene1: [{
nameZh: "私域用户活跃代运营",
isSelect: false,
actNum: 0,
activeNavIdx: 0,
},
{
nameZh: "定保/续保数字化招揽",
isSelect: false,
actNum: 0,
activeNavIdx: 1,
},
{
nameZh: "其他",
isSelect: false,
},
],
scene2: [{
nameZh: "事故车救援服务",
isSelect: false,
actNum: 1,
activeNavIdx: 0,
},
{
nameZh: "其他",
isSelect: false,
},
],
},
sceneNum: "",
sceneName: "",
},
/**
* 组件的方法列表
*/
methods: {
// 选择业务场景
selectScene(e) {
// 遍历之前业务场景下产品是否已选择,选择了的话取消选中
if (this.data.sceneName) {
let newProductList;
newProductList = this.data.productList[this.data.sceneName].map(
(item) => {
if (item.isSelect) item.isSelect = false;
return item;
}
);
let selectList = `productList.${this.data.sceneName}`;
this.setData({
[selectList]: newProductList,
});
}
this.setData({
sceneNum: e.currentTarget.dataset.item.id,
sceneName: e.currentTarget.dataset.item.name,
});
},
// 选择业务场景产品
selectScenePro(e) {
console.log(e.currentTarget.dataset, this.properties.selectApply);
var index = e.currentTarget.dataset.index;
var item = this.properties.selectApply == 1 ? this.data.productList[this.data.sceneName][index] : this.data.productSubscibList[this.data.sceneName][index];
item.isSelect = !item.isSelect;
if (this.properties.selectApply == 1) {
// let newProductList = `productListt.${this.data.sceneName}[0]`
// console.log(newProductList, item);
this.setData({
productList: this.data.productList,
});
return
}
this.setData({
productSubscibList: this.data.productSubscibList,
});
},
// 合作方式切换重置场景以及选择的产品
resetScene() {
if (!this.data.sceneName) return
console.log(this.properties.selectApply, this.data.sceneName, this.data.sceneNum);
if (this.properties.selectApply == 2) {
this.data.productList[this.data.sceneName].map((item) => {
if (item.isSelect) item.isSelect = false
})
console.log(this.data.productList[this.data.sceneName]);
this.setData({
productList: this.data.productList,
})
} else {
this.data.productSubscibList[this.data.sceneName].map((item) => {
if (item.isSelect) item.isSelect = false
})
console.log(this.data.productSubscibList[this.data.sceneName]);
this.setData({
productSubscibList: this.data.productSubscibList,
})
}
this.setData({
sceneName: '',
sceneNum: ''
})
},
// 提交获取业务场景以及选择的产品
getSceneItems() {
console.log(111);
// 如果选择了业务场景
if (!this.data.sceneName) return
let selectFlag = 0;
let productItems = [];
let businessItem
if (this.properties.selectApply == 1) {
this.data.productList[this.data.sceneName].forEach((item) => {
if (item.isSelect) {
selectFlag = selectFlag + 1;
productItems.push(item.nameZh);
}
});
businessItem = this.data.productTabList.find((item) => {
return item.id == this.data.sceneNum;
});
} else {
this.data.productSubscibList[this.data.sceneName].forEach((item) => {
if (item.isSelect) {
selectFlag = selectFlag + 1;
productItems.push(item.nameZh);
}
});
businessItem = this.data.productSubscribTabList.find((item) => {
return item.id == this.data.sceneNum;
});
}
if (!selectFlag) {
wx.hideLoading();
wx.showToast({
title: "请至少选择一个产品",
icon: "none",
});
return;
}
return [businessItem, productItems]
}
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* components/scene/scene.wxss */
.fold-title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 28rpx;
color: #323436;
padding-left: 32rpx;
}
.product-tab-box {
display: flex;
margin-bottom: 38rpx;
}
.fold-box {
padding: 44rpx 16rpx;
}
.item-wrap {
position: relative;
/* width: 160rpx; */
width: calc(100%/4);
height: 152rpx;
border-radius: 12rpx;
margin-right: 12rpx;
}
.item-wrap:last-child {
margin-right: 0
}
.act {
border: 2rpx solid #5850FF;
}
.act::after {
position: absolute;
left: 50%;
bottom: -15rpx;
display: block;
content: "";
width: 14rpx;
height: 14rpx;
border-bottom: 2rpx solid #5850FF;
border-right: 2rpx solid #5850FF;
transform: rotate(45deg) translateX(-50%);
background-color: #fff;
}
.fold-scene-item {
/* width: 160rpx; */
width: 100%;
height: 152rpx;
background: #F7F7FC;
border-radius: 12rpx;
text-align: center;
}
.fold-scene-item-active {
background-image: linear-gradient(145deg, #E6E6FF 0%, #FFFFFF 73%);
}
.fold-img {
width: 56rpx;
height: 56rpx;
margin-top: 20rpx;
}
.product-item-title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 24rpx;
color: #323436;
letter-spacing: 0;
text-align: center;
line-height: 44rpx;
margin-top: 4rpx;
}
.product-item-title-active {
color: #5850FF;
}
// .product-item-type {
// font-family: PingFangSC-Regular;
// font-weight: 500;
// font-size: 17rpx;
// color: #323436;
// letter-spacing: 0;
// text-align: center;
// line-height: 24rpx;
// }
// .product-item-type-active {
// color: #807AFF;
// }
.fold-tip {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 22rpx;
color: #6E6E7A;
}
.fold-product {
display: flex;
flex-wrap: wrap;
padding: 36rpx 16rpx 64rpx 16rpx;
}
.item {
/* width: 216rpx; */
width: calc((100% - 24rpx)/3);
height: 64rpx;
background: #F5F5FA;
border-radius: 8rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #323436;
letter-spacing: 0;
text-align: center;
margin-right: 12rpx;
margin-bottom: 20rpx;
position: relative;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.item-subscrib {
width: calc((100% - 24rpx)/2);
}
.item:nth-child(3n) {
margin-right: 0;
}
.item-selected {
color: #5850FF;
font-weight: 600;
border: 2rpx solid #9B96FF;
}
.selected-img {
width: 30rpx;
height: 22rpx;
position: absolute;
top: -1rpx;
right: -1rpx;
}
\ No newline at end of file \ No newline at end of file
<!--components/scene/scene.wxml-->
<block wx:if="{{foldFlag}}">
<!-- 业务场景 -->
<view class="fold-title">业务场景</view>
<view class="product-tab-box fold-box">
<view wx:for="{{selectApply == 1 ? productTabList : productSubscribTabList}}" wx:key="index" class="item-wrap {{item.id == sceneNum ? 'act':''}}" bindtap="selectScene" data-item="{{item}}">
<view class="fold-scene-item {{item.id == sceneNum ? 'fold-scene-item-active':''}}">
<image class="fold-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}"></image>
<view class="product-item-title {{item.id == sceneNum ? 'product-item-title-active':''}}">
{{item.title}}
</view>
</view>
</view>
</view>
<!-- 选择产品 -->
<block wx:if="{{sceneNum}}">
<view>
<text class="fold-title">选择产品</text>
<text class="fold-tip">(可多选)</text>
</view>
<view class="fold-product">
<!-- 增值转化 -->
<block wx:if="{{selectApply == 1}}">
<block wx:for="{{productList[sceneName]}}">
<view class="item {{item.isSelect ? 'item-selected': ''}}" bindtap="selectScenePro" data-index="{{index}}">
<view>{{item.nameZh}}</view>
<image wx:if="{{item.isSelect}}" class="selected-img" mode="widthFix" webp src="{{IMGURL}}application/selected_icon.png?v={{img_version}}"></image>
</view>
</block>
</block>
<!-- 系统订阅 -->
<block wx:if="{{selectApply == 2}}">
<block wx:for="{{productSubscibList[sceneName]}}">
<view class="item item-subscrib {{item.isSelect ? 'item-selected': ''}}" bindtap="selectScenePro" data-index="{{index}}">
<view>{{item.nameZh}}</view>
<image wx:if="{{item.isSelect}}" class="selected-img" mode="widthFix" webp src="{{IMGURL}}application/selected_icon.png?v={{img_version}}"></image>
</view>
</block>
</block>
</view>
</block>
</block>
\ No newline at end of file \ No newline at end of file
// packagesList/pages/activityApply/activityApply.js
import { entmicroApi } from "../../../api/api";
Page({
/**
* 页面的初始数据
*/
data: {
},
// 提交表单
submitApply() {
wx.$util.showLoading("提交中...");
let validFlag = this.selectComponent("#applyForm").validateForm();
console.log(validFlag);
if (!validFlag) return
let params = JSON.parse(JSON.stringify(validFlag))
params.cardId = wx.$storage.get("scene").cardId;
params.merchant =
wx.$storage.get("scene").merchant ||
wx.$storage.get("scene").merchantId;
params.openId = wx.$storage.get("aicard_info").openId;
params.unionId = wx.$storage.get("aicard_info").unionId;
console.log(params);
entmicroApi.activityApply(params).then(({ data, code, message }) => {
if (code == 0) {
wx.hideLoading();
wx.showToast({
msg: "提交成功",
});
wx.$router.go("applySuccess");
} else {
wx.hideLoading();
wx.showToast({
title: message,
icon: "none",
});
}
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"CooperationApply" : "../../../components/CooperationApply/CooperationApply"
},
"navigationBarTitleText": "活动申请"
}
\ No newline at end of file \ No newline at end of file
/* packagesList/pages/activityApply/activityApply.wxss */
.top-img {
width: 750rpx;
height: 320rpx;
}
.apply-box {
width: 750rpx;
// height: 664rpx;
background-image: linear-gradient(179deg, #D5DEFC 0%, #FEFEFE 100%);
display: flex;
flex-direction: column;
}
.cooperation {
align-self: center;
}
/* 选中后的背景样式*/
/*按钮的大小*/
label {
font-size: 28rpx;
}
radio .wx-radio-input {
width: 22rpx;
height: 22rpx;
border-radius: 50%;
}
radio .wx-radio-input.wx-radio-input-checked {
/* 背景颜色 */
background-color: #fff !important;
/* 边框颜色 */
border-color: #5850FF !important;
}
/* 选中后的实心样式*/
radio .wx-radio-input.wx-radio-input-checked::before {
/* 将对号去掉 */
content: '';
/*实心圆圈的大小*/
width: 18rpx;
height: 18rpx;
line-height: 18rpx;
text-align: center;
/*将圆角设置成50%才是一个圆*/
border-radius: 50%;
/*圆圈颜色*/
background-color: #5850FF;
transform: translate(-50%, -50%) scale(1);
-webkit-transform: translate(-50%, -50%) scale(1);
}
.submit-btn {
position: fixed;
bottom: 32rpx;
left: 48rpx;
width: 622rpx;
height: 80rpx;
background: #5850FF;
border-radius: 8rpx;
text-align: center;
font-size: 28rpx;
color: #FFFFFF;
font-weight: 500;
font-family: PingFangSC-Medium;
line-height: 80rpx;
}
\ No newline at end of file \ No newline at end of file
<!--packagesList/pages/activityApply/activityApply.wxml-->
<view>
<image class="top-img" mode="widthFix" webp src="{{IMGURL}}application/application_top.png?v={{img_version}}"></image>
<view class="apply-box">
<view class="cooperation">
<CooperationApply id="applyForm"></CooperationApply>
</view>
</view>
<button class="submit-btn" bindtap="submitApply">提交申请</button>
</view>
\ No newline at end of file \ No newline at end of file
// packagesList/pages/applySuccess.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packagesList/pages/applySuccess.wxss */
\ No newline at end of file \ No newline at end of file
<!--packagesList/pages/applySuccess.wxml-->
<text>packagesList/pages/applySuccess.wxml</text>
// packagesList/pages/applySuccess/applySuccess.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "活动申请"
}
\ No newline at end of file \ No newline at end of file
/* packagesList/pages/applySuccess/applySuccess.wxss */
.apply-box {
display: flex;
flex-direction: column;
}
.apply-icon {
width: 448rpx;
height: 192rpx;
margin: auto;
margin-top: 152rpx;
}
.apply-top {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 56rpx;
color: #2D2D33;
text-align: center;
margin-top: 40rpx;
}
.apply-tip {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #333333;
text-align: center;
line-height: 48rpx;
}
.back-text {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 32rpx;
color: #5850FF;
text-align: center;
line-height: 48rpx;
margin-top: 32rpx;
}
.apply-info {
color: rgba(102, 102, 102, 1);
font-size: 24rpx;
font-face: PingFangSC;
font-weight: 400;
line-height: 40rpx;
letter-spacing: 0;
paragraph-spacing: 0;
text-align: center;
.info-tip {
color: rgba(51, 51, 51, 1);
font-weight: 500;
}
}
.apply-margin {
margin-top: 32rpx;
}
\ No newline at end of file \ No newline at end of file
<!--packagesList/pages/applySuccess/applySuccess.wxml-->
<view class="apply-box">
<image webp mode="widthFix" class="apply-icon" src="{{IMGURL}}application/apply-succes.png?v={{img_version}}"></image>
<view class="apply-top">申请成功</view>
<view class="apply-margin">
<view class="apply-tip">您的申请已提交,</view>
<view class="apply-tip">请耐心等待顾问专员与您联系。</view>
</view>
<view class="back-text">返回名片</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 \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!