Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 143411d4
authored
Oct 26, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
8db91880
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
64 additions
and
25 deletions
components/SceneBox/SceneBox.js
components/SceneBox/SceneBox.wxml
components/SceneBox/SceneBox.wxss
packageOutput/pages/openBusiness/openBusiness.scss
packageOutput/pages/openBusiness/openBusiness.wxml
packageOutput/pages/summary/summary.js
packageOutput/pages/summary/summary.scss
packageOutput/pages/summary/summary.wxml
pages/tab/output/components/client/client.scss
pages/tab/output/components/client/client.wxml
components/SceneBox/SceneBox.js
View file @
143411d
...
@@ -13,6 +13,10 @@ Component({
...
@@ -13,6 +13,10 @@ Component({
type
:
Boolean
,
type
:
Boolean
,
value
:
true
value
:
true
},
},
hasLockIcon
:
{
type
:
Boolean
,
value
:
true
},
formData
:
{
formData
:
{
type
:
Object
,
type
:
Object
,
value
:
()
=>
{
}
value
:
()
=>
{
}
...
...
components/SceneBox/SceneBox.wxml
View file @
143411d
...
@@ -3,8 +3,11 @@
...
@@ -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 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>
<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: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 wx:else class="no-open-img">
<view class="scene-title">{{item.title}}</view>
<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>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">¥ {{scenePriceList[index].total}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">¥ {{scenePriceList[index].total}}</view>
</view>
</view>
...
...
components/SceneBox/SceneBox.wxss
View file @
143411d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
color: #8A8C90;
color: #8A8C90;
padding: 32rpx 0 28rpx;
padding: 32rpx 0 28rpx;
border-radius: 12rpx;
border-radius: 12rpx;
margin-bottom: 20rpx;
/* margin-bottom: 20rpx; */
}
}
.scene-item:last-child {
.scene-item:last-child {
...
@@ -62,14 +62,16 @@
...
@@ -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);
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
}
}
.active::after {
.active::after {
position: absolute;
position: absolute;
left: 50%;
left: 50%;
bottom: -
7
px;
bottom: -
18r
px;
display: block;
display: block;
content: "";
content: "";
width: 6px;
width: 16rpx;
height: 6px;
height: 16rpx;
/* border-radius: 4rpx; */
border-bottom: 1px solid var(--btnColor);
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
transform: rotate(45deg) translateX(-50%);
...
@@ -80,7 +82,13 @@
...
@@ -80,7 +82,13 @@
.scene-title {
.scene-title {
color: #323436;
color: #323436;
font-weight: 600;
}
.scene-title.on-open {
color: #8A8C90;
}
.no-open-img {
position: relative;
}
}
.scene-img {
.scene-img {
...
@@ -88,6 +96,11 @@
...
@@ -88,6 +96,11 @@
height: 56rpx;
height: 56rpx;
}
}
.lock-img {
width: 92rpx;
height: 64rpx;
}
.total-price {
.total-price {
height: 40rpx;
height: 40rpx;
line-height: 40rpx;
line-height: 40rpx;
...
...
packageOutput/pages/openBusiness/openBusiness.scss
View file @
143411d
...
@@ -51,7 +51,7 @@ page {
...
@@ -51,7 +51,7 @@ page {
.box
{
.box
{
&
-title
{
&
-title
{
font-weight
:
600
;
font-weight
:
600
;
padding
:
0
0
16rpx
12rpx
;
padding
:
32rpx
0
16rpx
12rpx
;
}
}
.title-tip
{
.title-tip
{
...
@@ -85,28 +85,30 @@ page {
...
@@ -85,28 +85,30 @@ page {
background
:
#F0F7FF
;
background
:
#F0F7FF
;
border
:
2rpx
solid
#3E71FE
;
border
:
2rpx
solid
#3E71FE
;
color
:
#3666FE
;
color
:
#3666FE
;
border
:
1rpx
solid
#3E71FE
;
}
}
}
}
}
}
.btn
{
.btn
{
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
16rpx
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
calc
(
100%
-
64rpx
)
;
height
:
88rpx
;
height
:
88rpx
;
line-height
:
88rpx
;
line-height
:
88rpx
;
font-size
:
34rpx
;
color
:
#FFFFFF
;
text-align
:
center
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
margin
:
0
32rpx
;
}
}
.btn-blue
{
.btn-blue
{
background
:
#3666FE
;
background
:
#3666FE
;
border-radius
:
8rpx
;
}
}
.btn-disabled
{
.btn-disabled
{
background
:
#CCCED1
;
background
:
#CCCED1
;
border-radius
:
8rpx
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/openBusiness/openBusiness.wxml
View file @
143411d
<!--packageOutput/pages/openBusiness/openBusiness.wxml-->
<!--packageOutput/pages/openBusiness/openBusiness.wxml-->
<view class="openBusiness">
<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="layout">
<view class="form m-b-32">
<view class="form m-b-32">
<text class="label">开通门店:</text>
<text class="label">开通门店:</text>
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{sceneActive != 1}}" class="isFullSucreen btn btn-blue" bindtap="handleConfirm">申请开通</view>
<view class="isFullSucreen btn">
<view wx:else class="btn btn-disabled">申请开通</view>
<view wx:if="{{sceneActive != 1}}" class="btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:else class="btn-disabled">申请开通</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/summary.js
View file @
143411d
...
@@ -93,7 +93,7 @@ Page({
...
@@ -93,7 +93,7 @@ Page({
this
.
setData
({
this
.
setData
({
[
'searchForm.scene'
+
this
.
data
.
sceneActive
+
'Idx'
]:
res
.
tapIndex
[
'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({
...
@@ -162,7 +162,7 @@ Page({
/** 1.1和1.2场景产品数据处理
/** 1.1和1.2场景产品数据处理
* 调同一个接口,返回两个服务下面的全部产品的数据
* 调同一个接口,返回两个服务下面的全部产品的数据
*/
*/
getCustomerDetail
(
isFirst
=
false
)
{
getCustomerDetail
(
isFirst
=
false
,
isChangeOtherTotal
=
true
)
{
var
params
=
this
.
dealSearchTime
()
var
params
=
this
.
dealSearchTime
()
outputApi
.
getCustomerDetail
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
outputApi
.
getCustomerDetail
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
(
isFirst
?
2
:
this
.
data
.
sceneActive
)]
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
(
isFirst
?
2
:
this
.
data
.
sceneActive
)]
...
@@ -195,9 +195,13 @@ Page({
...
@@ -195,9 +195,13 @@ Page({
}
}
// 总金额
// 总金额
this
.
setData
({
this
.
setData
({
[
'scenePriceList['
+
(
isFirst
?
1
:
(
this
.
data
.
sceneActive
-
1
))
+
'].total'
]:
curTotal
,
[
'scenePriceList['
+
(
isFirst
?
1
:
(
this
.
data
.
sceneActive
-
1
))
+
'].total'
]:
curTotal
[
'scenePriceList['
+
(
isFirst
?
2
:
(
otherScene
-
1
))
+
'].total'
]:
otherTotal
})
})
if
(
isChangeOtherTotal
)
{
this
.
setData
({
[
'scenePriceList['
+
(
isFirst
?
2
:
(
otherScene
-
1
))
+
'].total'
]:
otherTotal
})
}
!
isFirst
&&
this
.
setCurActivity
()
!
isFirst
&&
this
.
setCurActivity
()
})
})
},
},
...
...
packageOutput/pages/summary/summary.scss
View file @
143411d
...
@@ -42,8 +42,17 @@
...
@@ -42,8 +42,17 @@
padding
:
27rpx
0
24rpx
;
padding
:
27rpx
0
24rpx
;
}
}
scroll-view
:
:-
webkit-scrollbar
{
display
:none
;
width
:
0
;
height
:
0
;
color
:transparent
;
}
.activity-box
{
.activity-box
{
width
:
100%
;
height
:
64rpx
;
height
:
64rpx
;
padding
:
32rpx
0
28rpx
;
.activity-item
{
.activity-item
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -115,21 +124,24 @@
...
@@ -115,21 +124,24 @@
.btn
{
.btn
{
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
16rpx
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
calc
(
100%
-
64rpx
)
;
height
:
88rpx
;
height
:
88rpx
;
line-height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
margin
:
0
32rpx
;
.btn-blue
{
.btn-blue
{
background
:
#3666FE
;
background
:
#3666FE
;
border-radius
:
8rpx
;
}
}
.btn-disabled
{
.btn-disabled
{
background
:
#CCCED1
;
background
:
#CCCED1
;
border-radius
:
8rpx
;
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/summary.wxml
View file @
143411d
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</view>
</view>
<!-- 活动 -->
<!-- 活动 -->
<view class="p-rl-20 bg-white">
<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="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 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>
</view>
...
...
pages/tab/output/components/client/client.scss
View file @
143411d
...
@@ -42,7 +42,6 @@
...
@@ -42,7 +42,6 @@
.price-txt
{
.price-txt
{
// font-family: 'test';
// font-family: 'test';
// font-family: "test";
font-weight
:
Bold
;
font-weight
:
Bold
;
// font-weight: 600;
// font-weight: 600;
font-size
:
26rpx
;
font-size
:
26rpx
;
...
...
pages/tab/output/components/client/client.wxml
View file @
143411d
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</view>
</view>
<!-- 场景内容 -->
<!-- 场景内容 -->
<view class="box-content">
<view class="box-content">
<scene-box formData="{{item}}" />
<scene-box formData="{{item}}"
hasLockIcon="{{false}}"
/>
<!-- 通知 -->
<!-- 通知 -->
<view class="box-bottom">
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view wx:if="{{item.msgList.length}}" class="flex">
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment