Commit 07ab7bf7 by 前端

Merge branch 'v3.0' into 'zhangxw_dev_3.0'

V3.0

See merge request !11
2 parents ad3db05c 23bc7baa
...@@ -50,7 +50,8 @@ ...@@ -50,7 +50,8 @@
"pages/visitor/visitor", "pages/visitor/visitor",
"pages/order/order", "pages/order/order",
"pages/taskDetail/taskDetail", "pages/taskDetail/taskDetail",
"pages/warReport/warReport" "pages/warReport/warReport",
"pages/applyActivity/index"
] ]
}, },
{ {
......
Page({
data: {
list: [
{
name: '新车洽谈场景',
tip: '1.0 新车权益销售',
},
{
name: '新车交付场景',
tip: '1.1 新车精品升级',
},
{
name: '0-12个月',
tip: '1.2 新车线上转化',
},
{
name: '12个月以上',
tip: '1.3 存量用户众筹',
},
],
currentIndex: 0,
product: [
{
id: 0,
name: '360全景导航',
isSelect: false
},
{
id: 0,
name: '360全景导航',
isSelect: false
},
{
id: 0,
name: '360全景导航',
isSelect: false
},
{
id: 0,
name: '360全景导航',
isSelect: false
},
{
id: 0,
name: '360全景导航',
isSelect: false
}
]
},
select(e) {
const { index } = e.currentTarget.dataset
this.setData({
currentIndex: index
})
},
selectProduct(e) {
const { item, index } = e.currentTarget.dataset
let name = `product[${index}].isSelect`
this.setData({
[name]: !item.isSelect
})
}
})
\ 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
page {
background: white;
}
.container {
position: relative;
}
.pos_wrap {
position: absolute;
left: 24rpx;
top: 336rpx;
}
.wrapper {
width: calc(100% - 48rpx);
background: #FFFFFF;
box-shadow: 0 12rpx 24rpx 0 rgba(106, 126, 204, 0.12);
border-radius: 24rpx;
padding: 32rpx 0;
.title {
box-sizing: border-box;
padding: 0 32rpx 32rpx 32rpx;
font-weight: 400;
font-size: 28rpx;
color: #9E9EA8;
.txt {
color: #1B233D;
}
}
.titleSign {
box-sizing: border-box;
padding: 0 32rpx;
.lineTip {
width: 6rpx;
height: 28rpx;
transform: rotate(-180deg);
background: #4466F0;
border-radius: 8rpx 8rpx 0 0;
margin-right: 18rpx;
}
.label {
font-weight: 500;
font-size: 32rpx;
color: #1B233D;
line-height: 56rpx;
}
}
.sinceTitle {
font-weight: 500;
font-size: 28rpx;
color: #323436;
margin-top: 24rpx;
margin-bottom: 32rpx;
box-sizing: border-box;
padding-left: 32rpx;
}
.widget {
box-sizing: border-box;
padding: 0 16rpx;
.element {
width: 154rpx;
height: 180rpx;
background: #F7F8FA;
border-radius: 16rpx;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
border: 2rpx solid #F7F8FA;
.icon {
width: 56rpx;
height: 56rpx;
margin-top: 20rpx;
}
.name {
font-size: 24rpx;
color: #323436;
line-height: 44rpx;
font-weight: 500;
}
.tip {
font-size: 18rpx;
color: #8A8C90;
line-height: 24rpx;
}
.active_color {
color: #4466F0;
}
}
.active {
background-image: linear-gradient(145deg, #E6E6FF 0%, #FFFFFF 73%);
border: 2rpx solid #4466F0;
.triangle-down {
width: 0;
height: 0;
border-left: 18rpx solid transparent;
border-right: 18rpx solid transparent;
border-top: 15rpx solid #4466F0;
position: absolute;
left: 50%;
bottom: -14rpx;
transform: translateX(-50%);
}
// .triangle-down_temp {
// width: 0;
// height: 0;
// border-left: 15rpx solid transparent;
// border-right: 15rpx solid transparent;
// border-top: 13rpx solid white;
// position: absolute;
// left: 50%;
// bottom: -13rpx;
// transform: translateX(-50%);
// }
}
}
.title_tip {
font-weight: 500;
font-size: 28rpx;
color: #323436;
margin: 48rpx 0 32rpx 32rpx;
.tips {
font-weight: 400;
font-size: 22rpx;
color: #323436;
}
}
.product_wrap {
box-sizing: border-box;
padding: 0 32rpx;
flex-wrap: wrap;
.box {
width: 33.33%;
box-sizing: border-box;
padding-right: 12rpx;
}
.element {
width: 100%;
height: 60rpx;
background: #F5F6FA;
border-radius: 12rpx;
font-weight: 400;
font-size: 28rpx;
color: #323436;
line-height: 44rpx;
margin-bottom: 20rpx;
border: 1rpx solid #F5F6FA;
}
.active {
background: rgba(71, 106, 250, 0.09);
border: 1rpx solid #6A84F0;
border-radius: 12rpx;
color: #4466F0;
font-weight: 500;
}
}
}
.btn {
width: 622rpx;
height: 88rpx;
background-image: linear-gradient(-60deg, #556AF5 0%, #7197FF 100%);
border-radius: 20rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
margin: 64rpx 0 64rpx 40rpx;
}
\ No newline at end of file \ No newline at end of file
<view class="container">
<image mode="widthFix" class="topBg" src="{{IMGURL}}apply_active_bg.png" />
<view class="pos_wrap">
<view class="wrapper">
<view class="title">
<text>开通门店:</text>
<text class="txt">嘀加辉鹏奥迪4s店</text>
</view>
<view class="titleSign flex_sc">
<view class="lineTip"></view>
<view class="label">开通门店活动产品/活动</view>
</view>
<view class="sinceTitle">业务场景</view>
<view class="widget flex_scb">
<block wx:for="{{list}}" wx:key="index">
<view bind:tap="select" data-index="{{index}}" class="element {{currentIndex==index?'active':''}}">
<image mode="widthFix" class="icon" src="{{IMGURL}}apply_activity_icon_{{index+1}}.png" />
<view class="name {{currentIndex==index?'active_color':''}}">
{{item.name}}
</view>
<view class="tip {{currentIndex==index?'active_color':''}}">
{{item.tip}}
</view>
<view class="triangle-down"></view>
<!-- <view class="triangle-down_temp"></view> -->
</view>
</block>
</view>
<view class="title_tip">
产品/活动
<text class="tips">(可多选)</text>
</view>
<view class="product_wrap flex_sc">
<block wx:for="{{product}}" wx:key="index">
<view class="box">
<view bind:tap="selectProduct" data-index="{{index}}" data-item="{{item}}" class="element flex_cc {{item.isSelect?'active':''}}">
{{item.name}}
</view>
</view>
</block>
</view>
</view>
<view class="btn flex_cc">申请开通</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
<!-- 收益明细信息 --> <!-- 收益明细信息 -->
<list-info-widget></list-info-widget> <list-info-widget></list-info-widget>
</view> </view>
<van-popup bind:click-overlay="toCloseModal" show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 35%" > <!-- 绑定微信提示弹框 -->
<van-popup bind:click-overlay="toCloseModal" show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 35%">
<view class="modal_title">提示</view> <view class="modal_title">提示</view>
<view class="modal_tip">您未绑定微信,请先完成绑定</view> <view class="modal_tip">您未绑定微信,请先完成绑定</view>
<button class="modal_btn">去绑定</button> <button class="modal_btn">去绑定</button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!