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 73a5800d
authored
Oct 26, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合并代码
1 parent
08d7928b
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
184 additions
and
53 deletions
components/SceneBox/SceneBox.wxml
components/SceneBox/SceneBox.wxss
pages/mineDetail/messageBox/components/msgBox/msgBox.js
pages/mineDetail/messageBox/components/msgBox/msgBox.scss
pages/mineDetail/messageBox/components/msgBox/msgBox.wxml
pages/mineDetail/messageBox/messageBox.scss
pages/mineDetail/messageBox/messageBox.wxml
pages/tab/mine/mine.scss
pages/tab/output/components/SceneBox/SceneBox.wxml
pages/tab/output/components/SceneBox/SceneBox.wxss
pages/tab/output/components/accountSwitchingPop/accountSwitchingPop.scss
pages/tab/output/components/client/client.scss
pages/tab/output/components/merchant/merchant.wxss
pages/tab/output/components/merchant/mrechant.scss
pages/tab/output/components/merchant/mrechant.wxml
pages/tab/output/output.scss
utils/cache/storage.js
components/SceneBox/SceneBox.wxml
View file @
73a5800
<!--
pages/tab/output/components/sceneBox/sceneBox.wxml
-->
<!--
pages/tab/output/components/sceneBox/sceneBox.wxml
-->
<view class="flex scene">
<view class="flex scene">
<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>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">¥ {{scenePriceList[index].total}}</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
<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 {{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)?'':'notOpened'}}">
{{item.title}}
</view>
<view>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">
¥ {{scenePriceList[index].total}}
</view>
</view>
</view>
components/SceneBox/SceneBox.wxss
View file @
73a5800
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
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%;
...
@@ -80,7 +81,7 @@
...
@@ -80,7 +81,7 @@
.scene-title {
.scene-title {
color: #323436;
color: #323436;
font-weight: 600;
/* font-weight: 600; */
}
}
.scene-img {
.scene-img {
...
@@ -95,4 +96,8 @@
...
@@ -95,4 +96,8 @@
font-size: 24rpx;
font-size: 24rpx;
color: #3666FE;
color: #3666FE;
font-weight: 600;
font-weight: 600;
}
.notOpened {
color: #8A8C90;
}
}
\ No newline at end of file
\ No newline at end of file
pages/mineDetail/messageBox/components/msgBox/msgBox.js
View file @
73a5800
...
@@ -18,7 +18,38 @@ Component({
...
@@ -18,7 +18,38 @@ Component({
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{},
data
:
{
titleObj
:
{
0
:
{
label
:
'您好,您的客户'
,
sceneLabel
:
'门店账号已开通成功。'
},
1
:
{
label
:
'您好,您的客户'
,
sceneLabel
:
'门店活动已开通,活动信息如下:'
},
2
:
{
label
:
'您的客户'
,
sceneLabel
:
'门店活动正在进行中'
},
3
:
{
label
:
'您的客户'
,
sceneLabel
:
'门店活动已结束:'
},
4
:
{
label
:
'您好,您的客户'
,
sceneLabel
:
'门店场景已开通,待开展业务,信息如下:'
},
5
:
{
label
:
'您好,您的客户'
,
sceneLabel
:
'门店业务场景已开通:'
},
6
:
{
label
:
'您好,您的客户'
,
sceneLabel
:
'门店业务场景已开通:'
}
}
},
/**
/**
* 组件的方法列表
* 组件的方法列表
...
...
pages/mineDetail/messageBox/components/msgBox/msgBox.scss
View file @
73a5800
...
@@ -11,16 +11,23 @@
...
@@ -11,16 +11,23 @@
// height: 200rpx;
// height: 200rpx;
.title
{
.title
{
display
:
flex
;
//
display: flex;
flex-wrap
:
wrap
;
//
flex-wrap: wrap;
color
:
rgba
(
50
,
52
,
54
,
1
);
color
:
rgba
(
50
,
52
,
54
,
1
);
font-size
:
28rpx
;
font-size
:
28rpx
;
margin-bottom
:
8rpx
;
view
{
// word-break: break-all;
display
:
inline-block
;
white-space
:
pre-wrap
}
.name
{
.name
{
color
:
rgba
(
50
,
52
,
54
,
1
);
color
:
rgba
(
50
,
52
,
54
,
1
);
font-size
:
28rpx
;
font-size
:
28rpx
;
// font-face: PingFangSC;
// font-face: PingFangSC;
font-weight
:
5
00
;
font-weight
:
6
00
;
}
}
}
}
...
...
pages/mineDetail/messageBox/components/msgBox/msgBox.wxml
View file @
73a5800
<!-- pages/mineDetail/messageBox/components/messageBox.wxml -->
<!-- pages/mineDetail/messageBox/components/messageBox.wxml -->
<!-- <
text>pages/mineDetail/messageBox/components/messageBox.wxml</text
> -->
<!-- <
view>pages/mineDetail/messageBox/components/messageBox.wxml</view
> -->
<view class="msgBox">
<view class="msgBox">
<view class="title" wx:if="{{messageType == 0}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店账号已开通成功。</view></view>
<view class="title">
<view class="title" wx:if="{{messageType == 1}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店活动已开通,活动信息如下:</view></view>
<text>{{titleObj[messageType]['label']}}</text>
<view class="title" wx:if="{{messageType == 2}}"><view>您的客户</view><text class="name">{{merchantName}}</text><view>门店活动正在进行中</view></view>
<text class="name">{{merchantName}}</text>
<view class="title" wx:if="{{messageType == 3}}"><view>您的客户</view><text class="name">{{merchantName}}</text><view>门店活动已结束:</view></view>
<text>{{titleObj[messageType]['sceneLabel']}}</text>
<view class="title" wx:if="{{messageType == 4}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店场景已开通,待开展业务,信息如下:</view></view>
</view>
<!-- <view class="title" wx:if="{{messageType == 1}}">
<text>您好,您的客户</text>
<text class="name">{{merchantName}}</text>
<text>门店活动已开通,活动信息如下:</text>
</view>
<view class="title" wx:if="{{messageType == 2}}">
<view>您的客户</view>
<view class="name">{{merchantName}}</view>
<view>门店活动正在进行中</view>
</view>
<view class="title" wx:if="{{messageType == 3}}">
<view>您的客户</view>
<view class="name">{{merchantName}}</view>
<view>门店活动已结束:</view>
</view>
<view class="title" wx:if="{{messageType == 4}}">
<text>您好,您的客户</text>
<text class="name">{{merchantName}}</text>
<text>门店场景已开通,待开展业务,信息如下:</text>
</view> -->
<slot/>
<slot/>
<view class="time">{{time}}</view>
<view class="time">{{time}}</view>
</view>
\ No newline at end of file
\ No newline at end of file
</view>
pages/mineDetail/messageBox/messageBox.scss
View file @
73a5800
...
@@ -44,6 +44,10 @@
...
@@ -44,6 +44,10 @@
height
:
calc
(
100%
-
100rpx
);
height
:
calc
(
100%
-
100rpx
);
}
}
.msgBox
{
margin
:
8rpx
0
;
}
.cell
{
.cell
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
pages/mineDetail/messageBox/messageBox.wxml
View file @
73a5800
...
@@ -83,32 +83,42 @@
...
@@ -83,32 +83,42 @@
merchantName="{{item.merchantName}}"
merchantName="{{item.merchantName}}"
messageType="{{item.messageType}}"
messageType="{{item.messageType}}"
time="{{item.updatedTime}}">
time="{{item.updatedTime}}">
<view class="cell" wx:if="{{item.messageType == 1}}">
<view wx:if="{{item.messageType == 1}}">
<view class="label">活动名称:</view>
<view class="cell">
<view class="value">{{item.activityName}}</view>
<view class="label">活动名称:</view>
</view>
<view class="value">{{item.activityName}}</view>
<view class="cell" wx:if="{{item.messageType == 1}}">
</view>
<view class="label">开始时间:</view>
<view class="cell">
<view class="value">{{item.activityStartTime||'-'}}</view>
<view class="label">开始时间:</view>
</view>
<view class="value">{{item.activityStartTime||'-'}}</view>
<view class="cell" wx:if="{{item.messageType == 1}}">
</view>
<view class="label">结算时间:</view>
<view class="cell">
<view class="value">{{item.activityEndTime||'-'}}</view>
<view class="label">结算时间:</view>
</view>
<view class="value">{{item.activityEndTime||'-'}}</view>
<view class="cell" wx:if="{{item.messageType == 1}}">
</view>
<view class="label">活动链接:</view>
<view class="cell">
<view
<view class="label">活动链接:</view>
class="link"
<view
wx:if="{{item.activityUrl}}"
class="link"
bind:tap="copyLink"
wx:if="{{item.activityUrl}}"
data-url="{{item.activityUrl}}">
bind:tap="copyLink"
点击下载活动二维码
data-url="{{item.activityUrl}}">
下载活动二维码
</view>
</view>
</view>
</view>
</view>
<view class="cell" wx:if="{{item.messageType == 4}}">
<view class="cell" wx:if="{{item.messageType == 4}}">
<view class="label">产品名称:</view>
<view class="label">产品名称:</view>
<view class="value">{{item.activityName}}</view>
<view class="value">{{item.activityName}}</view>
</view>
</view>
<view class="cell" wx:if="{{item.messageType == 5}}">
<view class="label">新车交付场景:</view>
<view class="value">{{item.activityName}}</view>
</view>
<view class="cell" wx:if="{{item.messageType == 6}}">
<view class="label">0~12个月场景:</view>
<view class="value">{{item.activityName}}</view>
</view>
</msg-box>
</msg-box>
</scroll-view>
</scroll-view>
</view>
</view>
...
...
pages/tab/mine/mine.scss
View file @
73a5800
...
@@ -131,6 +131,6 @@ page {
...
@@ -131,6 +131,6 @@ page {
font-size
:
28rpx
!
important
;
font-size
:
28rpx
!
important
;
color
:
#8A8C90
!
important
;
color
:
#8A8C90
!
important
;
font-weight
:
400
!
important
;
font-weight
:
400
!
important
;
border
:
2rpx
dashe
d
#EEEEEE
!
important
;
border
:
2rpx
soli
d
#EEEEEE
!
important
;
background-color
:
#fff
!
important
;
background-color
:
#fff
!
important
;
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/output/components/SceneBox/SceneBox.wxml
View file @
73a5800
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<view wx:if="{{formData['showList'][index]}}" class="open-icon">已开通</view>
<view wx:if="{{formData['showList'][index]}}" class="open-icon">已开通</view>
<image wx:if="{{formData['showList'][index]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:if="{{formData['showList'][index]}}" 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}}" />
<image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
<view class="scene-title">{{item.title}}</view>
<view class="scene-title
{{formData['showList'][index]?'':'notOpened'}}
">{{item.title}}</view>
<view>{{item.subTitle}}</view>
<view>{{item.subTitle}}</view>
<!-- wx:if="{{scenePriceList.length}}" -->
<!-- wx:if="{{scenePriceList.length}}" -->
<view class="total-price">¥ {{formData['showList'][index].totalMoney||0}}</view>
<view class="total-price">¥ {{formData['showList'][index].totalMoney||0}}</view>
...
...
pages/tab/output/components/SceneBox/SceneBox.wxss
View file @
73a5800
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
.scene-title {
.scene-title {
color: #323436;
color: #323436;
font-weight: 600;
/* font-weight: 600; */
}
}
.scene-img {
.scene-img {
...
@@ -90,6 +90,10 @@
...
@@ -90,6 +90,10 @@
height: 56rpx;
height: 56rpx;
}
}
.notOpened {
color: #8A8C90;
}
.total-price {
.total-price {
height: 40rpx;
height: 40rpx;
line-height: 40rpx;
line-height: 40rpx;
...
...
pages/tab/output/components/accountSwitchingPop/accountSwitchingPop.scss
View file @
73a5800
...
@@ -52,6 +52,10 @@
...
@@ -52,6 +52,10 @@
padding
:
0
24rpx
;
padding
:
0
24rpx
;
}
}
.list
{
height
:
calc
(
100%
);
}
.search-box
.search
.text-center
{
.search-box
.search
.text-center
{
font-size
:
24rpx
;
font-size
:
24rpx
;
/* background-color: #f7f7f7; */
/* background-color: #f7f7f7; */
...
...
pages/tab/output/components/client/client.scss
View file @
73a5800
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
100%
;
height
:
100%
;
color
:
#323436
;
color
:
#323436
;
padding-top
:
16rpx
;
//
padding-top: 16rpx;
background-color
:
#F2F3F7
;
background-color
:
#F2F3F7
;
}
}
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
color
:
#8A8C90
;
color
:
#8A8C90
;
padding
:
0
20rpx
0
32rpx
;
padding
:
0
20rpx
0
32rpx
;
margin-bottom
:
16rpx
;
margin-bottom
:
16rpx
;
margin-top
:
16rpx
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg-profit.png')
no-repeat
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg-profit.png')
no-repeat
;
background-size
:
100%
96rpx
;
background-size
:
100%
96rpx
;
...
@@ -79,6 +80,7 @@
...
@@ -79,6 +80,7 @@
.name
{
.name
{
width
:
70%
;
width
:
70%
;
margin-left
:
32rpx
;
margin-left
:
32rpx
;
font-weight
:
bold
;
}
}
.price-txt
{
.price-txt
{
...
...
pages/tab/output/components/merchant/merchant.wxss
0 → 100644
View file @
73a5800
.swiper {
/* test */
color: aquamarine;
}
\ No newline at end of file
\ No newline at end of file
pages/tab/output/components/merchant/mrechant.scss
View file @
73a5800
...
@@ -150,12 +150,13 @@
...
@@ -150,12 +150,13 @@
width
:
100%
;
width
:
100%
;
padding
:
20rpx
;
padding
:
20rpx
;
border
:
2rpx
dashed
#CCCED1
;
border
:
2rpx
dashed
#CCCED1
;
border-radius
:
8rpx
;
display
:
flex
;
display
:
flex
;
.tipsIcon
{
.tipsIcon
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
56rpx
;
width
:
56rpx
;
height
:
64rpx
;
//
height: 64rpx;
padding
:
8rpx
;
padding
:
8rpx
;
background
:
rgba
(
62
,
113
,
254
,
0
.12
);
background
:
rgba
(
62
,
113
,
254
,
0
.12
);
border-radius
:
4rpx
;
border-radius
:
4rpx
;
...
@@ -240,9 +241,15 @@
...
@@ -240,9 +241,15 @@
}
}
.funneItem
:nth-of-type
(
1
)
{
.funneItem
:nth-of-type
(
1
)
{
box-sizing
:
border-box
;
padding-top
:
30rpx
;
margin-top
:
25rpx
;
margin-top
:
25rpx
;
}
}
.funneItem
:nth-of-type
(
1
)
.num
{
transform
:
translate
(
-50%
,
calc
(
-50%
-
-15rpx
));
}
.navOhterApp
{
.navOhterApp
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -251,10 +258,28 @@
...
@@ -251,10 +258,28 @@
color
:
#5C7097
;
color
:
#5C7097
;
// margin: 50rpx 20rpx 0;
// margin: 50rpx 20rpx 0;
margin-bottom
:
50rpx
;
margin-bottom
:
50rpx
;
.linkImg
{
.linkImg
{
width
:
20rpx
;
width
:
20rpx
;
height
:
20rpx
;
height
:
20rpx
;
margin-left
:
20rpx
;
margin-left
:
20rpx
;
margin-right
:
10rpx
;
margin-right
:
10rpx
;
}
}
}
// .swiper .wx-swiper-dot {
// width: 40rpx !important;
// height: 10rpx !important;
// background-color: aqua;
// // margin-left: 0 10rpx;
// // display: inline-flex;
// // justify-content: space-between;
// }
swiper
.wx-swiper-dot
{
width
:
35rpx
;
height
:
7rpx
;
border-radius
:
50%
;
display
:
inline-flex
;
margin-left
:
19rpx
;
justify-content
:
space-between
;
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/output/components/merchant/mrechant.wxml
View file @
73a5800
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!-- sceneIndx==3? 'short': -->
<!-- sceneIndx==3? 'short': -->
<swiper
<swiper
indicator-dots="{{indicatorDots}}"
indicator-dots="{{indicatorDots}}"
class=" {{startInd ==4?'short':'full'}}"
class="
swiper
{{startInd ==4?'short':'full'}}"
autoplay="{{autoplay}}"
autoplay="{{autoplay}}"
bindchange="swiperChange"
bindchange="swiperChange"
interval="{{interval}}"
interval="{{interval}}"
...
...
pages/tab/output/output.scss
View file @
73a5800
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
content
:
''
;
content
:
''
;
width
:
100%
;
width
:
100%
;
// height: 486rpx;
// height: 486rpx;
height
:
2
64
rpx
;
height
:
2
76
rpx
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png')
no-repeat
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png')
no-repeat
;
background-size
:
100%
264rpx
;
background-size
:
100%
264rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
.tabContainer
{
.tabContainer
{
height
:
100rpx
;
height
:
100rpx
;
padding
:
0
32rpx
;
// background-color: #F2F3F7;
}
}
.comCom
{
.comCom
{
...
@@ -45,6 +46,7 @@
...
@@ -45,6 +46,7 @@
height
:
calc
(
100%
-
100rpx
);
height
:
calc
(
100%
-
100rpx
);
overflow
:
scroll
;
overflow
:
scroll
;
// background-color: #fff;
// background-color: #fff;
background-color
:
#F2F3F7
;
}
}
.
comCom
:
:-
webkit-scrollbar
{
.
comCom
:
:-
webkit-scrollbar
{
...
...
utils/cache/storage.js
View file @
73a5800
...
@@ -97,9 +97,9 @@ class Storage {
...
@@ -97,9 +97,9 @@ class Storage {
*
*
* @param {*} key | 要操作的键值
* @param {*} key | 要操作的键值
* @param {*} data | 要存储的值,会转换为 JSON 串进行存储
* @param {*} data | 要存储的值,会转换为 JSON 串进行存储
* @param {*} syncFlag | 同步状态,默认 false (异步),true 为同步
* @param {*} syncFlag | 同步状态,默认
为同步
false (异步),true 为同步
*/
*/
set
=
(
key
,
data
,
syncFlag
)
=>
{
set
=
(
key
,
data
,
syncFlag
=
true
)
=>
{
let
tmpKey
=
this
.
checkKeyType
(
key
,
2
)
let
tmpKey
=
this
.
checkKeyType
(
key
,
2
)
if
(
tmpKey
)
{
if
(
tmpKey
)
{
tmpKey
=
this
.
addEvnToKey
(
tmpKey
)
tmpKey
=
this
.
addEvnToKey
(
tmpKey
)
...
...
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