Commit 4871f402 by 张立顺

冲突解决

1 parent 84f79a36
{ {
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"sence-box": "../../../../../components/SenceBox/SenceBox" "scene-box": "../../../../../components/SceneBox/SceneBox"
} }
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
</view> </view>
<!-- <scene-select/> --> <!-- <scene-select/> -->
<sence-box formData="{{item}}" senceActive="{{(sceneIndx+1)}}" /> <scene-box formData="{{item}}" bind:handleSenceChange="handleSenceChange" senceActive="{{(sceneIndx+1)}}" />
<view class="outputValueCon"> <view class="outputValueCon">
<view class="title">产值图</view> <view class="title">产值图</view>
<view class="swiperCon"> <view class="swiperCon">
......
// pages/tab/output/components/sceneSelect/sceneSelect.js
import { IMG_URL } from '~/utils/constantData'
const IMAGES = Object.freeze({
scene0: `${IMG_URL}/output/car01.png`,
scene1: `${IMG_URL}/output/car02.png`,
scene2: `${IMG_URL}/output/car03.png`,
scene3: `${IMG_URL}/output/car04.png`,
scene1Act: `${IMG_URL}/output/caract02.png`,
scene2Act: `${IMG_URL}/output/caract03.png`,
scene3Act: `${IMG_URL}/output/caract04.png`,
carselect: `${IMG_URL}/output/carselect.png`,
lock: `${IMG_URL}/output/lock.png`
// scene
})
Component({
/**
* 组件的属性列表
*/
properties: {},
/**
* 组件的初始数据
*/
data: {
// active:1,
sceneList: [
{
name: '新车洽谈场景',
label: '1.0 新车权益销售',
total: '0',
imgUrl: IMAGES.scene0,
activation: false
// actImgUrl:IMAGES.scene1Act
},
{
name: '新车交付场景',
label: '1.1 新车精品升级',
total: '1000.45',
imgUrl: IMAGES.scene1,
actImgUrl: IMAGES.scene1Act,
activation: true
},
{
name: '0-12个月',
label: '1.2 新车线上转化',
total: '0',
imgUrl: IMAGES.scene2,
actImgUrl: IMAGES.scene2Act,
activation: false
},
{
name: '12个月以上',
label: '1.3 存量用户众筹',
total: '14580.45',
imgUrl: IMAGES.scene3,
actImgUrl: IMAGES.scene3Act,
activation: true
}
],
selectInd: 1,
IMAGES
},
/**
* 组件的方法列表
*/
methods: {}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* pages/tab/output/components/senceSelect/senceSelect.wxss */
.sceneCon {
display: flex;
align-items: center;
justify-content: space-around;
padding: 27rpx 10rpx;
position: relative;
.itemCon {
position: relative;
box-sizing: border-box;
flex: 1;
height: 250rpx;
background-color: #F7F8FC;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 12rpx;
.itemImg {
position: relative;
.icon {
width: 56rpx;
height: 56rpx;
}
.lockIcon {
position: absolute;
top: -18rpx;
right: -18rpx;
// transform: translate(-50%, -50%);
width: 36rpx;
height: 36rpx;
}
}
.name {
font-size: 24rpx;
color: #8A8C90;
margin: 10rpx 0;
}
.name.activation {
font-weight: 600;
font-size: 24rpx;
color: #323436;
}
.label {
font-size: 18rpx;
color: #8A8C90;
}
.total {
font-weight: 500;
font-size: 24rpx;
color: #3666FE;
margin-top: 22rpx;
}
}
.itemCon+.itemCon {
margin-left: 4rpx;
}
.selectBgc {
border: 2px solid #3666FE;
/*按比例缩放*/
}
}
// .sceneCon
.itemCon.activation::before {
content: '已开通';
position: absolute;
top: 0rpx;
left: 0rpx;
width: 56rpx;
height: 32rpx;
line-height: 32rpx;
text-align: center;
font-size: 16rpx;
color: #EF971E;
background: #FEEBD6;
border-radius: 6rpx 0 8rpx 0;
=======
/* pages/tab/output/components/sceneSelect/sceneSelect.wxss */
.sceneCon {
display: flex;
align-items: center;
justify-content: space-around;
padding: 27rpx 10rpx;
position: relative;
.itemCon {
position: relative;
box-sizing: border-box;
flex: 1;
height: 250rpx;
background-color: #F7F8FC;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 12rpx;
.itemImg {
position: relative;
.icon {
width: 56rpx;
height: 56rpx;
}
.lockIcon {
position: absolute;
top: -18rpx;
right: -18rpx;
// transform: translate(-50%, -50%);
width: 36rpx;
height: 36rpx;
}
}
.name {
font-size: 24rpx;
color: #8A8C90;
margin: 10rpx 0;
}
.name.activation {
font-weight: 600;
font-size: 24rpx;
color: #323436;
}
.label {
font-size: 18rpx;
color: #8A8C90;
}
.total {
font-weight: 500;
font-size: 24rpx;
color: #3666FE;
margin-top: 22rpx;
}
}
.itemCon+.itemCon {
margin-left: 4rpx;
}
.selectBgc {
border: 2px solid #3666FE;
/*按比例缩放*/
}
}
// .sceneCon
.itemCon.activation::before {
content: '已开通';
position: absolute;
top: 0rpx;
left: 0rpx;
width: 56rpx;
height: 32rpx;
line-height: 32rpx;
text-align: center;
font-size: 16rpx;
color: #EF971E;
background: #FEEBD6;
border-radius: 6rpx 0 8rpx 0;
>>>>>>> 7b4444b (联调)
}
\ No newline at end of file \ No newline at end of file
<!-- pages/tab/output/components/sceneSelect/sceneSelect.wxml -->
<view class="sceneCon">
<view wx:for='{{sceneList}}' wx:key='index' class="itemCon {{index==selectInd?'selectBgc':'itembgc'}} {{item.activation?'activation':''}}">
<!-- style="background-image:url({{IMAGES.carselect}})" -->
<view class="itemImg">
<image class="icon" src="{{item.activation?item.actImgUrl:item.imgUrl}}" webp></image>
<image
class="lockIcon"
wx:if="{{!item.activation}}"
src="{{IMAGES.lock}}"
webp></image>
</view>
<view class="name {{item.activation?'activation':''}}">{{item.name}}</view>
<view class="label">{{item.label}}</view>
<view class="total">¥{{item.total}}</view>
</view>
</view>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!