Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e75df6cd
authored
Mar 13, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.50.0-0311' into 'develop'
上线合并 See merge request
!366
2 parents
8b0856fb
dd982b9d
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
319 additions
and
293 deletions
mixins/reportPageTrackMixin.js
packageEquity/pages/aiCheck/defense/defense.scss
packageEquity/pages/aiCheck/start/components/RecordList/RecordList.js
packageEquity/pages/aiCheck/start/components/introduction/introduction.js
packageEquity/pages/aiCheck/start/components/introduction/introduction.wxml
packageEquity/pages/aiCheck/start/start.js
packageEquity/pages/carEquity/components/EquityList/EquityList.wxml
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.wxml
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
packageEquity/pages/carQuotation/components/SecondStepSimple/index.wxs
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/carQuotation/index/index.js
packageEquity/pages/carQuotation/index/index.wxml
packageEquity/pages/index/index.js
packageEquity/pages/receptionDetail/receptionDetail.js
pages/loading/loading.js
pages/sceneIndex/sceneIndex.js
store/index.js
tabWorkOrder/pages/residentManage/components/accountAllocation/index.js
tabWorkOrder/pages/residentManage/components/timePicker/index.wxml
utils/track.js
mixins/reportPageTrackMixin.js
View file @
e75df6c
...
...
@@ -13,6 +13,7 @@ module.exports = Behavior({
})
},
onPageShow
()
{
// debugger
if
(
this
.
data
.
track_page_view_flag
)
return
if
(
!
this
.
data
.
track_batchId
)
this
.
setData
({
track_batchId
:
wx
.
$track
.
setRandomId
(
'batch'
)
...
...
@@ -24,7 +25,7 @@ module.exports = Behavior({
this
.
setBrowseTrackData
()
},
onPageHide
()
{
wx
.
$track
.
setTrackData
(
2
,
this
.
data
.
track_event_code
,
this
.
track_businessParam
,
this
.
data
.
track_batchId
)
wx
.
$track
.
setTrackData
(
2
,
this
.
data
.
track_event_code
,
this
.
track_businessParam
,
this
.
data
.
track_batchId
,
this
.
data
.
scene
)
if
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
this
.
setData
({
track_timerFlag
:
false
,
...
...
@@ -32,7 +33,6 @@ module.exports = Behavior({
track_page_view_flag
:
false
})
this
.
timer
=
null
},
setBrowseTrackData
()
{
try
{
...
...
@@ -40,9 +40,9 @@ module.exports = Behavior({
else
this
.
timer
=
setTimeout
(()
=>
{
this
.
setBrowseTrackData
()
},
10
e3
)
wx
.
$track
.
setTrackData
(
2
,
this
.
data
.
track_event_code
,
this
.
track_businessParam
,
this
.
data
.
track_batchId
)
wx
.
$track
.
setTrackData
(
2
,
this
.
data
.
track_event_code
,
this
.
track_businessParam
,
this
.
data
.
track_batchId
,
this
.
data
.
scene
)
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
,
'error'
)
}
},
}
...
...
packageEquity/pages/aiCheck/defense/defense.scss
deleted
100644 → 0
View file @
8b0856f
/* packageEquity/pages/aiCheck/defense/defense.wxss */
\ No newline at end of file
packageEquity/pages/aiCheck/start/components/RecordList/RecordList.js
View file @
e75df6c
// packageEquity/pages/aiCheck/start/components/RecordList.js
import
aiApi
from
'../../../../../aiApi'
Component
({
/**
* 组件的属性列表
*/
...
...
@@ -21,11 +20,11 @@ Component({
attached
()
{
console
.
log
(
1111
)
this
.
setData
({
pageNum
:
1
},
()
=>
{
pageNum
:
1
},
()
=>
{
this
.
getSparringPage
()
})
},
},
...
...
@@ -60,22 +59,22 @@ Component({
this
.
getSparringPage
()
},
getSparringPage
()
{
const
{
pageNum
}
=
this
.
data
const
{
uuid
:
staffUuid
}
=
wx
.
$util
.
getUserInfo
();
aiApi
.
getSparringPage
({
pageNum
,
pageSize
:
10
,
staffUuid
}).
then
(
res
=>
{
const
{
pageNum
}
=
this
.
data
const
{
uuid
:
staffUuid
}
=
wx
.
$util
.
getUserInfo
();
aiApi
.
getSparringPage
({
pageNum
,
pageSize
:
10
,
staffUuid
}).
then
(
res
=>
{
const
data
=
res
.
data
data
.
list
.
forEach
(
i
=>
{
data
.
list
.
forEach
(
i
=>
{
i
.
createdDate
=
new
Date
(
i
.
createdDate
).
format
(
'yyyy-MM-dd hh:mm'
);
try
{
if
(
i
.
sparringDuration
)
i
.
sparringDuration
=
this
.
formatTime
(
i
.
sparringDuration
)
if
(
i
.
sparringDuration
)
i
.
sparringDuration
=
this
.
formatTime
(
i
.
sparringDuration
)
}
catch
(
error
)
{
console
.
log
(
error
)
}
})
const
list
=
pageNum
==
1
?
data
.
list
:
[...
this
.
data
.
recordList
,
...
data
.
list
]
this
.
setData
({
recordList
:
list
,
total
:
data
.
total
,
triggered
:
false
})
this
.
setData
({
recordList
:
list
,
total
:
data
.
total
,
triggered
:
false
})
})
},
onBottomRefresh
()
{
...
...
@@ -83,12 +82,12 @@ Component({
total
,
pageNum
}
=
this
.
data
this
.
setData
({
pageNum
:
++
pageNum
})
this
.
setData
({
pageNum
:
++
pageNum
})
if
(
this
.
data
.
recordList
.
length
==
total
)
return
this
.
getSparringPage
()
},
toReport
(
e
)
{
const
{
id
,
role
}
=
e
.
currentTarget
.
dataset
const
{
id
,
role
}
=
e
.
currentTarget
.
dataset
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/result/result?id=
${
id
}
&roleType=
${
role
}
`
})
...
...
packageEquity/pages/aiCheck/start/components/introduction/introduction.js
View file @
e75df6c
...
...
@@ -10,9 +10,9 @@ import aiApi from "../../../../../aiApi"
import
util
from
"../../../../../../utils/util"
Component
({
lifetimes
:
{
attached
:
function
()
{
attached
:
function
()
{
let
userInfo
=
util
.
getStorageSync
(
'dj_boutique_user_info'
)
let
username
=
userInfo
.
name
.
length
<
5
?
userInfo
.
name
:
userInfo
.
name
.
slice
(
0
,
4
)
+
'...'
let
username
=
userInfo
.
name
.
length
<
5
?
userInfo
.
name
:
userInfo
.
name
.
slice
(
0
,
4
)
+
'...'
this
.
setData
({
username
})
...
...
@@ -37,7 +37,8 @@ Component({
type
:
1
,
imgName
:
'product-1'
,
isAvailable
:
true
,
bg
:
'bg1'
bg
:
'bg1'
,
eventCode
:
'storeExtended_warranty'
},
{
id
:
2
,
...
...
@@ -46,7 +47,8 @@ Component({
type
:
2
,
imgName
:
'product-2'
,
isAvailable
:
true
,
bg
:
'bg2'
bg
:
'bg2'
,
eventCode
:
'extended_warranty'
},
{
id
:
3
,
...
...
@@ -55,7 +57,8 @@ Component({
type
:
2
,
imgName
:
'product-3'
,
isAvailable
:
true
,
bg
:
'bg2'
bg
:
'bg2'
,
eventCode
:
'peace_pack'
},
{
id
:
4
,
...
...
@@ -64,7 +67,8 @@ Component({
type
:
1
,
imgName
:
'product-4'
,
isAvailable
:
false
,
bg
:
'bg3'
bg
:
'bg3'
,
eventCode
:
'benefit_upgrades'
},
{
id
:
5
,
...
...
@@ -73,7 +77,9 @@ Component({
type
:
1
,
imgName
:
'product-5'
,
isAvailable
:
false
,
bg
:
'bg3'
bg
:
'bg3'
,
eventCode
:
'modification_upgrades'
}
],
popVisible
:
false
,
...
...
@@ -87,11 +93,14 @@ Component({
confirm
()
{
this
.
setData
({
popVisible
:
false
})
})
},
toExperience
:
wx
.
$util
.
throttle
(
function
(
e
)
{
toExperience
:
wx
.
$util
.
throttle
(
function
(
e
)
{
console
.
log
(
11
,
e
)
const
{
id
,
available
,
type
}
=
e
.
currentTarget
.
dataset
const
{
id
,
available
,
type
,
eventcode
}
=
e
.
currentTarget
.
dataset
wx
.
$track
.
setTrackData
(
0
,
eventcode
,
{
id
},
''
,
0
)
if
(
type
==
1
)
{
if
(
available
)
{
// 调用接口
...
...
@@ -111,7 +120,7 @@ Component({
url
:
`/packageEquity/pages/aiCheck/defense/defense?id=
${
id
}
`
})
}
},
1000
),
},
1000
),
setSparringVerify
(
id
)
{
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/scene/scene?id=
${
id
}
`
...
...
packageEquity/pages/aiCheck/start/components/introduction/introduction.wxml
View file @
e75df6c
<!--packageEquity/pages/aiCheck/start/components/introduction.wxml-->
<!-- 介绍 -->
<view class="introduction-section">
<view class="profile-container">
<!-- <gl-image webp class="avatar" src="/aiCheck/user-avatar.png"></gl-image> -->
<gl-image webp class="index-people" src="/aiCheck/index-people.webp"></gl-image>
<view class="title-text">
Hi~ {{username}}
</view>
<view class="title-text-2">
欢迎来到AI趣练
</view>
<view class="description-text">
基于AI模拟对练,助你成为营销大师
</view>
<!-- 介绍 -->
<view class="introduction-section">
<view class="profile-container">
<!-- <gl-image webp class="avatar" src="/aiCheck/user-avatar.png"></gl-image> -->
<gl-image webp class="index-people" src="/aiCheck/index-people.webp"></gl-image>
<view class="title-text">
Hi~ {{username}}
</view>
<view class="title-text-2">
欢迎来到AI趣练
</view>
<view class="description-text">
基于AI模拟对练,助你成为营销大师
</view>
</view>
<!-- 介绍列表 -->
<view class="introduction-list">
<block wx:for="{{productList}}" wx:key="imgName">
<view class="list-item" bindtap="toExperience" data-type="{{item.type}}" data-id="{{item.id}}" data-available="{{item.isAvailabl
e}}">
<view class="item-left">
<view class="product-name {{item.isAvailable ? '':'gray'}}">{{item.name}}</view>
<view class="product-description">{{item.description}}</view>
</view>
<gl-image webp class="product-icon" src="/aiCheck/home/{{item.imgName}}.webp"></gl-image>
<gl-image webp class="bg-image" src="/aiCheck/home/{{item.bg}}.webp"></gl-image>
<view class="product-type">{{item.type == 1 ? '话术' : '攻防'}}</view>
</view>
</block>
<block wx:for="{{productList}}" wx:key="imgName">
<view class="list-item" bindtap="toExperience" data-type="{{item.type}}" data-id="{{item.id}}" data-available="{{item.isAvailable}}" data-eventCode="{{item.eventCod
e}}">
<view class="item-left">
<view class="product-name {{item.isAvailable ? '':'gray'}}">{{item.name}}</view>
<view class="product-description">{{item.description}}</view>
</view>
<gl-image webp class="product-icon" src="/aiCheck/home/{{item.imgName}}.webp"></gl-image>
<gl-image webp class="bg-image" src="/aiCheck/home/{{item.bg}}.webp"></gl-image>
<view class="product-type">{{item.type == 1 ? '话术' : '攻防'}}</view>
</view>
</block>
</view>
</view>
<tipsPop isVisible="{{popVisible}}" bindconfirm="confirm"></tipsPop>
\ No newline at end of file
packageEquity/pages/aiCheck/start/start.js
View file @
e75df6c
/*
* @Description:
* @Description:
* @Author: huyue
* @Date: 2024-05-06 09:46:38
* @LastEditors: huyue
* @LastEditTime: 2024-05-16 15:21:54
*/
// packageEquity/pages/aiCheck/start/start.js
import
reportPageTrackMixin
from
'~/mixins/reportPageTrackMixin'
Page
({
behaviors
:
[
reportPageTrackMixin
],
/**
* 页面的初始数据
*/
data
:
{
tab
:
[{
title
:
'首页'
,
icon
:
'/aiCheck/icon-home.png'
,
icon_check
:
'/aiCheck/icon-home-b.png'
,
type
:
1
,
},{
title
:
'练习记录'
,
icon
:
'/aiCheck/icon-record.png'
,
icon_check
:
'/aiCheck/icon-record-b.png'
,
type
:
2
,
}],
tab
:
[
{
title
:
'首页'
,
icon
:
'/aiCheck/icon-home.png'
,
icon_check
:
'/aiCheck/icon-home-b.png'
,
type
:
1
},
{
title
:
'练习记录'
,
icon
:
'/aiCheck/icon-record.png'
,
icon_check
:
'/aiCheck/icon-record-b.png'
,
type
:
2
}
],
tabIndex
:
1
,
navBarHeight
:
0
,
footerHeight
:
0
footerHeight
:
0
,
track_event_code
:
'aiCheck_detail'
,
//埋点动作类型
scene
:
0
},
// 头部返回上一级
back
()
{
wx
.
$router
.
back
()
},
selectTab
(
e
)
{
const
{
type
}
=
e
.
currentTarget
.
dataset
;
const
{
type
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
tabIndex
:
type
})
wx
.
$track
.
setTrackData
(
0
,
type
==
1
?
'aiCheck_indexTab'
:
'aiCheck_indexPractise'
,
{
tabIndex
:
type
},
''
,
0
)
},
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
this
.
setData
({
navBarHeight
})
wx
.
createSelectorQuery
().
select
(
'#footer'
).
boundingClientRect
(
rect
=>
{
this
.
setData
({
footerHeight
:
rect
.
height
})
}).
exec
()
wx
.
createSelectorQuery
()
.
select
(
'#footer'
)
.
boundingClientRect
(
rect
=>
{
this
.
setData
({
footerHeight
:
rect
.
height
})
})
.
exec
()
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
// wx.getRecorderManager().start({
// duration: 600000,
// numberOfChannels: 1,
// sampleRate: 16000,
// format: "mp3",
// frameSize: 4
// })
// setTimeout(()=>{
// wx.getRecorderManager().stop();
// wx.getRecorderManager().onStop((res) => {
// console.log(res)
// if (res.tempFilePath) {
// console.log(res.tempFilePath)
// const innerAudioContext = wx.createInnerAudioContext()
// innerAudioContext.src = res.tempFilePath
// innerAudioContext.play() // 播放
// }
// })
// },10000)
},
onLoad
(
options
)
{
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{
},
onReady
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
this
.
onPageShow
()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
onHide
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
this
.
onHide
()
this
.
onPageHide
()
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
()
{
},
onPullDownRefresh
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
},
onReachBottom
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
onShareAppMessage
()
{
}
})
packageEquity/pages/carEquity/components/EquityList/EquityList.wxml
View file @
e75df6c
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- <view class="headerBar">
<view class="totalCount">
<view class="item">
<image src="/packageEquity/images/order-dbd.png" class="total-icon" />
<view>待补单</view>
<view class="num">{{statisticsObj.ladingOder || 0}}</view>
</view>
<view class="item">
<image src="/packageEquity/images/order-fail.png" class="total-icon" />
<view>失败提单</view>
<view class="num">{{statisticsObj.failed || 0}}</view>
</view>
<view class="item">
<image src="/packageEquity/images/order-success.png" class="total-icon" />
<view>成功提单</view>
<view class="num">{{statisticsObj.success || 0}}</view>
</view>
</view>
</view> -->
<!-- style="margin-top:{{navBarHeight}}px" -->
<!-- 权益提单列表 -->
<view class="main">
<view class="to-box">
<view class="search-box">
...
...
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.wxml
View file @
e75df6c
...
...
@@ -15,7 +15,7 @@
<view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.goods}}">
<view class="name text-hide ">
<view class="text-hide">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName +
i.goods.specificationData ) || filter.replaceItemText(i.goods.goodsInfo.goodsNamei.goods.specificationData
)}}</view>
<view class="text-hide">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName +
(i.goods.specificationData? '/'+i.goods.specificationData:'')) || filter.replaceItemText(i.goods.goodsInfo.goodsName + (i.goods.specificationData? ('/'+i.goods.specificationData):'')
)}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
...
...
@@ -37,12 +37,11 @@
<view class="goodsChild">
<view class="goodsItem" wx:for="{{i.packageGoods.goodsList}}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="goodsListName">{{filter.replaceItemText(child.goodsAlias) ||filter.replaceItemText(child.upgradeGoodsName +
child.specificationData) || filter.replaceItemText(child.goodsInfo.goodsName+ child.specificationData
)}}</view>
<view class="goodsListName">{{filter.replaceItemText(child.goodsAlias) ||filter.replaceItemText(child.upgradeGoodsName +
( child.specificationData ? ('/'+child.specificationData): '') ) || filter.replaceItemText(child.goodsInfo.goodsName+( child.specificationData? ('/'+child.specificationData): '')
)}}</view>
<view class="goodsListPrice">¥{{child.sellPrice}}</view>
</view>
</view>
</view>
</block>
</view>
<view class="icon" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
View file @
e75df6c
...
...
@@ -23,7 +23,8 @@
<image src="./images/del.png" />
</view>
<view class="name text-hide">
{{item.goods.goodsAlias || item.goods.goodsNameAlias || filter.replaceItemText(item.goods.upgradeGoodsName + item.goods.specificationData) || filter.replaceItemText(item.goods.goodsName+ item.goods.specificationData)}}
<!-- -->
{{item.goods.goodsAlias || item.goods.goodsNameAlias|| filter.replaceItemText(item.goods.upgradeGoodsName ,( item.goods.specificationData? '/'+item.goods.specificationData:'')) || filter.replaceItemText(item.goods.goodsName, (item.goods.specificationData? '/'+item.goods.specificationData:''))}}
<!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
</view>
<view class="price-box">
...
...
@@ -46,7 +47,7 @@
</view>
<view class="packageBox">
<view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="name text-hide">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName
+ item.specificationData) ||filter.replaceItemText(child.goodsName+ item.specificationData
) }}</view>
<view class="name text-hide">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName
, (item.specificationData? '/'+child.specificationData: '') ) ||filter.replaceItemText(child.goodsName ,( item.specificationData? '/'+child.specificationData: '')
) }}</view>
<view class="price-box">
<text>¥</text>
<view class="price">
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/index.wxs
View file @
e75df6c
var replaceItemText = function (item) {
var replaceItemText = function (
name,
item) {
var reg = getRegExp(';~;', 'g')
return item ? item.replace(reg, ' ') : ''
console.log(item);
if (item) {
item = item.replace(reg, ' ')
}
return name ? name + item : ''
}
/*
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
e75df6c
...
...
@@ -848,7 +848,8 @@ Page({
goodsNameAlias
:
item
.
upgradeGoodsAlias
,
appreciation
:
item
?.
appreciation
,
goodsName
:
item
?.
upgradeGoodsName
,
specificationData
:
item
.
specificationData
?
item
.
specificationData
.
replace
(
/;~;/g
,
'/'
)
:
''
,
specificationNameSequence
:
item
.
specificationTypeSequence
&&
item
.
specificationNameSequence
?
item
.
specificationNameSequence
.
replace
(
/;~;/g
,
'/'
)
:
''
,
specificationData
:
item
.
specificationTypeSequence
&&
item
.
specificationData
?
item
.
specificationData
.
replace
(
/;~;/g
,
'/'
)
:
''
,
quotationGoodsServiceItemsRelationDTOList
:
item
?.
upgradeGoodsServiceItemsList
,
titlePictureUrl
:
item
.
goodsInfo
?.
thumbUrl
,
...
...
@@ -856,6 +857,11 @@ Page({
}
if
(
ele
.
packageGoods
)
{
let
item
=
ele
.
packageGoods
;
ele
.
packageGoods
.
goodsList
=
item
.
goodsList
.
map
(
item
=>
{
item
.
specificationNameSequence
=
item
.
specificationTypeSequence
&&
item
.
specificationNameSequence
?
item
.
specificationNameSequence
.
replace
(
/;~;/g
,
'/'
)
:
''
,
item
.
specificationData
=
item
.
specificationTypeSequence
&&
item
.
specificationData
?
item
.
specificationData
.
replace
(
/;~;/g
,
'/'
)
:
''
return
item
;
})
ele
.
packageGoods
.
sellPrice
=
item
.
goodsList
.
reduce
((
pre
,
item
)
=>
{
// pre = pre + item.sellPrice
pre
=
NP
.
plus
(
pre
,
item
.
sellPrice
);
...
...
@@ -945,7 +951,7 @@ Page({
init
()
{
},
onRoute
(
options
)
{
// console.log(options, "options");
// options.id =
258
// options.id =
9047
let
{
firstEnter
}
=
this
.
data
// 判断是编辑还是新增
let
{
...
...
packageEquity/pages/carQuotation/index/index.js
View file @
e75df6c
...
...
@@ -477,7 +477,7 @@ Component({
// 校验是否填写昨日日报
let
staffCheck
=
await
checkDailyReport
(
true
);
if
(
staffCheck
)
return
false
;
return
this
.
setData
({
showZyPayPopup
:
true
,
showZyTarget
:
target
})
return
this
.
setData
({
showZyPayPopup
:
true
,
showZyTarget
:
target
})
}
// wx.$router.go('createOrderCarQuotation', {
// id: target.id
...
...
@@ -591,7 +591,7 @@ Component({
if
(
code
==
0
)
{
let
orderInfo
=
this
.
getInsurance
(
data
)
// 更新客户信息
updateCustomerInfo
({
...
orderInfo
,
zyPayUrl
:
e
.
detail
?.
zyPayUrl
?.
join
(
','
)
}).
then
(
result
=>
{
updateCustomerInfo
({
...
orderInfo
,
zyPayUrl
:
e
.
detail
?.
zyPayUrl
?.
join
(
','
)
}).
then
(
result
=>
{
this
.
setData
({
showZyPayPopup
:
false
},
()
=>
{
...
...
@@ -925,7 +925,7 @@ Component({
selectType
:
type
,
});
},
// 确定是否要显示
// 确定是否要显示
showErrorType
(
item
)
{
wx
.
$modal
(
this
,
...
...
@@ -948,7 +948,7 @@ Component({
);
}
else
{
// 无需补录
errorOrderById
({
oldQuotationId
:
item
.
id
,
needCreateNewOrder
:
false
}).
then
(
res
=>
{
errorOrderById
({
oldQuotationId
:
item
.
id
,
needCreateNewOrder
:
false
}).
then
(
res
=>
{
let
{
code
,
message
}
=
res
if
(
code
==
0
)
{
this
.
search
()
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
e75df6c
<!-- packageEquity/pages/carQuotation/index/index.wxml -->
<!-- <view class="headerBar">
<view class="totalCount">
<view class="left box">
<view class="label">今日营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.todayTurnover || 0}}</view>
<view class="decimal">.{{statisticsObj.todayTurDecimal}}</view>
</view>
<view class="count num">
今日成交量
<view class="countNum">{{statisticsObj.todayOrderNumber || 0}}</view>
</view>
</view>
<view class="line" />
<view class="right left box">
<view class="label">本月营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.monthTurnover || 0}}</view>
</view>
<view class="count num">
本月成交量
<view class="countNum">{{statisticsObj.monthOrderNumber || 0}}</view>
</view>
</view>
<view class="line" />
<view class="right box">
<view class="label">累计营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.totalTurnover || 0}}</view>
</view>
<view class="count num">
累计成交量
<view class="countNum">{{statisticsObj.totalOrderNumber || 0}}</view>
</view>
</view>
</view>
</view> -->
<!-- style="margin-top:{{navBarHeight}}px" -->
<!-- 数字报价列表 -->
<view class="main">
<view class="to-box">
<view class="search-box">
...
...
packageEquity/pages/index/index.js
View file @
e75df6c
...
...
@@ -389,7 +389,7 @@ Component({
if
(
menuList
.
some
((
item
)
=>
item
.
menuText
==
"战败下单"
&&
mode
==
0
))
{
menuList
=
menuList
.
filter
((
item
)
=>
item
.
menuText
!=
"战败下单"
);
}
console
.
log
(
'menuList'
,
mode
,
menuList
,);
//
console.log('menuList', mode, menuList,);
// 将menuList排序
menuList
.
sort
((
a
,
b
)
=>
a
.
sortVal
-
b
.
sortVal
)
this
.
setData
({
...
...
@@ -435,7 +435,7 @@ Component({
wx
.
$router
.
go
(
'receptionDetail'
,
item
)
wx
.
$track
.
setTrackData
(
0
,
'reception_detail'
,
{
batchId
:
item
.
batchId
})
}
,
''
,
0
)
},
onLoad
()
{
this
.
onPageShow
()
...
...
@@ -1061,6 +1061,9 @@ Component({
let
staffCheck
=
await
checkDailyReport
(
true
);
if
(
staffCheck
)
return
false
;
}
if
(
item
.
path
==
'packageEquity.start'
){
wx
.
$track
.
setTrackData
(
0
,
'aiCheck_page'
,
{
},
''
,
0
)
}
return
wx
.
$router
.
go
(
item
.
path
,
{
scene
:
0
,
params
:
item
.
params
||
{},
...
...
packageEquity/pages/receptionDetail/receptionDetail.js
View file @
e75df6c
...
...
@@ -21,7 +21,7 @@ Page({
isOperate
:
true
,
track_event_code
:
'reception_detail'
,
//埋点动作类型
},
/**
* 生命周期函数--监听页面加载
*/
...
...
@@ -157,7 +157,7 @@ Page({
this
.
track_businessParam
=
{
batchId
:
options
.
batchId
}
//埋点业务参数
this
.
setData
({
record
:
options
},
()
=>
{
...
...
@@ -174,7 +174,7 @@ Page({
0
:
'dialogue'
,
1
:
'quality_inspection'
,
2
:
'offense_and_defense'
}
[
index
])
}[
index
])
this
.
setData
({
activeIndex
:
index
})
...
...
@@ -212,7 +212,7 @@ Page({
1
:
'成交'
,
2
:
'战败'
,
3
:
'未知'
}
[
record
.
orderStatus
],
{
}[
record
.
orderStatus
],
{
endTime
,
totalDuration
,
fileUrl
,
...
...
@@ -304,6 +304,6 @@ Page({
wx
.
$track
.
setTrackData
(
0
,
code
,
{
...
params
,
batchId
:
record
.
batchId
})
}
,
''
,
0
)
}
})
\ No newline at end of file
pages/loading/loading.js
View file @
e75df6c
...
...
@@ -2,7 +2,9 @@ import constantData from '../constant/data'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const
app
=
getApp
()
import
api
from
'~/api/api'
import
reportPageTrackMixin
from
'~/mixins/reportPageTrackMixin'
Page
({
behaviors
:
[
reportPageTrackMixin
],
/**
* 页面的初始数据
*/
...
...
@@ -58,6 +60,11 @@ Page({
if
((
userInfo
?.
shopMerchantId
??
''
)
===
''
&&
!
userInfo
?.
isSuper
&&
userInfo
?.
loginRole
!=
3
)
return
wx
.
$router
.
reLaunch
(
'pages.accountItems'
)
// 未选择场景
if
((
userInfo
?.
sceneType
??
''
)
===
''
)
return
wx
.
$router
.
reLaunch
(
'pages.sceneIndex'
)
userInfo
?.
sceneType
==
0
&&
wx
.
$track
.
setTrackData
(
0
,
'user_login'
,
{
merchantId
:
userInfo
?.
shopMerchantId
,
merchantName
:
userInfo
?.
shopMerchantName
,
sceneType
:
userInfo
?.
sceneType
,
},
''
,
0
)
// 登录了更新用户权限
app
.
gobalCheckYqdSuper
(
userInfo
)
let
now
=
new
Date
()
...
...
pages/sceneIndex/sceneIndex.js
View file @
e75df6c
...
...
@@ -3,8 +3,9 @@ import constantData from "../constant/data";
import
api
from
"~/api/api"
;
import
{
getShopSceneConfig
,
getBusinessSchoolScene
}
from
"~/store/index"
;
import
{
ImgUrl
}
from
"~/config"
;
// import
{ getBusinessSchoolScene } from '~/store/index
'
// import
reportPageTrackMixin from '~/mixins/reportPageTrackMixin
'
Page
({
// behaviors: [reportPageTrackMixin],
/**
* 页面的初始数据
*/
...
...
@@ -69,9 +70,12 @@ Page({
merchantId
:
userInfo
?.
shopMerchantId
,
merchantName
:
userInfo
?.
shopMerchantName
,
});
// }
// }
console
.
log
(
' wx.$track.setTrackData'
);
wx
.
$track
.
setTrackData
(
0
,
'user_login'
,
{
merchantId
:
userInfo
?.
shopMerchantId
,
merchantName
:
userInfo
?.
shopMerchantName
,
sceneType
:
scene
,
},
''
,
0
)
this
.
setData
({
sceneList
,
});
...
...
store/index.js
View file @
e75df6c
...
...
@@ -326,11 +326,11 @@ export const get4SStoreList = (options, isSupervision, noScene) => { // isSuperv
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
// debugger
console
.
log
(
data
);
//
console.log(data);
// getCurShopList 接口数据结构不一致,要修改
let
resolveData
=
(
event
==
'getCurShopList'
?
data
?.
list
:
data
)
||
[]
if
(
isSupervision
)
resolveData
=
[
all
,
...
resolveData
]
console
.
log
(
resolveData
,
'resolveData'
);
//
console.log(resolveData, 'resolveData');
resolve
(
resolveData
)
}
else
{
wx
.
$util
.
showToast
(
message
)
...
...
tabWorkOrder/pages/residentManage/components/accountAllocation/index.js
View file @
e75df6c
...
...
@@ -285,7 +285,7 @@ Component({
item
.
staffAccountList
.
forEach
(
account
=>
{
account
.
checkList
=
[]
account
.
deletedState
=
account
.
deletedFlag
==
'N'
?
true
:
false
account
.
staffConfigList
.
forEach
(
config
=>
{
account
.
staffConfigList
?
.
forEach
(
config
=>
{
if
(
config
.
deferredOpenFlag
===
'Y'
)
{
account
.
checkList
.
push
(
config
)
}
...
...
tabWorkOrder/pages/residentManage/components/timePicker/index.wxml
View file @
e75df6c
...
...
@@ -18,7 +18,7 @@
</van-dialog>
<!-- <van-popup show="{{ timeShow }}" position="bottom" custom-style="height: 20%;" bind:close="onClose"> -->
<view class="footer" wx:if="{{timeShow}}">
<van-datetime-picker type="date" value="{{ currentDate }}" bind:confirm="bindDateChange" bind:cancel="calcelDate"
min-date="{{ start }}"
/>
<van-datetime-picker type="date" value="{{ currentDate }}" bind:confirm="bindDateChange" bind:cancel="calcelDate" />
</view>
<!-- </van-popup> -->
\ No newline at end of file
utils/track.js
View file @
e75df6c
/**
*/
import
api
from
"~/utils/request/request.js"
import
api
from
'~/utils/request/request.js'
// 实例化对象存储
import
{
Storage
}
from
"~/utils/cache/storage"
;
import
{
Storage
}
from
'~/utils/cache/storage'
const
$Storage
=
new
Storage
()
let
TRACK_TIME
=
null
const
track_interval_time
=
30
*
1
e3
,
filterFun
=
[
'data'
,
'onLoad'
,
'onShow'
,
'onReady'
,
'onHide'
,
'onUnload'
,
'onPullDownRefresh'
,
'onReachBottom'
,
'onShareAppMessage'
,
'onPageScroll'
,
'onResize'
,
'onTabItemTap'
]
filterFun
=
[
'data'
,
'onLoad'
,
'onShow'
,
'onReady'
,
'onHide'
,
'onUnload'
,
'onPullDownRefresh'
,
'onReachBottom'
,
'onShareAppMessage'
,
'onPageScroll'
,
'onResize'
,
'onTabItemTap'
]
class
TRACK
{
constructor
()
{
...
...
@@ -34,58 +45,49 @@ class TRACK {
fun
=
fun
.
filter
(
e
=>
filtered
.
includes
(
e
))
keys
.
map
(
key
=>
{
if
(
typeof
thisPage
[
key
]
===
'function'
)
{
const
FUN
=
thisPage
[
key
]
thisPage
[
key
]
=
function
(
event
)
{
if
(
event
&&
event
.
type
==
'tap'
)
{
let
{
eventCode
,
track
}
=
event
.
currentTarget
.
dataset
if
(
eventCode
)
_this
.
setTrackData
(
0
,
eventCode
,
track
)
}
return
FUN
.
apply
(
this
,
arguments
)
if
(
typeof
thisPage
[
key
]
===
'function'
)
{
const
FUN
=
thisPage
[
key
]
thisPage
[
key
]
=
function
(
event
)
{
if
(
event
&&
event
.
type
==
'tap'
)
{
let
{
eventCode
,
track
}
=
event
.
currentTarget
.
dataset
if
(
eventCode
)
_this
.
setTrackData
(
0
,
eventCode
,
track
)
}
return
FUN
.
apply
(
this
,
arguments
)
}
})
.
thisPage
.
onTabItemTap
=
function
(
options
)
{
}
}).
thisPage
.
onTabItemTap
=
function
(
options
)
{
onTabItemTap
&&
onTabItemTap
.
apply
(
this
,
arguments
)
// , _this.setTrackData({}, 1)
}
thisPage
.
onLoad
=
function
()
{
onLoad
&&
onLoad
.
apply
(
this
,
arguments
)
//
, _this.setTrackData({
//
enterTime: new Date().format('yyyy-MM-dd hh:mm:ss')
//
})
,
_this
.
setTrackData
({
enterTime
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
)
})
}
thisPage
.
onShow
=
function
()
{
onShow
&&
onShow
.
apply
(
this
,
arguments
)
//
, (_this.getPageInstance().page_show_time = Date.now())
,
(
_this
.
getPageInstance
().
page_show_time
=
Date
.
now
())
}
thisPage
.
onHide
=
function
()
{
let
{
page_show_time
}
=
_this
.
getPageInstance
()
let
{
page_show_time
}
=
_this
.
getPageInstance
()
onHide
&&
onHide
.
apply
(
this
,
arguments
)
// ,
_this.setTrackData(
//
{
//
duration: getDuration(page_show_time)
//
},
//
2
//
)
,
_this
.
setTrackData
(
{
duration
:
getDuration
(
page_show_time
)
},
2
)
}
thisPage
.
onUnload
=
function
()
{
let
{
page_show_time
}
=
_this
.
getPageInstance
()
let
{
page_show_time
}
=
_this
.
getPageInstance
()
onUnload
&&
onUnload
.
apply
(
this
,
arguments
)
// ,
_this.setTrackData(
//
{
//
duration: getDuration(page_show_time)
//
},
//
2
//
)
,
_this
.
setTrackData
(
{
duration
:
getDuration
(
page_show_time
)
},
2
)
}
const
getDuration
=
page_show_time
=>
(
Date
.
now
()
-
page_show_time
)
/
1
e3
}
...
...
@@ -95,7 +97,9 @@ class TRACK {
let
_this
=
this
Page
=
function
(
el
)
{
try
{
el
||
(
el
=
{}),
_this
.
pageLeaveProxy
(
el
),
thisPage
.
apply
(
this
,
arguments
)
el
||
(
el
=
{}),
_this
.
pageLeaveProxy
(
el
),
thisPage
.
apply
(
this
,
arguments
)
}
catch
(
el
)
{
thisPage
.
apply
(
this
,
arguments
)
}
...
...
@@ -124,17 +128,12 @@ class TRACK {
* businessParam:业务参数
* batchId 浏览批次id,当浏览-进入事件发生时,必填
*/
setTrackData
(
eventType
,
eventCode
=
''
,
businessParam
=
''
,
batchId
)
{
setTrackData
(
eventType
,
eventCode
=
''
,
businessParam
=
''
,
batchId
,
scene
)
{
// console.log(eventCode, 'eventCode');
let
recordList
=
$Storage
.
get
(
'recordList'
),
{
route
}
=
this
.
getPageInstance
(),
{
route
}
=
this
.
getPageInstance
(),
prePagePath
=
this
.
getPageInstance
(
2
),
{
accountName
,
uuid
,
userType
}
=
wx
.
$util
.
getUserInfo
(),
{
accountName
,
uuid
,
userType
}
=
wx
.
$util
.
getUserInfo
(),
item
=
{
loginAccount
:
accountName
,
uuid
,
...
...
@@ -143,7 +142,8 @@ class TRACK {
eventTime
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
eventType
,
prePagePath
:
prePagePath
?
prePagePath
.
route
:
'/'
,
pagePath
:
route
pagePath
:
route
,
scene
}
// console.log(new Date().format('yyyy-MM-dd hh:mm:ss'),'当前页:',route,'=========')
if
(
batchId
)
item
.
batchId
=
batchId
...
...
@@ -172,24 +172,34 @@ class TRACK {
sendData
()
{
let
recordList
=
$Storage
.
get
(
'recordList'
)
if
(
recordList
&&
recordList
.
length
)
api
.
post
(
'clue.api.burial.point.record.batch.insert'
,
{
recordList
},
[],
'/rop-scrm-clue/router'
,
"scrm"
,
false
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
&&
data
)
{
$Storage
.
set
(
'recordList'
,
[])
console
.
log
(
'---------------- 埋点定时推送成功 ----------------'
,
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
':'
,
recordList
)
}
else
console
.
log
(
'---------------- 埋点定时推送失败 ----------------'
,
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
':'
,
message
)
})
api
.
post
(
'clue.api.burial.point.record.batch.insert'
,
{
recordList
},
[],
'/rop-scrm-clue/router'
,
'scrm'
,
false
)
.
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
&&
data
)
{
$Storage
.
set
(
'recordList'
,
[])
console
.
log
(
'---------------- 埋点定时推送成功 ----------------'
,
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
':'
,
recordList
)
}
else
console
.
log
(
'---------------- 埋点定时推送失败 ----------------'
,
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
':'
,
message
)
})
}
/**获取页面对象实例 */
getPageInstance
=
(
size
=
1
)
=>
{
...
...
@@ -198,30 +208,23 @@ class TRACK {
}
/**获取页面标题 */
getPageTitle
()
{
let
{
route
,
navigationBarTitleText
}
=
this
.
getPageInstance
()
let
{
route
,
navigationBarTitleText
}
=
this
.
getPageInstance
()
if
(
'\u672a\u53d6\u5230'
===
route
||
!
route
)
return
''
let
title
=
''
if
(
__wxConfig
)
{
let
{
window
}
=
__wxConfig
.
page
[
`
${
route
}
.html`
]
title
=
window
.
navigationStyle
==
'custom'
?
navigationBarTitleText
:
window
.
navigationBarTitleText
let
{
window
}
=
__wxConfig
.
page
[
`
${
route
}
.html`
]
title
=
window
.
navigationStyle
==
'custom'
?
navigationBarTitleText
:
window
.
navigationBarTitleText
}
if
(
!
title
)
title
=
'生意助手员工版'
return
title
}
/**获取设备信息 */
getSystemInfo
()
{
let
{
SDKVersion
,
brand
,
model
,
system
,
version
}
=
$Storage
.
get
(
'system_info'
)
let
{
SDKVersion
,
brand
,
model
,
system
,
version
}
=
$Storage
.
get
(
'system_info'
)
return
{
SDK_version
:
SDKVersion
,
brand
,
...
...
@@ -232,9 +235,7 @@ class TRACK {
}
/**获取门店信息 */
getMerchantInfo
()
{
let
{
merchantId
}
=
$Storage
.
get
(
'merchant_info'
)
let
{
merchantId
}
=
$Storage
.
get
(
'merchant_info'
)
return
{
merchant_id
:
merchantId
}
...
...
@@ -242,7 +243,70 @@ class TRACK {
/**设置随机ID */
setRandomId
(
prefix
=
'DJ'
,
length
=
30
)
{
let
name
=
''
,
n
=
[
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'a'
,
'b'
,
'c'
,
'd'
,
'e'
,
'f'
,
'g'
,
'h'
,
'i'
,
'j'
,
'k'
,
'l'
,
'm'
,
'n'
,
'o'
,
'p'
,
'q'
,
'r'
,
's'
,
't'
,
'u'
,
'v'
,
'w'
,
'x'
,
'y'
,
'z'
,
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'J'
,
'K'
,
'L'
,
'M'
,
'N'
,
'O'
,
'P'
,
'Q'
,
'R'
,
'S'
,
'T'
,
'U'
,
'V'
,
'W'
,
'X'
,
'Y'
,
'Z'
]
n
=
[
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'a'
,
'b'
,
'c'
,
'd'
,
'e'
,
'f'
,
'g'
,
'h'
,
'i'
,
'j'
,
'k'
,
'l'
,
'm'
,
'n'
,
'o'
,
'p'
,
'q'
,
'r'
,
's'
,
't'
,
'u'
,
'v'
,
'w'
,
'x'
,
'y'
,
'z'
,
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'J'
,
'K'
,
'L'
,
'M'
,
'N'
,
'O'
,
'P'
,
'Q'
,
'R'
,
'S'
,
'T'
,
'U'
,
'V'
,
'W'
,
'X'
,
'Y'
,
'Z'
]
for
(
let
i
=
0
;
i
<
Number
(
length
);
i
++
)
{
name
+=
n
[
Math
.
round
(
Math
.
random
()
*
(
n
.
length
-
1
))]
}
...
...
@@ -250,4 +314,4 @@ class TRACK {
}
}
export
default
TRACK
\ No newline at end of file
export
default
TRACK
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