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 fb644339
authored
Oct 25, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of 192.168.3.233:saas_plus/business-assistant into develop
2 parents
98f703e8
3b21b019
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
169 additions
and
87 deletions
components/Tab/Tab.wxml
login/index/components/Agree/Agree.scss
login/index/components/Agree/Agree.wxml
login/index/components/TypeList/TypeList.scss
login/index/components/TypeList/TypeList.wxml
login/index/index.wxml
mixins/imgUrl.js
pages/tab/index/components/product/product.js
pages/tab/index/components/product/product.scss
pages/tab/index/components/product/product.wxml
pages/tab/index/constant/data.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
router/router.js
utils/constantData.js
utils/share.js
components/Tab/Tab.wxml
View file @
fb64433
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<block wx:if="{{openScroll}}">
<block wx:if="{{openScroll}}">
<scroll-view
<scroll-view
class="tab-box {{align}} {{outClassName}}"
class="tab-box {{align}} {{outClassName}}"
style="{{productHeight ? 'height: 68rpx;' : ''}}"
scroll-x
scroll-x
enable-flex
enable-flex
scroll-with-animation
scroll-with-animation
...
...
login/index/components/Agree/Agree.scss
View file @
fb64433
/* login/index/components/Agree/Agree.wxss */
/* login/index/components/Agree/Agree.wxss */
.agree
{
.agree
{
position
:
fixed
;
//
position: fixed;
left
:
0
;
//
left: 0;
bottom
:
100rpx
;
//
bottom: 100rpx;
width
:
100%
;
width
:
100%
;
margin-top
:
20rpx
;
text
{
text
{
color
:
#5092FF
;
color
:
#5092FF
;
}
}
...
...
login/index/components/Agree/Agree.wxml
View file @
fb64433
<block wx:if="{{show}}">
<block wx:if="{{show}}">
<view class="agree text-center">
<view class="agree text-center"
bindtap="agree"
>
<view class="icon {{agree}}"
bindtap="agree"
>
<view class="icon {{agree}}">
<image webp src="{{IMGURL}}login/radio.png"></image>
<image webp src="{{IMGURL}}login/radio.png"></image>
</view>
</view>
<block wx:if="{{text}}">{{text}}</block>
<block wx:if="{{text}}">{{text}}</block>
...
...
login/index/components/TypeList/TypeList.scss
View file @
fb64433
...
@@ -4,12 +4,13 @@
...
@@ -4,12 +4,13 @@
text-align
:
center
;
text-align
:
center
;
margin-bottom
:
40rpx
;
margin-bottom
:
40rpx
;
}
}
.tips.true
{
padding-top
:
48rpx
;
}
.login-list
{
.login-list
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
gap
:
0
118rpx
;
.item
{
.item
{
display
:
flex
;
display
:
flex
;
...
@@ -17,7 +18,7 @@
...
@@ -17,7 +18,7 @@
flex-direction
:
column
;
flex-direction
:
column
;
width
:
100rpx
;
width
:
100rpx
;
animation
:
btn-move
.25s
forwards
;
animation
:
btn-move
.25s
forwards
;
margin
:
0
59rpx
;
.icon
{
.icon
{
width
:
68rpx
;
width
:
68rpx
;
height
:
68rpx
;
height
:
68rpx
;
...
...
login/index/components/TypeList/TypeList.wxml
View file @
fb64433
<view class="tips">其他方式</view>
<view class="tips
{{loginType == 2}}
">其他方式</view>
<view class="login-list">
<view class="login-list">
<block wx:for="{{loginList}}" wx:key="index">
<block wx:for="{{loginList}}" wx:key="index">
<block wx:if="{{loginType != index}}">
<block wx:if="{{loginType != index}}">
...
...
login/index/index.wxml
View file @
fb64433
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
<mask show="{{loading}}"></mask>
<mask show="{{loading}}"></mask>
<navigation-bar navStyle="background-color: rgba(0,0,0,0)">生意助手</navigation-bar>
<navigation-bar navStyle="background-color: rgba(0,0,0,0)">生意助手</navigation-bar>
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
<type-list loginType="{{loginType}}" />
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
<type-list loginType="{{loginType}}" />
</view>
</view>
\ No newline at end of file
\ No newline at end of file
mixins/imgUrl.js
View file @
fb64433
import
{
IMG_URL
}
from
'~/utils/constantData'
import
{
IMG_URL
,
IMG_VERSION
}
from
'~/utils/constantData'
module
.
exports
=
Behavior
({
module
.
exports
=
Behavior
({
data
:
{
data
:
{
IMGURL
:
IMG_URL
IMGURL
:
IMG_URL
,
IMG_VERSION
:
IMG_VERSION
()
}
}
})
})
pages/tab/index/components/product/product.js
View file @
fb64433
...
@@ -100,6 +100,9 @@ Component({
...
@@ -100,6 +100,9 @@ Component({
"360全景导航"
,
"360全景导航"
,
];
];
break
;
break
;
case
4
:
navList
=
[
"新能源0元换购"
];
break
;
}
}
this
.
setData
({
this
.
setData
({
...
@@ -240,10 +243,12 @@ Component({
...
@@ -240,10 +243,12 @@ Component({
// console.log('phone: ', phone);
// console.log('phone: ', phone);
wx
.
$storage
.
set
(
'wx_user_info'
,
{...
userInfo
,
phone
});
wx
.
$storage
.
set
(
'wx_user_info'
,
{...
userInfo
,
phone
});
// }
// }
setTimeout
(()
=>
{
this
.
triggerEvent
(
"authorized"
,
{
this
.
triggerEvent
(
"authorized"
,
{
phone
,
phone
,
// isShare: false,
// isShare: false,
});
});
},
1
e3
)
//隐藏更多按钮,显示视频列表
//隐藏更多按钮,显示视频列表
this
.
setData
({
this
.
setData
({
getMoreBtn
:
true
,
getMoreBtn
:
true
,
...
...
pages/tab/index/components/product/product.scss
View file @
fb64433
// 特色产品
// 特色产品
.prod-wrap
{
.prod-wrap
{
background-color
:
#f8fafb
;
background-color
:
#f8fafb
;
border-radius
:
20rpx
20rpx
0
0
;
}
}
.prod-wrap
.big-title
{
.prod-wrap
.big-title
{
margin-left
:
32rpx
;
margin-left
:
32rpx
;
...
@@ -8,6 +9,7 @@
...
@@ -8,6 +9,7 @@
font-weight
:
600
;
font-weight
:
600
;
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#323436
;
color
:
#323436
;
padding-top
:
32rpx
;
}
}
.prod-wrap
.nav-wrap
{
.prod-wrap
.nav-wrap
{
white-space
:
nowrap
;
white-space
:
nowrap
;
...
@@ -19,8 +21,7 @@
...
@@ -19,8 +21,7 @@
.prod-wrap
.nav-wrap
.nav
{
.prod-wrap
.nav-wrap
.nav
{
display
:
inline-block
;
display
:
inline-block
;
height
:
64rpx
;
height
:
64rpx
;
border-radius
:
12rpx
;
border-radius
:
4rpx
;
font-weight
:
600
;
font-size
:
24rpx
;
font-size
:
24rpx
;
letter-spacing
:
0
;
letter-spacing
:
0
;
text-align
:
center
;
text-align
:
center
;
...
@@ -28,14 +29,16 @@
...
@@ -28,14 +29,16 @@
line-height
:
64rpx
;
line-height
:
64rpx
;
margin-right
:
16rpx
;
margin-right
:
16rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
border
:
2rpx
solid
#
dde3f
0
;
border
:
2rpx
solid
#
DDE3F
0
;
color
:
#323436
;
color
:
#323436
;
padding
:
0
16rpx
;
padding
:
0
16rpx
;
}
}
.prod-wrap
.nav-wrap
.active-nav
{
.prod-wrap
.nav-wrap
.active-nav
{
color
:
#ffffff
;
color
:
#ffffff
;
font-weight
:
500
;
// background-image: linear-gradient(0deg, #EBEFFF 8%, #FCFDFF 85%);
// background-image: linear-gradient(0deg, #EBEFFF 8%, #FCFDFF 85%);
background-color
:
var
(
--
btnColor
);
background-color
:
var
(
--
btnColor
);
border
:
0rpx
solid
;
// border: 2rpx solid rgba(68,97,240,0.50);
// border: 2rpx solid rgba(68,97,240,0.50);
// box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35);
// box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35);
}
}
...
@@ -56,7 +59,7 @@
...
@@ -56,7 +59,7 @@
background-image
:
linear-gradient
(
1deg
,
#ffffff
10%
,
#fdfcff
100%
);
background-image
:
linear-gradient
(
1deg
,
#ffffff
10%
,
#fdfcff
100%
);
border
:
2rpx
solid
#ffffff
;
border
:
2rpx
solid
#ffffff
;
box-shadow
:
0
8rpx
20rpx
0
rgba
(
197
,
205
,
235
,
0
.35
);
box-shadow
:
0
8rpx
20rpx
0
rgba
(
197
,
205
,
235
,
0
.35
);
border-radius
:
20
rpx
;
border-radius
:
8
rpx
;
padding
:
20rpx
24rpx
;
padding
:
20rpx
24rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
relative
;
position
:
relative
;
...
@@ -291,6 +294,29 @@
...
@@ -291,6 +294,29 @@
height
:
1666rpx
;
height
:
1666rpx
;
}
}
// 流程图5
.img-item51
{
width
:
100%
;
height
:
814rpx
;
}
.img-item52
{
width
:
100%
;
height
:
998rpx
;
}
.img-item53
{
width
:
100%
;
height
:
596rpx
;
}
.img-item54
{
width
:
100%
;
height
:
984rpx
;
}
.img-item55
{
width
:
100%
;
height
:
490rpx
;
}
/* 案例视频 */
/* 案例视频 */
.video-bg
{
.video-bg
{
...
...
pages/tab/index/components/product/product.wxml
View file @
fb64433
...
@@ -16,12 +16,12 @@
...
@@ -16,12 +16,12 @@
<view class="prod-info">
<view class="prod-info">
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<!-- senceData[actNum]['productList'][activeNavIdx].changeSale || -->
<!-- senceData[actNum]['productList'][activeNavIdx].changeSale || -->
<text class="sale" decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}} <text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].varType == 1? senceData[actNum]['productList'][activeNavIdx].flow : senceData[actNum]['productList'][activeNavIdx].sale}}</text>
<text class="sale"
wx:if="{{ actNum!=4}}"
decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}} <text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].varType == 1? senceData[actNum]['productList'][activeNavIdx].flow : senceData[actNum]['productList'][activeNavIdx].sale}}</text>
</text>
</text>
<text class="earnings" decode="{{true}}">预估收益 <text class="earnings-num">¥{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
<text class="earnings"
wx:if="{{ actNum!=4}}"
decode="{{true}}">预估收益 <text class="earnings-num">¥{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text>
</text>
</view>
</view>
<view class="share-btn" wx:if="{{!isShare && origin =='home'}}" bindtap="onShareFn">
<view class="share-btn" wx:if="{{!isShare && origin =='home'
&& actNum!=4
}}" bindtap="onShareFn">
<image class="icon" src="{{IMGURL}}share.png" />
<image class="icon" src="{{IMGURL}}share.png" />
<text>分享</text>
<text>分享</text>
</view>
</view>
...
...
pages/tab/index/constant/data.js
View file @
fb64433
...
@@ -237,18 +237,18 @@ var senceData = [
...
@@ -237,18 +237,18 @@ var senceData = [
]
]
},
},
{
{
name
:
'
新车洽谈场景
'
,
name
:
'
3年以上
'
,
img
:
'scene_talk.png'
,
img
:
'scene_talk.png'
,
active
:
'icon-car11'
,
active
:
'icon-car11'
,
playImg
:
'img1'
,
playImg
:
'img1'
,
src
:
`
${
IMG_URL
}
index/car1.png`
,
src
:
`
${
IMG_URL
}
index/car1.png`
,
// name: "新车洽谈场景",
// name: "新车洽谈场景",
msg
:
"
1.0 新车权益销售
"
,
msg
:
"
3.1新能源0元购
"
,
"sceneCode"
:
"SC001"
,
"sceneCode"
:
"SC001"
,
productList
:
[
productList
:
[
{
{
img
:
'product-img1'
,
img
:
'product-img1'
,
proName
:
'
数字无忧权益卡
'
,
proName
:
'
新能源0元换购
'
,
price
:
'100'
,
price
:
'100'
,
// profit: '92.4万',
// profit: '92.4万',
profit
:
'1200000'
,
profit
:
'1200000'
,
...
@@ -258,9 +258,9 @@ var senceData = [
...
@@ -258,9 +258,9 @@ var senceData = [
sale
:
100
,
//销量
sale
:
100
,
//销量
varType
:
0
,
varType
:
0
,
flow
:
10000
,
flow
:
10000
,
"productCode"
:
"PC001
"
,
"productCode"
:
"PC010
"
,
"productName"
:
"数字无忧权益卡
"
,
"productName"
:
"新能源0元换购
"
,
"category"
:
"
服务
类"
,
"category"
:
"
置换
类"
,
}
}
]
]
},
},
...
...
pages/tab/index/index.scss
View file @
fb64433
...
@@ -68,15 +68,15 @@ page {
...
@@ -68,15 +68,15 @@ page {
align-items
:
center
;
align-items
:
center
;
.img
{
.img
{
width
:
20
px
;
width
:
40r
px
;
height
:
20
px
;
height
:
40r
px
;
}
}
.apply
{
.apply
{
margin-left
:
4px
;
margin-left
:
4px
;
margin-right
:
16px
;
margin-right
:
16px
;
font-weight
:
400
;
font-weight
:
400
;
font-size
:
14
px
;
font-size
:
28r
px
;
color
:
var
(
--
btnColor
);
color
:
var
(
--
btnColor
);
}
}
}
}
...
@@ -293,31 +293,36 @@ page {
...
@@ -293,31 +293,36 @@ page {
}
}
.scene
{
.scene
{
margin
:
0
10px
16px
;
margin
:
0px
20prx
32rpx
;
.scene-wrap
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
}
.item-wrap
{
.item-wrap
{
// margin-right: 4px;
margin-right
:
8rpx
;
margin-bottom
:
40rpx
;
position
:
relative
;
position
:
relative
;
width
:
86px
;
width
:
172rpx
;
height
:
90px
;
height
:
180rpx
;
border-radius
:
10px
;
border-radius
:
8rpx
;
border
:
1px
solid
#f7f8fc
;
box-sizing
:
border-box
;
}
}
.item
{
.item
{
// padding-top: 10px;
// padding-top: 10px;
width
:
86
px
;
width
:
172r
px
;
height
:
90
px
;
height
:
180r
px
;
background
:
#f7f8fc
;
background
:
#f7f8fc
;
border-radius
:
6px
;
border-radius
:
8rpx
;
box-sizing
:
border-box
;
// border: 1px solid #f7f8fc;
}
}
.act
{
.act
{
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-size: 100% 100%;
// background-size: 100% 100%;
border
:
1px
solid
var
(
--
btnColor
);
border
:
1px
solid
var
(
--
btnColor
);
box-shadow
:
0
0
10px
#999
;
box-shadow
:
0
2rpx
4rpx
0
rgba
(
180
,
186
,
204
,
0
.4
)
;
&
:
:
after
{
&
:
:
after
{
position
:
absolute
;
position
:
absolute
;
...
@@ -406,13 +411,12 @@ page {
...
@@ -406,13 +411,12 @@ page {
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
background-color
:
rgba
(
45
,
45
,
51
,
0
.50
);
background-color
:
rgba
(
45
,
45
,
51
,
0
.50
);
z-index
:
1
;
z-index
:
2
;
.dialog-box
{
.dialog-box
{
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
height
:
744rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
box-shadow
:
0
-8rpx
20rpx
0
rgba
(
180
,
186
,
204
,
0
.32
);
box-shadow
:
0
-8rpx
20rpx
0
rgba
(
180
,
186
,
204
,
0
.32
);
border-radius
:
32rpx
32rpx
0
0
;
border-radius
:
32rpx
32rpx
0
0
;
...
@@ -441,7 +445,7 @@ page {
...
@@ -441,7 +445,7 @@ page {
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#
5850FF
;
color
:
#
3666FE
;
width
:
auto
;
width
:
auto
;
}
}
...
@@ -466,7 +470,7 @@ page {
...
@@ -466,7 +470,7 @@ page {
.dialog-form
{
.dialog-form
{
width
:
100%
;
width
:
100%
;
height
:
384rpx
;
height
:
384rpx
;
background-image
:
linear-gradient
(
179deg
,
rgba
(
123
,
112
,
255
,
0
.02
)
15%
,
rgba
(
99
,
92
,
255
,
0
.10
)
100%
);
background-image
:
linear-gradient
(
179deg
,
rgba
(
240
,
247
,
255
,
0
.30
)
15%
,
#F0F7FF
100%
);
border-radius
:
8rpx
;
border-radius
:
8rpx
;
padding
:
32rpx
;
padding
:
32rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -504,7 +508,7 @@ page {
...
@@ -504,7 +508,7 @@ page {
width
:
100%
;
width
:
100%
;
padding
:
24rpx
0
;
padding
:
24rpx
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background
:
#
5850FF
;
background
:
#
3666FE
;
border-radius
:
8rpx
;
border-radius
:
8rpx
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
32rpx
;
font-size
:
32rpx
;
...
...
pages/tab/index/index.wxml
View file @
fb64433
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
tabHeight
tabHeight
unreadClueCount="{{unreadClueCount}}"
unreadClueCount="{{unreadClueCount}}"
bindclick="changeTabIndx"
bindclick="changeTabIndx"
class="tabContainer" />
class="tabContainer"
/>
<view class="right" data-type="shop" bindtap="gotoApply">
<view class="right" data-type="shop" bindtap="gotoApply">
<image class="img" src="{{IMG_URL}}index/apply.png" />
<image class="img" src="{{IMG_URL}}index/apply.png" />
<view class="apply">申请业务</view>
<view class="apply">申请业务</view>
...
@@ -23,16 +24,20 @@
...
@@ -23,16 +24,20 @@
class="content"
class="content"
wx:if="{{tabIndx == 1 }}"
wx:if="{{tabIndx == 1 }}"
hover-class="none"
hover-class="none"
hover-stop-propagation="false">
hover-stop-propagation="false"
>
<view class="scene">
<view class="scene">
<!-- wx:if="{{item.sceneStatus == 1}}" -->
<!-- wx:if="{{item.sceneStatus == 1}}" -->
<scroll-view scroll-x="{{true}}">
<view class="scene-wrap">
<view
<view
class="item-wrap {{actNum== index ? 'act':''}}"
class="item-wrap {{actNum== index ? 'act':''}}"
data-num="{{index}}"
data-num="{{index}}"
data-scenestatus="{{item.sceneStatus}}"
data-scenestatus="{{item.sceneStatus}}"
bindtap="selectCar"
bindtap="selectCar"
wx:for="{{senceData}}"
wx:for="{{senceData}}"
wx:key="name">
wx:key="name"
>
<view class="item">
<view class="item">
<image class="img" src="{{item.src}}" />
<image class="img" src="{{item.src}}" />
<view class="name">{{item.name}}</view>
<view class="name">{{item.name}}</view>
...
@@ -40,26 +45,33 @@
...
@@ -40,26 +45,33 @@
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<product
<product
stickyTop="{{headerHeight}}"
stickyTop="{{headerHeight}}"
actNum="{{actNum}}"
actNum="{{actNum}}"
senceData="{{senceData}}"
senceData="{{senceData}}"
origin="home"
origin="home"
bindsharehandle="sharehandle" />
bindsharehandle="sharehandle"
/>
</view>
</view>
<!-- 看线索内容 -->
<!-- 看线索内容 -->
<view
<view
class="clue"
class="clue"
wx:if="{{tabIndx == 0 }}"
wx:if="{{tabIndx == 0 }}"
hover-class="none"
hover-class="none"
hover-stop-propagation="false">
hover-stop-propagation="false"
>
<view class="types">
<view class="types">
<view
<view
class="type {{item['selectIndex']!=2&&index != 3?'active':'' }}"
class="type {{item['selectIndex']!=2&&index != 3?'active':'' }}"
wx:for="{{typeList}}"
wx:for="{{typeList}}"
wx:key="*this"
wx:key="*this"
data-index="{{index}}"
data-index="{{index}}"
bindtap="filterTypeFn">
bindtap="filterTypeFn"
>
{{item[item['selectIndex']] }}
{{item[item['selectIndex']] }}
<image class="point" wx:if="{{index != 3}}" src="{{IMG_URL}}index/point.png" />
<image class="point" wx:if="{{index != 3}}" src="{{IMG_URL}}index/point.png" />
</view>
</view>
...
@@ -71,7 +83,7 @@
...
@@ -71,7 +83,7 @@
<view class="name-wrap">
<view class="name-wrap">
<view class="name" hover-class="none" hover-stop-propagation="false">
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
{{item.nickName}}
<image class="avatar" src="{{IMG_URL}}index/
avatar
.png" wx:if="{{item.clueType != 3}}" />
<image class="avatar" src="{{IMG_URL}}index/
man
.png" wx:if="{{item.clueType != 3}}" />
</view>
</view>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
</view>
</view>
...
@@ -81,7 +93,8 @@
...
@@ -81,7 +93,8 @@
wx:for="{{item.visitList}}"
wx:for="{{item.visitList}}"
wx:key="id"
wx:key="id"
wx:for-index="idx"
wx:for-index="idx"
wx:for-item="itemName">
wx:for-item="itemName"
>
<view class="shop-record">
<view class="shop-record">
<view class="shop-action-wrap">
<view class="shop-action-wrap">
<view class="action-wrap">
<view class="action-wrap">
...
@@ -89,13 +102,15 @@
...
@@ -89,13 +102,15 @@
class="action"
class="action"
selectable="false"
selectable="false"
space="false"
space="false"
decode="false">访问页面:
decode="false"
>访问页面:
</view>
</view>
<view
<view
class="detail"
class="detail"
selectable="false"
selectable="false"
space="false"
space="false"
decode="false">
decode="false"
>
{{itemName.productDesc}}
{{itemName.productDesc}}
</view>
</view>
</view>
</view>
...
@@ -103,7 +118,8 @@
...
@@ -103,7 +118,8 @@
class="time"
class="time"
selectable="false"
selectable="false"
space="false"
space="false"
decode="false">
decode="false"
>
{{itemName.clueDate}}
{{itemName.clueDate}}
</view>
</view>
</view>
</view>
...
@@ -120,12 +136,14 @@
...
@@ -120,12 +136,14 @@
class="phone-img"
class="phone-img"
data-phone="{{item.phone}}"
data-phone="{{item.phone}}"
bindtap="phoneCallFn"
bindtap="phoneCallFn"
src="{{IMG_URL}}index/phone.png" />
src="{{IMG_URL}}index/phone.png"
/>
<image
<image
class="copy"
class="copy"
data-phone="{{item.phone}}"
data-phone="{{item.phone}}"
bindtap="setCopyDataFn"
bindtap="setCopyDataFn"
src="{{IMG_URL}}index/copy.png" />
src="{{IMG_URL}}index/copy.png"
/>
</view>
</view>
</view>
</view>
<view
<view
...
@@ -134,7 +152,8 @@
...
@@ -134,7 +152,8 @@
hover-stop-propagation="false"
hover-stop-propagation="false"
data-type="active"
data-type="active"
data-item="{{item}}"
data-item="{{item}}"
bindtap="gotoApply">
bindtap="gotoApply"
>
开通活动
开通活动
</view>
</view>
</view>
</view>
...
@@ -148,7 +167,8 @@
...
@@ -148,7 +167,8 @@
data-type="like"
data-type="like"
data-outidx="{{index}}"
data-outidx="{{index}}"
data-item="{{item}}"
data-item="{{item}}"
bindtap="showToast" />
bindtap="showToast"
/>
<image
<image
class="like"
class="like"
wx:if="{{item.clueType == 1 && item.starTag == 0}}"
wx:if="{{item.clueType == 1 && item.starTag == 0}}"
...
@@ -156,7 +176,8 @@
...
@@ -156,7 +176,8 @@
data-type="dislike"
data-type="dislike"
data-outidx="{{index}}"
data-outidx="{{index}}"
data-item="{{item}}"
data-item="{{item}}"
bindtap="showToast" />
bindtap="showToast"
/>
<view class="name" hover-class="none" hover-stop-propagation="false">
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
{{item.nickName}}
<image class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" />
<image class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" />
...
@@ -168,19 +189,22 @@
...
@@ -168,19 +189,22 @@
wx:for="{{item.visitList}}"
wx:for="{{item.visitList}}"
wx:key="id"
wx:key="id"
wx:for-index="idx"
wx:for-index="idx"
wx:for-item="itemName">
wx:for-item="itemName"
>
<view class="action-wrap">
<view class="action-wrap">
<view
<view
class="action"
class="action"
selectable="false"
selectable="false"
space="false"
space="false"
decode="false">访问页面:
decode="false"
>访问页面:
</view>
</view>
<view
<view
class="detail"
class="detail"
selectable="false"
selectable="false"
space="false"
space="false"
decode="false">
decode="false"
>
{{itemName.productDesc}}
{{itemName.productDesc}}
</view>
</view>
</view>
</view>
...
@@ -188,7 +212,8 @@
...
@@ -188,7 +212,8 @@
class="time"
class="time"
selectable="false"
selectable="false"
space="false"
space="false"
decode="false">
decode="false"
>
{{itemName.clueDate}}
{{itemName.clueDate}}
</view>
</view>
</view>
</view>
...
@@ -199,26 +224,30 @@
...
@@ -199,26 +224,30 @@
hover-class="none"
hover-class="none"
hover-stop-propagation="false"
hover-stop-propagation="false"
data-outidx="{{index}}"
data-outidx="{{index}}"
bindtap="getMore">
bindtap="getMore"
>
{{ item.getMoreFlag ?'更多数据':'收起数据'}}
{{ item.getMoreFlag ?'更多数据':'收起数据'}}
</view>
</view>
<view
<view
class="info"
class="info"
hover-class="none"
hover-class="none"
hover-stop-propagation="false"
hover-stop-propagation="false"
wx:if="{{item.phone}}">
wx:if="{{item.phone}}"
>
<view class="phone-wrap">
<view class="phone-wrap">
<view class="phone">{{item.phone}}</view>
<view class="phone">{{item.phone}}</view>
<image
<image
class="phone-img"
class="phone-img"
data-phone="{{item.phone}}"
data-phone="{{item.phone}}"
bindtap="phoneCallFn"
bindtap="phoneCallFn"
src="{{IMG_URL}}index/phone.png" />
src="{{IMG_URL}}index/phone.png"
/>
<image
<image
class="copy"
class="copy"
data-phone="{{item.phone}}"
data-phone="{{item.phone}}"
bindtap="setCopyDataFn"
bindtap="setCopyDataFn"
src="{{IMG_URL}}index/copy.png" />
src="{{IMG_URL}}index/copy.png"
/>
</view>
</view>
<view
<view
class="btn"
class="btn"
...
@@ -227,7 +256,8 @@
...
@@ -227,7 +256,8 @@
data-type="shop"
data-type="shop"
bindtap="gotoApply"
bindtap="gotoApply"
data-item="{{item}}"
data-item="{{item}}"
wx:if="{{item.applyStatus == 0}}">
wx:if="{{item.applyStatus == 0}}"
>
+开店面
+开店面
</view>
</view>
</view>
</view>
...
@@ -244,7 +274,12 @@
...
@@ -244,7 +274,12 @@
<vas-toast isShow="{{true}}" id='toast' />
<vas-toast isShow="{{true}}" id='toast' />
<!-- 引导图 -->
<!-- 引导图 -->
<view class="guide" wx:if="{{guideShow}}" style="overflow-y:hidden;">
<view class="guide" wx:if="{{guideShow}}" style="overflow-y:hidden;">
<image bindtap="guideFn" class="guide-img" src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" />
<image
webp
bindtap="guideFn"
class="guide-img"
src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png"
/>
</view>
</view>
<!-- 在线客服 -->
<!-- 在线客服 -->
<image class="chat" src="{{IMG_URL}}index/contact.png" bindtap="goConsult" />
<image class="chat" src="{{IMG_URL}}index/contact.png" bindtap="goConsult" />
...
@@ -253,7 +288,8 @@
...
@@ -253,7 +288,8 @@
class="output-value"
class="output-value"
bindtap="showCalculate"
bindtap="showCalculate"
src="{{IMG_URL}}index/valuation.png"
src="{{IMG_URL}}index/valuation.png"
wx:if="{{tabIndx == 1}}" />
wx:if="{{tabIndx == 1}}"
/>
<!-- 预估产值弹框 -->
<!-- 预估产值弹框 -->
<view class="dialog-wrapper" bindtap="clickDialog" hidden="{{!visible}}">
<view class="dialog-wrapper" bindtap="clickDialog" hidden="{{!visible}}">
<view class="dialog-box">
<view class="dialog-box">
...
@@ -274,7 +310,8 @@
...
@@ -274,7 +310,8 @@
maxlength="8"
maxlength="8"
name="sales"
name="sales"
value="{{formData.sales}}"
value="{{formData.sales}}"
type="number" />
type="number"
/>
<!-- <view class="form-unit">台</view> -->
<!-- <view class="form-unit">台</view> -->
</view>
</view>
<view class="form-item">
<view class="form-item">
...
@@ -285,7 +322,8 @@
...
@@ -285,7 +322,8 @@
maxlength="8"
maxlength="8"
name="flow"
name="flow"
type="number"
type="number"
value="{{formData.flow}}" />
value="{{formData.flow}}"
/>
<!-- <view class="form-unit">人</view> -->
<!-- <view class="form-unit">人</view> -->
</view>
</view>
<button class="dialog-btn" form-type="submit">提交测算</button>
<button class="dialog-btn" form-type="submit">提交测算</button>
...
...
router/router.js
View file @
fb64433
const
_routeHooks
=
Symbol
(
'_routeHooks'
)
const
_routeHooks
=
Symbol
(
'_routeHooks'
)
const
_query
=
Symbol
(
'_query'
)
const
_query
=
Symbol
(
'_query'
)
const
_routerList
=
Symbol
(
'_routerList'
)
const
_routerList
=
Symbol
(
'_routerList'
)
import
{
IMG_URL
}
from
'~/utils/constantData'
import
{
IMG_URL
,
IMG_VERSION
}
from
'~/utils/constantData'
import
{
generateRoutList
}
from
'./wxOnAppRoute.js'
import
{
generateRoutList
}
from
'./wxOnAppRoute.js'
import
{
getNavigationBarTitleText
}
from
'~/utils/cache/storageApi'
import
{
getNavigationBarTitleText
}
from
'~/utils/cache/storageApi'
import
{
getUserInfo
}
from
'~/utils/cache/userInfo'
import
{
getUserInfo
}
from
'~/utils/cache/userInfo'
...
@@ -15,8 +15,8 @@ class Router {
...
@@ -15,8 +15,8 @@ class Router {
wx
.
onAppRoute
(
e
=>
{
wx
.
onAppRoute
(
e
=>
{
let
thisPage
=
this
.
getPageInstance
()
let
thisPage
=
this
.
getPageInstance
()
if
(
thisPage
)
{
if
(
thisPage
)
{
thisPage
.
setData
({
IMG_URL
})
thisPage
.
setData
({
IMG_URL
,
img_version
:
IMG_VERSION
()
})
if
(
Object
.
keys
(
this
[
_query
]).
length
)
thisPage
.
options
=
{
if
(
Object
.
keys
(
this
[
_query
]).
length
)
thisPage
.
options
=
{
...
thisPage
.
options
,
...
thisPage
.
options
,
...
this
[
_query
]
...
this
[
_query
]
}
}
...
@@ -58,7 +58,7 @@ class Router {
...
@@ -58,7 +58,7 @@ class Router {
return
pages
[
pages
.
length
-
size
]
return
pages
[
pages
.
length
-
size
]
}
}
checkRouter
(
route
,
events
)
{
checkRouter
(
route
,
events
)
{
this
[
_query
]
=
events
||
{}
this
[
_query
]
=
events
||
{}
const
[
_parent
,
_name
,
last_name
]
=
route
.
split
(
'.'
)
const
[
_parent
,
_name
,
last_name
]
=
route
.
split
(
'.'
)
let
name
=
route
let
name
=
route
...
@@ -95,7 +95,7 @@ class Router {
...
@@ -95,7 +95,7 @@ class Router {
}
}
}
}
/**跳转至H5 */
/**跳转至H5 */
jumpH5
(
url
)
{
jumpH5
(
url
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`/pages/webView/webView?url=
${
encodeURIComponent
(
url
)}
`
url
:
`/pages/webView/webView?url=
${
encodeURIComponent
(
url
)}
`
})
})
...
@@ -103,7 +103,7 @@ class Router {
...
@@ -103,7 +103,7 @@ class Router {
/**页面跳转
/**页面跳转
*
*
*/
*/
jump
(
e
)
{
jump
(
e
)
{
const
item
=
e
.
currentTarget
.
dataset
const
item
=
e
.
currentTarget
.
dataset
this
.
go
(
item
.
url
,
item
)
this
.
go
(
item
.
url
,
item
)
}
}
...
@@ -111,7 +111,7 @@ class Router {
...
@@ -111,7 +111,7 @@ class Router {
* 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 ||
* 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 ||
* 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 $router.back() 可以返回到原页面。小程序中页面栈最多十层
* 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 $router.back() 可以返回到原页面。小程序中页面栈最多十层
*/
*/
go
(
route
,
events
)
{
go
(
route
,
events
)
{
let
{
routerMapItem
,
query
}
=
this
.
checkRouter
(
route
,
events
)
let
{
routerMapItem
,
query
}
=
this
.
checkRouter
(
route
,
events
)
if
(
routerMapItem
.
isTab
)
{
if
(
routerMapItem
.
isTab
)
{
wx
.
switchTab
({
wx
.
switchTab
({
...
@@ -125,14 +125,14 @@ class Router {
...
@@ -125,14 +125,14 @@ class Router {
}
}
}
}
/**关闭所有页面,打开到应用内的某个页面 */
/**关闭所有页面,打开到应用内的某个页面 */
reLaunch
(
route
,
events
)
{
reLaunch
(
route
,
events
)
{
let
{
routerMapItem
,
query
}
=
this
.
checkRouter
(
route
,
events
)
let
{
routerMapItem
,
query
}
=
this
.
checkRouter
(
route
,
events
)
wx
.
reLaunch
({
wx
.
reLaunch
({
url
:
`
${
routerMapItem
.
url
}${
query
}
`
url
:
`
${
routerMapItem
.
url
}${
query
}
`
})
})
}
}
/**关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面。 */
/**关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面。 */
redirectTo
(
route
,
events
)
{
redirectTo
(
route
,
events
)
{
let
{
routerMapItem
,
query
}
=
this
.
checkRouter
(
route
,
events
)
let
{
routerMapItem
,
query
}
=
this
.
checkRouter
(
route
,
events
)
wx
.
redirectTo
({
wx
.
redirectTo
({
url
:
`
${
routerMapItem
.
url
}${
query
}
`
url
:
`
${
routerMapItem
.
url
}${
query
}
`
...
@@ -141,7 +141,7 @@ class Router {
...
@@ -141,7 +141,7 @@ class Router {
/**prevPageSize = 1
/**prevPageSize = 1
* 返回上prevPageSize页
* 返回上prevPageSize页
* callBack返回上prevPageSize页对象 */
* callBack返回上prevPageSize页对象 */
back
(
callBack
,
prevPageSize
=
1
)
{
back
(
callBack
,
prevPageSize
=
1
)
{
let
prevPage
=
this
.
getPageInstance
(
Number
(
prevPageSize
)
+
1
)
let
prevPage
=
this
.
getPageInstance
(
Number
(
prevPageSize
)
+
1
)
if
(
callBack
&&
'function'
===
typeof
callBack
)
callBack
(
prevPage
)
if
(
callBack
&&
'function'
===
typeof
callBack
)
callBack
(
prevPage
)
wx
.
navigateBack
({
wx
.
navigateBack
({
...
@@ -150,18 +150,18 @@ class Router {
...
@@ -150,18 +150,18 @@ class Router {
this
.
goHome
()
this
.
goHome
()
})
})
}
}
goHome
()
{
goHome
()
{
let
[
index
]
=
this
[
_routerList
]
let
[
index
]
=
this
[
_routerList
]
wx
.
reLaunch
({
wx
.
reLaunch
({
url
:
index
.
url
url
:
index
.
url
})
})
}
}
/**获取上一个页面传的数据 */
/**获取上一个页面传的数据 */
getData
(
callBack
)
{
getData
(
callBack
)
{
const
data
=
this
.
getPageInstance
().
getOpenerEventChannel
()
const
data
=
this
.
getPageInstance
().
getOpenerEventChannel
()
if
(
Object
.
keys
(
data
).
length
!==
0
)
data
.
on
(
'getData'
,
res
=>
callBack
(
res
))
if
(
Object
.
keys
(
data
).
length
!==
0
)
data
.
on
(
'getData'
,
res
=>
callBack
(
res
))
}
}
onRoute
(
fn
)
{
onRoute
(
fn
)
{
this
[
_routeHooks
].
push
(
fn
)
this
[
_routeHooks
].
push
(
fn
)
return
()
=>
{
return
()
=>
{
const
i
=
list
.
indexOf
(
fn
)
const
i
=
list
.
indexOf
(
fn
)
...
...
utils/constantData.js
View file @
fb64433
...
@@ -16,3 +16,8 @@ export const STORAGE_OBJECTkEY = {
...
@@ -16,3 +16,8 @@ export const STORAGE_OBJECTkEY = {
firstLogin
:
'firstLogin'
,
firstLogin
:
'firstLogin'
,
authphone
:
'authphone'
authphone
:
'authphone'
}
}
export
const
IMG_VERSION
=
()
=>
{
const
accountInfo
=
wx
.
getAccountInfoSync
()
return
accountInfo
.
miniProgram
.
version
||
'1.0.0'
}
\ No newline at end of file
\ No newline at end of file
utils/share.js
View file @
fb64433
...
@@ -116,7 +116,7 @@ class Share {
...
@@ -116,7 +116,7 @@ class Share {
USERINFO
USERINFO
}
=
this
.
getCommonData
(),
}
=
this
.
getCommonData
(),
thisPage
=
wx
.
$router
.
getPageInstance
()
thisPage
=
wx
.
$router
.
getPageInstance
()
query
=
`
${
query
?
`?
${
query
}
&`
:
'?'
}
merchantId=
${
thisPage
.
merchantId
||
USERINFO
.
merchantId
}
&shareOpenId=
${
thisPage
.
shareOpenId
||
WXUSERINFO
.
openId
}
&sharePhone=
${
thisPage
.
sharePhone
||
USERINFO
.
phone
}
`
query
=
`
${
query
?
`?
${
query
}
&`
:
'?'
}
merchantId=
${
thisPage
.
merchantId
||
USERINFO
.
merchantId
||
''
}
&shareOpenId=
${
thisPage
.
shareOpenId
||
WXUSERINFO
.
openId
||
''
}
&sharePhone=
${
thisPage
.
sharePhone
||
USERINFO
.
phone
||
''
}
`
return
query
return
query
}
}
reportShareData
(
shareTrackData
)
{
reportShareData
(
shareTrackData
)
{
...
...
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