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 40f3d0b3
authored
Oct 22, 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
0dc42bb2
34691f37
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
128 additions
and
49 deletions
login/index/index.json
packageOutput/pages/summary/summary.scss
packageOutput/pages/summary/summary.wxml
pages/checkProduct/checkProduct.js
pages/checkProduct/checkProduct.json
pages/checkProduct/checkProduct.scss
pages/checkProduct/checkProduct.wxml
pages/tab/index/components/product/product.js
pages/tab/index/components/product/product.wxml
pages/tab/index/components/product/product.wxs
pages/tab/index/constant/data.js
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
pages/tab/output/components/client/client.scss
utils/request/environment.js
login/index/index.json
View file @
40f3d0b
...
...
@@ -6,5 +6,6 @@
"type-list"
:
"./components/TypeList/TypeList"
,
"agree"
:
"./components/Agree/Agree"
},
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
\ No newline at end of file
packageOutput/pages/summary/summary.scss
View file @
40f3d0b
...
...
@@ -115,11 +115,14 @@
bottom
:
0
;
left
:
0
;
width
:
100%
;
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
background
:
#3666FE
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
.btn
{
width
:
100%
;
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
background
:
#3666FE
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
}
}
}
\ No newline at end of file
packageOutput/pages/summary/summary.wxml
View file @
40f3d0b
...
...
@@ -32,5 +32,7 @@
</view>
</view>
</view>
<view wx:if="{{activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}" class="btn-blue" bindtap="handleJump">点击开通</view>
<view class="isFullSucreen btn-blue">
<view wx:if="{{activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}" class="btn" bindtap="handleJump">点击开通</view>
</view>
</view>
\ No newline at end of file
pages/checkProduct/checkProduct.js
View file @
40f3d0b
This diff is collapsed.
Click to expand it.
pages/checkProduct/checkProduct.json
View file @
40f3d0b
...
...
@@ -4,6 +4,5 @@
},
"navigationStyle"
:
"custom"
,
"onReachBottomDistance"
:
10
,
"backgroundColor"
:
"#FC5B32"
,
"enablePullDownRefresh"
:
true
}
pages/checkProduct/checkProduct.scss
View file @
40f3d0b
...
...
@@ -68,3 +68,14 @@
}
}
}
/* 用户授权 */
.user-profile
{
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
2
;
background-color
:
transparent
;
}
pages/checkProduct/checkProduct.wxml
View file @
40f3d0b
...
...
@@ -4,7 +4,7 @@
</view>
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}"
senceData="{{senceData}}" isShare="{{isShare}}"
bindauthorized="authorizedFn" />
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}"
wrapactiveNavIdx="{{activeNavIdx}}" outshowVideo="{{outshowVideo}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}"
bindauthorized="authorizedFn" />
<!-- 分享弹框 -->
<!-- <shareModel actNum="{{actNum}}" isShow="{{isShow}}" bindmodelclose="modelcloseFn" /> -->
<view class="share-wrap" wx:if="{{isShow}}">
...
...
@@ -34,3 +34,6 @@
<view class="btom" bindtap="modelcloseFn">取消</view>
</view>
</view>
<!-- 授权昵称 -->
<!-- !hasUserInfo && !isShow -->
<view wx:if="{{!hasUserInfo && isShare}}" class="user-profile" bindtap="getUserProfile"></view>
pages/tab/index/components/product/product.js
View file @
40f3d0b
...
...
@@ -13,12 +13,18 @@ Component({
properties
:
{
stickyTop
:
Number
,
actNum
:
Number
,
wrapactiveNavIdx
:
Number
,
senceData
:
Object
,
//本地数据
apiData
:
Object
,
//后端接口数据
isShare
:
{
type
:
Boolean
,
value
:
false
,
},
origin
:
String
,
//来源
outshowVideo
:
{
type
:
Boolean
,
value
:
true
,
},
//显示视频列表
},
/**
...
...
@@ -41,11 +47,24 @@ Component({
intoViewId
:
"to-0"
,
IMGURL
:
`
${
IMG_URL
}
index/`
,
videoBaseUrl
,
getMoreBtn
:
false
,
showVideo
:
true
//显示视频列表
},
lifetimes
:
{
ready
:
function
()
{
if
(
this
.
data
.
wrapactiveNavIdx
){
this
.
setData
({
activeNavIdx
:
this
.
data
.
wrapactiveNavIdx
})
}
if
(
!
this
.
data
.
outshowVideo
){
console
.
log
(
'outshowVideo'
,
this
.
data
.
outshowVideo
)
this
.
setData
({
showVideo
:
false
})
}
this
.
init
();
// console.log('stickyTop',this.data.stickyTop)
this
.
getImgHeight
();
//如果不是分享,初始化的时候调用函数
if
(
!
this
.
data
.
isShare
)
{
...
...
@@ -166,22 +185,29 @@ Component({
},
// 获取用户信息
getUserInfo
({
detail
})
{
console
.
log
(
detail
);
//
console.log(detail);
if
(
!
detail
.
code
)
return
;
// this.setBtnLoading()
USERAPI
.
getUserProfile
(
this
.
loginToken
,
detail
)
.
then
((
result
)
=>
{
// console.log(result)
let
userInfo
=
wx
.
$storage
.
get
(
'wx_user_info'
)
// console.log('userInfo: ', userInfo);
let
{
phone
}
=
result
;
//
let {
wx
.
$storage
.
set
(
'wx_user_info'
,
result
);
//
console.log('phone: ', phone);
wx
.
$storage
.
set
(
'wx_user_info'
,
{...
userInfo
,
phone
}
);
// }
this
.
triggerEvent
(
"authorized"
,
{
phone
,
isShare
:
false
,
//
isShare: false,
});
// this.
//隐藏更多按钮,显示视频列表
this
.
setData
({
getMoreBtn
:
true
,
isShare
:
false
,
outshowVideo
:
true
})
this
.
getMoreFn
()
})
.
catch
(({
errMsg
})
=>
{
...
...
@@ -228,6 +254,8 @@ Component({
actNum
,
activeNavIdx
,
apiData
,
outshowVideo
:
true
// origin:'home' //跟首页类似情况
// isShare: true
});
},
...
...
pages/tab/index/components/product/product.wxml
View file @
40f3d0b
<!-- pages/tab/discovery/components/product/product.wxml -->
<view class="prod-wrap">
<text class="big-title">特色产品</text>
<scroll-view class="nav-wrap" scroll-x="{{true}}" wx:if="{{!isShare}}">
<scroll-view class="nav-wrap" scroll-x="{{true}}" wx:if="{{!isShare
&& origin =='home'
}}">
<block wx:for="{{navList}}" wx:key="index">
<text class='nav {{activeNavIdx==index ? "active-nav": ""}}' bindtap="changeNav" data-index="{{index}}">{{item}}</text>
</block>
...
...
@@ -17,10 +17,10 @@
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<text class="sale" decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}} <text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].changeSale || senceData[actNum]['productList'][activeNavIdx].sale}}</text>
</text>
<text class="earnings" decode="{{true}}">
{{stickyTop}}
预估收益 <text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
<text class="earnings" decode="{{true}}">预估收益 <text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text>
</view>
<view class="share-btn" wx:if="{{!isShare}}" bindtap="onShareFn">
<view class="share-btn" wx:if="{{!isShare
&& origin =='home'
}}" bindtap="onShareFn">
<image class="icon" src="{{IMGURL}}share.png" />
<text>分享</text>
</view>
...
...
@@ -46,9 +46,10 @@
scroll-y="{{true}}"
>
<block wx:for="{{tab}}" wx:key="index">
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" >
<!-- {{item}} -->
<image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png" wx:if="{{index!=5}}" />
<!-- wx:if="{{showVideo && index==5 && tab.length < 5}}" -->
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" wx:if="{{index != 5}}">
<!-- wx:if="{{index!=5}}" -->
<image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png" />
<view class="video-bg" wx:if="{{!isShare && index==5 && senceData[actNum].videoList.length}}">
<view class="video-list">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
...
...
@@ -62,8 +63,9 @@
</view>
<!-- wx:if="{{ actNum != 2 && index == 4}}" -->
<!-- wx:if="{{isShare && actNum != 2 && index == 4}}" -->
<!-- wx:if="{{ isShare && actNum != 2 && index == 4}}" -->
<button
wx:if="{{ isShare && actNum != 2 && index == 4}}"
wx:if="{{ isShare &&
!getMoreBtn &&
actNum != 2 && index == 4}}"
class="more-btn"
data-index="{{index}}"
bindgetphonenumber="getUserInfo"
...
...
@@ -72,6 +74,22 @@
点击查看更多详情
</button>
</view>
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" wx:if="{{index == 5 && outshowVideo}}">
<!-- wx:if="{{index!=5}}" -->
<image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png" />
<view class="video-bg" wx:if="{{!isShare && index==5 && senceData[actNum].videoList.length}}">
<view class="video-list">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<view class="video-item">
<video poster="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}" title="{{item.name}}" src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" />
<view class="video-text">{{item.name}}</view>
</view>
</block>
</view>
</view>
</view>
</block>
</scroll-view>
</view>
...
...
pages/tab/index/components/product/product.wxs
View file @
40f3d0b
// 1.视频默认进来是true,显示,
// 2.扫码,分享链接进来,不显示
// 3.点击更多详情,隐藏更多按钮,显示视频
// 4.视频的位置最后一个 下标5
// var showVideo = function(index){
// if(index == 5){
// a
// }
// };
// module.exports = {
// showVideo:showVideo
// }
pages/tab/index/constant/data.js
View file @
40f3d0b
...
...
@@ -14,9 +14,9 @@ var senceData = [
{
img
:
'product-img1'
,
proName
:
'数字无忧权益卡'
,
price
:
'1
5
00'
,
price
:
'100'
,
// profit: '92.4万',
profit
:
'120
万
'
,
profit
:
'120
0000
'
,
type
:
'service'
,
productType
:
'benefitCard'
,
path
:
'equity'
,
...
...
@@ -63,8 +63,8 @@ var senceData = [
{
img
:
'product-img2'
,
proName
:
'汽车太阳膜'
,
price
:
'1
5
00'
,
profit
:
'1008
万
'
,
price
:
'100'
,
profit
:
'1008
0000
'
,
type
:
'membrane'
,
productType
:
'sunMembrane'
,
path
:
'solarFilm'
,
...
...
@@ -96,8 +96,8 @@ var senceData = [
{
img
:
'product-img3'
,
proName
:
'漆面保护膜'
,
price
:
'1
20
00'
,
profit
:
'216
万
'
,
price
:
'100'
,
profit
:
'216
0000
'
,
type
:
'membrane'
,
productType
:
'protectMembrane'
,
path
:
'paintProtect'
,
...
...
@@ -110,8 +110,8 @@ var senceData = [
{
img
:
'product-img4'
,
proName
:
'改色膜'
,
price
:
'
50
00'
,
profit
:
'30
万
'
,
price
:
'
1
00'
,
profit
:
'30
0000
'
,
type
:
'membrane'
,
productType
:
'colorMembrane'
,
path
:
'changingFilm'
,
...
...
@@ -136,8 +136,8 @@ var senceData = [
{
img
:
'product-img5'
,
proName
:
'数字化美容'
,
price
:
'
3
00'
,
profit
:
'
36万
'
,
price
:
'
1
00'
,
profit
:
'
72000
'
,
type
:
'beauty'
,
productType
:
'digitBeauty'
,
path
:
'carBeauty'
,
...
...
@@ -150,8 +150,8 @@ var senceData = [
{
img
:
'product-img6'
,
proName
:
'座椅通风'
,
price
:
'1
5
00'
,
profit
:
'
1008万
'
,
price
:
'1
00
00'
,
profit
:
'
232200
'
,
type
:
'light'
,
productType
:
'chair'
,
path
:
'seatVentilate'
,
...
...
@@ -164,8 +164,8 @@ var senceData = [
{
img
:
'product-img7'
,
proName
:
'AR导航'
,
price
:
'1
68
0'
,
profit
:
'22
.68万
'
,
price
:
'1
000
0'
,
profit
:
'22
6800
'
,
type
:
'light'
,
productType
:
'ar'
,
path
:
'arNavigation'
,
...
...
@@ -178,8 +178,8 @@ var senceData = [
{
img
:
'product-img8'
,
proName
:
'氛围灯'
,
price
:
'
268
0'
,
profit
:
'36
.18万
'
,
price
:
'
1000
0'
,
profit
:
'36
1800
'
,
type
:
'light'
,
productType
:
'lamp'
,
path
:
'ambientLighting'
,
...
...
@@ -192,8 +192,8 @@ var senceData = [
{
img
:
'product-img9'
,
proName
:
'360全景导航'
,
price
:
'
288
0'
,
profit
:
'38
.88万
'
,
price
:
'
1000
0'
,
profit
:
'38
8800
'
,
type
:
'service'
,
productType
:
'navigation'
,
path
:
'navigationArround'
,
...
...
pages/tab/index/index.js
View file @
40f3d0b
...
...
@@ -48,7 +48,7 @@ Page({
},
],
apiData
:
[],
actNum
:
0
,
//car 场景选择
actNum
:
3
,
//car 场景选择
tabIndx
:
1
,
navList
:
[
"看线索"
,
"看产品"
],
typeList
:
[
"联系电话"
,
"意向客户"
,
"线索来源"
,
"重置"
],
...
...
@@ -350,7 +350,7 @@ Page({
}
console
.
log
(
profit
.
length
);
console
.
log
(
productType
,
sales
,
flow
,
profit
);
if
(
profit
.
length
>
8
)
{
if
(
profit
.
length
>
9
)
{
return
(
profit
/
10000
).
toFixed
(
0
)
+
"万"
;
}
else
{
return
profit
;
...
...
@@ -391,7 +391,7 @@ Page({
apiData
:
data
,
});
this
.
compositionData
(
senceData
,
this
.
data
.
apiData
);
this
.
getFirstSenceIndex
();
//
this.getFirstSenceIndex();
}
});
// 看线索
...
...
pages/tab/index/index.scss
View file @
40f3d0b
...
...
@@ -237,9 +237,9 @@ page {
.scene
{
margin
:
0
10px
16px
;
display
:
flex
;
//
justify-content: space-between;
justify-content
:
space-between
;
.item-wrap
{
margin-right
:
4px
;
//
margin-right: 4px;
position
:
relative
;
width
:
86px
;
height
:
90px
;
...
...
pages/tab/index/index.wxml
View file @
40f3d0b
...
...
@@ -23,7 +23,7 @@
</view>
</view>
</view>
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}" senceData="{{senceData}}" apiData="{{apiData}}" bindsharehandle="sharehandle" />
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}" senceData="{{senceData}}"
origin="home"
apiData="{{apiData}}" bindsharehandle="sharehandle" />
</view>
<!-- 看线索内容 -->
<view class="clue" wx:if="{{tabIndx == 0 }}" hover-class="none" hover-stop-propagation="false">
...
...
pages/tab/output/components/client/client.scss
View file @
40f3d0b
...
...
@@ -3,7 +3,7 @@
box-sizing
:
border-box
;
height
:
100%
;
color
:
#323436
;
padding
:
16rpx
0
60
rpx
;
padding
-top
:
16
rpx
;
background-color
:
#F2F3F7
;
}
...
...
@@ -123,4 +123,5 @@
font-size
:
24rpx
;
text-align
:
center
;
color
:
#CCCED1
;
padding-bottom
:
60rpx
;
}
\ No newline at end of file
utils/request/environment.js
View file @
40f3d0b
...
...
@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试
3生产
*/
const
index
=
2
const
index
=
1
const
secretKey
=
{
ip
:
{},
...
...
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