Commit 3cc53d20 by 张立顺

Merge branch 'SAAS+V5.6.1' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into SAAS+V5.6.1
2 parents a7e5b0b0 c56fba42
Showing 84 changed files with 3166 additions and 1361 deletions
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
indent_size = 4
tab_width = 4
[*.{json,jsonc}]
indent_style = tab
indent_size = 4
tab_width = 4
[*.{js,ts,jsx,tsx,wxml,wxss,wxs,scss,sass}]
indent_style = tab
indent_size = 4
tab_width = 4
.DS_Store
node_modules
miniprogram_npm
project.config.json
project.private.config.json
/dist
/.history
/.svn
.svn
miniprogram_npm
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
.DS_Store
node_modules
miniprogram_npm
/dist
/.history
/.svn
.svn
miniprogram_npm
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
# 默认忽略的文件
/shelf/
/workspace.xml
# 已忽略包含查询文件的默认文件夹
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/dj-car-boutique-work-wechat.iml" filepath="$PROJECT_DIR$/.idea/dj-car-boutique-work-wechat.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PrettierConfiguration">
<option name="myConfigurationMode" value="AUTOMATIC" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectTasksOptions" suppressed-tasks="SCSS" />
</project>
\ No newline at end of file
export default {
printWidth: 200,
tabWidth: 4,
useTabs: true,
semi: true,
singleQuote: false,
htmlWhitespaceSensitivity: "ignore",
bracketSameLine: true,
plugins: ["./prettier-plugin-wxml.mjs"],
overrides: [
{
files: "*.wxml",
options: {
parser: "wxml",
},
},
],
};
{
"小程序页面模板": {
"prefix": "page",
"scope": "javascript",
"body": [
"Page({",
"\tdata: {",
"\t\tnavBarHeight: 0,",
"\t},",
"",
"\tnavbarReady(e) {",
"\t\tlet navBarHeight = e?.detail?.height;",
"\t\tthis.setData({",
"\t\t\tnavBarHeight,",
"\t\t});",
"\t},",
"",
"\tback() {",
"\t\twx.\\$router.back();",
"\t},",
"",
"\tonLoad(options) {",
"\t\t$1",
"\t},",
"",
"\tonRoute(options) {",
"\t\tconsole.log(options);",
"\t},",
"",
"\t/**",
"\t * 生命周期函数--监听页面隐藏",
"\t */",
"\tonHide() {},",
"",
"\t/**",
"\t * 生命周期函数--监听页面卸载",
"\t */",
"\tonUnload() {},",
"",
"\t/**",
"\t * 页面相关事件处理函数--监听用户下拉动作",
"\t */",
"\tonPullDownRefresh() {},",
"",
"\t/**",
"\t * 页面上拉触底事件的处理函数",
"\t */",
"\tonReachBottom() {}",
"});",
],
"description": "微信小程序 Page 页面模板(含 navbarReady / back)",
},
"小程序组件模板": {
"prefix": "component",
"scope": "javascript",
"body": [
"Component({",
" /**",
" * 组件的属性列表",
" */",
" properties: {",
" ${1:exampleProp}: {",
" type: ${2:String},",
" value: ${3:''},",
" observer: function(newVal, oldVal) {",
" $4",
" }",
" }",
" },",
"",
" /**",
" * 组件的初始数据",
" */",
" data: {",
" ${5:exampleData}: ${6:null}",
" },",
"",
" /**",
" * 组件的方法列表",
" */",
" methods: {",
" ${7:exampleMethod}() {",
" $0",
" }",
" },",
"",
" /**",
" * 组件生命周期函数",
" */",
" lifetimes: {",
" created() {",
" ",
" },",
" attached() {",
" ",
" },",
" ready() {",
" ",
" },",
" moved() {",
" ",
" },",
" detached() {",
" ",
" }",
" },",
"",
" /**",
" * 组件数据监听器",
" */",
" observers: {",
" }",
"})",
],
"description": "微信小程序 Component 完整模板(含 properties, data, methods, lifetimes, observers)",
},
}
{
// 使用 Prettier 作为默认格式化器
"editor.defaultFormatter": "esbenp.prettier-vscode",
// 保存时自动格式化
"editor.formatOnSave": true,
// 缩进设置:使用 tab,大小为 4
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"explorer.compactFolders": false,
"scm.compactFolders": false,
"problems.decorations.enabled": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxs]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"*.wxss": "css",
"*.sass": "scss"
},
"cSpell.words": [
// 微信小程序相关
"scrolltolower",
"wxml",
"wxss",
"wxs",
"elif",
"miniprogram",
"usingComponents",
"behaviours",
"onLaunch",
"onShow",
"onHide",
"onLoad",
"onUnload",
"onReady",
"onPullDownRefresh",
"onReachBottom",
"onShareAppMessage",
"setData",
"globalData",
// 项目相关
"glsk",
"glsx",
"dayjs",
"rfdc",
"ucharts",
"vant",
"vanui",
// 业务相关
"artificer",
"boutique",
"crowdfunding",
"technician",
"subvehicle",
"tabbar",
"tabDate",
"tabIndex",
"tabMine",
"tabOperating",
"tabRepairOrder",
"tabWorkOrder",
// 常用英文词汇
"mixins",
"utils",
"jsconfig",
"sitemap",
"unpkg",
"qrcode",
"qrbox",
"popup",
"popups",
"navbar",
"readonly",
"textarea",
// API/接口相关
"errId",
"sessionId",
"moduleType",
"moduleTypes",
"businessType",
"unread",
"pageNum",
"pageSize",
// 中文拼音
"yanbao",
"jingpin",
"quanyi"
],
// GitLens Blame 配置
"gitlens.codeLens.enabled": true,
"gitlens.codeLens.recentChange.enabled": true,
"gitlens.currentLineBlame": true,
"gitlens.currentLineBlame.format": "${author}, ${date} - ${message}",
"gitlens.blame.visibility": "on"
}
# 项目名 精品升级小程序 小程序搜索精品升级
# 账号登录可以使用以下(验证码 开发和测试环境任意输入即可):
超级管理员:13022223223(测试环境) 13476670746(开发环境)
供应商账号:13978573226 (选testfws1) 15023656699 13978573226
园区店管理员: 15589265685 13600160561(测试环境) 15626599736(开发环境)
员工账号 :15626599735 (选明明塘朗园区店) 15626599738(开发环境)
员工账号 :18775035205 (选测试园店) 18775035205(选最下面的) 15814019200 15626599737(预发布)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据) 13132112126(导师) 13132112120(学员)
员工账号 :15626599738 (开发环境)
超管:18129809927 18372203315
商户管理员:15814019200
区域督导:187750352053
销售: 15626599743(开发)
技师: 18925261040 19982726211(开发)
运营管理: 17608426680(开发)
# 生产环境跟手机号和验证码绑定 需要自己到账号中心绑定手机号成为员工或超管
# 项目功需真机测试的功能:scroll-view组件里面有组件使用fixed定位的组件
# 测试机iphone8plus 密码 127458
<!-- wxfile://tmp_4e069a5be4082332eb906b4fb6085276a2f97acd0fc59a92.jpg -->
# 接口环境切换 在api目录下的environment (项目上传体验版或生产环境需手动切换)
0本地
1开发
2测试
3生产
# 生产环境
appid wx570d9331f9ace0bd
# 个人测试体验版
appid wx9f8fe7f97daba5d7
# 预发布环境
appid wx5d1208f9c8712943
# 项目版本管理有两个 生产环境 svn地址:svn://192.168.3.233/ddh/trunk/src/dijia/dj-miniprogram-merchant-point/dj-car-boutique-work-wechat
开发使用git进行版本管理 git地址:http://192.168.3.233:8090/saas_plus/dj-car-boutique-work-wechat
# swagger 文档接口地址 调试数据可以把地址v3 换成v2 重新请求即可
开发环境: https://dj.dev.glsx.com.cn/rop-dj-car-boutique/swagger-ui/v3/index.html#
测试环境: https://dj.test.glsx.com.cn/rop-dj-car-boutique/swagger-ui/v3/index.html#
# ui图地址
https://lanhuapp.com/web/#/item/?fid=e0d24a48-8d28-4400-bd07-2ec10f1bc4f0&commonly=all
# 项目名 精品升级小程序 小程序搜索精品升级
# 账号登录可以使用以下(验证码 开发和测试环境任意输入即可):
超级管理员:13022223223(测试环境) 13476670746(开发环境)
供应商账号:13978573226 (选testfws1) 15023656699 13978573226
园区店管理员: 15589265685 13600160561(测试环境) 15626599736(开发环境)
员工账号 :15626599735 (选明明塘朗园区店) 15626599738(开发环境)
员工账号 :18775035205 (选测试园店) 18775035205(选最下面的) 15814019200 15626599737(预发布)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据) 13132112126(导师) 13132112120(学员)
驻店员工账号 :15626599738 (开发环境)
超管:18129809927 18372203315
商户管理员:15814019200
区域督导:187750352053
销售: 15626599743(开发)
技师: 18925261040 19982726211(开发)
运营管理: 17608426680(开发)
# 生产环境跟手机号和验证码绑定 需要自己到账号中心绑定手机号成为员工或超管
# 项目功需真机测试的功能:scroll-view组件里面有组件使用fixed定位的组件
# 测试机iphone8plus 密码 127458
<!-- wxfile://tmp_4e069a5be4082332eb906b4fb6085276a2f97acd0fc59a92.jpg -->
# 接口环境切换 在api目录下的environment (项目上传体验版或生产环境需手动切换)
0本地
1开发
2测试
3生产
# 生产环境
appid wx570d9331f9ace0bd
# 个人测试体验版
appid wx9f8fe7f97daba5d7
# 预发布环境
appid wx5d1208f9c8712943
# 项目版本管理有两个 生产环境 svn地址:svn://192.168.3.233/ddh/trunk/src/dijia/dj-miniprogram-merchant-point/dj-car-boutique-work-wechat
开发使用git进行版本管理 git地址:http://192.168.3.233:8090/saas_plus/dj-car-boutique-work-wechat
# swagger 文档接口地址 调试数据可以把地址v3 换成v2 重新请求即可
开发环境: https://dj.dev.glsx.com.cn/rop-dj-car-boutique/swagger-ui/v3/index.html#
测试环境: https://dj.test.glsx.com.cn/rop-dj-car-boutique/swagger-ui/v3/index.html#
# ui图地址
https://lanhuapp.com/web/#/item/?fid=e0d24a48-8d28-4400-bd07-2ec10f1bc4f0&commonly=all
import api from "~/utils/request/request.js";
/**
* 模块类型枚举说明:
* - 0: 系统通知
* - 1: 优秀话术
* - 2: 话术预警
* - 3: ai导师(短课程)
* - 4: 学习任务(长课程)
* - 5: 活动中心
* - 6: 学习类策略
* - 7: 优秀案例分享策略
* - 8: 任务型策略
* @typedef {0|1|2|3|4|5|6|7|8} ModuleType
*/
/**
* 业务场景枚举说明:
* - 0: 延保
* - 1: 精品
* - 2: 权益
* @typedef {0|1|2} BusinessType
*/
/**
* @typedef {Object} NewPadMessageBoxDTO
* @property {number} [id]
* @property {ModuleType} [moduleType] 模块分类
* @property {BusinessType} [businessType] 业务场景
* @property {string} [uuid]
* @property {string} [phone]
* @property {string} [name]
* @property {number} [status] 查看状态:0-待查看,1-已查看
* @property {string} [createdBy]
* @property {string} [createdTime]
* @property {string} [updatedBy]
* @property {string} [updatedTime]
* @property {string} [delFlag]
* @property {number} [popupCount]
* @property {string} [readType] 阅读模式:0不强制,1首次强制,2每日强制
* @property {number} [readCount]
* @property {string} [latestReadTime]
* @property {string} [reminderType] 提醒类型:1-首次提醒,2-进度提醒
* @property {string} [msgTitle] 消息标题
* @property {string} [taskStartTime] 任务类型消息-任务开始时间 yyyy-MM-dd HH:mm:ss
* @property {string} [startEndTime] 任务类型消息-任务结束时间 yyyy-MM-dd HH:mm:ss
* @property {Object} [msgDetail] 消息详情-业务方消息详情。根据moduleType返回不同数据结构
*/
/**
* @typedef {Object} RpcPagination
* @property {number} [pageNum]
* @property {number} [pageSize]
* @property {number} [startRow]
* @property {number} [endRow]
* @property {number} [total]
* @property {number} [pages]
* @property {Array<NewPadMessageBoxDTO>} [list]
* @property {NewPadMessageBoxDTO} [condition]
* @property {boolean} [needCount]
*/
/**
* 获取公司公告分页列表
* @param {Object} data - 请求参数
* @param {number} [data.pageNum=1] 当前页码
* @param {number} [data.pageSize=10] 每页条数
* @param {ModuleType} [data.moduleType] 模块分类
* @param {BusinessType} [data.businessType] 业务场景
* @param {string} [data.uuid] 消息接收人uuid
* @param {string} [data.phone] 消息接收人手机号
* @param {string} [data.name] 消息接收人姓名
* @param {number} [data.status] 查看状态:0-待查看,1-已查看
* @returns {Promise<{code: string, errId: string, message?: string, data?: RpcPagination}>} 返回公司公告分页数据
*/
export function getCompanyNoticeList(data = { pageNum: 1, pageSize: 10 }) {
return api.post("dj.pad.api.new.pad.message.box.page", data, [], "/rop-dj-pad/router");
}
/**
* @typedef {Object} RopResponseDetail
* @property {string} code 响应状态(0:成功;1:失败)
* @property {string} errId 错误码
* @property {string} [message] 错误描述
* @property {NewPadMessageBoxDTO} [data] 成功返回数据
*/
/**
* 获取公告详情
* @param {{ id: number }} data - 请求参数,公告ID
* @returns {Promise<RopResponseDetail>} 返回公告详情数据
*/
export function getCompanyNoticeDetail(data) {
return api.post("dj.pad.api.new.pad.message.box.detail", data, [], "/rop-dj-pad/router");
}
/**
* @typedef {Object} ModuleUnreadCountDTO
* @property {ModuleType} [moduleType] 模块类型
* @property {number} [unreadCount] 未读数量
*/
/**
* @typedef {Object} UnreadCountResponse
* @property {string} code 响应状态(0:成功;1:失败)
* @property {string} errId 错误码
* @property {string} [message] 错误描述
* @property {Array<ModuleUnreadCountDTO>} [data] 各模块未读数量列表
*/
/**
* 获取各模块类型的未读数量
* @param {Object} data - 请求参数
* @param {Array<ModuleType>} [data.moduleTypes] 模块类型列表
* @param {BusinessType} [data.businessType] 业务场景
* @param {string} data.sessionId 会话ID(必填)
* @returns {Promise<UnreadCountResponse>} 返回各模块未读数量数据
*/
export function getUnreadCountByType(data) {
return api.post("dj.pad.api.new.pad.message.box.unread.count.by.type", data, [], "/rop-dj-pad/router");
}
export function putRecordStudyStatus(data) {
return api.post("dj.api.strategy.monitor.insertOrUpdateLearningRecord", data, [], "/rop-dj-pad/router");
}
......@@ -106,6 +106,9 @@
"root": "tabWorkOrder",
"name": "tabWorkOrder",
"pages": [
"pages/serviceCenter/pages/caseDetail/caseDetail",
"pages/serviceCenter/pages/companyNoticeDetail/companyNoticeDetail",
"pages/serviceCenter/pages/serviceNoticeList/serviceNoticeList",
"pages/createOrder/createOrder",
"pages/additionRecordOrder/additionRecordOrder",
"pages/orderDetail/orderDetail",
......@@ -198,7 +201,7 @@
"pages/recruitManage/recruitInsert/recruitInsert",
"pages/recruitManage/recruitResult/recruitResult",
"pages/recruitManage/recruitManage/recruitManage",
"pages/salaryAppeal/salaryAppeal"
"pages/salaryAppeal/salaryAppeal"
]
},
{
......@@ -298,15 +301,11 @@
"preloadRule": {
"pages/tabWorkOrder/pages/index/index": {
"network": "all",
"packages": [
"tabWorkOrder"
]
"packages": ["tabWorkOrder"]
},
"tabIndex/pages/index/index": {
"network": "all",
"packages": [
"tabWorkOrder"
]
"packages": ["tabWorkOrder"]
}
},
"resolveAlias": {
......@@ -323,4 +322,4 @@
],
"lazyCodeLoading": "requiredComponents",
"resizable": true
}
\ No newline at end of file
}
......@@ -100,4 +100,4 @@ page {
.bgcw {
background-color: #fff;
}
}
\ No newline at end of file
}
/**
* 用来配置小程序项目的变量
* 统一管理
*/
// 配置预发布的小程序aapId
export const preReleaseAppId = 'wx96c8f2a3e76907cb'
// 小程序id
export const appId = 'wx570d9331f9ace0bd'
/**
* 环境指定
* 0本地
* 1开发
* 2测试
* 3生产环境
* 4预发布
* 5cdptest
*/
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = false
const release = false
// 判断小程序环境
// develop:开发版 trial:体验版 release:正式版
if (systemInfo.platform != 'devtools') {
if (accountInfo.miniProgram.appId == preReleaseAppId) {
index = 4
} else {
switch (envName) {
case 'develop':
break
case 'trial':
index = manual ? index : 2
break
case 'release':
index = release ? index : 3
break
default:
index = 3
break
}
}
}
export const env = envName
export const envIndex = index
const createQuotedUrl = {
develop: `http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`,
trial: `http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
release: `https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
preRelease: `https://dj.beta.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
}
const scoketURL = {
develop: `ws://192.168.3.191:7865`,
trial: `ws://salesgpt.test.glsx.com.cn`,
release: `wss://salesgpt.glsx.com.cn`,
preRelease: `ws://salesgpt.test.glsx.com.cn`
}
const target = ['ip', 'develop', 'trial', 'release', 'preRelease']
const ALIYUN_LIST = [
{
AKID: 'LTAI5tJday6R4sng1jgrgH3N', //个人
AKKEY: 'TWvwaQqwjxw7Tj7RlnTxyEXjOjQgFh',
APPKEY: 'a1HmjrmQNv6yT8zb',
URL: 'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
},
{
AKID: 'LTAI5tCSaRbXmWhF7cR6k626', //公司
AKKEY: 'jYHkk6rR6UoaZWikxDTuAUNwJycJwb',
APPKEY: 'Pm7teJgylXGPnPvO',
URL: 'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
},
{
AKID: 'LTAI5tCv6tv55tZVyV4uQKd6', //个人
AKKEY: 'K3eko04dQ88KWltUEbY3A7h5twdjJk',
APPKEY: 'xKQ7JCyBsyNFjUdL',
URL: 'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
}
]
export const ALIYUN = ALIYUN_LIST[1]
// 报价单图片地址
export const quotedImgUrl = createQuotedUrl[target[envIndex]]
export const scoket_url = scoketURL[target[envIndex]]
// sentry Dsn 地址
export const dsnUrl =
'https://ddaadc52bf8d4ecc92eca632683d456a@sentry.glsx.com.cn/23'
// 图片基地址
export const ImgUrl =
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat'
export const ossConfig = {
// 请求域名 格式:https://xxx.xxx.com
HTTP_REQUEST_URL: 'http://127.0.0.1:8000/api',
// 阿里云oss域名 格式:https://xxx.oss-cn-xxx.aliyuncs.com
OSS_DOMAIN: 'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com',
// 文件直传到阿里云oss时需用到
ACCESSKEYID: 'LTAI5tCRcCUgd7bt1J7JY596',
ACCESSKEYSECRET: 'kJos9mgylkR5ztosnDt8Asrc3ulgqy',
BUKET_NAME: 'glsk-oss',
FOLDER: 'quality/',
// 与后端约定的token字段名
TOKEN_NAME: 'glsk-oss'
}
export const bytedanceConfig = {
url: 'https://openspeech.bytedance.com/api/v1/tts'
}
/**
* 用来配置小程序项目的变量
* 统一管理
*/
// 配置预发布的小程序aapId
export const preReleaseAppId = "wx96c8f2a3e76907cb";
// 小程序id
export const appId = "wx570d9331f9ace0bd";
/**
* 环境指定
* 0本地
* 1开发
* 2测试
* 3生产环境
* 4预发布
* 5cdptest
*/
let index = 4;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
//手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = true;
const release = false;
// 判断小程序环境
// develop:开发版 trial:体验版 release:正式版
if (systemInfo.platform != "devtools") {
if (accountInfo.miniProgram.appId == preReleaseAppId) {
index = 4;
} else {
switch (envName) {
case "develop":
break;
case "trial":
index = manual ? index : 2;
break;
case "release":
index = release ? index : 3;
break;
default:
index = 3;
break;
}
}
}
export const env = envName;
export const envIndex = index;
const createQuotedUrl = {
develop: `http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`,
trial: `http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
release: `https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
preRelease: `https://dj.beta.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
};
const scoketURL = {
develop: `ws://192.168.3.191:7865`,
trial: `ws://salesgpt.test.glsx.com.cn`,
release: `wss://salesgpt.glsx.com.cn`,
preRelease: `ws://salesgpt.test.glsx.com.cn`,
};
const target = ["ip", "develop", "trial", "release", "preRelease"];
const ALIYUN_LIST = [
{
AKID: "LTAI5tJday6R4sng1jgrgH3N", //个人
AKKEY: "TWvwaQqwjxw7Tj7RlnTxyEXjOjQgFh",
APPKEY: "a1HmjrmQNv6yT8zb",
URL: "wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1",
},
{
AKID: "LTAI5tCSaRbXmWhF7cR6k626", //公司
AKKEY: "jYHkk6rR6UoaZWikxDTuAUNwJycJwb",
APPKEY: "Pm7teJgylXGPnPvO",
URL: "wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1",
},
{
AKID: "LTAI5tCv6tv55tZVyV4uQKd6", //个人
AKKEY: "K3eko04dQ88KWltUEbY3A7h5twdjJk",
APPKEY: "xKQ7JCyBsyNFjUdL",
URL: "wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1",
},
];
export const ALIYUN = ALIYUN_LIST[1];
// 报价单图片地址
export const quotedImgUrl = createQuotedUrl[target[envIndex]];
export const scoket_url = scoketURL[target[envIndex]];
// sentry Dsn 地址
export const dsnUrl = "https://ddaadc52bf8d4ecc92eca632683d456a@sentry.glsx.com.cn/23";
// 图片基地址
export const ImgUrl = "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat";
export const ossConfig = {
// 请求域名 格式:https://xxx.xxx.com
HTTP_REQUEST_URL: "http://127.0.0.1:8000/api",
// 阿里云oss域名 格式:https://xxx.oss-cn-xxx.aliyuncs.com
OSS_DOMAIN: "https://glsk-oss.oss-cn-shenzhen.aliyuncs.com",
// 文件直传到阿里云oss时需用到
ACCESSKEYID: "LTAI5tCRcCUgd7bt1J7JY596",
ACCESSKEYSECRET: "kJos9mgylkR5ztosnDt8Asrc3ulgqy",
BUKET_NAME: "glsk-oss",
FOLDER: "quality/",
// 与后端约定的token字段名
TOKEN_NAME: "glsk-oss",
};
export const bytedanceConfig = {
url: "https://openspeech.bytedance.com/api/v1/tts",
};
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs"
}
}
\ No newline at end of file
"module": "commonjs",
"baseUrl": ".",
"allowJs": true,
"moduleResolution": "Node",
"paths": {
"~/*": ["./*"]
}
},
"include": ["**/*"]
}
{
"name": "dj-car-boutique-work-wechat",
"lockfileVersion": 3,
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"@vant/area-data": {
"packages": {
"": {
"dependencies": {
"@vant/area-data": "^1.5.1",
"@vant/weapp": "^1.10.24",
"dayjs": "^1.11.11",
"glsk-applet-component": "^1.0.0",
"glsk-map-jssdk": "^0.1.1",
"glsx-applet-component": "^1.1.29",
"glsx-common-sdk": "^0.2.8",
"number-precision": "^1.6.0",
"rfdc": "^1.3.0"
},
"devDependencies": {
"@babel/generator": "^7.28.5",
"@babel/parser": "^7.28.5",
"prettier": "^3.8.1",
"prettier-plugin-mp": "^2.5.0"
}
},
"node_modules/@babel/generator": {
"version": "7.28.6",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.6.tgz",
"integrity": "sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@babel/parser": "^7.28.6",
"@babel/types": "^7.28.6",
"@jridgewell/gen-mapping": "^0.3.12",
"@jridgewell/trace-mapping": "^0.3.28",
"jsesc": "^3.0.2"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helper-string-parser": {
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
"integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helper-validator-identifier": {
"version": "7.28.5",
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
"integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/parser": {
"version": "7.28.6",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz",
"integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@babel/types": "^7.28.6"
},
"bin": {
"parser": "bin/babel-parser.js"
},
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@babel/types": {
"version": "7.28.6",
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz",
"integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==",
"dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-string-parser": "^7.27.1",
"@babel/helper-validator-identifier": "^7.28.5"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.0",
"@jridgewell/trace-mapping": "^0.3.24"
}
},
"node_modules/@jridgewell/resolve-uri": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
"dev": true,
"license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.31",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"node_modules/@vant/area-data": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/@vant/area-data/-/area-data-1.5.2.tgz",
"integrity": "sha512-Gtxgt6Rjgopt6234ANpO0bBsSwtjZ23lBlVDHIy8Mi2NJqyoj1vgVWY0dri8/2LCZAWzQ6EnwRrUVViUZ0cvMA=="
},
"@vant/weapp": {
"node_modules/@vant/weapp": {
"version": "1.11.7",
"resolved": "https://registry.npmjs.org/@vant/weapp/-/weapp-1.11.7.tgz",
"integrity": "sha512-Rwn9BBnb4kHSV4XmvBicwtd42J+amEUfnFDcXJsGNPNX4a9c/DoT6YLsm4X1wB2+sQbdiQsbFBLAvGRBxCkD8g=="
},
"dayjs": {
"node_modules/@wxml/parser": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/@wxml/parser/-/parser-0.4.0.tgz",
"integrity": "sha512-pS0OPyKzCOhCPGlcfO9IDLZbqH4485bPdGDqaa+hYnI+cY/OW+GN4J88XpfdzM8wXJcJShFZy5F6MTUr2rysXg==",
"dev": true,
"license": "MIT"
},
"node_modules/dayjs": {
"version": "1.11.19",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz",
"integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw=="
},
"glsk-applet-component": {
"node_modules/glsk-applet-component": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/glsk-applet-component/-/glsk-applet-component-1.0.0.tgz",
"integrity": "sha512-ulz1OquWy4y4Q26Zu4FLDWzyqK+sInPWs4o8MKj2N8V/TnYQlUXoWkkgKh8fERK8A+rsusf3eiyZB0odchKk8g=="
},
"glsk-map-jssdk": {
"node_modules/glsk-map-jssdk": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/glsk-map-jssdk/-/glsk-map-jssdk-0.1.1.tgz",
"integrity": "sha512-kwCyU8A1t7Q7V2hlzC03nc9VNNW9HPXQ5YhHsGGnrEtPxykGDG7AEyT5O7LY1zZk/8adkkk6FHgCM53r6p/4yw=="
},
"glsx-applet-component": {
"node_modules/glsx-applet-component": {
"version": "1.1.29",
"resolved": "https://registry.npmmirror.com/glsx-applet-component/-/glsx-applet-component-1.1.29.tgz",
"integrity": "sha512-HPzVayIRZvA3nvG2Lj9V9+S+BFiCer4XxjQwuZksta5Bs9JbbKaY4ztcIEe1Se3vw3rbPL0Dv2OsWvVz2b5jfw=="
},
"glsx-common-sdk": {
"node_modules/glsx-common-sdk": {
"version": "0.2.8",
"resolved": "https://registry.npmjs.org/glsx-common-sdk/-/glsx-common-sdk-0.2.8.tgz",
"integrity": "sha512-qCDUBRvJwE2Gs1PLwB+fHOSFPgB5W5fwYC3GSBSjMQOxs4keeOvd7o5wIb7bNakp0xF6ARPqpC/xm3hZ9TRW6A=="
},
"number-precision": {
"node_modules/jsesc": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
"integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
"dev": true,
"license": "MIT",
"bin": {
"jsesc": "bin/jsesc"
},
"engines": {
"node": ">=6"
}
},
"node_modules/number-precision": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/number-precision/-/number-precision-1.6.0.tgz",
"integrity": "sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ=="
},
"rfdc": {
"node_modules/prettier": {
"version": "3.8.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz",
"integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==",
"dev": true,
"license": "MIT",
"peer": true,
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/prettier-plugin-mp": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/prettier-plugin-mp/-/prettier-plugin-mp-2.5.0.tgz",
"integrity": "sha512-xOACEwH19w211V8kkQEcrZnVQsP+g7/wepcJ2VM0ajLJdhQgcW4qJpD827vl28BYUuhkQ6dnyAAkeybJ3lzvzQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@wxml/parser": "^0.4.0"
},
"peerDependencies": {
"prettier": "^3.0.0"
}
},
"node_modules/rfdc": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
"integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA=="
......
......@@ -4,10 +4,16 @@
"@vant/weapp": "^1.10.24",
"dayjs": "^1.11.11",
"glsk-applet-component": "^1.0.0",
"glsk-map-jssdk": "^0.1.1",
"glsx-applet-component": "^1.1.29",
"glsx-common-sdk": "^0.2.8",
"number-precision": "^1.6.0",
"rfdc": "^1.3.0",
"glsk-map-jssdk": "^0.1.1"
"rfdc": "^1.3.0"
},
"devDependencies": {
"@babel/generator": "^7.28.5",
"@babel/parser": "^7.28.5",
"prettier": "^3.8.1",
"prettier-plugin-mp": "^2.5.0"
}
}
......@@ -15,6 +15,10 @@ import {
} from '../../api'
import { getBusinessSchoolScene } from '~/store/index'
import carLifeApi from '../../carEquityApi'
import { dialogOptions, noticeSort, ServerCenterEnum } from "~/utils/enum/index";
import { getCompanyNoticeDetail, getCompanyNoticeList } from "~/api/serviceCenter/index";
const app = getApp()
let time = null
var util = require('~/utils/timeFormat/time-utils.js')
......@@ -631,6 +635,9 @@ Page({
}
},
async initList() {
let {tabIndex} = this.data
const isStaff = app.globalData.isStaff;
let eventRequest = [
// this.checkDailyRecport(),
this.checkDeliveryTarget(),
......@@ -644,12 +651,18 @@ Page({
console.log('checkAbnormalOrderLocal', '检查是否有异常订单锁单')
eventRequest.push(this.checkAbnormalOrderLocal())
}
Promise.all(eventRequest).then(() => {
this.showNextModal()
})
let { tabIndex } = this.data
this.selectComponent(`#page-${tabIndex}`)?.onLoad &&
this.selectComponent(`#page-${tabIndex}`).onLoad()
if (isStaff) {
// 检查服务中心 公告弹窗
eventRequest.push(this.checkServiceNotice());
}
if (this.data.tabIndex == 0) {
eventRequest.push(this.checkAbnormalOrderLocal())
}
Promise.all(eventRequest).then(() => {
this.showNextModal()
})
this.selectComponent(`#page-${tabIndex}`)?.onLoad &&
this.selectComponent(`#page-${tabIndex}`).onLoad()
},
back() {
if (this.data.staffUuid) {
......@@ -664,84 +677,130 @@ Page({
})
},
navbarReady(e) {
let navBarHeight = e.detail.height
this.setData({
navBarHeight
})
},
setTime() {
let _this = this
time = setTimeout(() => {
// console.log(_this.getWaitOrder)
// 2025-8月版本,隐藏补录入口
// _this.getWaitOrder();
}, 10 * 1000)
},
// 10s轮询一次待补录
getWaitOrder() {
let { isStaff, mode } = this.data
// console.log('isStaff', isStaff)
// let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.route, ' thisPage.route')
// thisPage.route == 'tabIndex/pages/index/index' &&
time && clearTimeout(time) //解决切换门店时 需要清除计时器
if (isStaff && mode) {
waitinputorder()
.then(result => {
// console.log(result)
let { code, data } = result
this.setTime()
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount
})
}
})
.catch(err => {})
}
},
onRoute(options) {
wx.__HAS_SHOW_MODAL = false
if (options && options.tabIndex) {
this.changeTabBar({
detail: Number(options.tabIndex)
})
//判断是否是从超管话术质检带过来的参数
if (options.staffUuid && options.tabIndex == 1)
this.setData({
staffUuid: options.staffUuid
})
} else {
if (options && options.tabIndex && options.tabIndex != 0) {
return
}
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
if (options && options.tabIndex) {
this.changeTabBar({
detail: Number(options.tabIndex)
})
}
wx.$eventbus.on('switch_tab', () => {
let e = {
detail: 3
}
this.changeTabBar(e)
})
wx.$receptionLoaded = false
// console.log(options, 'onLoad')
},
navbarReady(e) {
let navBarHeight = e.detail.height
this.setData({
navBarHeight
})
},
setTime() {
let _this = this
time = setTimeout(() => {
// console.log(_this.getWaitOrder)
// 2025-8月版本,隐藏补录入口
// _this.getWaitOrder();
}, 10 * 1000)
},
// 10s轮询一次待补录
getWaitOrder() {
let { isStaff, mode } = this.data
// console.log('isStaff', isStaff)
// let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.route, ' thisPage.route')
// thisPage.route == 'tabIndex/pages/index/index' &&
time && clearTimeout(time) //解决切换门店时 需要清除计时器
if (isStaff && mode) {
waitinputorder()
.then(result => {
// console.log(result)
let { code, data } = result
this.setTime()
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount
})
}
})
.catch(err => {})
}
},
async checkServiceNotice() {
for (let serviceCenterEnum of noticeSort) {
const { data } = await getCompanyNoticeList({
pageNum: 1,
pageSize: 3,
// 全局通知要顺序排
createdTimeSortType: 0,
// 通知类型
moduleType: serviceCenterEnum,
// 未读
status: 0,
});
this.setData({
serviceCenterUnreadNum: data?.list?.length || 0,
});
if (data && data.list && data.list.length > 0) {
console.log("data -> serviceCenterUnreadNum", this.data.serviceCenterUnreadNum);
// 弹窗
const noticeItem = data.list[0];
// 根据类型取到对应的值
const { message, ...dialogParams } = dialogOptions[serviceCenterEnum][noticeItem.reminderType || 1];
this.addModalToQueue(dialogParams.title, message(noticeItem.msgTitle), dialogParams.confirmButtonText, false, 10, async (res) => {
wx.$util.showLoading();
try {
if (dialogParams.type === ServerCenterEnum.longCourse) {
const { data } = await getCompanyNoticeDetail({ id: noticeItem.id });
wx.navigateTo({
url: `/packageStudyCenter/pages/taskDetail/longCourse/longCourse?row=${encodeURIComponent(JSON.stringify(data.msgDetail))}&form=serviceCenter`,
fail: (err) => {
console.error("页面跳转失败:", err);
},
});
}
if (dialogParams.type === ServerCenterEnum.case) {
wx.$router.go("tabWorkOrder.caseDetail", { caseId: noticeItem.id });
}
if (dialogParams.type === ServerCenterEnum.companyNotice) {
wx.$router.go("tabWorkOrder.companyNoticeDetail", { id: noticeItem.id });
}
} finally {
wx.$util.hideLoading();
}
});
break;
}
}
},
onRoute(options) {
wx.__HAS_SHOW_MODAL = false
if (options && options.tabIndex) {
this.changeTabBar({
detail: options.tabIndex
})
//判断是否是从超管话术质检带过来的参数
if (options.staffUuid && options.tabIndex == 1)
this.setData({
staffUuid: options.staffUuid
})
} else {
if (options && options.tabIndex && options.tabIndex != 0) {
return
}
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
if (options && options.tabIndex) {
this.changeTabBar({
detail: options.tabIndex
})
}
wx.$eventbus.on('switch_tab', () => {
let e = {
detail: 3
}
this.changeTabBar(e)
})
wx.$receptionLoaded = false
// console.log(options, 'onLoad')
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
......@@ -759,50 +818,50 @@ Page({
// this.selectComponent(`#page-${tabIndex}`)?.onLoad && this.selectComponent(`#page-${tabIndex}`).onLoad()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
time && clearTimeout(time)
let { tabIndex } = this.data
this.selectComponent(`#page-${tabIndex}`)?.onHide &&
this.selectComponent(`#page-${tabIndex}`).onHide()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
time && clearTimeout(time)
let { tabIndex } = this.data
this.selectComponent(`#page-${tabIndex}`)?.onHide &&
this.selectComponent(`#page-${tabIndex}`).onHide()
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
time && clearTimeout(time)
let { tabIndex } = this.data
this.selectComponent(`#page-${tabIndex}`)?.onUnload &&
this.selectComponent(`#page-${tabIndex}`).onUnload()
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
time && clearTimeout(time)
let { tabIndex } = this.data
this.selectComponent(`#page-${tabIndex}`)?.onUnload &&
this.selectComponent(`#page-${tabIndex}`).onUnload()
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
// closeScreen() {
// this.selectComponent("#page-1").back();
// },
// 筛选确认
searchScreen(obj) {
console.log(obj)
let { tabIndex } = this.data
this.selectComponent(`#page-${tabIndex}`)?.searchScreen &&
this.selectComponent(`#page-${tabIndex}`).searchScreen(obj)
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
// closeScreen() {
// this.selectComponent("#page-1").back();
// },
// 筛选确认
searchScreen(obj) {
console.log(obj)
let { tabIndex } = this.data
this.selectComponent(`#page-${tabIndex}`)?.searchScreen &&
this.selectComponent(`#page-${tabIndex}`).searchScreen(obj)
},
// 筛选页面返回
containerBack() {
......
<!-- pages/equity/index.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block wx:if="{{showScreen}}">
<navigation-bar showBack class="navigation-header" showWhiteMenu bindback="containerBack" navStyle="background-color:#fff;box-shadow:none;">筛选</navigation-bar>
<glsx-privacy applet-name="生意助手员工版"
bind:agreeClick="agreeClick"
bind:disagreeClick="disagreeClick"></glsx-privacy>
<block wx:if="{{ showScreen }}">
<navigation-bar bindback="containerBack"
class="navigation-header"
nav-style="background-color:#fff;box-shadow:none;"
show-back
show-white-menu>
筛选
</navigation-bar>
</block>
<block wx:else>
<navigation-bar class="navigation-header" showWhiteMenu bindnavbarReady="navbarReady" showMenu="{{ staffUuid&&tabIndex == 1?false:true }}" showBack="{{staffUuid&&tabIndex == 1?true:false}}" navStyle="{{'background-color: rgba(0,0,0,0);box-shadow:none;' }}" bindback="back" bindshowMenuPopup="showMenuPopup">
<view class="navigation-title" wx:if="{{ tabIndex == 0 || tabIndex == 2 }}">
<view class="navigation-title-text text-hide">{{(userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName) || '全部'}}</view>
</view>
<block wx:elif="{{tabIndex == 1}}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
<block wx:if="{{userInfo && (userInfo.isSuper||userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)}}">
数字报价
</block>
<block wx:else>
{{ userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}}
</block>
</view>
</view>
</block>
<view wx:elif="{{tabIndex==3}}">营销素材</view>
<view wx:else>我的</view>
</navigation-bar>
<navigation-bar bindnavbar-ready="navbarReady"
class="navigation-header"
nav-style="{{ 'background-color: rgba(0,0,0,0);box-shadow:none;' }}"
show-back="{{ staffUuid && tabIndex == 1?true:false }}"
bindback="back"
show-menu="{{ staffUuid && tabIndex == 1?false:true }}"
bindshow-menu-popup="showMenuPopup"
show-white-menu>
<view class="navigation-title" wx:if="{{ tabIndex == 0 || tabIndex == 2 }}">
<view class="navigation-title-text text-hide">
{{ (userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName) || '全部' }}
</view>
</view>
<block wx:elif="{{ tabIndex == 1 }}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
<block wx:if="{{ userInfo && (userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6) }}">
数字报价
</block>
<block wx:else>
{{ userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName }}
</block>
</view>
</view>
</block>
<view wx:elif="{{ tabIndex==3 }}">
营销素材
</view>
<view wx:else>
我的
</view>
</navigation-bar>
</block>
<view class="bg"></view>
<!-- style="margin-top:{{navBarHeight}}px" -->
<view class="layout {{ waitInputCount && mode == 1 && tabIndex == 0 ?'tipsHeigh':'layout_noTips' }}" style="padding-top:{{ navBarHeight }}px;position: relative;">
<block wx:if="{{ navBarHeight && showPage }}">
<!-- wx:if="{{ tabIndex == 0}}" wx:if="{{ tabIndex == 1}}" -->
<quotation-list id="page-1" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 1?'':'hide' }}" mode="{{ mode }}" staffUuid="{{staffUuid}}" invoiceOrderInfo="{{invoiceOrderInfo}}"/>
<home id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}" navBarHeight="{{ navBarHeight }}" waitInputCount="{{waitInputCount}}" mode="{{ mode }}" showScreen="{{showScreen}}" show="{{tabIndex == 0}}"></home>
<equity-list id="page-2" outTabIndex="{{ tabIndex }}" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 2?'':'hide' }}" />
<makert-material id="page-3" navBarHeight="{{ navBarHeight }}" class="pagedetail {{tabIndex == 3?'':'hide'}}"></makert-material>
<tab-mine showCollege="{{ enableBusinessSchool }}" id="page-4" class="pagedetail {{ tabIndex == 4?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine>
</block>
<view class="layout {{ waitInputCount && mode == 1 && tabIndex == 0 ?'tipsHeigh':'layout_noTips' }}"
style="position: relative;padding-top:{{ navBarHeight }}px;">
<block wx:if="{{ navBarHeight && showPage }}">
<!-- wx:if="{{ tabIndex == 0}}" wx:if="{{ tabIndex == 1}}" -->
<quotation-list id="page-1"
class="pagedetail {{ tabIndex == 1?'':'hide' }}"
invoice-order-info="{{ invoiceOrderInfo }}"
mode="{{ mode }}"
nav-bar-height="{{ navBarHeight }}"
staff-uuid="{{ staffUuid }}" />
<home id="page-0"
class="pagedetail {{ tabIndex == 0?'':'hide' }}"
mode="{{ mode }}"
nav-bar-height="{{ navBarHeight }}"
show="{{ tabIndex == 0 }}"
serviceCenterUnreadNum="{{ serviceCenterUnreadNum }}"
show-screen="{{ showScreen }}"
wait-input-count="{{ waitInputCount }}" />
<equity-list id="page-2"
class="pagedetail {{ tabIndex == 2?'':'hide' }}"
nav-bar-height="{{ navBarHeight }}"
out-tab-index="{{ tabIndex }}" />
<makert-material id="page-3"
class="pagedetail {{ tabIndex == 3?'':'hide' }}"
nav-bar-height="{{ navBarHeight }}"></makert-material>
<tab-mine id="page-4"
class="pagedetail {{ tabIndex == 4?'':'hide' }}"
nav-bar-height="{{ navBarHeight }}"
show-college="{{ enableBusinessSchool }}"></tab-mine>
</block>
</view>
<!-- 2025-8月版本 隐藏补录订单入口 -->
<!-- <view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0 }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsPropsConfig }}" beforeClick="inspectionOfProhibitionBill" />
</view> -->
<custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#347BFF" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" />
<custom-tabBar bindchange="changeTabBar"
color="#6C6C70"
list="{{ tabBarList }}"
selected-color="#347BFF"
tab-index="{{ tabIndex }}" />
<!-- <store-picker items="{{ storeListRange }}" show="{{ showPicker }}" bindsearch="getStoreList" bindconfirm="changePicker" /> -->
<block wx:if="{{userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6}}">
<side-select-by-page-popup show="{{ shopSideSelectPopup }}" bindconfirm="changePicker" />
<block wx:if="{{ userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6 }}">
<side-select-by-page-popup bindconfirm="changePicker"
show="{{ shopSideSelectPopup }}" />
</block>
<block wx:else>
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{ storeRange }}" bindconfirm="changePicker" />
<side-select-popup bindconfirm="changePicker"
show="{{ shopSideSelectPopup }}"
store-list="{{ storeRange }}" />
</block>
<!-- <order-switchPopup
bind:close="closeSwitchPopup"
......@@ -55,13 +103,35 @@
wx:if="{{ showOrderpop }}"
flag="{{ showOrderpop }}"
/> -->
<order-no-popup wx:if="{{ tipsProps }}" show="{{ tipsProps }}" title="请选择交易参考号" bind:success="navigator" orderNoList="{{ orderNoList }}" paymentMethod="{{paymentMethod}}" />
<page-container show="{{ show_order_confirm || show_reception_confirm }}" duration="{{ 0 }}" overlay="{{ false }}" bind:afterleave="containerBack">
<view wx:if="{{ showReceptionRendering }}">
<reception-screen show="{{ show_reception_confirm }}" userInfo="{{ userInfo }}" dateTime="{{dateTime}}" isFilterUpgrade="{{isFilterUpgrade}}" isFilterDefeat="{{isFilterDefeat}}" maxDayRange="{{7}}" maxDayRangeType="day" navBarHeight="{{ navBarHeight }}" bindconfirm="searchScreen" />
</view>
<view wx:if="{{ showOrderRendering }}">
<order-screen show="{{ show_order_confirm }}" userInfo="{{ userInfo }}" navBarHeight="{{ navBarHeight }}" status="{{ orderStatus }}" zyStatus="{{ zyPayStatus }}" bindconfirm="searchScreen" />
</view>
<order-no-popup bind:success="navigator"
order-no-list="{{ orderNoList }}"
show="{{ tipsProps }}"
payment-method="{{ paymentMethod }}"
title="请选择交易参考号"
wx:if="{{ tipsProps }}" />
<page-container bind:afterleave="containerBack"
duration="{{ 0 }}"
overlay="{{ false }}"
show="{{ show_order_confirm || show_reception_confirm }}">
<view wx:if="{{ showReceptionRendering }}">
<reception-screen date-time="{{ dateTime }}"
is-filter-defeat="{{ isFilterDefeat }}"
is-filter-upgrade="{{ isFilterUpgrade }}"
max-day-range="{{ 7 }}"
max-day-range-type="day"
nav-bar-height="{{ navBarHeight }}"
show="{{ show_reception_confirm }}"
bindconfirm="searchScreen"
user-info="{{ userInfo }}" />
</view>
<view wx:if="{{ showOrderRendering }}">
<order-screen bindconfirm="searchScreen"
nav-bar-height="{{ navBarHeight }}"
show="{{ show_order_confirm }}"
status="{{ orderStatus }}"
user-info="{{ userInfo }}"
zy-status="{{ zyPayStatus }}" />
</view>
</page-container>
<study-permission-modal id="customModal" />
\ No newline at end of file
<study-permission-modal id="customModal" />
<van-dialog id="van-dialog" custom-class="van-dialog-wrapper" />
/* pages/equity/index.wxss */
.van-dialog-wrapper .van-dialog__footer .van-button {
color: #2c66f7 !important;
font-weight: bold;
}
.navigation-header .navigation-bar {
background-color: transparent;
box-shadow: none;
background-color: transparent;
box-shadow: none;
}
.bg {
width: 100%;
height: var(--fontSize400);
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/nav-bg.png') no-repeat;
background-size: 100% var(--fontSize400);
position: fixed;
left: 0;
top: 0;
z-index: -1;
width: 100%;
height: var(--fontSize400);
background: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/nav-bg.png") no-repeat;
background-size: 100% var(--fontSize400);
position: fixed;
left: 0;
top: 0;
z-index: -1;
}
.hide {
display: none;
display: none;
}
.show {
display: block;
display: block;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
max-width: calc(100% - var(--fontSize24));
font-weight: 500;
font-size: var(--fontSize32);
color: #FFFFFF;
text-align: center;
max-width: calc(100% - var(--fontSize24));
font-weight: 500;
font-size: var(--fontSize32);
color: #ffffff;
}
.navigation-title .arrow {
flex-shrink: 0;
width: var(--fontSize32);
height: var(--fontSize32);
margin-left: var(--fontSize4);
transform: rotate(180deg);
transition: all 0.5s;
flex-shrink: 0;
width: var(--fontSize32);
height: var(--fontSize32);
margin-left: var(--fontSize4);
transform: rotate(180deg);
transition: all 0.5s;
}
.navigation-title .move {
transform: rotate(270deg);
transform: rotate(270deg);
}
.layout {
box-sizing: border-box;
position: relative;
font-size: var(--fontSize24);
color: #8A8C90;
display: flex;
flex-direction: column;
height: calc(100vh - var(--fontSize100) - var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize100) - var(--envSafeAreaInsetBottom));
overflow: hidden;
box-sizing: border-box;
position: relative;
font-size: var(--fontSize24);
color: #8a8c90;
display: flex;
flex-direction: column;
height: calc(100vh - var(--fontSize100) - var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize100) - var(--envSafeAreaInsetBottom));
overflow: hidden;
}
.tipsHeigh{
height: calc(100vh - var(--fontSize100) - var(--fontSize72) var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize100) - var(--fontSize72) - var(--envSafeAreaInsetBottom));
.tipsHeigh {
height: calc(100vh - var(--fontSize100) - var(--fontSize72) var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize100) - var(--fontSize72) - var(--envSafeAreaInsetBottom));
}
.layout .pagedetail {
height: 100%;
height: 100%;
}
/* #page-3 {
overflow-y: scroll;
} */
.van-tabs__line{
border-radius: 2rpx 2rpx 0 0 !important;
.van-tabs__line {
border-radius: 2rpx 2rpx 0 0 !important;
}
.waitOrderCon {
position: absolute;
/* bottom: env(safe-area-inset-bottom); */
bottom: constant(safe-area-inset-bottom);
/* height: calc(100vh - var(--fontSize100) - var(--fontSize72) - var(--envSafeAreaInsetBottom));
position: absolute;
/* bottom: env(safe-area-inset-bottom); */
bottom: constant(safe-area-inset-bottom);
/* height: calc(100vh - var(--fontSize100) - var(--fontSize72) - var(--envSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize100) - var(--fontSize72) var(--constantSafeAreaInsetBottom)); */
width: 100%;
width: 100%;
}
@media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
.layout{
height: calc(100vh - var(--fontSize70) - var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize70) - var(--envSafeAreaInsetBottom));
}
.tipsHeigh{
height: calc(100vh - var(--fontSize70) - var(--fontSize72) var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize70) - var(--fontSize72) - var(--envSafeAreaInsetBottom));
}
}
\ No newline at end of file
.layout {
height: calc(100vh - var(--fontSize70) - var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize70) - var(--envSafeAreaInsetBottom));
}
.tipsHeigh {
height: calc(100vh - var(--fontSize70) - var(--fontSize72) var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize70) - var(--fontSize72) - var(--envSafeAreaInsetBottom));
}
}
......@@ -7,7 +7,7 @@
</view>
<view class="navigation-title-text">订单支付</view>
</view> -->
<view class="money">总保费{{orderDetail.finalPrice}}元/年</view>
<view class="money">总保费{{orderDetail.totalPrice}}元/年</view>
</view>
<view class="OrderInfoPay">
<view class=" box">
......
......@@ -33,7 +33,6 @@
label="原错误订单编号"
labelWidth="var(--fontSize280)"
value="{{ orderInfo.payId }}"
cellBoxStyle="opacity: .4;"
/>
<gl-cell
class="item-disabled"
......@@ -42,7 +41,6 @@
label="原错误订单总价"
labelWidth="var(--fontSize280)"
value="¥{{ orderInfo.finalPrice }}"
cellBoxStyle="opacity: .4;"
/>
<gl-cell
border
......@@ -486,4 +484,4 @@ labelWidth="var(--fontSize140)"
></date-select>
<van-popup show="{{ orderTypeBox }}" position="bottom" bind:close="onCloseOrderType">
<van-picker columns="{{ orderTypeList }}" show-toolbar bind:cancel="onCloseOrderType" bind:confirm="onConfirmOrderType" />
</van-popup>
\ No newline at end of file
</van-popup>
const customerTypes = [
{
name: '独裁型客户',
value: '独裁型客户'
},
{
name: '沉默型客户',
value: '沉默型客户'
},
{
name: '理智型客户',
value: '理智型客户'
},
{
name: '人际型客户',
value: '人际型客户'
},
{
name: '犹豫型客户',
value: '犹豫型客户'
},
{
name: '价格型客户',
value: '价格型客户'
},
]
export default{
customerTypes
}
\ No newline at end of file
{
name: "独裁型客户",
value: "独裁型客户",
},
{
name: "沉默型客户",
value: "沉默型客户",
},
{
name: "理智型客户",
value: "理智型客户",
},
{
name: "人际型客户",
value: "人际型客户",
},
{
name: "犹豫型客户",
value: "犹豫型客户",
},
{
name: "价格型客户",
value: "价格型客户",
},
];
export default {
customerTypes,
};
This diff could not be displayed because it is too large.
<view class="view">
<block wx:if="{{flag}}">
<block wx:if="{{dialogueList.length}}">
<scroll-view class="scroll-view" enhanced scroll-y scroll-into-view="{{toId}}" show-scrollbar="{{false}}" bindtouchstart="touchstart" bindtouchend="touchend" scroll-with-animation bindscroll="watchScrollTrack" data-event-code="dialogue">
<block wx:for="{{dialogueList}}" wx:key="index">
<view class="item {{activeId == item.text_id?'active':''}}" id="{{item.text_id}}" data-click bindtap="seekPlay" data-item="{{item}}" data-index="{{index}}">
<block wx:if="{{item.visible}}">
<view class="avatar-box">
<view class="icon">
<gl-image class="icon" webp src="/equity/reception/role-{{item.role}}.png" />
</view>
<view class="time">{{item.time}}</view>
</view>
<view class="text">
{{item.content}}
</view>
</block>
<block wx:else>
<view class="loading"></view>
</block>
</view>
<!-- 意图匹配 -->
<block wx:if="{{item.recordingCheckResultList}}">
<block wx:for="{{item.recordingCheckResultList}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="detail-box {{i.showCheckDetail?'up':'down'}}">
<view class="text-box">
<view class="btn" bindtap="switchDetail" data-index="{{index}}" data-ind="{{ind}}" data-key="showCheckDetail" data-value="{{i.showCheckDetail}}">
意图匹配
<gl-image class="arrow" webp src="/equity/date-arrow.png" />
</view>
{{i.tagGroupName}}
<view class="score">{{i.score}}分</view>
</view>
<view class="content-box">
<block wx:if="{{!i.scriptRec}}">
<view class="suggestions-box no">
<gl-image class="icon" webp src="/equity/reception/no-suggestions.png" />
暂无话术推荐
</view>
</block>
<block wx:else>
<view class="suggestions-box">
<view class="title">
<gl-image class="icon" webp src="/equity/reception/suggestions-icon.png" />
话术推荐
</view>
<view class="text">
<rich-text nodes="{{i.scriptRec}}"></rich-text>
</view>
</view>
</block>
</view>
</view>
</block>
</block>
</block>
<view class="safeAreaInset">到底了!</view>
</scroll-view>
</block>
<block wx:else>
<view class="nothing flex">
<gl-image class="icon" webp src="/equity/reception/quality-no-data.png" />
分析中,稍等...
</view>
</block>
</block>
<view class="axis-bar-area" bindtap="barSeek" hidden="{{!qualityData.length}}">
<view class="axis-bar">
<view class="progress-bar" style="height:{{progress + '%'}}"></view>
<block wx:for="{{axisList}}" wx:key="index">
<view class="axis-item {{activeId == item.text_id?'axis-active':''}}" style="top:{{item.docTop + 'px'}};">
<view class="axis-dot {{!isPlayIng && !isScrollling?'':'radius'}}" catchtap="seekPlay" data-item="{{item}}" data-scroll></view>
</view>
<block wx:if="{{!isPlayIng && !isScrollling}}">
<view class="axis-text {{activeId == item.text_id?'axis-text-active':''}}" catchtap="seekPlay" data-item="{{item}}" data-scroll style="top:{{item.top + 'px'}};">
{{item.tagGroupName}}+{{item.score}}
</view>
</block>
</block>
<view class="hide-bar">
<block wx:for="{{axisList}}" wx:key="index">
<block wx:if="{{item.inspectionConversationDetailId}}">
<view class="axis-line {{item.colorName}}" style="height:{{item.height + 20 + 'px'}};top:{{item.docTop - 10 + 'px'}};"></view>
</block>
</block>
</view>
</view>
</view>
</view>
\ No newline at end of file
<block wx:if="{{ flag }}">
<block wx:if="{{ dialogueList.length }}">
<scroll-view class="scroll-view"
enhanced
scroll-y
scroll-into-view="{{ toId }}"
show-scrollbar="{{ false }}"
bindtouchstart="touchstart"
bindtouchend="touchend"
scroll-with-animation
bindscroll="watchScrollTrack"
data-event-code="dialogue">
<block wx:for="{{ dialogueList }}" wx:key="index">
<view class="item {{ activeId == item.text_id?'active':'' }}"
id="{{ item.text_id }}"
data-click
bindtap="seekPlay"
data-item="{{ item }}"
data-index="{{ index }}">
<block wx:if="{{ item.visible }}">
<view class="avatar-box">
<view class="icon">
<gl-image class="icon"
webp
src="/equity/reception/role-{{ item.role }}.png" />
</view>
<view class="time">
{{ item.time }}
</view>
</view>
<view class="text">
{{ item.content }}
</view>
</block>
<block wx:else>
<view class="loading"></view>
</block>
</view>
<!-- 意图匹配 -->
<block wx:if="{{ item.recordingCheckResultList }}">
<block wx:for="{{ item.recordingCheckResultList }}"
wx:key="ind"
wx:for-item="i"
wx:for-index="ind">
<view class="detail-box {{ i.showCheckDetail?'up':'down' }}">
<view class="text-box">
<view class="btn"
bindtap="switchDetail"
data-index="{{ index }}"
data-ind="{{ ind }}"
data-key="showCheckDetail"
data-value="{{ i.showCheckDetail }}">
意图匹配
<gl-image class="arrow"
webp
src="/equity/date-arrow.png" />
</view>
{{ i.tagGroupName }}
<view class="score">
{{ i.score }}分
</view>
</view>
<view class="content-box">
<block wx:if="{{ !i.scriptRec }}">
<view class="suggestions-box no">
<gl-image class="icon"
webp
src="/equity/reception/no-suggestions.png" />
暂无话术推荐
</view>
</block>
<block wx:else>
<view class="suggestions-box">
<view class="title">
<gl-image class="icon"
webp
src="/equity/reception/suggestions-icon.png" />
话术推荐
</view>
<view class="text">
<rich-text nodes="{{ i.scriptRec }}"></rich-text>
</view>
</view>
</block>
</view>
</view>
</block>
</block>
</block>
<view class="safeAreaInset">
到底了!
</view>
</scroll-view>
</block>
<block wx:else>
<view class="nothing flex">
<gl-image class="icon"
webp
src="/equity/reception/quality-no-data.png" />
分析中,稍等...
</view>
</block>
</block>
<view class="axis-bar-area"
bindtap="barSeek"
hidden="{{ !qualityData.length }}">
<view class="axis-bar">
<view class="progress-bar" style="height:{{ progress + '%' }}"></view>
<block wx:for="{{ axisList }}" wx:key="index">
<view class="axis-item {{ activeId == item.text_id?'axis-active':'' }}"
style="top:{{ item.docTop + 'px' }};">
<view class="axis-dot {{ !isPlayIng && !isScrollling?'':'radius' }}"
catchtap="seekPlay"
data-item="{{ item }}"
data-scroll></view>
</view>
<block wx:if="{{ !isPlayIng && !isScrollling }}">
<view class="axis-text {{ activeId == item.text_id?'axis-text-active':'' }}"
catchtap="seekPlay"
data-item="{{ item }}"
data-scroll
style="top:{{ item.top + 'px' }};">
{{ item.tagGroupName }}+{{ item.score }}
</view>
</block>
</block>
<view class="hide-bar">
<block wx:for="{{ axisList }}" wx:key="index">
<block wx:if="{{ item.inspectionConversationDetailId }}">
<view class="axis-line {{ item.colorName }}"
style="height:{{ item.height + 20 + 'px' }};top:{{ item.docTop - 10 + 'px' }};"></view>
</block>
</block>
</view>
</view>
</view>
</view>
<view class="view">
<block wx:if="{{qualityData.length}}">
<view class="classify-wrap">
<block wx:for="{{qualityData}}" wx:key="index">
<view class="classify-item flex {{index == activeIndex?'active':''}}" bindtap="changeClassifyType" data-index="{{index}}">
<view class="title">{{item.tagGroupName}}</view>
<view class="score">{{item.formatScore}}</view>
</view>
</block>
</view>
<scroll-view class="scroll-view" enhanced scroll-y scroll-with-animation scroll-into-view="{{activeId}}">
<block wx:if="{{qualityData[activeIndex]}}">
<view class="quality-block">
<view class="title flex">
{{qualityData[activeIndex].tagGroupName}}
<view class="matched-btn flex {{qualityData[activeIndex].matchedClass}}">{{qualityData[activeIndex].matchedText}}</view>
</view>
<block wx:for="{{qualityData[activeIndex].conversationDetailDTOList}}" wx:key="index">
<block wx:if="{{item.text_id}}">
<view id="{{item.text_id}}" class="quality-item flex {{item.text_id == activeId?'active':''}}" bind:tap="seekPlay" data-item="{{item}}">
<view class="avatar-box">
<view class="icon">
<gl-image class="icon" webp src="/equity/reception/role-{{item.role}}.png" />
</view>
<view class="time">{{item.time}}</view>
</view>
<view class="text flex">{{item.content}}</view>
</view>
</block>
<block wx:if="{{item.scriptRec}}">
<view class="script-rec">
<view class="suggestions-box">
<view class="suggestions-title">
<gl-image class="icon" webp src="/equity/reception/suggestions-icon.png" />
话术推荐
</view>
<view class="text">
<rich-text nodes="{{item.scriptRec}}"></rich-text>
</view>
</view>
</view>
</block>
</block>
</view>
</block>
</scroll-view>
</block>
<block wx:else>
<view class="nothing flex">
<gl-image class="icon" webp src="/equity/reception/quality-no-data.png" />
分析中,稍等...
</view>
</block>
</view>
\ No newline at end of file
<block wx:if="{{ qualityData.length }}">
<view class="classify-wrap">
<block wx:for="{{ qualityData }}" wx:key="index">
<view class="classify-item flex {{ index == activeIndex?'active':'' }}"
bindtap="changeClassifyType"
data-index="{{ index }}">
<view class="title">
{{ item.tagGroupName }}
</view>
<view class="score">
{{ item.formatScore }}
</view>
</view>
</block>
</view>
<scroll-view class="scroll-view"
enhanced
scroll-y
scroll-with-animation
scroll-into-view="{{ activeId }}">
<block wx:if="{{ qualityData[activeIndex] }}">
<view class="quality-block">
<view class="title flex">
{{ qualityData[activeIndex].tagGroupName }}
<view class="matched-btn flex {{ qualityData[activeIndex].matchedClass }}">
{{ qualityData[activeIndex].matchedText }}
</view>
</view>
<block wx:for="{{ qualityData[activeIndex].conversationDetailDTOList }}"
wx:key="index">
<block wx:if="{{ item.text_id }}">
<view id="{{ item.text_id }}"
class="quality-item flex {{ item.text_id == activeId?'active':'' }}"
bind:tap="seekPlay"
data-item="{{ item }}">
<view class="avatar-box">
<view class="icon">
<gl-image class="icon"
webp
src="/equity/reception/role-{{ item.role }}.png" />
</view>
<view class="time">
{{ item.time }}
</view>
</view>
<view class="text flex">
{{ item.content }}
</view>
</view>
</block>
<block wx:if="{{ item.scriptRec }}">
<view class="script-rec">
<view class="suggestions-box">
<view class="suggestions-title">
<gl-image class="icon"
webp
src="/equity/reception/suggestions-icon.png" />
话术推荐
</view>
<view class="text">
<rich-text nodes="{{ item.scriptRec }}"></rich-text>
</view>
</view>
</view>
</block>
</block>
</view>
</block>
</scroll-view>
</block>
<block wx:else>
<view class="nothing flex">
<gl-image class="icon"
webp
src="/equity/reception/quality-no-data.png" />
分析中,稍等...
</view>
</block>
</view>
page {
background-color: #FAFAFA !important;
overflow: hidden;
background-color: #fafafa !important;
overflow: hidden;
}
.navigation-title {
font-weight: 500;
font-size: var(--fontSize30);
color: #282829;
line-height: var(--fontSize44);
width: var(--fontSize360);
text-align: center;
font-weight: 500;
font-size: var(--fontSize30);
color: #282829;
line-height: var(--fontSize44);
text-align: center;
}
.bg {
width: 100%;
height: 800rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/reception/reception-bg.webp') no-repeat;
background-size: 100% var(--fontSize800);
position: fixed;
left: 0;
top: 0;
z-index: -1;
width: 100%;
height: 800rpx;
background: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/reception/reception-bg.webp") no-repeat;
background-size: 100% var(--fontSize800);
position: fixed;
left: 0;
top: 0;
z-index: -1;
}
.reception-wrap {
padding: 0 var(--fontSize28);
.reception-info {
width: 100%;
height: var(--fontSize152);
background: #FFFFFF;
border-radius: var(--fontSize28);
margin: var(--fontSize12) 0 var(--fontSize28) 0;
}
.reception-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 var(--fontSize16) 0;
}
.reception-types {
display: flex;
align-items: center;
.type {
width: var(--fontSize144);
line-height: var(--fontSize40);
padding: var(--fontSize10) 0;
background: #FFFFFF;
border-radius: var(--fontSize8);
margin-right: var(--fontSize16);
font-size: var(--fontSize28);
color: #5A5E66;
font-weight: 400;
text-align: center;
.avg {
font-size: var(--fontSize20);
font-family: 'numberNor';
}
}
.active {
font-weight: 600;
color: #fff;
background: #347bff;
}
}
.reception-operate {
display: flex;
align-items: center;
.img {
width: var(--fontSize52);
height: var(--fontSize52);
}
.share {
margin-right: var(--fontSize12)
}
.audio-wrap {
width: var(--fontSize140);
height: var(--fontSize60);
display: flex;
align-items: center;
background: #FFFFFF;
padding: var(--fontSize4);
border-radius: var(--fontSize28);
box-sizing: border-box;
.time {
font-weight: 400;
font-size: var(--fontSize26);
color: #757980;
margin-left: var(--fontSize4);
}
}
}
padding: 0 var(--fontSize28);
.reception-info {
width: 100%;
height: var(--fontSize152);
background: #ffffff;
border-radius: var(--fontSize28);
margin: var(--fontSize12) 0 var(--fontSize28) 0;
}
.reception-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 var(--fontSize16) 0;
}
.reception-types {
display: flex;
align-items: center;
.type {
width: var(--fontSize144);
line-height: var(--fontSize40);
padding: var(--fontSize10) 0;
background: #ffffff;
border-radius: var(--fontSize8);
margin-right: var(--fontSize16);
font-size: var(--fontSize28);
color: #5a5e66;
font-weight: 400;
text-align: center;
.avg {
font-size: var(--fontSize20);
font-family: "numberNor";
}
}
.active {
font-weight: 600;
color: #fff;
background: #347bff;
}
}
.reception-operate {
display: flex;
align-items: center;
.img {
width: var(--fontSize52);
height: var(--fontSize52);
}
.share {
margin-right: var(--fontSize12);
}
.audio-wrap {
width: var(--fontSize140);
height: var(--fontSize60);
display: flex;
align-items: center;
background: #ffffff;
padding: var(--fontSize4);
border-radius: var(--fontSize28);
box-sizing: border-box;
.time {
font-weight: 400;
font-size: var(--fontSize26);
color: #757980;
margin-left: var(--fontSize4);
}
}
}
}
.type-wrap {
position: relative;
.component-item {
// width: calc(100% - var(--fontSize56));
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
// left: var(--fontSize28);
transition: all 0.15s;
}
.hide {
opacity: 0;
z-index: -1;
}
position: relative;
.component-item {
// width: calc(100% - var(--fontSize56));
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
// left: var(--fontSize28);
transition: all 0.15s;
}
.hide {
opacity: 0;
z-index: -1;
}
}
.violation-btn-box {
padding: 40rpx 64rpx;
.violation-btn {
color: #ffffff;
font-size: 32rpx;
font-weight: 500;
height: 88rpx;
border-radius: 12rpx;
background: #347bff;
line-height: 88rpx;
text-align: center;
}
}
\ No newline at end of file
padding: 40rpx 64rpx;
.violation-btn {
color: #ffffff;
font-size: 32rpx;
font-weight: 500;
height: 88rpx;
border-radius: 12rpx;
background: #347bff;
line-height: 88rpx;
text-align: center;
}
}
<!--packageEquity/pages/receptionDetail/receptionDetail.wxml-->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="true" navStyle="{{'background-color: rgba(0,0,0,0);box-shadow:none;' }}" bindback="back">
<view class="navigation-title text-hide ">{{record.staticDate}}{{record.employeeName}}接待</view>
<glsx-privacy appletName="生意助手员工版"
bind:agreeClick="agreeClick"
bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header"
bindnavbarReady="navbarReady"
showBack="true"
navStyle="{{ 'background-color: rgba(0,0,0,0);box-shadow:none;' }}"
bindback="back">
<view class="navigation-title text-hide ">
{{ record.staticDate }}{{ record.employeeName }}接待
</view>
</navigation-bar>
<view class="bg"></view>
<view class="reception-wrap" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="reception-info" wx:if="{{record}}">
<record-item record="{{record}}" hideScore="{{record.hideScore}}" showReason="{{record.violationReason}}" orderAmount="{{record.orderAmount}}"></record-item>
</view>
<view class="reception-nav">
<view class="reception-types">
<block wx:for="{{typeLists}}" wx:key="index">
<view class="type {{activeIndex==index?'active':''}}" data-index="{{index}}" bind:tap="changeType">{{item}}</view>
</block>
</view>
<view class="reception-operate">
<gl-image class="img share" webp src="/equity/share-icon.png" bind:tap="share" />
<view class="audio-wrap" bind:tap="onHandle">
<gl-image class="img" webp src="/equity/play.png" wx:if="{{status=='pause'||status=='ending'}}" />
<gl-image class="img" webp src="/equity/stop.png" wx:else />
<view class="time">{{currentTime}}</view>
</view>
</view>
</view>
<view class="reception-wrap"
style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="reception-info" wx:if="{{ record }}">
<record-item record="{{ record }}"
hideScore="{{ record.hideScore }}"
showReason="{{ record.violationReason }}"
orderAmount="{{ record.orderAmount }}"></record-item>
</view>
<view class="reception-nav">
<view class="reception-types">
<block wx:for="{{ typeLists }}" wx:key="index">
<view class="type {{ activeIndex==index?'active':'' }}"
data-index="{{ index }}"
bind:tap="changeType">
{{ item }}
</view>
</block>
</view>
<view class="reception-operate">
<gl-image class="img share"
webp
src="/equity/share-icon.png"
bind:tap="share" />
<view class="audio-wrap" bind:tap="onHandle">
<gl-image class="img"
webp
src="/equity/play.png"
wx:if="{{ status=='pause' || status=='ending' }}" />
<gl-image class="img"
webp
src="/equity/stop.png"
wx:else />
<view class="time">
{{ currentTime }}
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{ showPlayControl }}"
class="type-wrap"
style="height:calc(100vh - {{ receptionWrapHeight }})">
<block wx:if="{{ receptionWrapHeight }}">
<view class="component-item {{ activeIndex != 0 ?'hide':'' }}">
<dialogue id="dialogue"
batchId="{{ record.batchId }}"
recordData="{{ record }}"
qualityData="{{ qualityData }}"></dialogue>
</view>
<view class="component-item {{ activeIndex != 1?'hide':'' }}">
<quality id="quality" qualityData="{{ qualityData }}"></quality>
</view>
</block>
</view>
<view class="type-wrap" style="height:calc(100vh - {{receptionWrapHeight}})">
<block wx:if="{{receptionWrapHeight}}">
<view class="component-item {{activeIndex != 0 ?'hide':''}}">
<dialogue id="dialogue" batchId="{{record.batchId}}" recordData="{{record}}" qualityData="{{qualityData}}"></dialogue>
</view>
<view class="component-item {{activeIndex != 1?'hide':''}}">
<quality id="quality" qualityData="{{qualityData}}"></quality>
</view>
</block>
</view>
\ No newline at end of file
// packageEquity/pages/receptionDetail/components/quality/index.js
import api from "../../../../carEquityApi";
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import watchScrollMixin from '../watchScrollMixin'
const IMG_URL = "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/";
import watchScrollMixin from "../watchScrollMixin";
Component({
behaviors: [watchScrollMixin],
/**
* 组件的属性列表
*/
properties: {
batchId: Number,
defenceResultFlag: Number
},
lifetimes: {
ready() {
this.getReceptionResult()
}
},
/**
* 组件的初始数据
*/
data: {
scrollTop: '',
IMG_URL,
activeIndex: 0,
list: '',
isShow: false
},
behaviors: [watchScrollMixin],
/**
* 组件的属性列表
*/
properties: {
batchId: Number,
defenceResultFlag: Number,
},
lifetimes: {
ready() {
this.getReceptionResult();
},
},
/**
* 组件的初始数据
*/
data: {
scrollTop: "",
IMG_URL,
activeIndex: 0,
list: "",
isShow: false,
},
/**
* 组件的方法列表
*/
methods: {
changeAttackType(e) {
let {
index
} = e.currentTarget.dataset
this.setData({
activeIndex: index,
scrollTop: 0
})
this.setTrackData('offense_and_defense_toggle')
},
getReceptionResult() {
let {
list,
batchId
} = this.data;
let params = {
batchId
}
api.getDefenceDetail(params).then(res => {
if (res.data) {
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
avgDefence: res.data ? parseInt(res.data.avgDefence) : ''
})
res.data.detailList.forEach(item => {
item.highlight = item.highlight && JSON.parse(item.highlight)
item.highlight.forEach((high) => {
if (item.suggestionsForImprovement) {
item.suggestionsForImprovement = item.suggestionsForImprovement.replace(high, function (match) {
return '<span style="color: #347BFF;font-weight: 500">' + match + "</span>"
})
}
if (item.refineTheExpression) {
item.refineTheExpression = item.refineTheExpression.replace(high, function (match) {
return '<span style="color: #347BFF; font-weight: 500;">' + match + "</span>"
})
}
})
})
this.setData({
})
}
this.setData({
isShow: true,
list: res.data ? res.data : ''
})
})
},
lookMore() {
let thisPage = wx.$router.getPageInstance();
let {
activeIndex,
list
} = this.data;
this.setTrackData('go_to_dialogue_view')
let mergedOffset = list.detailList[activeIndex].mergedOffset;
thisPage.seek(mergedOffset)
thisPage.setData({
activeIndex: 0,
avgDefence: ''
}, () => {
thisPage.dialogueRef().toDefenceItem(mergedOffset)
thisPage.play()
})
},
practiceHandle() {
},
/**设置埋点数据 */
setTrackData(code) {
let {
batchId
} = this.data
wx.$track.setTrackData(0, code, {
batchId
})
}
}
})
\ No newline at end of file
/**
* 组件的方法列表
*/
methods: {
changeAttackType(e) {
let { index } = e.currentTarget.dataset;
this.setData({
activeIndex: index,
scrollTop: 0,
});
this.setTrackData("offense_and_defense_toggle");
},
getReceptionResult() {
let { list, batchId } = this.data;
let params = {
batchId,
};
api.getDefenceDetail(params).then((res) => {
if (res.data) {
let thisPage = wx.$router.getPageInstance();
thisPage.setData({
avgDefence: res.data ? parseInt(res.data.avgDefence) : "",
});
res.data.detailList.forEach((item) => {
item.highlight = item.highlight && JSON.parse(item.highlight);
item.highlight.forEach((high) => {
if (item.suggestionsForImprovement) {
item.suggestionsForImprovement = item.suggestionsForImprovement.replace(high, function (match) {
return '<span style="color: #347BFF;font-weight: 500">' + match + "</span>";
});
}
if (item.refineTheExpression) {
item.refineTheExpression = item.refineTheExpression.replace(high, function (match) {
return '<span style="color: #347BFF; font-weight: 500;">' + match + "</span>";
});
}
});
});
this.setData({});
}
this.setData({
isShow: true,
list: res?.data || {},
});
});
},
lookMore() {
let thisPage = wx.$router.getPageInstance();
let { activeIndex, list } = this.data;
this.setTrackData("go_to_dialogue_view");
let mergedOffset = list.detailList[activeIndex].mergedOffset;
thisPage.seek(mergedOffset);
thisPage.setData(
{
activeIndex: 0,
avgDefence: "",
},
() => {
thisPage.dialogueRef().toDefenceItem(mergedOffset);
thisPage.play();
},
);
},
practiceHandle() {},
/**设置埋点数据 */
setTrackData(code) {
let { batchId } = this.data;
wx.$track.setTrackData(0, code, {
batchId,
});
},
},
});
<!--packageEquity/pages/receptionDetail/components/attack/index.wxml-->
<view class="attack-wrap">
<block wx:if="{{isShow}}">
<block wx:if="{{list&&list.detailList&&list.detailList.length>0}}">
<scroll-view scroll-x class="scroll-view" wx:if="{{list&&list.detailList&&list.detailList.length>0}}">
<view class="attack-bout {{list.detailList.length>4?'attach-list-scroll':''}}">
<view class="attack-list {{activeIndex==index?'active':''}}" wx:for="{{list.detailList}}" data-index="{{index}}" bind:tap="changeAttackType">
<view class="title">攻防回合{{index+1}}</view>
<view class="score">{{item.defScore}}<text>分</text></view>
</view>
</view>
</scroll-view>
<scroll-view scroll-y class="attack-content" scroll-top="{{scrollTop}}" bindscroll="watchScrollTrack" data-event-code="offense_and_defense">
<view class="content">
<view class="left attack">
攻
</view>
<view class="text">{{list.detailList[activeIndex].question}}</view>
</view>
<view class="content">
<view class="left defend">
防
</view>
<view class="text">{{list.detailList[activeIndex].answer}}</view>
</view>
<view class="verbal-wrap">
<view class="verbal-wrap-content">
<view class="title">
<gl-image class="improve" webp src="/improve.png" />话术建议
</view>
<view class="suggest-content">
<rich-text nodes="{{list.detailList[activeIndex].suggestionsForImprovement}}"></rich-text>
</view>
<view class="line"></view>
<view class="title">
<gl-image class="improve" webp src="/polish.png" />润色表达
</view>
<view class="suggest-content">
<rich-text nodes="{{list.detailList[activeIndex].refineTheExpression}}"></rich-text>
</view>
</view>
</view>
<view class="footer">
<view class="more" bind:tap="lookMore" >去对话查看</view>
</view>
<view class="safeAreaInset"></view>
</scroll-view>
</block>
<block wx:else>
<view class="no-data">
<gl-image class="no-data-img" webp src="/equity/empty.png" />
<view class="list-not"> {{
defenceResultFlag === 1 ||
defenceResultFlag === 0 ||
defenceResultFlag === 4
? "数据分析中,请稍等"
: defenceResultFlag === 3
? "未发现攻防"
: "未进行攻防识别"
}}</view>
</view>
</block>
</block>
</view>
\ No newline at end of file
<block wx:if="{{ isShow }}">
<block wx:if="{{ list && list.detailList && list.detailList.length>0 }}">
<scroll-view scroll-x
class="scroll-view"
wx:if="{{ list && list.detailList && list.detailList.length>0 }}">
<view class="attack-bout {{ list.detailList.length>4?'attach-list-scroll':'' }}">
<view class="attack-list {{ activeIndex==index?'active':'' }}"
wx:for="{{ list.detailList }}"
data-index="{{ index }}"
bind:tap="changeAttackType">
<view class="title">
攻防回合{{ index+1 }}
</view>
<view class="score">
{{ item.defScore }}<text>分</text>
</view>
</view>
</view>
</scroll-view>
<scroll-view scroll-y
class="attack-content"
scroll-top="{{ scrollTop }}"
bindscroll="watchScrollTrack"
data-event-code="offense_and_defense">
<view class="content">
<view class="left attack">
攻
</view>
<view class="text">
{{ list.detailList[activeIndex].question }}
</view>
</view>
<view class="content">
<view class="left defend">
防
</view>
<view class="text">
{{ list.detailList[activeIndex].answer }}
</view>
</view>
<view class="verbal-wrap">
<view class="verbal-wrap-content">
<view class="title">
<gl-image class="improve"
webp
src="/improve.png" />
话术建议
</view>
<view class="suggest-content">
<rich-text nodes="{{ list.detailList[activeIndex].suggestionsForImprovement }}"></rich-text>
</view>
<view class="line"></view>
<view class="title">
<gl-image class="improve"
webp
src="/polish.png" />
润色表达
</view>
<view class="suggest-content">
<rich-text nodes="{{ list.detailList[activeIndex].refineTheExpression }}"></rich-text>
</view>
</view>
</view>
<view class="footer">
<view class="more" bind:tap="lookMore">
去对话查看
</view>
</view>
<view class="safeAreaInset"></view>
</scroll-view>
</block>
<block wx:else>
<view class="no-data">
<gl-image class="no-data-img"
webp
src="/equity/empty.png" />
<view class="list-not">
{{ defenceResultFlag === 1 || defenceResultFlag === 0 || defenceResultFlag === 4 ? "数据分析中,请稍等" : defenceResultFlag === 3 ? "未发现攻防" : "未进行攻防识别" }}
</view>
</view>
</block>
</block>
</view>
/* packageEquity/pages/receptionDetail/receptionDetail.wxss */
page {
background-color: #FAFAFA !important;
overflow: hidden;
background-color: #fafafa !important;
overflow: hidden;
}
.navigation-title {
font-weight: 500;
font-size: var(--fontSize30);
color: #282829;
line-height: var(--fontSize44);
width: var(--fontSize360);
text-align: center;
font-weight: 500;
font-size: var(--fontSize30);
color: #282829;
line-height: var(--fontSize44);
text-align: center;
}
.bg {
width: 100%;
height: var(--fontSize800);
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/reception-nav--bg.png') no-repeat;
background-size: 100% var(--fontSize800);
position: fixed;
left: 0;
top: 0;
z-index: -1;
width: 100%;
height: var(--fontSize800);
background: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/reception-nav--bg.png") no-repeat;
background-size: 100% var(--fontSize800);
position: fixed;
left: 0;
top: 0;
z-index: -1;
}
.reception-wrap {
padding: 0 var(--fontSize28);
.reception-info {
width: 100%;
height: var(--fontSize322);
background: #FFFFFF;
border-radius: var(--fontSize28);
margin: var(--fontSize12) 0 var(--fontSize28) 0;
}
.reception-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 var(--fontSize16) 0;
}
.reception-types {
display: flex;
align-items: center;
.type {
width: var(--fontSize144);
line-height: var(--fontSize40);
padding: var(--fontSize10) 0;
background: #FFFFFF;
border-radius: var(--fontSize8);
margin-right: var(--fontSize16);
font-size: var(--fontSize28);
color: #5A5E66;
font-weight: 400;
text-align: center;
.avg {
font-size: var(--fontSize20);
font-family: 'numberNor';
}
}
.active {
font-weight: 600;
color: #347BFF;
background: #347bff1a;
}
}
.reception-operate {
display: flex;
align-items: center;
.img {
width: var(--fontSize52);
height: var(--fontSize52);
}
.share {
margin-right: var(--fontSize12)
}
.audio-wrap {
width: var(--fontSize140);
height: var(--fontSize60);
display: flex;
align-items: center;
background: #FFFFFF;
padding: var(--fontSize4);
border-radius: var(--fontSize28);
box-sizing: border-box;
.time {
font-weight: 400;
font-size: var(--fontSize26);
color: #757980;
margin-left: var(--fontSize4);
}
}
}
padding: 0 var(--fontSize28);
.reception-info {
width: 100%;
background: #ffffff;
border-radius: var(--fontSize28);
margin: var(--fontSize12) 0 var(--fontSize28) 0;
}
.reception-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 var(--fontSize16) 0;
}
.reception-types {
display: flex;
align-items: center;
.type {
width: var(--fontSize144);
line-height: var(--fontSize40);
padding: var(--fontSize10) 0;
background: #ffffff;
border-radius: var(--fontSize8);
margin-right: var(--fontSize16);
font-size: var(--fontSize28);
color: #5a5e66;
font-weight: 400;
text-align: center;
.avg {
font-size: var(--fontSize20);
font-family: "numberNor";
}
}
.active {
font-weight: 600;
color: #347bff;
background: #347bff1a;
}
}
.reception-operate {
display: flex;
align-items: center;
.img {
width: var(--fontSize52);
height: var(--fontSize52);
}
.share {
margin-right: var(--fontSize12);
}
.audio-wrap {
width: var(--fontSize140);
height: var(--fontSize60);
display: flex;
align-items: center;
background: #ffffff;
padding: var(--fontSize4);
border-radius: var(--fontSize28);
box-sizing: border-box;
.time {
font-weight: 400;
font-size: var(--fontSize26);
color: #757980;
margin-left: var(--fontSize4);
}
}
}
}
.type-wrap {
padding: 0 var(--fontSize28);
padding: 0 var(--fontSize28);
}
.violation-btn-box {
padding: 40rpx 64rpx;
.violation-btn {
color: #ffffff;
font-size: 32rpx;
font-weight: 500;
height: 88rpx;
border-radius: 12rpx;
background: #347bff;
line-height: 88rpx;
text-align: center;
}
}
\ No newline at end of file
padding: 40rpx 64rpx;
.violation-btn {
color: #ffffff;
font-size: 32rpx;
font-weight: 500;
height: 88rpx;
border-radius: 12rpx;
background: #347bff;
line-height: 88rpx;
text-align: center;
}
}
<!--packageEquity/pages/receptionDetail/receptionDetail.wxml-->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="true" navStyle="{{'background-color: rgba(0,0,0,0);box-shadow:none;' }}" bindback="back">
<view class="navigation-title text-hide ">{{record.staticDate}}{{record.employeeName}}接待</view>
<glsx-privacy appletName="生意助手员工版"
bind:agreeClick="agreeClick"
bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header"
bindnavbarReady="navbarReady"
showBack="true"
navStyle="{{ 'background-color: rgba(0,0,0,0);box-shadow:none;' }}"
bindback="back">
<view class="navigation-title text-hide ">
{{ record.staticDate }}{{ record.employeeName }}接待
</view>
</navigation-bar>
<view class="bg"></view>
<view class="reception-wrap" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="reception-info" wx:if="{{record}}">
<record-item record="{{record}}" hideScore="{{record.hideScore}}" showReason="{{record.violationReason}}"></record-item>
</view>
<view class="reception-nav">
<view class="reception-types">
<block wx:for="{{typeLists}}" wx:key="index">
<view class="type {{activeIndex==index?'active':''}}" data-index="{{index}}" bind:tap="changeType">{{item}}
<text class="avg" wx:if="{{activeIndex==index&&avgDefence!==''}}" >{{avgDefence}}分</text>
</view>
</block>
</view>
<view class="reception-operate">
<gl-image class="img share" webp src="/equity/share-icon.png" bind:tap="share" />
<view class="audio-wrap" bind:tap="onHandle">
<gl-image class="img" webp src="/equity/play.png" wx:if="{{status=='pause'||status=='ending'}}" />
<gl-image class="img" webp src="/equity/stop.png" wx:else />
<view class="time">{{currentTime}}</view>
</view>
</view>
</view>
<view class="reception-wrap"
style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="reception-info" wx:if="{{ record }}">
<record-item record="{{ record }}"
showRecordProgress="{{ showRecordProgress }}"
hideScore="{{ record.hideScore }}"
showReason="{{ record.violationReason }}"></record-item>
</view>
<view class="reception-nav">
<view class="reception-types">
<block wx:for="{{ typeLists }}" wx:key="index">
<view class="type {{ activeIndex==index?'active':'' }}"
data-index="{{ index }}"
bind:tap="changeType">
{{ item }}<text class="avg" wx:if="{{ activeIndex==index && avgDefence!=='' }}">{{ avgDefence }}分</text>
</view>
</block>
</view>
<view class="reception-operate">
<gl-image class="img share"
webp
src="/equity/share-icon.png"
bind:tap="share" />
<view class="audio-wrap" bind:tap="onHandle">
<gl-image class="img"
webp
src="/equity/play.png"
wx:if="{{ status=='pause' || status=='ending' }}" />
<gl-image class="img"
webp
src="/equity/stop.png"
wx:else />
<view class="time">
{{ currentTime }}
</view>
</view>
</view>
</view>
</view>
<view class="type-wrap" style="height:calc(100vh - {{receptionWrapHeight}})">
<block wx:if="{{receptionWrapHeight && activeIndex != -1}}">
<view hidden="{{activeIndex ==1||activeIndex == 2}}" style="height:calc(100vh - {{receptionWrapHeight}})">
<dialogue id="dialogue" bindplay="play" bindpause="onPause" recordData="{{record}}" batchId="{{record.batchId}}" autoPlayConfig="{{autoPlayConfig}}"></dialogue>
</view>
<quality id="quality" wx:if="{{activeIndex==1}}" batchId="{{record.batchId}}"></quality>
<attack wx:elif="{{activeIndex==2}}" defenceResultFlag="{{record.defenceResultFlag}}" batchId="{{record.batchId}}"></attack>
</block>
<view class="type-wrap" style="height:calc(100vh - {{ receptionWrapHeight }})">
<block wx:if="{{ receptionWrapHeight && activeIndex != -1 }}">
<view hidden="{{ activeIndex ==1 || activeIndex == 2 }}"
style="height:calc(100vh - {{ receptionWrapHeight }})">
<dialogue id="dialogue"
bindplay="play"
bindpause="onPause"
recordData="{{ record }}"
batchId="{{ record.batchId }}"
autoPlayConfig="{{ autoPlayConfig }}"></dialogue>
</view>
<quality id="quality"
wx:if="{{ activeIndex==1 }}"
batchId="{{ record.batchId }}"></quality>
<attack wx:elif="{{ activeIndex==2 }}"
defenceResultFlag="{{ record.defenceResultFlag }}"
batchId="{{ record.batchId }}"></attack>
</block>
</view>
<block wx:if="{{showViolationBtn && (userInfo.isSuper || userInfo.loginRole == 3 || userInfo.loginRole == 6)}}">
<view class="violation-btn-box">
<view class="violation-btn" bindtap="violationPopupToggle">去确认</view>
</view>
<block wx:if="{{ showViolationBtn && (userInfo.isSuper || userInfo.loginRole == 3 || userInfo.loginRole == 6) }}">
<view class="violation-btn-box">
<view class="violation-btn" bindtap="violationPopupToggle">
去确认
</view>
</view>
</block>
<violation-popup model:show="{{showViolationPopup}}" batchId="{{record.batchId}}"></violation-popup>
\ No newline at end of file
<violation-popup model:show="{{ showViolationPopup }}"
batchId="{{ record.batchId }}"></violation-popup>
<!--packageEquity/pages/receptionRecords/receptionRecords.wxml-->
<wxs src="../../index.wxs" module="filter" />
<block wx:if="{{showScreen}}">
<navigation-bar showBack class="navigation-header" showWhiteMenu bindback="containerBack" navStyle="background-color:#fff;box-shadow:none;">筛选</navigation-bar>
<block wx:if="{{ showScreen }}">
<navigation-bar showBack
class="navigation-header"
showWhiteMenu
bindback="containerBack"
navStyle="background-color:#fff;box-shadow:none;">
筛选
</navigation-bar>
</block>
<block wx:else>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack navStyle="{{'background-color: #FFFFFF;box-shadow:none;' }}" bindback="back">
<view class="navigation-title">
<view class="navigation-title-text text-hide">{{navBarTitle}}</view>
</view>
</navigation-bar>
<navigation-bar class="navigation-header"
bindnavbarReady="navbarReady"
showBack
navStyle="{{ 'background-color: #FFFFFF;box-shadow:none;' }}"
bindback="back">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
{{ navBarTitle }}
</view>
</view>
</navigation-bar>
</block>
<view class="records-page" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="screen-box">
<view>
<!-- <text class="title">接待记录</text> -->
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text>
</view>
<view bindtap="showScreenPop">
<text class="text">筛选</text>
<gl-image webp src="/equity/screen-icon.png" />
</view>
</view>
<block wx:if="{{hideScore}}">
<view class="tab-box">
<record-tab tabList="{{recordTabList}}" bindclick="recordTabClick" defaultIndex="{{tabIndex}}"></record-tab>
</view>
</block>
<scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshListData" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize80));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="box-content {{!filter.isShowEmpty(listData) ? 'empty-contant' : ''}}">
<block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="date-section">
<view class="date">{{item.staticDateStr}}</view>
<block wx:if="{{!hideScore}}">
<scroll-view scroll-x show-scrollbar="{{false}}" class="static">
<view class="static-warp">
<view>
<text class="summary-item">交付量 {{item.deliveryVolume}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item">触客数 {{item.customerContacts}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterUpgrade ? 'blue-blod' : ''}}" data-type="upgrade" bindtap="filterItemData">升级 {{item.upgrades}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
</view>
</view>
</scroll-view>
</block>
</view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="subIndex" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bind:tap="goto" data-record="{{record}}">
<view class="record-card-top">
<text class="round-dot" style="font-size: {{subIndex + 1 > 99 ? 'var(--fontSize16)' : 'var(--fontSize20)'}};">{{subIndex + 1}}</text>
<view class="card-line"></view>
</view>
<view class="card-item" wx:key="subIndex">
<record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}" hideScore="{{hideScore}}"></record-item>
</view>
</view>
</block>
</block>
<block wx:if="{{nothing}}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:if="{{!filter.isShowEmpty(listData) && loaded}}">
<empty-data />
</block>
</view>
</scroll-view>
<view class="records-page"
style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="screen-box">
<view>
<!-- <text class="title">接待记录</text> -->
<text class="name text-hide">{{ searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 ? userInfo.default4SStoreInfo.merchantName : '全部门店' }}</text>
</view>
<view bindtap="showScreenPop">
<text class="text">筛选</text><gl-image webp src="/equity/screen-icon.png" />
</view>
</view>
<block wx:if="{{ hideScore }}">
<view class="tab-box">
<record-tab tabList="{{ recordTabList }}"
bindclick="recordTabClick"
defaultIndex="{{ tabIndex }}"></record-tab>
</view>
</block>
<scroll-view scroll-y
class="list-box"
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="refreshListData"
bindscrolltolower="onBottomRefresh"
style="height: calc(100% - var(--fontSize80));"
scroll-top="{{ scrollTop }}"
refresher-threshold="104"
refresher-triggered="{{ triggered }}">
<view class="box-content {{ !filter.isShowEmpty(listData) ? 'empty-contant' : '' }}">
<block wx:if="{{ filter.isShowEmpty(listData) }}">
<block wx:for="{{ listData }}"
wx:key="date"
wx:if="{{ item.receptionStaticInfoDTOList.length }}">
<view class="date-section">
<view class="date">
{{ item.staticDateStr }}
</view>
<block wx:if="{{ !hideScore }}">
<scroll-view scroll-x
show-scrollbar="{{ false }}"
class="static">
<view class="static-warp">
<view>
<text class="summary-item">交付量 {{ item.deliveryVolume }}</text><text class="line"></text>
</view>
<view>
<text class="summary-item">触客数 {{ item.customerContacts }}</text><text class="line"></text>
</view>
<view>
<text class="summary-item blue {{ isFilterUpgrade ? 'blue-blod' : '' }}"
data-type="upgrade"
bindtap="filterItemData">升级 {{ item.upgrades }}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{ isFilterDefeat ? 'blue-blod' : '' }}"
data-type="defeat"
bindtap="filterItemData">战败 {{ item.losses }}</text>
</view>
</view>
</scroll-view>
</block>
</view>
<block wx:for="{{ item.receptionStaticInfoDTOList }}"
wx:key="subIndex"
wx:for-index="subIndex"
wx:for-item="record">
<view class="record-card"
bind:tap="goto"
data-record="{{ record }}">
<view class="record-card-top">
<text class="round-dot"
style="font-size: {{ subIndex + 1 > 99 ? 'var(--fontSize16)' : 'var(--fontSize20)' }};">{{ subIndex + 1 }}</text>
<view class="card-line"></view>
</view>
<view class="card-item" wx:key="subIndex">
<record-item record="{{ record }}"
showEmployeeName="{{ showEmployeeName }}"
isShowDefeatBtn="{{ isShowDefeatBtn }}"
hideScore="{{ hideScore }}"></record-item>
</view>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">
到底了~
</view>
</block>
</block>
<block wx:if="{{ !filter.isShowEmpty(listData) && loaded }}">
<empty-data />
</block>
</view>
</scroll-view>
</view>
<page-container show="{{ show_reception_confirm }}" duration="{{ 0 }}" overlay="{{ false }}" bind:afterleave="containerBack">
<view wx:if="{{ showReceptionRendering }}">
<reception-screen show="{{ show_reception_confirm }}" isFilterDefeat="{{isFilterDefeat}}" isFilterUpgrade="{{isFilterUpgrade}}" userInfo="{{ userInfo }}" maxDayRange="{{3}}" maxDayRangeType="month" navBarHeight="{{ navBarHeight }}" bindconfirm="searchScreen" />
</view>
</page-container>
\ No newline at end of file
<page-container show="{{ show_reception_confirm }}"
duration="{{ 0 }}"
overlay="{{ false }}"
bind:afterleave="containerBack">
<view wx:if="{{ showReceptionRendering }}">
<reception-screen show="{{ show_reception_confirm }}"
isFilterDefeat="{{ isFilterDefeat }}"
isFilterUpgrade="{{ isFilterUpgrade }}"
userInfo="{{ userInfo }}"
maxDayRange="{{ 3 }}"
maxDayRangeType="month"
navBarHeight="{{ navBarHeight }}"
bindconfirm="searchScreen" />
</view>
</page-container>
// packageStudyCenter/pages/longCourse/longCourse.js
import api from '~/packageStudyCenter/api'
import commonApi from '~/api/api'
const dayjs = require('dayjs')
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import api from "~/packageStudyCenter/api";
import commonApi from "~/api/api";
const dayjs = require("dayjs");
const IMG_URL = "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/";
const statusMap = {
1: '未学习',
2: '未完成',
3: '待考核',
4: '未通过',
5: '已完成'
1: "未学习",
2: "未完成",
3: "待考核",
4: "未通过",
5: "已完成",
};
Page({
data: {
IMG_URL,
courseList: [],
rowData: {},
completeStatus: null,
punishType: null,
countdown: {
days: 0,
hours: 0,
minutes: 0,
seconds: 0
},
isTimeout: false,
timer: null,
statusMap,
progressWidth: '0',
progressText: '0'
},
onLoad(options) {
const { row } = options;
const rowData = JSON.parse(decodeURIComponent(row))
this.setData({
rowData,
'rowData._taskDeadline': rowData?.taskDeadline ? this.formatTime(rowData.taskDeadline, 'YYYY-MM-DD HH:mm') : '',
'rowData._finishDate': rowData?.finishDate ? this.formatTime(rowData.finishDate, 'YYYY-MM-DD HH:mm') : '',
completeStatus: options.completeStatus,
punishType: options.punishType
});
if (!this.data.rowData.taskDeadline) {
this.setData({
'rowData.taskDeadline': rowData.finishTime
});
}
// 处理进度条数据
this.processProgressData();
if (options.from === 'service') {
this.getLongCourseDetail(rowData.detailId, rowData.id);
} else {
this.getLongCourseDetail(rowData.id);
}
if (this.data.completeStatus == 0) {
this.initCountdown();
}
},
onUnload() {
// 清除定时器
if (this.data.timer) {
clearInterval(this.data.timer);
}
},
// 处理进度条数据
processProgressData() {
const progress = this.data.rowData.taskProgress || 0;
const progressWidth = `${Math.floor(progress)}%`;
this.setData({
progressWidth,
progressText: progressWidth.toString()
});
},
// 格式化时间
formatTime(time, formatStr) {
if (!time) return '-';
return dayjs(time).format(formatStr);
},
async getLongCourseDetail(id, boxId) {
const params = { id };
if (boxId) {
params.boxId = boxId;
}
try {
// 这里替换为实际的小程序API调用
const res = await api.getLongCourseDetail(params);
this.setData({ courseList: res.data.courseList || [] });
} catch (error) {
console.error('获取课程详情失败:', error);
}
},
initCountdown() {
// 清除旧定时器
if (this.data.timer) {
clearInterval(this.data.timer);
}
// 兼容rowData未加载时
if (!this.data.rowData || !this.data.rowData.taskDeadline) {
this.setData({
isTimeout: false,
countdown: { days: 0, hours: 0, minutes: 0, seconds: 0 }
});
return;
}
const updateCountdown = () => {
const now = dayjs();
const deadline = dayjs(this.data.rowData.taskDeadline);
const diff = deadline.diff(now, 'second');
if (diff <= 0) {
this.setData({
isTimeout: true,
countdown: { days: 0, hours: 0, minutes: 0, seconds: 0 }
});
if (this.data.timer) {
clearInterval(this.data.timer);
this.setData({ timer: null });
}
} else {
let seconds = diff;
const days = Math.floor(seconds / (24 * 3600));
seconds = seconds % (24 * 3600);
const hours = Math.floor(seconds / 3600);
seconds = seconds % 3600;
const minutes = Math.floor(seconds / 60);
seconds = seconds % 60;
this.setData({
isTimeout: false,
countdown: { days, hours, minutes, seconds }
});
}
};
updateCountdown();
const timer = setInterval(updateCountdown, 1000);
this.setData({ timer });
},
startStudy(e) {
const item = e.currentTarget.dataset.item
let userInfo = wx.$util.getUserInfo()
// 埋点 推荐课程
wx.$track.setTrackData(0, 'recommend_course', {}, '', userInfo?.sceneType)
commonApi.findBeiSenSSOToken({}).then(res => {
const beisenToken = res.data;
if (beisenToken) {
const COURSE_ID = item?.courseId;
const baseUrl = 'https://cloud.italent.cn/PageHome/Index';
const params = {
product: 'Learning',
keyName: 'Nusion',
pageCode: 'LearningCourseTraineeDetailPage',
appCode: 'Learning',
id: COURSE_ID
};
this.jumpUrl = ''
const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`)
.join('&');
// this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`);
const tokenUrl = beisenToken
wx.$router.jumpH5(`${tokenUrl}&return_url=${url}`)
} else {
wx.showToast({
title: '培训账号未创建',
icon: 'none'
})
}
})
}
})
\ No newline at end of file
data: {
IMG_URL,
courseList: [],
rowData: {},
completeStatus: null,
punishType: null,
countdown: {
days: 0,
hours: 0,
minutes: 0,
seconds: 0,
},
isTimeout: false,
timer: null,
statusMap,
progressWidth: "0",
progressText: "0",
},
onLoad(options) {
const { row } = options;
const rowData = JSON.parse(decodeURIComponent(row));
if (options.form === "serviceCenter") {
console.log("serviceCenter", rowData);
this.setData({
rowData: {
...rowData,
_taskDeadline: rowData?.taskDeadline ? this.formatTime(rowData.taskDeadline, "YYYY-MM-DD HH:mm") : "",
_finishDate: rowData?.finishDate ? this.formatTime(rowData.finishDate, "YYYY-MM-DD HH:mm") : "",
},
courseList: rowData.courseList || [],
});
} else {
// 原有逻辑
this.setData({
rowData,
"rowData._taskDeadline": rowData?.taskDeadline ? this.formatTime(rowData.taskDeadline, "YYYY-MM-DD HH:mm") : "",
"rowData._finishDate": rowData?.finishDate ? this.formatTime(rowData.finishDate, "YYYY-MM-DD HH:mm") : "",
completeStatus: options.completeStatus,
punishType: options.punishType,
});
// 仅处理 courseList
if (options.from === "service") {
this.getLongCourseDetail(rowData.detailId, rowData.id);
} else {
this.getLongCourseDetail(rowData.id);
}
}
// 原有逻辑
if (!this.data.rowData.taskDeadline) {
this.setData({
"rowData.taskDeadline": rowData.finishTime,
});
}
// 处理进度条数据
this.processProgressData();
if (this.data.completeStatus == 0) {
this.initCountdown();
}
},
onUnload() {
// 清除定时器
if (this.data.timer) {
clearInterval(this.data.timer);
}
},
// 处理进度条数据
processProgressData() {
const progress = this.data.rowData.taskProgress || 0;
const progressWidth = `${Math.floor(progress)}%`;
this.setData({
progressWidth,
progressText: progressWidth.toString(),
});
},
// 格式化时间
formatTime(time, formatStr) {
if (!time) return "-";
return dayjs(time).format(formatStr);
},
async getLongCourseDetail(id, boxId) {
const params = { id };
if (boxId) {
params.boxId = boxId;
}
try {
// 这里替换为实际的小程序API调用
const res = await api.getLongCourseDetail(params);
this.setData({ courseList: res.data.courseList || [] });
} catch (error) {
console.error("获取课程详情失败:", error);
}
},
initCountdown() {
// 清除旧定时器
if (this.data.timer) {
clearInterval(this.data.timer);
}
// 兼容rowData未加载时
if (!this.data.rowData || !this.data.rowData.taskDeadline) {
this.setData({
isTimeout: false,
countdown: { days: 0, hours: 0, minutes: 0, seconds: 0 },
});
return;
}
const updateCountdown = () => {
const now = dayjs();
const deadline = dayjs(this.data.rowData.taskDeadline);
const diff = deadline.diff(now, "second");
if (diff <= 0) {
this.setData({
isTimeout: true,
countdown: { days: 0, hours: 0, minutes: 0, seconds: 0 },
});
if (this.data.timer) {
clearInterval(this.data.timer);
this.setData({ timer: null });
}
} else {
let seconds = diff;
const days = Math.floor(seconds / (24 * 3600));
seconds = seconds % (24 * 3600);
const hours = Math.floor(seconds / 3600);
seconds = seconds % 3600;
const minutes = Math.floor(seconds / 60);
seconds = seconds % 60;
this.setData({
isTimeout: false,
countdown: { days, hours, minutes, seconds },
});
}
};
updateCountdown();
const timer = setInterval(updateCountdown, 1000);
this.setData({ timer });
},
startStudy(e) {
const item = e.currentTarget.dataset.item;
let userInfo = wx.$util.getUserInfo();
// 埋点 推荐课程
wx.$track.setTrackData(0, "recommend_course", {}, "", userInfo?.sceneType);
commonApi.findBeiSenSSOToken({}).then((res) => {
const beisenToken = res.data;
if (beisenToken) {
const COURSE_ID = item?.courseId;
const baseUrl = "https://cloud.italent.cn/PageHome/Index";
const params = {
product: "Learning",
keyName: "Nusion",
pageCode: "LearningCourseTraineeDetailPage",
appCode: "Learning",
id: COURSE_ID,
};
console.log("COURSE_ID", COURSE_ID);
console.log("params", params);
this.jumpUrl = "";
const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`)
.join("&");
// this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`);
const tokenUrl = beisenToken;
wx.$router.jumpH5(`${tokenUrl}&return_url=${url}`);
} else {
wx.showToast({
title: "培训账号未创建",
icon: "none",
});
}
});
},
});
{
"projectname": "%E7%B2%BE%E5%93%81%E5%8D%87%E7%BA%A7",
"compileType": "miniprogram",
"libVersion": "3.13.1",
"packOptions": {
"ignore": [
{
"value": ".vscode",
"type": "folder"
}
],
"include": []
},
"setting": {
"urlCheck": false,
"coverView": true,
"es6": true,
"postcss": true,
"minified": true,
"enhance": true,
"showShadowRootInWxmlPanel": true,
"packNpmRelationList": [],
"ignoreUploadUnusedFiles": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerPlugins": [
"sass"
],
"ignoreDevUnusedFiles": false,
"minifyWXML": true,
"compileWorklet": false,
"uglifyFileName": false,
"uploadWithSourceMap": true,
"packNpmManually": false,
"minifyWXSS": true,
"localPlugins": false,
"disableUseStrict": false,
"condition": false,
"swc": false,
"disableSWC": true
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
},
"appid": "wx4e697bcf4954ceef",
"simulatorPluginLibVersion": {}
}
\ No newline at end of file
{
"libVersion": "3.13.1",
"projectname": "dj-car-boutique-work-wechat",
"setting": {
"urlCheck": false,
"coverView": true,
"showShadowRootInWxmlPanel": true,
"ignoreDevUnusedFiles": false,
"lazyloadPlaceholderEnable": false,
"skylineRenderEnable": false,
"preloadBackgroundData": false,
"autoAudits": false,
"compileHotReLoad": true,
"useApiHook": true,
"useStaticServer": false,
"useLanDebug": false,
"showES6CompileOption": false,
"checkInvalidKey": true,
"bigPackageSizeSupport": true
}
}
\ No newline at end of file
......@@ -20,6 +20,10 @@ import {
checkStudyTask,
checkAbnormalOrder
} from '~/store/ModalToQueueControl'
import { ServerCenterEnum, dialogOptions, noticeSort } from "~/utils/enum/index";
import { getCompanyNoticeDetail, getCompanyNoticeList } from "~/api/serviceCenter/index";
const IMG_URL =
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const app = getApp()
......@@ -76,13 +80,17 @@ Page({
sceneObj: {},
showReportPopup: false,
reportTemplateList: [],
currentReportItem: null
currentReportItem: null,
serviceCenterUnreadNum: 0,
},
onReportPopupCancel() {
this.setData({
showReportPopup: false
})
},
handleNavigateServiceCenter(e) {
wx.$router.go("tabWorkOrder.serviceNoticeList");
},
onReportPopupSelect(e) {
const selectedTemplate = e.detail
this.setData({
......@@ -999,6 +1007,56 @@ Page({
}
}
},
// 服务中心通知
async checkServiceNotice() {
for (let serviceCenterEnum of noticeSort) {
const { data } = await getCompanyNoticeList({
pageNum: 1,
pageSize: 3,
// 全局通知要顺序排
createdTimeSortType: 0,
moduleType: serviceCenterEnum,
// 未读
status: 0,
});
this.setData({
serviceCenterUnreadNum: data?.list?.length || 0,
});
if (data && data.list && data.list.length > 0) {
console.log("data -> serviceCenterUnreadNum", this.data.serviceCenterUnreadNum);
// 弹窗
const noticeItem = data.list[0];
// 根据类型取到对应的值
const { message, ...dialogParams } = dialogOptions[serviceCenterEnum][noticeItem.reminderType || 1];
this.addModalToQueue(dialogParams.title, message(noticeItem.msgTitle), dialogParams.confirmButtonText, false, 10, async (res) => {
wx.$util.showLoading();
try {
if (dialogParams.type === ServerCenterEnum.longCourse) {
const { data } = await getCompanyNoticeDetail({ id: noticeItem.id });
wx.navigateTo({
url: `/packageStudyCenter/pages/taskDetail/longCourse/longCourse?row=${encodeURIComponent(JSON.stringify(data.msgDetail))}&form=serviceCenter`,
fail: (err) => {
console.error("页面跳转失败:", err);
},
});
}
if (dialogParams.type === ServerCenterEnum.case) {
wx.$router.go("tabWorkOrder.caseDetail", { caseId: noticeItem.id });
}
if (dialogParams.type === ServerCenterEnum.companyNotice) {
wx.$router.go("tabWorkOrder.companyNoticeDetail", { id: noticeItem.id });
}
} finally {
wx.$util.hideLoading();
}
});
break;
}
}
},
getOutputValue(yqdInfo) {
let { dateObj, userInfo } = this.data
let { subIndex, merchantRange } = yqdInfo
......@@ -1191,16 +1249,6 @@ Page({
// 产品需求:强制填写(04-17版本)
this.checkDailyRecport()
},
checkShowOrderPop(options) {
let userInfo = wx.$util.getStorageSync('dj_boutique_user_info')
if (userInfo?.subLoginUser?.merchantId == options.merchantId) {
if (options.merchantId) {
this.setData({
showOrderpop: true
})
}
}
},
async checkDailyRecport() {
// let { tabIndex } = this.data
let userInfo = wx.$util.getUserInfo()
......@@ -1218,7 +1266,9 @@ Page({
// if (today >= 1 && today <= 3) {
// }
eventRequest.push(this.checkAbnormalOrderLocal())
if (isStaff) {
eventRequest.push(this.checkServiceNotice());
}
// 如果是员工 判读是否要填写日报
// isStaff && eventRequest.push(this.staffDailyReport(wx.$util.getUserInfo()));
return new Promise(resolve => {
......
Component({
properties: {
caseData: {
type: Object,
value: {},
},
},
data: {},
methods: {},
/**
* 组件生命周期函数
*/
lifetimes: {
created() {},
attached() {},
ready() {},
moved() {},
detached() {},
},
/**
* 组件数据监听器
*/
observers: {},
});
{
"component": true,
"usingComponents": {
}
}
.case-item {
padding: 24rpx;
border-radius: 24rpx;
margin-top: 24rpx;
background-color: white;
transition: background-color 0.1s;
box-shadow: 0 4px 12px 0 #2c66f71a;
&:active {
background-color: #f5f6f8;
}
> .title-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
overflow: hidden;
.name {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #292d33;
font-size: 32rpx;
font-weight: 500;
line-height: 44rpx;
}
.case-status {
font-size: 12px;
font-weight: 500;
line-height: 44rpx;
padding: 0 20rpx;
border-radius: 5rpx;
&.case-fail {
color: #f24724;
background-color: rgba(242, 71, 36, 0.1);
}
&.case-success {
color: #35c376;
background-color: rgba(53, 195, 118, 0.1);
}
}
}
> .sub-title {
line-height: 38rpx;
color: #4673ff;
font-size: 32rpx;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-top: 8rpx;
}
> .label-item {
display: flex;
justify-content: space-between;
margin-top: 8rpx;
color: rgb(153, 153, 153);
font-size: 24rpx;
width: 100%;
overflow: hidden;
line-height: 36rpx;
.label {
color: #999ea8;
&.colon {
&::after {
content: ":";
margin-right: 16rpx;
}
}
}
.value {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: right;
color: #666666;
font-weight: 400;
margin-left: 12rpx;
}
}
}
<view class="case-item" data-item="{{ item }}">
<view class="title-wrapper">
<view class="name">
{{ caseData.customerName || '-' }}
</view>
<!-- <view class="case-status case-fail">战败</view> -->
<view wx:if="{{ caseData.receptionStatus === 1 }}"
class="case-status case-success">
成交
</view>
<view wx:else class="case-status case-fail">
战败
</view>
</view>
<view class="sub-title">
{{ caseData.carModel }}
</view>
<view class="label-item">
<view class="label">
客户电话
</view>
<view class="value">
{{ caseData.phoneNumber || '-' }}
</view>
</view>
<view class="label-item">
<view class="label">
销售姓名
</view>
<view class="value">
{{ caseData.employeeName || '-' }}
</view>
</view>
<view class="label-item">
<view class="label">
接待时长
</view>
<view class="value">
{{ caseData.duration || '-' }}
</view>
</view>
<view class="label-item">
<view class="label">
开始接待
</view>
<view class="value">
{{ caseData.startTime || '-' }}
</view>
</view>
<view class="label-item">
<view class="label">
结束接待
</view>
<view class="value">
{{ caseData.endTime || '-' }}
</view>
</view>
</view>
import { ServerCenterEnum, ReminderTypeEnum } from "~/utils/enum/index";
Component({
properties: {
// 企业通知
// 长课程
// 优秀案例
// ServerCenterEnum
type: {
type: String,
value: "",
},
data: {
type: Object,
value: {},
},
},
/**
* 组件的初始数据
*/
data: {
itemSchema: {
// 企业通知
[ServerCenterEnum.companyNotice]: {
[ReminderTypeEnum.FIRST]: [
{ label: "企业通知", isTitle: true },
{ label: "提醒时间", field: "createdTime", colon: true },
{ label: "提醒内容", field: "msgTitle", colon: true },
],
},
// 长课程学习
[ServerCenterEnum.longCourse]: {
[ReminderTypeEnum.FIRST]: [
{ label: "新的长课程学习任务", isTitle: true, field: "name", colon: true },
{ label: "学习任务名称", field: "msgTitle", colon: true },
{ label: "任务完成时间", field: "taskEndTime", colon: true, beforeText: "小伙伴,请于", afterText: "完成哦~" },
{ label: "提醒时间", field: "createdTime", colon: true },
],
[ReminderTypeEnum.PROGRESS]: [
{ label: "长课程学习提醒", isTitle: true },
{ label: "学习任务名称", field: "msgTitle", colon: true },
{ label: "任务完成时间", field: "taskEndTime", colon: true, beforeText: "您有未完成的学习任务即将到期:", afterText: ",抓紧时间完成哦!" },
{ label: "提醒时间", field: "createdTime", colon: true },
],
},
// 优秀案例学习
[ServerCenterEnum.case]: {
[ReminderTypeEnum.FIRST]: [
{ label: "新的优秀案例学习任务", isTitle: true },
{ label: "学习任务名称", field: "msgTitle", colon: true },
{ label: "任务完成时间", field: "taskEndTime", colon: true, beforeText: "小伙伴,请于", afterText: "完成哦~" },
{ label: "提醒时间", field: "createdTime", colon: true },
],
[ReminderTypeEnum.PROGRESS]: [
{ label: "优秀案例学习提醒", isTitle: true, field: "name", colon: true },
{ label: "学习任务名称", field: "msgTitle", colon: true },
{ label: "任务完成时间", field: "taskEndTime", colon: true, beforeText: "您有未完成的学习任务即将到期:", afterText: ",抓紧时间完成哦!" },
{ label: "提醒时间", field: "createdTime", colon: true },
],
},
},
},
/**
* 组件的方法列表
*/
methods: {
// handleTap(e) {
// this.triggerEvent("onTapItem", { item: e.currentTarget.dataset.item, type: this.data.type });
// },
},
/**
* 组件生命周期函数
*/
lifetimes: {
created() {},
attached() {},
ready() {},
moved() {},
detached() {},
},
/**
* 组件数据监听器
*/
observers: {
},
});
.notice-item {
padding: 24rpx 32rpx;
border-radius: var(--fontSize16);
margin-top: 32rpx;
background-color: white;
line-height: 22px;
transition: background-color 0.1s;
&:active {
background-color: #f5f6f8;
}
> .title {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 32rpx;
color: rgba(51, 51, 51, 1);
font-weight: 500;
width: 100%;
overflow: hidden;
.tips {
font-size: 24rpx;
font-weight: 400;
color: rgb(153, 153, 153);
}
> .label {
flex: 1;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
position: relative;
display: block;
box-sizing: border-box;
padding-left: 0;
&.no-read {
padding-left: 24rpx;
&::after {
position: absolute;
content: "";
left: 0;
top: 50%;
transform: translate(0, -50%); /* X轴左移50%,Y轴上移50%,实现完全居中 */
width: 12rpx;
height: 12rpx;
border-radius: 100%;
background-color: #f24724;
}
}
}
}
> .label-item {
display: flex;
margin-top: 16rpx;
color: rgb(153, 153, 153);
font-size: 28rpx;
width: 100%;
.label {
&.colon {
&::after {
content: ":";
margin-right: 16rpx;
}
}
}
> .value {
flex: 1;
}
}
}
<view class="notice-item">
<block wx:for="{{ itemSchema[type][data.reminderType] }}"
wx:for-item="schema"
wx:key="field">
<block wx:if="{{ data.reminderType }}">
<view class="title" wx:if="{{ schema.isTitle }}">
<view class="label {{ data.status === 1 ? '':'no-read' }}">
{{ schema.label }}
</view>
<view class="tips">
查看详情>
</view>
</view>
<view class="label-item" wx:else>
<view class="label {{ schema.colon ? 'colon' : '' }}">
{{ schema.label }}
</view>
<view class="value">
{{ schema.beforeText }}{{ data[schema.field] }}{{ schema.afterText }}
</view>
</view>
</block>
</block>
</view>
Component({
properties: {
scrollTop: {
type: Number,
value: 0,
},
hasMore: {
type: Boolean,
value: true,
},
isLoading: {
type: Boolean,
value: false,
},
listLength: {
type: Number,
value: 0,
},
},
data: {},
methods: {
onScrollToLower(e) {
if (this.data.hasMore && !this.data.isLoading) {
this.triggerEvent("onScrollToLower", e);
console.log("滚动到底部了sssss", e);
}
},
},
lifetimes: {
created() {},
attached() {},
ready() {},
moved() {},
detached() {},
},
observers: {},
});
.tab-wrapper {
padding: 0 20rpx;
box-sizing: border-box;
height: 100%;
.scroll-anchor {
margin-top: 32rpx;
color: #999999;
font-size: 12px;
font-weight: 400;
text-align: center;
line-height: 16px;
&::before {
content: "-";
}
&::after {
content: "-";
}
}
}
<scroll-view class="tab-wrapper"
scroll-y
scroll-top="{{ scrollTop }}"
bind:scrolltolower="onScrollToLower"
lower-threshold="50">
<slot></slot><empty-data wx:if="{{ !isLoading && listLength === 0 && !hasMore }}" />
<block wx:else>
<view class="scroll-anchor" wx:if="{{ isLoading }}">
加载中
</view>
<view class="scroll-anchor" wx:elif="{{ !hasMore }}">
已经到底了
</view>
</block>
</scroll-view>
import { getCompanyNoticeDetail } from "~/api/serviceCenter/index.js";
import reportPageTrackMixin from "~/mixins/reportPageTrackMixin";
Page({
behaviors: [reportPageTrackMixin],
data: {
navBarHeight: 0,
navStyle: "border-bottom: 0;box-shadow: none;",
caseData: {},
track_event_code: "service_center_case_detail", //埋点动作类型
},
navbarReady(e) {
console.log("e", e);
this.setData({
navBarHeight: e?.detail?.height,
});
},
back() {
wx.$router.back();
},
handleTapCaseItem(e) {
let item = {};
if (e.currentTarget.dataset.item) {
item = e.currentTarget.dataset.item;
}
const receptionData = {
...item,
receptionStartTime: item.startTime,
batchId: item.id,
merchantNo: item.merchantId,
totalDuration: item.durationTime,
//
showRecordProgress: false,
form: "serverCenter",
staticDate: item.receptionDate,
};
if (item.checkHistoryFlag == 0) {
wx.$router._to("/packageEquity/pages/newReceptionRecords/newReceptionRecords", receptionData, "navigateTo"); //跳转到新质检
} else {
console.log("receptionData", receptionData);
wx.$router.go("packageEquity.receptionDetail", {
...receptionData,
hideScore: false,
// 显示录音进度条
showRecordProgress: false,
});
}
},
async loadData(caseId) {
wx.$util.showLoading();
try {
const { data } = await getCompanyNoticeDetail({ id: caseId });
this.setData({
caseData: {
...(data.msgDetail || {}),
caseId: caseId,
},
});
} finally {
wx.$util.hideLoading();
}
wx.$track.setTrackData(0, "reception_records", {}, "", 0);
},
/**
*
* @param {*} options
*/
async onRoute(options) {
// await this.init(options);
if ((options && options.caseId) || this.data.caseData?.caseId) {
await this.loadData(options?.caseId || this.data.caseData?.caseId);
}
},
async onShow() {
this.onPageShow();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
this.onPageHide();
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
this.onPageHide();
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
});
{
"usingComponents": {
"caseItem": "../../components/caseItem/caseItem",
"scrollList": "../../components/scrollList/scrollList"
},
"navigationStyle": "custom"
}
.layout {
padding: 24rpx 28rpx;
.case-detail-wrapper {
margin-top: 24rpx;
border-radius: 24rpx;
overflow: hidden;
background-image: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/serviceCenter/case-bg.png");
background-size: 100% 264rpx;
background-repeat: no-repeat;
padding-top: 264rpx;
padding-left: 28rpx;
padding-right: 28rpx;
padding-bottom: 24rpx;
box-shadow: 0 2px 8px 0 #2a61eb1a;
> .title {
margin-top: 24rpx;
color: #292d33;
font-size: 34rpx;
font-weight: 500;
line-height: 40rpx;
}
.detail-item-wrapper {
margin-top: 8rpx;
display: flex;
width: 100%;
align-items: center;
overflow: hidden;
> .label {
color: #999ea8;
font-size: 14px;
font-weight: 400;
line-height: 20px;
min-width: 4em;
// &::after {
// content: ":";
// margin-left: 4rpx;
// }
}
> .value {
flex: 1;
line-height: 20px;
color: #666666;
font-size: 14px;
font-weight: 400;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-left: 16rpx;
&.progress {
width: 100;
display: flex;
align-items: center;
padding-right: 22rpx;
.info-progress-bar {
background: linear-gradient(128.8deg, rgba(117, 188, 255, 0.35) 0%, rgba(44, 102, 247, 0.35) 100%);
border-radius: var(--fontSize8);
height: 100%;
flex: 1;
position: relative;
height: 12rpx;
&::after {
position: absolute;
left: 0;
top: 0;
content: "";
width: var(--value);
height: 100%;
transition: width 200ms;
background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
border-radius: var(--fontSize8);
}
}
.info-progress-text {
margin-left: 16rpx;
color: #3b73ff;
font-size: var(--fontSize28);
}
}
}
}
}
.case-list-wrapper {
margin-top: 42rpx;
> .title {
color: #292d33;
font-size: 32rpx;
font-weight: 500;
}
}
}
<navigation-bar bind:navbarReady="navbarReady"
showBack
navStyle="{{ navStyle }}"
bind:back="back">
任务详情
</navigation-bar>
<scrollList>
<view class="layout" style="padding-top: {{ navBarHeight }}px;">
<view class="case-detail-wrapper">
<view class="title">
{{ caseData.taskTitle || '-' }}
</view>
<view class="detail-item-wrapper">
<view class="label">
任务进度
</view>
<view class="value progress">
<view class="info-progress-bar"
style="--value:{{ caseData.taskProgress || 0 }}%"></view>
<view class="info-progress-text">
{{ caseData.taskProgress || 0 }}%
</view>
</view>
</view>
<view class="detail-item-wrapper">
<view class="label">
案例数
</view>
<view class="value">
{{ caseData.courseTotalCount || 0 }}条 | {{ caseData.totalDuration }}min
</view>
</view>
<view class="detail-item-wrapper">
<view class="label">
完成时间
</view>
<view class="value">
{{ caseData.finishDate || '-' }}
</view>
</view>
</view>
<view class="case-list-wrapper">
<view class="title">
案例列表
</view>
<view class="case-list">
<caseItem wx:for="{{ caseData.courseList }}"
wx:for-item="item"
bind:tap="handleTapCaseItem"
caseData="{{ item }}"
data-item="{{ item }}"
wx:key="index"></caseItem>
</view>
</view>
</view>
</scrollList>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!