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 d21722cf
authored
Oct 24, 2022
by
wuwx
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
9c0e711a
277bbcf1
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
178 additions
and
79 deletions
components/SceneBox/SceneBox.js
components/SceneBox/SceneBox.wxml
components/Tab/Tab.wxml
packageOutput/pages/openBusiness/openBusiness.js
packageOutput/pages/openBusiness/openBusiness.scss
packageOutput/pages/openBusiness/openBusiness.wxml
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.scss
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
packageOutput/pages/summary/components/outputTransform/outputTransform.js
packageOutput/pages/summary/components/outputTransform/outputTransform.scss
packageOutput/pages/summary/components/outputTransform/outputTransform.wxml
packageOutput/pages/summary/summary.js
packageOutput/pages/summary/summary.scss
packageOutput/pages/summary/summary.wxml
pages/apply/apply.js
pages/apply/apply.wxml
pages/checkProduct/checkProduct.js
pages/checkProduct/checkProduct.wxml
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.js
pages/tab/index/index.wxml
pages/tab/output/components/SceneBox/SceneBox.js
pages/tab/output/components/client/client.js
pages/tab/output/components/client/client.wxml
pages/tab/output/components/merchant/mrechant.js
pages/tab/output/output.js
router/router.js
utils/request/environment.js
utils/util.js
components/SceneBox/SceneBox.js
View file @
d21722c
// pages/tab/output/components/sceneBox/sceneBox.js
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
/**
* 组件的属性列表
...
...
@@ -26,7 +27,7 @@ Component({
* 组件的初始数据
*/
data
:
{
IMGURL
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
,
IMGURL
:
IMG_URL
,
custSceneList
:
[{
title
:
'新车洽谈场景'
,
subTitle
:
'1.0新车权益销售'
...
...
components/SceneBox/SceneBox.wxml
View file @
d21722c
<!--pages/tab/output/components/sceneBox/sceneBox.wxml-->
<view class="flex scene">
<view class="scene-item {{
formData['scene' + (index + 1)]
? '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>
<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}}" />
...
...
components/Tab/Tab.wxml
View file @
d21722c
<wxs src="./Tab.wxs" module="filterUtils" />
<block wx:if="{{openScroll}}">
<scroll-view
class="tab-box {{align}} {{outClassName}}"
scroll-x
enable-flex
scroll-with-animation
scroll-into-view="{{to}}"
enhanced="{{true}}"
show-scrollbar="{{false}}"
>
class="tab-box {{align}} {{outClassName}}"
scroll-x
enable-flex
scroll-with-animation
scroll-into-view="{{to}}"
enhanced="{{true}}"
show-scrollbar="{{false}}">
<block wx:for="{{tab}}" wx:key="index">
<view
class="tab {{index==count?'active':''}}"
...
...
packageOutput/pages/openBusiness/openBusiness.js
View file @
d21722c
// packageOutput/pages/openBusiness/openBusiness.js
import
outputApi
from
'~/api/outputApi/index'
import
{
IMG_URL
}
from
'~/utils/constantData'
Page
({
/**
* 页面的初始数据
*/
data
:
{
IMGURL
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
,
IMGURL
:
IMG_URL
,
merchantInfo
:
{},
sceneCodeList
:
[],
// 场景业务
...
...
packageOutput/pages/openBusiness/openBusiness.scss
View file @
d21722c
...
...
@@ -90,16 +90,23 @@ page {
}
}
.btn
-blue
{
.btn
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
background
:
#3666FE
;
font-size
:
34rpx
;
color
:
#FFFFFF
;
text-align
:
center
;
}
.btn-blue
{
background
:
#3666FE
;
}
.btn-disabled
{
background
:
#CCCED1
;
}
}
\ No newline at end of file
packageOutput/pages/openBusiness/openBusiness.wxml
View file @
d21722c
<!--packageOutput/pages/openBusiness/openBusiness.wxml-->
<view class="openBusiness">
<image class="bg-img" src="{{IMGURL}}output/
bg-open-business
.png?v={{img_version}}"/>
<image class="bg-img" src="{{IMGURL}}output/
open0{{sceneActive}}
.png?v={{img_version}}"/>
<view class="layout">
<view class="form m-b-32">
<text class="label">开通门店:</text>
...
...
@@ -20,5 +20,6 @@
</view>
</view>
</view>
<view class="btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:if="{{sceneActive != 1}}" class="isFullSucreen btn btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:else class="btn btn-disabled">申请开通</view>
</view>
\ No newline at end of file
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
View file @
d21722c
// packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
import
wxqrcode
from
'~/utils/lib/wxqrcode'
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
/**
* 组件的属性列表
...
...
@@ -15,6 +16,7 @@ Component({
* 组件的初始数据
*/
data
:
{
IMGURL
:
IMG_URL
,
orderFormList
:
[{
label
:
'总场次'
,
name
:
'totalNum'
...
...
@@ -45,7 +47,7 @@ Component({
tableHeadList
:
[{
label
:
''
,
width
:
''
,
width
:
'2
4
rpx'
width
:
'2
8
rpx'
},
{
label
:
'业务员'
,
name
:
'shareName'
,
...
...
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.scss
View file @
d21722c
...
...
@@ -117,6 +117,7 @@
.rank-table
{
color
:
#5A6066
;
font-size
:
20rpx
;
padding-left
:
20rpx
;
.tr
{
display
:
flex
;
...
...
@@ -127,6 +128,12 @@
.th
,
.td
{
width
:
calc
((
100%
-
116rpx
)
/
4
);
.icon-rank
{
width
:
24rpx
;
height
:
24rpx
;
vertical-align
:
middle
;
padding-right
:
4rpx
;
}
}
}
...
...
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
View file @
d21722c
...
...
@@ -38,6 +38,9 @@
<block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="tr">
<view class="td" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<view wx:if="{{j == 0}}">
<image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}"></image>
</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}}
</view>
...
...
packageOutput/pages/summary/components/outputTransform/outputTransform.js
View file @
d21722c
// packageOutput/pages/summary/components/outputTransform/outputTransform.js
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
/**
* 组件的属性列表
...
...
@@ -14,6 +15,7 @@ Component({
* 组件的初始数据
*/
data
:
{
IMGURL
:
IMG_URL
,
formDataList
:
[{
label
:
'到店贴膜量'
,
name
:
'toShopCount'
...
...
@@ -31,7 +33,7 @@ Component({
name
:
'calCustomerUnitPrice'
,
prefix
:
'¥'
},
{
label
:
'引流体验
量
'
,
label
:
'引流体验
率
'
,
name
:
'calExperience'
,
suffix
:
'%'
},
{
...
...
packageOutput/pages/summary/components/outputTransform/outputTransform.scss
View file @
d21722c
...
...
@@ -18,4 +18,18 @@
margin-top
:
8rpx
;
}
}
}
.link
{
display
:
inline-block
;
height
:
36rpx
;
font-size
:
24rpx
;
color
:
#5C7097
;
margin
:
180rpx
0
0
28rpx
;
.icon-link
{
width
:
20rpx
;
height
:
20rpx
;
margin
:
-6rpx
8rpx
0
0
;
vertical-align
:
middle
;
}
}
\ No newline at end of file
packageOutput/pages/summary/components/outputTransform/outputTransform.wxml
View file @
d21722c
...
...
@@ -9,5 +9,6 @@
<view class="label">{{item.label}}</view>
</view>
</view>
<navigator target="miniProgram" open-type="navigate" app-id="wx570d9331f9ace0bd" version="release">查看订单详情
</navigator>
\ No newline at end of file
<navigator class="link" target="miniProgram" open-type="navigate" app-id="wx570d9331f9ace0bd" version="release">
<image class="icon-link" src="{{IMGURL}}output/icon-link.png?v={{img_version}}"></image>
查看订单详情</navigator>
\ No newline at end of file
packageOutput/pages/summary/summary.js
View file @
d21722c
// packageOutput/pages/summary/summary.js
import
outputApi
from
'~/api/outputApi/index'
import
{
IMG_URL
}
from
'~/utils/constantData'
Page
({
/**
* 页面的初始数据
*/
data
:
{
IMGURL
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
,
IMGURL
:
IMG_URL
,
sceneCodeList
:
[
'SC001'
,
'SC002'
,
'SC003'
,
'SC004'
],
merchantInfo
:
{},
sceneObj
:
{
...
...
@@ -117,7 +118,7 @@ Page({
}
outputApi
.
getSceneProStatus
(
params
).
then
(
res
=>
{
var
proList
=
res
.
find
(
item
=>
item
.
sceneCode
==
sceneCode
)
// 删---
-
// 删---
// proList.productList[1].productStatus = 2
this
.
setData
({
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
proList
.
productList
...
...
@@ -230,6 +231,11 @@ Page({
console
.
log
(
curItem
)
curItem
.
totalNum
=
curItem
.
activityList
.
length
curItem
.
activityList
.
forEach
(
k
=>
{
// 删---
// var list = k.staffList
// for (var i = 0; i < 10; i++) {
// k.staffList = k.staffList.concat(list)
// }
// 时间
k
.
time
=
k
.
startTime
.
slice
(
5
).
replace
(
/-/g
,
'/'
)
+
'~'
+
k
.
endTime
.
slice
(
5
).
replace
(
/-/g
,
'/'
)
// 0-未开始;1-活动中;2-已结束
...
...
@@ -281,7 +287,7 @@ Page({
*/
onLoad
(
options
)
{
// 删---
-
// 删---
// this.setData({
// merchantInfo: {
// pMerchantId: 44209845,
...
...
packageOutput/pages/summary/summary.scss
View file @
d21722c
...
...
@@ -13,6 +13,10 @@
padding
:
0
20rpx
;
}
.m-rl-20
{
margin
:
0
20rpx
;
}
.bg-white
{
background-color
:
#FFFFFF
;
}
...
...
@@ -24,7 +28,6 @@
.layout
{
color
:
#323436
;
height
:
100vh
;
// padding: 12rpx 20rpx 0;
// padding-top: 12rpx;
margin-bottom
:
90rpx
;
...
...
@@ -36,7 +39,7 @@
}
.scene-box
{
padding
:
27rpx
20rpx
24rpx
;
padding
:
27rpx
0
24rpx
;
}
.activity-box
{
...
...
@@ -110,19 +113,23 @@
}
}
.btn
-blue
{
.btn
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
.btn
{
width
:
100%
;
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
.btn-blue
{
background
:
#3666FE
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
}
.btn-disabled
{
background
:
#CCCED1
;
}
}
}
\ No newline at end of file
packageOutput/pages/summary/summary.wxml
View file @
d21722c
<!--packageOutput/pages/summary/summary.wxml-->
<view class="summary">
<view class="layout {{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? 'bg-grey' : 'bg-white'}}">
<view class="title bg-white">选产品/活动</view>
<view class="scene-box bg-white">
<scene-box formData="{{sceneObj}}" scenePriceList="{{scenePriceList}}" sceneActive="{{sceneActive}}" bindhandleSceneChange="handleSceneChange"></scene-box>
<view class="{{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? 'bg-white' : 'p-rl-20'}}">
<view class="{{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? 'm-rl-20' : ''}}">
<view class="title bg-white">选产品/活动</view>
<view class="scene-box bg-white">
<scene-box formData="{{sceneObj}}" scenePriceList="{{scenePriceList}}" sceneActive="{{sceneActive}}" bindhandleSceneChange="handleSceneChange"></scene-box>
</view>
</view>
</view>
<!-- 活动 -->
<view class="p-rl-20 bg-white">
...
...
@@ -14,7 +18,7 @@
</scroll-view>
</view>
<!-- 活动内容 -->
<view class="activity-content">
<view class="activity-content
{{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? '' : 'p-rl-20'}}
">
<view wx:if="{{activityList[activityActive].productStatus == 2 && sceneActive != 1}}">
<view class="activity-title title bg-white {{ sceneActive == 4 ? 'no-border' : ''}}">
<view>看产值</view>
...
...
@@ -32,7 +36,10 @@
</view>
</view>
</view>
<view class="isFullSucreen btn-blue">
<view wx:if="{{activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}" class="btn" bindtap="handleJump">点击开通</view>
<view class="isFullSucreen btn" wx:if="{{sceneActive != 1}}">
<view wx:if="{{ activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}" class="btn-blue" bindtap="handleJump">点击开通</view>
</view>
<view class="isFullSucreen btn" wx:else>
<view class="btn-disabled">点击开通</view>
</view>
</view>
\ No newline at end of file
pages/apply/apply.js
View file @
d21722c
...
...
@@ -66,7 +66,9 @@ Page({
if
(
result
)
{
wx
.
$api
.
showToast
(
'申请成功'
)
setTimeout
(()
=>
{
wx
.
$router
.
back
()
wx
.
$router
.
back
(
page
=>
{
page
.
getClueInit
&&
page
.
getClueInit
()
})
},
1000
)
}
})
...
...
pages/apply/apply.wxml
View file @
d21722c
...
...
@@ -4,7 +4,7 @@
</navigation-bar>
<view class="apply">
<image class="head" src="{{IMG_URL}}index/apply-title.png" style="height:{{tabBarStyle}}px;" />
<image class="introduce" src="{{IMG_URL}}index/apply-
title
.png" />
<image class="introduce" src="{{IMG_URL}}index/apply-
bg
.png" />
<view class="content" hover-class="none" hover-stop-propagation>
<view class="top">
<view class="line" hover-class="none" hover-stop-propagation="false" />
...
...
pages/checkProduct/checkProduct.js
View file @
d21722c
...
...
@@ -137,12 +137,14 @@ Page({
onRoute
(
options
)
{
console
.
log
(
"分享options: "
,
options
);
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
;
// if(!Object.keys(options).includes('actNum'))return
let
{
senceData
}
=
this
.
data
//选中场景的index,和产品的index
let
{
actNum
,
activeNavIdx
,
apiData
,
//
apiData,
outshowVideo
,
// origin //跳转来源 home
}
=
options
;
...
...
@@ -155,20 +157,20 @@ Page({
this.setData({
actNum,
activeNavIdx,
apiData,
//
apiData,
outshowVideo,
// origin
// isShare
});
let apiDataJson = JSON.stringify(apiData);
let item =
api
Data[actNum]?.productList[activeNavIdx];
this.shareQuery = `
sceneCode
=
$
{
api
Data
[
actNum
].
sceneCode
}
&
productCode
=
$
{
//
let apiDataJson = JSON.stringify(apiData);
let item =
sence
Data[actNum]?.productList[activeNavIdx];
this.shareQuery = `
sceneCode
=
$
{
sence
Data
[
actNum
].
sceneCode
}
&
productCode
=
$
{
item
?.
productCode
}
&
isShare
=
$
{
true
}
&
productDesc
=
$
{
item
?.
productName
}
&
category
=
$
{
item
?.
category
}
&
actNum
=
$
{
actNum
}
&
activeNavIdx
=
$
{
activeNavIdx
}
&
apiData
=
$
{
apiDataJson
}
`;
}
&
actNum
=
$
{
actNum
}
&
activeNavIdx
=
$
{
activeNavIdx
}
`;
this.shareTrackData = {
sceneCode:
api
Data[actNum]?.sceneCode,
sceneCode:
sence
Data[actNum]?.sceneCode,
productCode: item?.productCode,
productName: item?.productName,
category: item?.category,
...
...
@@ -198,17 +200,21 @@ Page({
// 下载海报
async download() {
let { actNum, activeNavIdx, imgHeightArr ,imgPath} = this.data;
let wx_user_info = wx.$storage.get("wx_user_info");
const { appId } = wx.getAccountInfoSync().miniProgram
// let wx_user_info = wx.$storage.get("wx_user_info");
// console.log('wx_user_info: ', wx_user_info.appId);
wx.showLoading({
title: "下载中",
});
let params = {
actNum,
activeNavIdx,
isShare: true,
};
console.log(' wx_user_info.appId', wx_user_info)
//
console.log(' wx_user_info.appId', wx_user_info)
let res = await createQrCodeApi({
appId:
wx_user_info.
appId,
appId: appId,
// appId:'wx2c28337db96364d2',
path: "pages/checkProduct/checkProduct",
scene: JSON.stringify(params),
...
...
@@ -264,6 +270,7 @@ Page({
});
}
_this.modelcloseFn();
wx.hideLoading()
},
});
},
...
...
@@ -320,7 +327,7 @@ Page({
* 生命周期函数--监听页面加载 (扫码,分享链接)
*/
async onLoad(options) {
this.getData()
await
this.getData()
console.log("分享options12255565: ", options);
// actNum,activeNavIdx isShare
if (!options || utils.isEmptyObj(options)) return;
...
...
@@ -332,12 +339,14 @@ Page({
isShare: true,
});
let ercodeParams = await this.analysisQRcode(options.scene);
options = utils.parseString(ercodeParams.scene);
options = JSON.parse(ercodeParams.scene)
}
let {senceData} = this.data
// 扫码进来
let { actNum, activeNavIdx, isShare } = options;
if (isShare == "true") {
console.log('actNum, activeNavIdx, isShare: ', actNum, activeNavIdx, isShare);
if (isShare) {
this.setData({
isShow: false,
});
...
...
@@ -354,6 +363,7 @@ Page({
outshowVideo: false, //显示视频列表
});
// 发请求
console.log()
let senceItem = senceData[actNum];
let item = senceData[actNum]?.productList[activeNavIdx];
this.shareQuery = `
sceneCode
=
$
{
senceItem
?.
sceneCode
}
&
productCode
=
$
{
...
...
@@ -383,7 +393,7 @@ Page({
}
},
// 解析二维码回调
async analysisOption() {},
//
async analysisOption() {},
// 解析扫码进来参数
async analysisQRcode(str) {
...
...
pages/checkProduct/checkProduct.wxml
View file @
d21722c
...
...
@@ -4,7 +4,7 @@
</view> -->
<product stickyTop="{{headerHeight}}" class="productCon" style="padding-top:{{headerHeight}}px" isAuthphone="{{isAuthphone}}" actNum="{{actNum}}" wrapactiveNavIdx="{{activeNavIdx}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}" bindauthorized="authorizedFn" />
<product stickyTop="{{headerHeight}}" class="productCon" style="padding-top:{{headerHeight}}px" isAuthphone="{{isAuthphone}}" actNum="{{actNum}}"
wrapactiveNavIdx="{{activeNavIdx}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}" bindauthorized="authorizedFn" />
<!-- 分享弹框 -->
<!-- <shareModel actNum="{{actNum}}" isShow="{{isShow}}" bindmodelclose="modelcloseFn" /> -->
<view class="share-wrap" wx:if="{{isShow}}">
...
...
pages/tab/index/components/product/product.js
View file @
d21722c
...
...
@@ -53,11 +53,8 @@ Component({
},
lifetimes
:
{
ready
:
function
()
{
if
(
this
.
data
.
wrapactiveNavIdx
){
this
.
setData
({
activeNavIdx
:
this
.
data
.
wrapactiveNavIdx
})
}
console
.
log
(
'this.data.wrapactiveNavIdx: '
,
this
.
data
.
wrapactiveNavIdx
);
if
(
!
this
.
data
.
outshowVideo
){
this
.
setData
({
...
...
@@ -116,6 +113,12 @@ Component({
// 每次切换场景,重新获取流程图高度
this
.
getImgHeight
();
this
.
getMoreFn
();
// this
if
(
this
.
data
.
wrapactiveNavIdx
){
this
.
setData
({
activeNavIdx
:
this
.
data
.
wrapactiveNavIdx
})
}
},
},
...
...
@@ -145,6 +148,17 @@ Component({
if
(
confirm
)
this
.
init
();
});
},
// 视频下载
downVideo
(
e
){
let
{
src
}
=
e
.
currentTarget
.
dataset
console
.
log
(
'src: '
,
src
);
wx
.
saveVideoToPhotosAlbum
({
filePath
:
src
,
success
(
res
)
{
console
.
log
(
'视频下载'
,
res
)
}
})
},
saleTextChange
(
e
)
{},
changeTab
(
e
)
{
let
idx
=
e
.
detail
;
...
...
pages/tab/index/components/product/product.scss
View file @
d21722c
...
...
@@ -331,8 +331,8 @@
}
.video-item
video
{
width
:
100%
;
height
:
5
88
rpx
;
border
:
1rpx
dashed
#AFB0B2
;
height
:
5
90
rpx
;
//
border: 1rpx dashed #AFB0B2;
}
.video-item
:nth-child
(
even
)
{
margin-left
:
22rpx
;
...
...
pages/tab/index/components/product/product.wxml
View file @
d21722c
...
...
@@ -25,6 +25,9 @@
<image class="icon" src="{{IMGURL}}share.png" />
<text>分享</text>
</view>
<!-- <view class="" bindtap="downVideo" data-src="https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/video/360_AR.mp4?v=" hover-class="none" hover-stop-propagation="false">
视频下载
</view> -->
</view>
</view>
</view>
...
...
pages/tab/index/constant/data.js
View file @
d21722c
...
...
@@ -99,12 +99,12 @@ var senceData = [
img
:
'product-img3'
,
proName
:
'漆面保护膜'
,
price
:
'100'
,
profit
:
'
216
0000'
,
profit
:
'
18
0000'
,
type
:
'membrane'
,
productType
:
'protectMembrane'
,
path
:
'paintProtect'
,
sale
:
100
,
//销量
varType
:
1
,
varType
:
0
,
flow
:
10000
,
"productCode"
:
"PC003"
,
"productName"
:
"漆面保护膜(车衣)"
,
...
...
@@ -119,7 +119,7 @@ var senceData = [
productType
:
'colorMembrane'
,
path
:
'changingFilm'
,
sale
:
100
,
//销量
varType
:
1
,
varType
:
0
,
flow
:
10000
,
"productCode"
:
"PC004"
,
"productName"
:
"改色膜"
,
...
...
pages/tab/index/index.js
View file @
d21722c
...
...
@@ -169,8 +169,8 @@ Page({
wx
.
$router
.
go
(
'packageOutput.openBusiness'
,
params
)
}
else
{
//申请门店
let
{
type
,
item
}
=
e
.
currentTarget
.
dataset
wx
.
$router
.
go
(
'apply'
,
item
.
clueId
)
//
let { type, item } = e.currentTarget.dataset
wx
.
$router
.
go
(
'apply'
,
item
?.
clueId
||
''
)
}
// wx.$router.go('apply',1235)
},
...
...
@@ -216,6 +216,7 @@ Page({
console
.
log
(
e
)
let
sales
=
e
?
+
e
.
detail
.
value
.
sales
:
this
.
data
.
formData
.
sales
let
flow
=
e
?
+
e
.
detail
.
value
.
flow
:
this
.
data
.
formData
.
flow
console
.
log
(
'flow'
,
sales
,
flow
)
const
reg
=
/^
[
1-9
]\d
*$/
console
.
log
(
reg
.
test
(
sales
),
flow
,
'---'
)
if
(
!
reg
.
test
(
sales
))
{
...
...
@@ -316,7 +317,7 @@ Page({
break
case
'protectMembrane'
:
// 漆面保护膜
profit
=
(
flow
*
0.
15
*
12
000
*
12
).
toFixed
(
0
)
profit
=
(
flow
*
0.
05
*
3
000
*
12
).
toFixed
(
0
)
break
case
'colorMembrane'
:
// 改色膜
...
...
@@ -549,6 +550,7 @@ Page({
wx
.
$api
.
setCopyData
(
phone
)
},
getClueInit
(
param
)
{
// console.log(22222)
this
.
getUnreadApi
(
param
)
this
.
getPageApi
(
param
)
},
...
...
pages/tab/index/index.wxml
View file @
d21722c
...
...
@@ -23,7 +23,7 @@
</view>
</view>
</view>
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}" senceData="{{senceData}}" origin="home"
apiData="{{apiData}}"
bindsharehandle="sharehandle" />
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}" senceData="{{senceData}}" origin="home" bindsharehandle="sharehandle" />
</view>
<!-- 看线索内容 -->
<view class="clue" wx:if="{{tabIndx == 0 }}" hover-class="none" hover-stop-propagation="false">
...
...
pages/tab/output/components/SceneBox/SceneBox.js
View file @
d21722c
// pages/tab/output/components/sceneBox/sceneBox.js
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
/**
* 组件的属性列表
...
...
@@ -26,7 +27,7 @@ Component({
* 组件的初始数据
*/
data
:
{
IMGURL
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
,
IMGURL
:
IMG_URL
,
custSceneList
:
[{
title
:
'新车洽谈场景'
,
subTitle
:
'1.0新车权益销售'
...
...
pages/tab/output/components/client/client.js
View file @
d21722c
// pages/tab/output/components/client/client.js
import
outputApi
from
'~/api/outputApi/index'
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
/**
* 组件的属性列表
...
...
@@ -16,7 +17,7 @@ Component({
* 组件的初始数据
*/
data
:
{
IMGURL
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
,
IMGURL
:
IMG_URL
,
pMerchantId
:
''
,
totalProfit
:
0
,
pageObj
:
{
...
...
@@ -76,6 +77,7 @@ Component({
item
.
sceneList
.
forEach
((
k
,
idx
)
=>
{
item
[
'scene'
+
(
idx
+
1
)]
=
item
.
sceneList
[
idx
].
flag
})
item
.
isOpenScene
=
item
.
sceneList
.
map
(
item
=>
item
.
flag
).
some
(
item
=>
item
==
true
)
})
this
.
setData
({
list
:
list
,
...
...
pages/tab/output/components/client/client.wxml
View file @
d21722c
...
...
@@ -24,7 +24,7 @@
</view>
</view>
</view>
<view wx:
else
class="flex">
<view wx:
if="{{!item.msgList.length && !item.isOpenScene}}"
class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
...
...
pages/tab/output/components/merchant/mrechant.js
View file @
d21722c
...
...
@@ -149,7 +149,7 @@ Component({
this
.
setData
({
list
:
[]
})
return
wx
.
$api
.
showT
ips
(
result
.
message
)
return
wx
.
$api
.
showT
oast
(
result
.
message
)
}
let
{
dataList
,
yqMerchantIds
}
=
data
const
list
=
yqMerchantIds
.
reduce
((
list
,
item
,
index
)
=>
{
...
...
pages/tab/output/output.js
View file @
d21722c
...
...
@@ -116,7 +116,9 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{},
onReady
()
{
// console.log(getTextWidth('随后获取dom元素的clientWidth 随后获取dom元素的clientWidth随后获取dom元素的clientWidth随后获取dom元素的clientWidth', '12px'))
},
/**
* 生命周期函数--监听页面显示
...
...
router/router.js
View file @
d21722c
...
...
@@ -16,7 +16,10 @@ class Router {
let
thisPage
=
this
.
getPageInstance
()
if
(
thisPage
)
{
thisPage
.
setData
({
IMG_URL
})
if
(
Object
.
keys
(
this
[
_query
]).
length
)
thisPage
.
options
=
this
[
_query
]
if
(
Object
.
keys
(
this
[
_query
]).
length
)
thisPage
.
options
=
{
...
thisPage
.
options
,
...
this
[
_query
]
}
this
.
setNavigationBarTitleText
(
thisPage
)
let
onRoute
=
thisPage
.
onRoute
typeof
onRoute
===
'function'
&&
onRoute
(
this
[
_query
])
...
...
utils/request/environment.js
View file @
d21722c
...
...
@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试
3生产
*/
const
index
=
2
const
index
=
1
const
secretKey
=
{
ip
:
{},
...
...
utils/util.js
View file @
d21722c
...
...
@@ -134,11 +134,13 @@ const isEmptyObj = (obj) => {
};
// 解析参数成对象 "actNum=1&activeNavIdx=0&isShare=true"
const
parseString
=
(
str
)
=>
{
// console.log('str: ', str);
if
(
!
str
)
return
;
let
obj
=
{};
let
strArr
=
str
.
split
(
"&"
);
// console.log('strArr: ', strArr);
strArr
.
forEach
((
item
)
=>
{
console
.
log
(
"item: "
,
item
);
//
console.log("item: ", item);
let
keyArr
=
item
.
split
(
"="
);
obj
[
keyArr
[
0
]]
=
keyArr
[
1
];
});
...
...
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