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 4db2a248
authored
Oct 26, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://192.168.3.233:8090/saas_plus/business-assistant
into develop
2 parents
f94dea52
1ae3228f
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
214 additions
and
70 deletions
components/SceneBox/SceneBox.wxml
components/SceneBox/SceneBox.wxss
components/Tab/Tab.wxml
pages/apply/apply.scss
pages/apply/apply.wxml
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/index/index.scss
pages/tab/index/index.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 @
4db2a24
<!--
pages/tab/output/components/sceneBox/sceneBox.wxml
-->
<!--
pages/tab/output/components/sceneBox/sceneBox.wxml
-->
<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}}" />
<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>
</view>
\ 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}}" />
<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>
</view>
components/SceneBox/SceneBox.wxss
View file @
4db2a24
...
...
@@ -87,6 +87,7 @@
.scene-title.on-open {
color: #8A8C90;
}
.no-open-img {
position: relative;
}
...
...
@@ -108,4 +109,8 @@
font-size: 24rpx;
color: #3666FE;
font-weight: 600;
}
.notOpened {
color: #8A8C90;
}
\ No newline at end of file
components/Tab/Tab.wxml
View file @
4db2a24
...
...
@@ -2,7 +2,7 @@
<block wx:if="{{openScroll}}">
<scroll-view
class="tab-box {{align}} {{outClassName}}"
style="{{productHeight ? 'height:
68
rpx;' : ''}}"
style="{{productHeight ? 'height:
72
rpx;' : ''}}"
scroll-x
enable-flex
scroll-with-animation
...
...
@@ -28,7 +28,7 @@
<block wx:for="{{tab}}" wx:key="index">
<view
class="tab {{index==count?'active':''}}"
style="width:{{itemWidth}}"
style="width:{{itemWidth}}
; {{index == 0 ? 'margin-left: 32rpx;' : ''}}
"
bindtap="click"
data-count="{{index}}"
>
...
...
pages/apply/apply.scss
View file @
4db2a24
/* pages/apply/apply.wxss */
page
{
background
:
white
;
height
:
100%
;
position
:
relative
;
}
.apply
{
.head
{
width
:
100%
;
}
.introduce
{
height
:
180
px
;
height
:
360r
px
;
}
.content
{
padding
:
16px
17px
0
;
...
...
@@ -42,15 +47,22 @@
border
:
1px
solid
#E3E4E8
;
border-radius
:
2px
;
}
.inp-placeholder
{
font-family
:
PingFangSC-Regular
;
font-size
:
24rpx
;
color
:
#8A8C90
;
}
}
}
.btn
{
margin-top
:
40px
;
width
:
100%
;
width
:
648rpx
;
font-weight
:
500
;
font-size
:
17px
;
color
:
#ffffff
;
text-align
:
center
;
background
:
var
(
--
btnColor
);
position
:
absolute
;
bottom
:
40rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
}
pages/apply/apply.wxml
View file @
4db2a24
...
...
@@ -11,27 +11,27 @@
<view class="title" hover-class="none" hover-stop-propagation="false">开通门店账号</view>
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">
<view class="title" hover-class="none" hover-stop-propagation="false"
style="margin-top: 32rpx;"
>
开店名称
<text class="point">*</text>
</view>
<input class="inp" value="{{carObj.name}}" bindinput="bindinputFn" data-name="name" maxlength="{{30}}" placeholder="请输入30个字符以内" />
<input class="inp"
placeholder-class="inp-placeholder"
value="{{carObj.name}}" bindinput="bindinputFn" data-name="name" maxlength="{{30}}" placeholder="请输入30个字符以内" />
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">店面车型</view>
<input class="inp" value="{{carObj.model}}" bindinput="bindinputFn" data-name="model" maxlength="{{30}}" placeholder="请输入30个字符以内" />
<input class="inp"
placeholder-class="inp-placeholder"
value="{{carObj.model}}" bindinput="bindinputFn" data-name="model" maxlength="{{30}}" placeholder="请输入30个字符以内" />
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">店面新车销量/基盘客户</view>
<input class="inp" value="{{carObj.selNum}}" bindinput="bindinputFn" data-name="selNum" maxlength="{{30}}" placeholder="请输入30个字符以内" />
<input class="inp"
placeholder-class="inp-placeholder"
value="{{carObj.selNum}}" bindinput="bindinputFn" data-name="selNum" maxlength="{{30}}" placeholder="请输入30个字符以内" />
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">门店联系人</view>
<input class="inp"
value="{{carObj.contact}}" bindinput="bindinputFn" data-name="contact" maxlength="{{30}}" placeholder="请输入30个字符以内
" />
<input class="inp"
placeholder-class="inp-placeholder" value="{{carObj.contact}}" bindinput="bindinputFn" data-name="contact" placeholder="请输入联系人
" />
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">联系人手机号</view>
<input class="inp"
value="{{carObj.phone}}" bindinput="bindinputFn" data-name="phone" maxlength="{{30}}" placeholder="请输入30个字符以内
" />
<input class="inp"
placeholder-class="inp-placeholder" value="{{carObj.phone}}" bindinput="bindinputFn" data-name="phone" placeholder="请输入手机号
" />
</view>
</view>
<button class="btn" bindtap="applyFn">提交开店信息</button>
...
...
pages/mineDetail/messageBox/components/msgBox/msgBox.js
View file @
4db2a24
...
...
@@ -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 @
4db2a24
...
...
@@ -11,16 +11,23 @@
// height: 200rpx;
.title
{
display
:
flex
;
flex-wrap
:
wrap
;
//
display: flex;
//
flex-wrap: wrap;
color
:
rgba
(
50
,
52
,
54
,
1
);
font-size
:
28rpx
;
margin-bottom
:
8rpx
;
view
{
// word-break: break-all;
display
:
inline-block
;
white-space
:
pre-wrap
}
.name
{
color
:
rgba
(
50
,
52
,
54
,
1
);
font-size
:
28rpx
;
// font-face: PingFangSC;
font-weight
:
5
00
;
font-weight
:
6
00
;
}
}
...
...
pages/mineDetail/messageBox/components/msgBox/msgBox.wxml
View file @
4db2a24
<!-- 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="title" wx:if="{{messageType == 0}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店账号已开通成功。</view></view>
<view class="title" wx:if="{{messageType == 1}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店活动已开通,活动信息如下:</view></view>
<view class="title" wx:if="{{messageType == 2}}"><view>您的客户</view><text class="name">{{merchantName}}</text><view>门店活动正在进行中</view></view>
<view class="title" wx:if="{{messageType == 3}}"><view>您的客户</view><text class="name">{{merchantName}}</text><view>门店活动已结束:</view></view>
<view class="title" wx:if="{{messageType == 4}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店场景已开通,待开展业务,信息如下:</view></view>
<view class="title">
<text>{{titleObj[messageType]['label']}}</text>
<text class="name">{{merchantName}}</text>
<text>{{titleObj[messageType]['sceneLabel']}}</text>
</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/>
<view class="time">{{time}}</view>
</view>
\ No newline at end of file
</view>
pages/mineDetail/messageBox/messageBox.scss
View file @
4db2a24
...
...
@@ -44,6 +44,10 @@
height
:
calc
(
100%
-
100rpx
);
}
.msgBox
{
margin
:
8rpx
0
;
}
.cell
{
display
:
flex
;
align-items
:
center
;
...
...
pages/mineDetail/messageBox/messageBox.wxml
View file @
4db2a24
...
...
@@ -83,32 +83,42 @@
merchantName="{{item.merchantName}}"
messageType="{{item.messageType}}"
time="{{item.updatedTime}}">
<view class="cell" wx:if="{{item.messageType == 1}}">
<view class="label">活动名称:</view>
<view class="value">{{item.activityName}}</view>
</view>
<view class="cell" wx:if="{{item.messageType == 1}}">
<view class="label">开始时间:</view>
<view class="value">{{item.activityStartTime||'-'}}</view>
</view>
<view class="cell" wx:if="{{item.messageType == 1}}">
<view class="label">结算时间:</view>
<view class="value">{{item.activityEndTime||'-'}}</view>
</view>
<view class="cell" wx:if="{{item.messageType == 1}}">
<view class="label">活动链接:</view>
<view
class="link"
wx:if="{{item.activityUrl}}"
bind:tap="copyLink"
data-url="{{item.activityUrl}}">
点击下载活动二维码
<view wx:if="{{item.messageType == 1}}">
<view class="cell">
<view class="label">活动名称:</view>
<view class="value">{{item.activityName}}</view>
</view>
<view class="cell">
<view class="label">开始时间:</view>
<view class="value">{{item.activityStartTime||'-'}}</view>
</view>
<view class="cell">
<view class="label">结算时间:</view>
<view class="value">{{item.activityEndTime||'-'}}</view>
</view>
<view class="cell">
<view class="label">活动链接:</view>
<view
class="link"
wx:if="{{item.activityUrl}}"
bind:tap="copyLink"
data-url="{{item.activityUrl}}">
下载活动二维码
</view>
</view>
</view>
<view class="cell" wx:if="{{item.messageType == 4}}">
<view class="label">产品名称:</view>
<view class="value">{{item.activityName}}</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>
</scroll-view>
</view>
...
...
pages/tab/index/index.scss
View file @
4db2a24
...
...
@@ -89,7 +89,7 @@ page {
.clue
{
padding
:
0px
10px
0
;
background-color
:
#f2f3f7
;
margin-top
:
-16rpx
;
.types
{
margin-bottom
:
8px
;
display
:
flex
;
...
...
@@ -100,7 +100,7 @@ page {
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
80
px
;
padding
:
0
16r
px
;
height
:
24px
;
line-height
:
24px
;
background
:
#ffffff
;
...
...
@@ -378,7 +378,7 @@ page {
left
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
2
;
z-index
:
3
;
}
}
...
...
pages/tab/index/index.wxml
View file @
4db2a24
...
...
@@ -63,6 +63,7 @@
wx:for="{{typeList}}"
wx:key="*this"
data-index="{{index}}"
style="{{index == 0 ? 'margin-left: 0px;' : ''}}"
bindtap="filterTypeFn">
{{item[item['selectIndex']] }}
<image class="point" wx:if="{{index != 3}}" src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
...
...
pages/tab/mine/mine.scss
View file @
4db2a24
...
...
@@ -131,6 +131,6 @@ page {
font-size
:
28rpx
!
important
;
color
:
#8A8C90
!
important
;
font-weight
:
400
!
important
;
border
:
2rpx
dashe
d
#EEEEEE
!
important
;
border
:
2rpx
soli
d
#EEEEEE
!
important
;
background-color
:
#fff
!
important
;
}
\ No newline at end of file
pages/tab/output/components/SceneBox/SceneBox.wxml
View file @
4db2a24
...
...
@@ -9,7 +9,7 @@
<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: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>
<!-- wx:if="{{scenePriceList.length}}" -->
<view class="total-price">¥ {{formData['showList'][index].totalMoney||0}}</view>
...
...
pages/tab/output/components/SceneBox/SceneBox.wxss
View file @
4db2a24
...
...
@@ -82,7 +82,7 @@
.scene-title {
color: #323436;
font-weight: 600;
/* font-weight: 600; */
}
.scene-img {
...
...
@@ -90,6 +90,10 @@
height: 56rpx;
}
.notOpened {
color: #8A8C90;
}
.total-price {
height: 40rpx;
line-height: 40rpx;
...
...
pages/tab/output/components/accountSwitchingPop/accountSwitchingPop.scss
View file @
4db2a24
...
...
@@ -52,6 +52,10 @@
padding
:
0
24rpx
;
}
.list
{
height
:
calc
(
100%
);
}
.search-box
.search
.text-center
{
font-size
:
24rpx
;
/* background-color: #f7f7f7; */
...
...
pages/tab/output/components/client/client.scss
View file @
4db2a24
...
...
@@ -3,7 +3,7 @@
box-sizing
:
border-box
;
height
:
100%
;
color
:
#323436
;
padding-top
:
16rpx
;
//
padding-top: 16rpx;
background-color
:
#F2F3F7
;
}
...
...
@@ -29,6 +29,7 @@
color
:
#8A8C90
;
padding
:
0
20rpx
0
32rpx
;
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-size
:
100%
96rpx
;
...
...
@@ -78,6 +79,7 @@
.name
{
width
:
70%
;
margin-left
:
32rpx
;
font-weight
:
bold
;
}
.price-txt
{
...
...
pages/tab/output/components/merchant/merchant.wxss
0 → 100644
View file @
4db2a24
.swiper {
/* test */
color: aquamarine;
}
\ No newline at end of file
pages/tab/output/components/merchant/mrechant.scss
View file @
4db2a24
...
...
@@ -150,12 +150,13 @@
width
:
100%
;
padding
:
20rpx
;
border
:
2rpx
dashed
#CCCED1
;
border-radius
:
8rpx
;
display
:
flex
;
.tipsIcon
{
box-sizing
:
border-box
;
width
:
56rpx
;
height
:
64rpx
;
//
height: 64rpx;
padding
:
8rpx
;
background
:
rgba
(
62
,
113
,
254
,
0
.12
);
border-radius
:
4rpx
;
...
...
@@ -240,9 +241,15 @@
}
.funneItem
:nth-of-type
(
1
)
{
box-sizing
:
border-box
;
padding-top
:
30rpx
;
margin-top
:
25rpx
;
}
.funneItem
:nth-of-type
(
1
)
.num
{
transform
:
translate
(
-50%
,
calc
(
-50%
-
-15rpx
));
}
.navOhterApp
{
display
:
flex
;
align-items
:
center
;
...
...
@@ -251,10 +258,28 @@
color
:
#5C7097
;
// margin: 50rpx 20rpx 0;
margin-bottom
:
50rpx
;
.linkImg
{
.linkImg
{
width
:
20rpx
;
height
:
20rpx
;
margin-left
:
20rpx
;
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
pages/tab/output/components/merchant/mrechant.wxml
View file @
4db2a24
...
...
@@ -17,7 +17,7 @@
<!-- sceneIndx==3? 'short': -->
<swiper
indicator-dots="{{indicatorDots}}"
class=" {{startInd ==4?'short':'full'}}"
class="
swiper
{{startInd ==4?'short':'full'}}"
autoplay="{{autoplay}}"
bindchange="swiperChange"
interval="{{interval}}"
...
...
pages/tab/output/output.scss
View file @
4db2a24
...
...
@@ -25,7 +25,7 @@
content
:
''
;
width
:
100%
;
// 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-size
:
100%
264rpx
;
background-color
:
#fff
;
...
...
@@ -37,7 +37,8 @@
.tabContainer
{
height
:
100rpx
;
padding
:
0
32rpx
;
// background-color: #F2F3F7;
}
.comCom
{
...
...
@@ -45,6 +46,7 @@
height
:
calc
(
100%
-
100rpx
);
overflow
:
scroll
;
// background-color: #fff;
background-color
:
#F2F3F7
;
}
.
comCom
:
:-
webkit-scrollbar
{
...
...
utils/cache/storage.js
View file @
4db2a24
...
...
@@ -97,9 +97,9 @@ class Storage {
*
* @param {*} key | 要操作的键值
* @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
)
if
(
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