Commit a0c2b175 by luyt

Merge branch 'develop' of http://192.168.3.233:8090/saas_plus/business-assistant into develop

2 parents 335d94aa 143411d4
......@@ -13,6 +13,10 @@ Component({
type: Boolean,
value: true
},
hasLockIcon: {
type: Boolean,
value: true
},
formData: {
type: Object,
value: () => { }
......
......@@ -3,8 +3,11 @@
<view class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)}}" class="open-icon">已开通</view>
<image wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
<view class="scene-title">{{item.title}}</view>
<view wx:else class="no-open-img">
<image wx:if="{{hasLockIcon}}" class="lock-img" src="{{IMGURL}}output/carlock0{{index + 1}}.png?v={{img_version}}" />
<image wx:else="" class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
</view>
<view class="scene-title {{formData['scene' + (index + 1)] ? '' : 'on-open'}}">{{item.title}}</view>
<view>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">¥ {{scenePriceList[index].total}}</view>
</view>
......
......@@ -19,7 +19,7 @@
color: #8A8C90;
padding: 32rpx 0 28rpx;
border-radius: 12rpx;
margin-bottom: 20rpx;
/* margin-bottom: 20rpx; */
}
.scene-item:last-child {
......@@ -62,14 +62,16 @@
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
}
.active::after {
position: absolute;
left: 50%;
bottom: -7px;
bottom: -18rpx;
display: block;
content: "";
width: 6px;
height: 6px;
width: 16rpx;
height: 16rpx;
/* border-radius: 4rpx; */
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
......@@ -80,7 +82,13 @@
.scene-title {
color: #323436;
font-weight: 600;
}
.scene-title.on-open {
color: #8A8C90;
}
.no-open-img {
position: relative;
}
.scene-img {
......@@ -88,6 +96,11 @@
height: 56rpx;
}
.lock-img {
width: 92rpx;
height: 64rpx;
}
.total-price {
height: 40rpx;
line-height: 40rpx;
......
......@@ -51,7 +51,7 @@ page {
.box {
&-title {
font-weight: 600;
padding: 0 0 16rpx 12rpx;
padding: 32rpx 0 16rpx 12rpx;
}
.title-tip {
......@@ -85,28 +85,30 @@ page {
background: #F0F7FF;
border: 2rpx solid #3E71FE;
color: #3666FE;
border: 1rpx solid #3E71FE;
}
}
}
.btn {
position: fixed;
bottom: 0;
bottom: 16rpx;
left: 0;
width: 100%;
width: calc(100% - 64rpx);
height: 88rpx;
line-height: 88rpx;
font-size: 34rpx;
color: #FFFFFF;
text-align: center;
font-size: 28rpx;
color: #FFFFFF;
margin: 0 32rpx;
}
.btn-blue {
background: #3666FE;
border-radius: 8rpx;
}
.btn-disabled {
background: #CCCED1;
border-radius: 8rpx;
}
}
\ No newline at end of file
<!--packageOutput/pages/openBusiness/openBusiness.wxml-->
<view class="openBusiness">
<image class="bg-img" src="{{IMGURL}}output/open0{{sceneActive}}.png?v={{img_version}}"/>
<image class="bg-img" src="{{IMGURL}}output/open0{{sceneActive}}.png?v={{img_version}}" />
<view class="layout">
<view class="form m-b-32">
<text class="label">开通门店:</text>
......@@ -20,6 +20,8 @@
</view>
</view>
</view>
<view wx:if="{{sceneActive != 1}}" class="isFullSucreen btn btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:else class="btn btn-disabled">申请开通</view>
<view class="isFullSucreen btn">
<view wx:if="{{sceneActive != 1}}" class="btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:else class="btn-disabled">申请开通</view>
</view>
</view>
\ No newline at end of file
......@@ -93,7 +93,7 @@ Page({
this.setData({
['searchForm.scene' + this.data.sceneActive + 'Idx']: res.tapIndex
})
this.data.sceneActive != 4 ? this.getCustomerDetail() : this.getActivityRevenue()
this.data.sceneActive != 4 ? this.getCustomerDetail(false, false) : this.getActivityRevenue()
}
})
},
......@@ -162,7 +162,7 @@ Page({
/** 1.1和1.2场景产品数据处理
* 调同一个接口,返回两个服务下面的全部产品的数据
*/
getCustomerDetail(isFirst = false) {
getCustomerDetail(isFirst = false, isChangeOtherTotal = true) {
var params = this.dealSearchTime()
outputApi.getCustomerDetail({ merchantId: this.data.merchantInfo.merchantId, ...params }).then(res => {
var actList = this.data.sceneActivityObj['scene' + (isFirst ? 2 : this.data.sceneActive)]
......@@ -195,9 +195,13 @@ Page({
}
// 总金额
this.setData({
['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal,
['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal
['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal
})
if(isChangeOtherTotal) {
this.setData({
['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal
})
}
!isFirst && this.setCurActivity()
})
},
......
......@@ -42,8 +42,17 @@
padding: 27rpx 0 24rpx;
}
scroll-view ::-webkit-scrollbar {
display:none;
width:0;
height:0;
color:transparent;
}
.activity-box {
width: 100%;
height: 64rpx;
padding: 32rpx 0 28rpx;
.activity-item {
box-sizing: border-box;
......@@ -115,21 +124,24 @@
.btn {
position: fixed;
bottom: 0;
bottom: 16rpx;
left: 0;
width: 100%;
width: calc(100% - 64rpx);
height: 88rpx;
line-height: 88rpx;
text-align: center;
font-size: 28rpx;
color: #FFFFFF;
margin: 0 32rpx;
.btn-blue {
background: #3666FE;
border-radius: 8rpx;
}
.btn-disabled {
background: #CCCED1;
border-radius: 8rpx;
}
}
}
\ No newline at end of file
......@@ -11,7 +11,7 @@
</view>
<!-- 活动 -->
<view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}" class="activity-box" scroll-left="{{scrollLeft}}">
<scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
<view class="flex">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">{{item.productName}}</view>
</view>
......
......@@ -42,7 +42,6 @@
.price-txt {
// font-family: 'test';
// font-family: "test";
font-weight: Bold;
// font-weight: 600;
font-size: 26rpx;
......
......@@ -23,7 +23,7 @@
</view>
<!-- 场景内容 -->
<view class="box-content">
<scene-box formData="{{item}}" />
<scene-box formData="{{item}}" hasLockIcon="{{false}}" />
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!