Commit 5e72cfcc by 前端

合并

1 parent ecb6bc15
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-21 14:41:41
* @LastEditTime: 2024-12-24 16:06:29
* @FilePath: \gl_tape\App.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......
......@@ -2,19 +2,19 @@ import http from '../request/http'
import { env } from '../../env'
const serverConfig = {
mockRequestCount: null,
mockTimer: {},
mockCache: null,
},
mockRequestCount: null,
mockTimer: {},
mockCache: null
},
bydServerConfig = {
mockRequestCount: null,
mockTimer: {},
mockCache: null,
mockCache: null
},
boutiqueServerConfig = {
mockRequestCount: null,
mockTimer: {},
mockCache: null,
mockCache: null
},
configModule = 'app-tape',
bydConfigModule = 'byd-pad-config',
......@@ -28,38 +28,38 @@ const getMockData = async (immediate = false) => {
const MOCKDATA = uni.$storage.get('mock_data')
try {
if (!immediate && MOCKDATA && Date.now() - MOCKDATA.createTime < 5 * 60e3) {
return Promise.resolve(MOCKDATA);
return Promise.resolve(MOCKDATA)
} else {
if (!serverConfig.mockRequestCount || immediate) {
serverConfig.mockCache = null;
serverConfig.mockRequestCount = Date.now();
const data = await http.uni_request({ url: configUrl });
data.createTime = Date.now();
serverConfig.mockCache = null
serverConfig.mockRequestCount = Date.now()
const data = await http.uni_request({ url: configUrl })
data.createTime = Date.now()
data.moduleList = await imgToBase64(data.moduleList, 'thumbnail')
data.default_moduleList = await imgToBase64(data.default_moduleList, 'thumbnail')
serverConfig.mockCache = data;
uni.$storage.set('mock_data', data);
return Promise.resolve(data);
serverConfig.mockCache = data
uni.$storage.set('mock_data', data)
return Promise.resolve(data)
} else {
const key = Date.now();
return new Promise((resolve) => {
const key = Date.now()
return new Promise(resolve => {
serverConfig.mockTimer[key] = setInterval(() => {
if (serverConfig.mockCache) {
clearInterval(serverConfig.mockTimer[key]);
serverConfig.mockRequestCount = null;
resolve(serverConfig.mockCache);
clearInterval(serverConfig.mockTimer[key])
serverConfig.mockRequestCount = null
resolve(serverConfig.mockCache)
}
}, 1e3);
});
}, 1e3)
})
}
}
} catch (error) {
console.log(error)
if (serverConfig.mockTimer[key]) clearInterval(serverConfig.mockTimer[key]);
serverConfig.mockRequestCount = null;
return Promise.reject(error);
if (serverConfig.mockTimer[key]) clearInterval(serverConfig.mockTimer[key])
serverConfig.mockRequestCount = null
return Promise.reject(error)
}
};
}
const imgToBase64 = (list, urlKey) => {
return new Promise((resolve, reject) => {
let arr = [],
......@@ -71,20 +71,20 @@ const imgToBase64 = (list, urlKey) => {
url: urlKey ? e[urlKey] : e,
method: 'GET',
responseType: 'arraybuffer',
success: (res) => {
success: res => {
const base64 = `data:image/png;base64,${uni.arrayBufferToBase64(res.data)}`
newList[index][urlKey] = base64
newList[index][`original_${urlKey}`] = e[urlKey]
arr.push(e)
if (arr.length === list.length) resolve(newList)
},
fail: (err) => {
fail: err => {
reject(err)
}
})
})
})
};
}
const updateMockData = (dataList, keyList, storageName = 'mock_data') => {
const mockData = uni.$storage.get(storageName)
keyList.map(key => {
......@@ -101,72 +101,82 @@ const getBydMockData = async (immediate = false) => {
const MOCKDATA = uni.$storage.get('byd_mock_data')
try {
if (!immediate && MOCKDATA && Date.now() - MOCKDATA.createTime < 5 * 60e3) {
return Promise.resolve(MOCKDATA);
return Promise.resolve(MOCKDATA)
} else {
if (!bydServerConfig.mockRequestCount || immediate) {
bydServerConfig.mockCache = null;
bydServerConfig.mockRequestCount = Date.now();
const data = await http.uni_request({ url: bydConfigUrl });
data.createTime = Date.now();
bydServerConfig.mockCache = null
bydServerConfig.mockRequestCount = Date.now()
const data = await http.uni_request({ url: bydConfigUrl })
data.createTime = Date.now()
data.moduleList = await imgToBase64(data.moduleList, 'thumbnail')
bydServerConfig.mockCache = data;
uni.$storage.set('byd_mock_data', data);
return Promise.resolve(data);
bydServerConfig.mockCache = data
uni.$storage.set('byd_mock_data', data)
return Promise.resolve(data)
} else {
const key = Date.now();
return new Promise((resolve) => {
const key = Date.now()
return new Promise(resolve => {
bydServerConfig.mockTimer[key] = setInterval(() => {
if (bydServerConfig.mockCache) {
clearInterval(bydServerConfig.mockTimer[key]);
bydServerConfig.mockRequestCount = null;
resolve(bydServerConfig.mockCache);
clearInterval(bydServerConfig.mockTimer[key])
bydServerConfig.mockRequestCount = null
resolve(bydServerConfig.mockCache)
}
}, 1e3);
});
}, 1e3)
})
}
}
} catch (error) {
console.log(error)
if (bydServerConfig.mockTimer[key]) clearInterval(bydServerConfig.mockTimer[key]);
bydServerConfig.mockRequestCount = null;
return Promise.reject(error);
if (bydServerConfig.mockTimer[key]) clearInterval(bydServerConfig.mockTimer[key])
bydServerConfig.mockRequestCount = null
return Promise.reject(error)
}
}
/**
*获取后台素材配置
*/
const findReceptionpriproConfigList = data => {
return http.post({
method: 'dj.api.smartcarlife.recepiton.customer.findReceptionpriproConfigList',
projectName: 'boutique',
...data
})
}
/**
*获取轻改配置
*/
const getBoutiqueMockData = async (immediate = false) => {
const MOCKDATA = uni.$storage.get('boutique_mock_data')
try {
if (!immediate && MOCKDATA && Date.now() - MOCKDATA.createTime < 5 * 60e3) {
return Promise.resolve(MOCKDATA);
return Promise.resolve(MOCKDATA)
} else {
if (!boutiqueServerConfig.mockRequestCount || immediate) {
boutiqueServerConfig.mockCache = null;
boutiqueServerConfig.mockRequestCount = Date.now();
const data = await http.uni_request({ url: boutiqueConfigUrl });
data.createTime = Date.now();
boutiqueServerConfig.mockCache = data;
uni.$storage.set('boutique_mock_data', data);
return Promise.resolve(data);
boutiqueServerConfig.mockCache = null
boutiqueServerConfig.mockRequestCount = Date.now()
const data = await http.uni_request({ url: boutiqueConfigUrl })
data.createTime = Date.now()
boutiqueServerConfig.mockCache = data
uni.$storage.set('boutique_mock_data', data)
return Promise.resolve(data)
} else {
const key = Date.now();
return new Promise((resolve) => {
const key = Date.now()
return new Promise(resolve => {
boutiqueServerConfig.mockTimer[key] = setInterval(() => {
if (boutiqueServerConfig.mockCache) {
clearInterval(boutiqueServerConfig.mockTimer[key]);
boutiqueServerConfig.mockRequestCount = null;
resolve(boutiqueServerConfig.mockCache);
clearInterval(boutiqueServerConfig.mockTimer[key])
boutiqueServerConfig.mockRequestCount = null
resolve(boutiqueServerConfig.mockCache)
}
}, 1e3);
});
}, 1e3)
})
}
}
} catch (error) {
console.log(error)
if (boutiqueServerConfig.mockTimer[key]) clearInterval(boutiqueServerConfig.mockTimer[key]);
boutiqueServerConfig.mockRequestCount = null;
return Promise.reject(error);
if (boutiqueServerConfig.mockTimer[key]) clearInterval(boutiqueServerConfig.mockTimer[key])
boutiqueServerConfig.mockRequestCount = null
return Promise.reject(error)
}
}
// 图片版本号
......@@ -181,5 +191,6 @@ module.exports = {
imgToBase64,
updateMockData,
getBydMockData,
getBoutiqueMockData
}
\ No newline at end of file
getBoutiqueMockData,
findReceptionpriproConfigList
}

2.57 KB | W: | H:

4.13 KB | W: | H:

assets/images/point/crown_1.png
assets/images/point/crown_1.png
assets/images/point/crown_1.png
assets/images/point/crown_1.png
  • 2-up
  • Swipe
  • Onion skin

2.78 KB | W: | H:

4.99 KB | W: | H:

assets/images/point/crown_2.png
assets/images/point/crown_2.png
assets/images/point/crown_2.png
assets/images/point/crown_2.png
  • 2-up
  • Swipe
  • Onion skin

2.64 KB | W: | H:

4.47 KB | W: | H:

assets/images/point/crown_3.png
assets/images/point/crown_3.png
assets/images/point/crown_3.png
assets/images/point/crown_3.png
  • 2-up
  • Swipe
  • Onion skin

19.5 KB | W: | H:

83 KB | W: | H:

assets/images/point/day-ai.png
assets/images/point/day-ai.png
assets/images/point/day-ai.png
assets/images/point/day-ai.png
  • 2-up
  • Swipe
  • Onion skin

18.9 KB | W: | H:

80.6 KB | W: | H:

assets/images/point/day-course.png
assets/images/point/day-course.png
assets/images/point/day-course.png
assets/images/point/day-course.png
  • 2-up
  • Swipe
  • Onion skin

19.1 KB | W: | H:

83.8 KB | W: | H:

assets/images/point/day-ipad.png
assets/images/point/day-ipad.png
assets/images/point/day-ipad.png
assets/images/point/day-ipad.png
  • 2-up
  • Swipe
  • Onion skin

18.6 KB | W: | H:

82.2 KB | W: | H:

assets/images/point/day-report.png
assets/images/point/day-report.png
assets/images/point/day-report.png
assets/images/point/day-report.png
  • 2-up
  • Swipe
  • Onion skin

19.8 KB | W: | H:

82.4 KB | W: | H:

assets/images/point/day-study.png
assets/images/point/day-study.png
assets/images/point/day-study.png
assets/images/point/day-study.png
  • 2-up
  • Swipe
  • Onion skin

18.8 KB | W: | H:

80.6 KB | W: | H:

assets/images/point/day-time.png
assets/images/point/day-time.png
assets/images/point/day-time.png
assets/images/point/day-time.png
  • 2-up
  • Swipe
  • Onion skin

19.4 KB | W: | H:

84.3 KB | W: | H:

assets/images/point/day-training.png
assets/images/point/day-training.png
assets/images/point/day-training.png
assets/images/point/day-training.png
  • 2-up
  • Swipe
  • Onion skin

36.9 KB | W: | H:

114 KB | W: | H:

assets/images/point/point_bg.png
assets/images/point/point_bg.png
assets/images/point/point_bg.png
assets/images/point/point_bg.png
  • 2-up
  • Swipe
  • Onion skin

19.8 KB | W: | H:

40.7 KB | W: | H:

assets/images/point/star_grey.png
assets/images/point/star_grey.png
assets/images/point/star_grey.png
assets/images/point/star_grey.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -81,7 +81,7 @@ export default {
const res = await uni.$api.customerApi.haveCustomerAccess({
merchantId
})
if (res && this.tabs.length == 2) this.tabs.splice(2,0,{
if (res && this.tabs.length == 3) this.tabs.splice(2,0,{
label: "客户档案",
icon: "customer-file",
})
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-23 09:54:41
* @LastEditTime: 2024-12-25 14:33:54
-->
<template>
<view class="point-box">
......@@ -15,13 +15,13 @@
<view class="month-tabs">
<view class="tab-prev" v-if="month <= currentMonth && month > 1" @click="prevTab">
<view class="tab-icon">
<uni-icons type="left" size="20"></uni-icons>
<uni-icons type="left" size="16"></uni-icons>
</view>
</view>
<view class="tab-mid">{{ month == currentMonth ? '本' : (month + '').padStart(2, '0') }}月</view>
<view class="tab-next" v-if="month != currentMonth" @click="nextTab">
<view class="tab-icon">
<uni-icons type="right" size="20"></uni-icons>
<uni-icons type="right" size="16"></uni-icons>
</view>
</view>
</view>
......@@ -139,6 +139,15 @@ export default {
border-radius: 50%;
height: 48rpx;
background: #ffffff;
.tab-icon {
margin-left: -4rpx;
margin-top: 4rpx;
}
}
.tab-next {
.tab-icon {
margin-left: 2rpx;
}
}
}
}
......@@ -186,14 +195,16 @@ export default {
background: #ffffff73;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 32rpx;
padding: 24rpx 48rpx;
height: calc(100vh - 380rpx);
height: calc(100vh - 420rpx);
overflow: hidden;
.item-header {
display: flex;
justify-content: space-between;
align-items: center;
line-height: 56rpx;
margin-bottom: 26rpx;
background: rgba($color: #fff, $alpha: 0.6);
padding: 24rpx 48rpx;
.point-class {
font-size: 36rpx;
color: #1a1a1a;
......@@ -204,8 +215,9 @@ export default {
}
}
.desc-wrap {
height: calc(100% - 102rpx);
height: calc(100% - 152rpx);
overflow-y: auto;
padding: 0 48rpx;
}
.empty-box {
text-align: center;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-20 13:50:35
* @LastEditTime: 2024-12-25 17:00:42
-->
<template>
<view class="point-box">
......@@ -24,13 +24,13 @@
<view class="day-title">{{ i.typeName }}</view>
<view class="day-content">{{ i.content }}</view>
</view>
<uni-icons type="checkmarkempty" v-if="i.completed"></uni-icons>
<uni-icons type="checkmarkempty" v-if="i.completed" size="20"></uni-icons>
<view class="day-go" @click="handleGo(i)" v-else>去完成</view>
</view>
</view>
<view class="dailog-panel" v-if="show">
<view class="dailog-box">
<view class="dailog-close" @click="show = false"><uni-icons type="closeempty" size="30"></uni-icons></view>
<view class="dailog-close" @click="show = false"><uni-icons type="closeempty" size="20"></uni-icons></view>
<view class="dailog-logo"><image :src="selectItem.logo"></image></view>
<view class="dailog-title">{{ selectItem.typeName }}</view>
<view class="dailog-content">{{ selectItem.rules }}</view>
......@@ -128,10 +128,10 @@ export default {
width: 50%;
transform: translate(-50%, -50%);
background: #fff;
background-image: linear-gradient(179deg, #d6e9ff 12%, #ffffff00 100%); /* 顶部渐变和底部白色 */
background-image: linear-gradient(179deg, #d6e9ff 12%, #ffffff 100%); /* 顶部渐变和底部白色 */
background-size:
100% 160rpx,
100% calc(100% - 160rpx); /* 分别设置渐变和白色的背景大小 */
100% 110rpx,
100% calc(100% - 110rpx); /* 分别设置渐变和白色的背景大小 */
background-repeat: no-repeat, no-repeat; /* 确保背景不重复 */
background-position: top, bottom; /* 分别设置渐变和白色的位置 */
border-radius: 48rpx;
......@@ -161,7 +161,9 @@ export default {
font-size: 32rpx;
color: #808291;
text-align: center;
line-height: 60rpx;
line-height: 46rpx;
margin-top: 16rpx;
padding: 0 64rpx;
}
.dailog-footer {
display: flex;
......@@ -216,6 +218,7 @@ export default {
font-size: 36rpx;
color: #1a1a1a;
margin-left: 160rpx;
font-weight: 700;
text {
font-size: 64rpx;
color: #4673ff;
......@@ -236,8 +239,8 @@ export default {
align-items: center;
.day-logo {
image {
width: 76rpx;
height: 76rpx;
width: 80rpx;
height: 80rpx;
margin-right: 20rpx;
}
}
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-21 10:10:29
* @LastEditTime: 2024-12-25 17:35:05
-->
<template>
<view class="point-box">
......@@ -38,13 +38,15 @@
<view class="level-item" :style="index == levelIndex || isHigh ? item.style : ''" v-for="(item, index) in levelList" :key="index">
<image class="my-level" v-if="index == levelIndex"" :src="require('@/assets/images/point/my_level.png')" />
<view class="item-name" :style="index == levelIndex || isHigh ? item.titleStyle : ''">{{ item.title }}</view>
<view class="item-logo"><image :src="index == levelIndex || isHigh ? item.logo : item.logo_grey"></image></view>
<view class="item-logo"><image mode="widthFix" :src="index == levelIndex || isHigh ? item.logo : item.logo_grey"></image></view>
<view class="item-footer">
<view :class="{ 'item-desc': true, grey: index != levelIndex && !isHigh }">{{ item.content }}</view>
<view class="item-detail" :style="index == levelIndex || isHigh ? item.detailStyle : ''">
<view class="item-detail" :style="index == levelIndex || isHigh ? item.detailStyle : 'background:#efeff1'">
<ul>
<li class="item-coupon" v-for="(coupon, index) in item.coupon.list" :key="index">{{ coupon }}</li>
</ul>
</view>
</view>
</view>
</view>
</view>
......@@ -88,7 +90,7 @@ export default {
title: '青铜级萌新',
titleStyle: 'background: linear-gradient(129deg, #88696B 13%, #665253 91%);color: transparent; background-clip: text;-webkit-background-clip: text; ',
content: '每月度奖励',
detailStyle: 'color: #995737;background-image: linear-gradient(93deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);',
detailStyle: 'color: #995737;background-image: linear-gradient(93deg, #ffffff2e 2%, #ffffff4d 51%, #ffffff17 99%);',
coupon: {
list: ['咖啡奶茶券 1 张', '美团外卖直兑券 1 张']
},
......@@ -99,7 +101,7 @@ export default {
{
title: '白银级熟手',
titleStyle: 'background: linear-gradient(129deg, #4A668F 13%, #333B43 91%);color: transparent; background-clip: text;webkit-background-clip: text;',
detailStyle: 'color: #556985;background-image: linear-gradient(93deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);;',
detailStyle: 'color: #556985;background-image: linear-gradient(93deg, #ffffff2e 2%, #ffffff4d 51%, #ffffff17 99%);',
content: '每月度奖励',
coupon: {
list: ['咖啡奶茶券 2 张', '美团外卖直兑券 2 张'],
......@@ -113,7 +115,7 @@ export default {
title: '黄金级能手',
titleStyle: 'background: linear-gradient(129deg, #B17813 13%, #794308 91%);color: transparent; background-clip: text;webkit-background-clip: text;',
content: '每月度奖励',
detailStyle: 'color: #855A1B;background-image: linear-gradient(97deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);',
detailStyle: 'color: #855A1B;background-image: linear-gradient(97deg, #ffffff2e 2%, #ffffff4d 51%, #ffffff17 99%);',
coupon: {
list: ['拥有晋升、评优资格', '咖啡奶茶券 4 张', '生日月专享生日餐券', '美团外卖直兑券 4 张', '公司定制公仔礼包'],
style: 'color: #995737'
......@@ -126,7 +128,7 @@ export default {
title: '钻石级专家',
content: '每月度奖励',
titleStyle: 'background: linear-gradient(111deg, #E7E8FD 11%, #C7CDF2 53%, #F4D8E8 100%);color: transparent; background-clip: text;webkit-background-clip: text;',
detailStyle: 'color: #E7E8FD;background: rgba(255, 255, 255, .5);',
detailStyle: 'color: #E7E8FD;background: rgba(255, 255, 255, .12);',
coupon: {
list: ['拥有晋升、评优资格', '咖啡奶茶券 6 张', '生日月专享生日餐券', '闭门课分享活动参加资格', '美团外卖直兑券 6 张', '公司定制公仔礼包'],
style: 'color: #995737'
......@@ -137,10 +139,10 @@ export default {
}
],
groupList: [
{ title: '学习之星', medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), content: '月度学习类积分排名前10名', couponName: '50元话费券', couponNum: '1张' },
{ title: '全勤之星', medalType: 2, logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), content: '当月全勤准时打卡,不包含请假特批', couponName: '50元饮品券', couponNum: '1张' },
{ title: '零售导师', medalType: 3, logo: require('@/assets/images/point/teacher_star.png'), logo_grey: require('@/assets/images/point/teacher_grey.png'), content: '分享授课类积分前10名', couponName: '50元加油券', couponNum: '1张' },
{ title: '平板接待精英', medalType: 4, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), content: '平板接待月度无扣分记录', couponName: '50元水果券', couponNum: '1张' }
{ title: '学习之星',style:'background: #FFFAED;', medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), content: '月度学习类积分排名前10名', couponName: '50元话费券', couponNum: '1张' },
{ title: '全勤之星',style:'background: #FFFAED;', medalType: 2, logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), content: '当月全勤准时打卡,不包含请假特批', couponName: '50元饮品券', couponNum: '1张' },
{ title: '零售导师', style:'background: #FFFAED;',medalType: 3, logo: require('@/assets/images/point/teacher_star.png'), logo_grey: require('@/assets/images/point/teacher_grey.png'), content: '分享授课类积分前10名', couponName: '50元加油券', couponNum: '1张' },
{ title: '平板接待精英',style:'background: #FFFAED;', medalType: 4, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), content: '平板接待月度无扣分记录', couponName: '50元水果券', couponNum: '1张' }
],
badgeList: []
}
......@@ -244,7 +246,7 @@ export default {
line-height: 44rpx;
width: 64rpx;
text-align: center;
margin-top: 16prx;
margin-top: 16rpx;
}
}
.level-desc {
......@@ -260,7 +262,6 @@ export default {
padding: 56rpx 48rpx;
.level-item {
background: #f7f7f7;
border: 4rpx solid #ffffff33;
border-radius: 36rpx;
position: relative;
.my-level {
......@@ -330,6 +331,7 @@ export default {
text-align: center;
font-size: 40rpx;
line-height: 60rpx;
margin-top: 4rpx;
color: #292d33;
font-weight: 600;
&.grey {
......@@ -348,24 +350,25 @@ export default {
.item-logo {
position: absolute;
top: 0rpx;
right: 0rpx;
right: 32rpx;
image {
width: 184rpx;
height: 220rpx;
}
}
.item-desc {
bottom: calc(100% - 260rpx);
left: 40rpx;
position: absolute;
padding-left: 40rpx;
font-size: 24rpx;
&.grey {
color: #a2a2a8;
}
}
.item-detail {
.item-footer {
position: absolute;
left: 0;
bottom: 26rpx;
width: 100%;
}
.item-detail {
width: calc(100% - 48rpx);
box-sizing: border-box;
border-radius: 16rpx;
......@@ -373,7 +376,6 @@ export default {
overflow-y: auto;
margin: 16rpx 24rpx;
padding: 12rpx 0rpx;
background: #efeff1;
color: #a2a2a8;
.item-coupon {
position: relative;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-20 16:16:33
* @LastEditTime: 2024-12-25 10:34:42
-->
<template>
<view class="point-box">
......@@ -15,13 +15,13 @@
<view class="month-tabs">
<view class="tab-prev" v-if="month <= currentMonth && month > 1" @click="prevTab">
<view class="tab-icon">
<uni-icons type="left" size="20"></uni-icons>
<uni-icons type="left" size="16"></uni-icons>
</view>
</view>
<view class="tab-mid">{{ month == currentMonth ? '本' : (month + '').padStart(2, '0') }}月</view>
<view class="tab-next" v-if="month != currentMonth" @click="nextTab">
<view class="tab-icon">
<uni-icons type="right" size="20"></uni-icons>
<uni-icons type="right" size="16"></uni-icons>
</view>
</view>
</view>
......@@ -43,7 +43,7 @@
<view class="item-logo" v-if="l.ranking > 3">{{ item.ranking }}</view>
<view class="item-image" v-else><image :src="require(`@/assets/images/point/${index == 0 ? 'crown_' : 'prize_'}${l.ranking || 0}.png`)" /></view>
<view class="item-name">{{ l.staffName }}</view>
<view v-if="l.badgeList && l.badgeList.length" :class="{ 'item-prize': index == 0, 'item-medal': index != 0 }"><image :src="index == 0 ? pointImg[item.badgeList[0].growthType - 1] : starImg[index - 1]" /></view>
<view v-if="l.badgeList && l.badgeList.length" :class="{ 'item-prize': index == 0, 'item-medal': index != 0 }"><image :src="index == 0 ? pointImg[l.badgeList[0].growthType - 1] : starImg[index - 1]" /></view>
<view class="item-num">{{ l.pointValue }}</view>
</view>
</view>
......@@ -151,6 +151,15 @@ export default {
border-radius: 50%;
height: 48rpx;
background: #ffffff;
.tab-icon {
margin-left: -4rpx;
margin-top: 4rpx;
}
}
.tab-next {
.tab-icon {
margin-left: 2rpx;
}
}
}
}
......@@ -218,7 +227,7 @@ export default {
border-radius: 50%;
background: #ffffff;
border: 2rpx solid #ffffff;
line-height: 72rpx;
line-height: 76rpx;
font-size: 34rpx;
color: #a0a1ad;
text-align: center;
......
......@@ -10,14 +10,16 @@
<view class="table-box">
<table class="score-table">
<tr class="th">
<th v-for="(item, index) in tabelTh" :key="index" :style="{ width: item.width + 'vw' }">{{ item.title }}
</th>
<th v-for="(item, index) in tabelTh" :key="index" :style="{ width: item.width + 'vw' }">{{ item.title }}</th>
</tr>
<tr v-for="(item, index) in tabelTr" :key="index" :class="{ line: item.row1Span }">
<td :rowspan="item.row1Span" v-if="item.showRow1">{{ item.categoryName }}</td>
<td :rowspan="item.row2Span"" v-if="item.showRow2">{{ item.typeName }}</td>
<td class="row_1" :rowspan="item.row1Span" v-if="item.showRow1">{{ item.categoryName }}</td>
<td :rowspan="item.row2Span" v-if="item.showRow2">{{ item.typeName }}</td>
<td>{{ item.description }}</td>
<td>{{ item.pointValue }}</td>
<td>
<template v-if="item.pointValue">{{ item.pointValue }}</template>
<text v-else>自动</text>
</td>
<td>{{ item.detail }}</td>
</tr>
</table>
......@@ -37,7 +39,7 @@ export default {
{ title: '积分类型', width: 8 },
{ title: '积分描述', width: 14 },
{ title: '积分值', width: 6 },
{ title: '说明', width: 50 },
{ title: '说明', width: 50 }
],
tabelTr: [],
processedData: [],
......@@ -48,34 +50,25 @@ export default {
methods: {
getDetail() {
uni.$api.pointApi.pointRuleDetail().then(res => {
let result = [];
let row1Span = 0;
let row2Span = 0;
let result = []
let row1Span = 0
let row2Span = 0
const obj = res || []
obj.forEach((item, index) => {
if (index === 0 || obj[index - 1].categoryName !== item.categoryName) {
row1Span = obj.filter(
(el, idx) => idx >= index && el.categoryName === item.categoryName
).length;
result.push({ ...item, row1Span, showRow1: true });
row1Span = obj.filter((el, idx) => idx >= index && el.categoryName === item.categoryName).length
result.push({ ...item, row1Span, showRow1: true })
} else {
result.push({ ...item, showRow1: false });
result.push({ ...item, showRow1: false })
}
if (
index === 0 ||
obj[index - 1].typeName !== item.typeName ||
obj[index - 1].categoryName !== item.categoryName
) {
row2Span = obj.filter(
(el, idx) =>
idx >= index && el.categoryName === item.categoryName && el.typeName === item.typeName
).length;
result[index].row2Span = row2Span;
result[index].showRow2 = true;
if (index === 0 || obj[index - 1].typeName !== item.typeName || obj[index - 1].categoryName !== item.categoryName) {
row2Span = obj.filter((el, idx) => idx >= index && el.categoryName === item.categoryName && el.typeName === item.typeName).length
result[index].row2Span = row2Span
result[index].showRow2 = true
} else {
result[index].showRow2 = false;
result[index].showRow2 = false
}
});
})
this.tabelTr = result
})
},
......@@ -136,7 +129,11 @@ export default {
border-collapse: separate;
/* 防止边框合并 */
border-spacing: 0;
border: none;
.th {
position: sticky;
top: 0;
}
/* 单元格之间没有间距 */
tr {
border: none;
......@@ -144,7 +141,7 @@ export default {
&.line {
td {
border-top: 16rpx solid #fff;
border-top: 16rpx solid rgba($color: #fff, $alpha: 0.9);
}
}
......@@ -161,10 +158,11 @@ export default {
&:first-child {
border-left: none;
border-radius: 16rpx 0 0 16rpx;
}
&:last-child {
border-right: none;
border-radius: 0 16rpx 16rpx 0;
}
}
......@@ -178,6 +176,9 @@ export default {
height: 88rpx;
font-size: 26rpx;
color: #333333;
text {
color: #c8c8cc;
}
&.line {
border-bottom: 16rpx solid #fff;
......
<template>
<view class="tool-box" :style="toolStyle">
<view
:class="['btn', {hideIcon:!show}]"
@click="show = false"
>
<view class="icon sprite-icon icon-tool-file">
</view>
<view :class="['btn', { hideIcon: !show }]" @click="show = false">
<view class="icon sprite-icon icon-tool-file"></view>
文件夹
</view>
<view :class="['list',{showList:!show}]">
<view
class="title"
@click="show = true"
>文件夹</view>
<template v-for="(i,index) in data">
<view
:class="['item', {active: i[idKey] == id} ]"
:key="index"
@click="jump(i)"
>
<image
class="icon"
:src="i.shortTitleUrl"
mode="scaleToFill"
/>
{{i.shortTitle}}
</view>
</template>
<view :class="['list', { showList: !show }]">
<view class="title" @click="show = true">文件夹</view>
<view class="list-body">
<template v-for="(i, index) in data">
<view :class="['item', { active: i[idKey] == id }]" :key="index" @click="jump(i)">
<image class="icon" :src="i.shortTitleUrl" mode="scaleToFill" />
{{ i.shortTitle }}
</view>
</template>
</view>
<template v-if="showPayBtn">
<view
class="item"
@click="toPay"
>
<view class="item" @click="toPay">
<view class="icon">
<view class="sprite-icon icon-tool-pay"></view>
</view>
......@@ -39,10 +23,7 @@
</view>
</template>
<template v-if="type != 'preview'">
<view
class="item"
@click="finish"
>
<view class="item" @click="finish">
<view class="icon">
<view class="sprite-icon icon-tool-finish"></view>
</view>
......@@ -53,7 +34,7 @@
</view>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
export default {
name: 'ToolBox',
props: {
......@@ -105,7 +86,7 @@ export default {
}
</script>
<style scoped lang='scss'>
<style scoped lang="scss">
.tool-box {
position: fixed;
right: toRpx(40);
......@@ -157,7 +138,7 @@ export default {
height: 0;
&::after {
position: absolute;
content: "";
content: '';
background: inherit;
top: 0;
left: 0;
......@@ -176,6 +157,10 @@ export default {
align-items: center;
justify-content: center;
}
.list-body {
max-height: 60vh;
overflow-y: auto;
}
.item {
display: flex;
flex-direction: column;
......@@ -215,4 +200,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2
const index = 4
/**
*
0本地
......
<template>
<view :class="['layout',{ 'byd-layout':isByd } ]">
<view :class="['layout', { 'byd-layout': isByd }]">
<view class="layout-content">
<view class="title">{{ title }}</view>
<template v-if="views&&views.length > 1">
<template v-if="views && views.length > 1">
<view class="tabs-box">
<tabs
:list="views"
@tabclick="changeTab"
></tabs>
<tabs :list="views" @tabclick="changeTab"></tabs>
</view>
</template>
<template v-if="list.length > 0">
<scroll-view
:class="['record-box',{'has-tabs':views && views.length > 1} ]"
scroll-y
:scroll-top="scrollTop"
@scrolltolower="pageonReachBottom"
>
<scroll-view :class="['record-box', { 'has-tabs': views && views.length > 1 }]" scroll-y :scroll-top="scrollTop" @scrolltolower="pageonReachBottom">
<view class="card-list">
<view
class="card-item"
v-for="item in list"
:key="item.id"
>
<template>
<image
v-if="item.vdQuotationPaymentDoc && item.vdQuotationPaymentDoc.paymentDocUrl"
class="image-box"
:src="item.vdQuotationPaymentDoc.paymentDocUrl"
/>
<image
v-else
class="image-box"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/common/pay.webp"
/>
<view class="card-item" v-for="item in list" :key="item.id">
<template v-if="!views || views.length <= 1">
<image v-if="item.vdQuotationPaymentDoc && item.vdQuotationPaymentDoc.paymentDocUrl" class="image-box" :src="item.vdQuotationPaymentDoc.paymentDocUrl" />
<image v-else class="image-box photo" src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/common/pay.webp" />
<view class="gradient-overlay"></view>
</template>
<view>
......@@ -42,7 +22,7 @@
<view class="goods-name">{{ item.goodsName }}</view>
<view class="card-info">
<view class="label">车架号</view>
<view class="value">{{ item.carVin || "-" }}</view>
<view class="value">{{ item.carVin || '-' }}</view>
</view>
<view class="card-info">
<view class="label">工单号</view>
......@@ -55,25 +35,19 @@
<view class="card-info">
<view class="label">实收金额</view>
<view class="price">
<view class="flag">¥</view>{{ accDiv(item.equityPrice) }}
<view class="flag">¥</view>
{{ accDiv(item.equityPrice) }}
</view>
</view>
</view>
</view>
</view>
<view
class="end-text"
v-if="list.length > 0 && isEnd"
>我是一个有底线的人</view>
<view class="end-text" v-if="list.length > 0 && isEnd">我是一个有底线的人</view>
</scroll-view>
</template>
<template v-else>
<view class="no-data">
<glsx-image
class="no-data-img"
src="media/no-data.png"
mode="scaleToFill"
/>
<glsx-image class="no-data-img" src="media/no-data.png" mode="scaleToFill" />
<view class="no-data-text">暂无数据</view>
</view>
</template>
......@@ -82,8 +56,8 @@
</template>
<script>
import utils from '@/utils/utils';
import Record from "@/mixin/record";
import utils from '@/utils/utils'
import Record from '@/mixin/record'
import Tabs from './Tabs.vue'
export default {
components: {
......@@ -96,9 +70,9 @@ export default {
madiaId: Number,
show: Boolean,
isByd: Boolean,
views: Array,
views: Array
},
data () {
data() {
return {
shopMerchantId: '',
goodsName: null,
......@@ -106,41 +80,41 @@ export default {
}
},
watch: {
show (n) {
show(n) {
if (n) this.init()
else this.scrollTop = 0
},
watchStatus: {
immediate: true,
handler (newval) {
handler(newval) {
this.pageNum = 1
this.scrollTop = 1000
this.list = []
setTimeout(() => {
this.scrollTop = 0
}, 100);
}, 100)
}
},
}
},
computed: {
watchStatus () {
watchStatus() {
return this.$store.state.user.historyStatus
},
}
},
mounted () {
mounted() {
if (this.show) this.init()
},
methods: {
init () {
const { shopMerchantId } = uni.$storage.get("userInfo");
init() {
const { shopMerchantId } = uni.$storage.get('userInfo')
this.shopMerchantId = shopMerchantId
if (this.list.length == 0) {
this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`)
this.isEnd = true
}
if (this.pageNum == 1) this.getQuotationList();
if (this.pageNum == 1) this.getQuotationList()
},
async getQuotationList () {
async getQuotationList() {
const { goodsName, shopMerchantId, pageNum, pageSize } = this
try {
await this.getList('getQuotationList', {
......@@ -148,14 +122,14 @@ export default {
pageNum,
pageSize,
goodsName,
orderStatus: 3,
orderStatus: 3
})
if (!goodsName && this.pageNum == 1 && this.list.length) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
} catch (error) {
if (!goodsName && this.pageNum == 1) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`)
}
},
pageonReachBottom () {
pageonReachBottom() {
this.isEnd = false
let { pageNum, total, isEnd, pageSize } = this
if (!isEnd) isEnd = false
......@@ -165,13 +139,13 @@ export default {
} else this.isEnd = true
},
// 脱敏
nameHide (name) {
return name.substring(0, 1) + '*';
nameHide(name) {
return name.substring(0, 1) + '*'
},
accDiv (val) {
accDiv(val) {
return utils.accDiv(val || 0, 100)
},
changeTab (index) {
changeTab(index) {
let { views } = this,
goodsName = index == 0 ? null : views[index].tabName
if (this.goodsName == goodsName) return
......@@ -291,7 +265,17 @@ export default {
}
}
.image-box {
display: none;
height: 100%;
position: absolute;
top: 0rpx;
// opacity: 0.5;
right: 0rpx;
background-size: 100% 100%;
// border-radius: 32rpx;
z-index: -1;
&.photo {
width: toRpx(250);
}
}
.gradient-overlay {
z-index: -1;
......@@ -351,4 +335,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -2,93 +2,45 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditTime: 2024-07-01 16:38:24
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-25 18:52:46
-->
<template>
<view
class="detail-box"
@dblclick="dbClick"
>
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
<view class="detail-box" @dblclick="dbClick">
<view class="nav-bar" :style="{ 'z-index': backZindex }">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
</view>
<template v-for="(item, index) in media">
<view
:class="['view', { showView: id == item.id }, modeName]"
:key="index"
@touchstart.stop="touchStart"
@touchend.stop="touchEnd"
>
<component
:is="item.componentName"
:views="item.receptionSourceDetailList || []"
:penSwitch="penSwitch"
:show="id == item.id"
:ref="'media' + item.id"
:title="item.detailTitle || ''"
:madiaId="item.id"
@scale="scale"
:ulList="item.ulList"
:screenList="item.screenList"
@onProductModel="productModelStatus = $event"
:isPreview="isPreview"
:isByd="isByd"
/>
<view :class="['view', { showView: id == item.id }, modeName]" :key="index" @touchstart.stop="touchStart" @touchend.stop="touchEnd">
<component @full="handleFull" :detail="item" :is="item.componentName" :views="item.receptionSourceDetailList || []" :penSwitch="penSwitch" :show="id == item.id" :ref="'media' + item.id" :title="item.detailTitle || ''" :madiaId="item.id" @scale="scale" :ulList="item.ulList" :screenList="item.screenList" @onProductModel="productModelStatus = $event" :isPreview="isPreview" :isByd="isByd" />
</view>
</template>
<template v-if="type != 'preview'">
<tool-box
ref="toolRef"
:data="toolList"
:type="type"
@choose="choose"
@finish="open"
:id="id"
@toPay="toPay"
:showPayBtn="watchPayInfo"
/>
<view
class="pen-box"
@click="drawStatus = !drawStatus"
>
<view :class="['sprite-icon', `${!drawStatus ? 'icon-pen' : 'icon-pen-active'}`]"> </view>
</view>
<template v-if="backZindex">
<tool-box ref="toolRef" :data="toolList" :type="type" @choose="choose" @finish="open" :id="id" @toPay="toPay" :showPayBtn="watchPayInfo" />
<view class="pen-box" @click="drawStatus = !drawStatus">
<view :class="['sprite-icon', `${!drawStatus ? 'icon-pen' : 'icon-pen-active'}`]"></view>
</view>
</template>
</template>
<pay-pop
ref="pay"
@jumpPay="showPayPage = true"
></pay-pop>
<finish-step
ref="stepRef"
@submit="done"
:titleTips="finishTips"
/>
<informationEntry
:showPayPage.sync="showPayPage"
@finish="open"
/>
<pay-pop ref="pay" @jumpPay="showPayPage = true"></pay-pop>
<finish-step ref="stepRef" @submit="done" :titleTips="finishTips" />
<informationEntry :showPayPage.sync="showPayPage" @finish="open" />
</view>
</template>
<script>
import ToolBox from "@/components/ToolBox.vue";
import Reception from "./components/Reception.vue";
import MediaComponent from "./components/MediaComponent.vue";
import History from "./components/History.vue";
import ThreeGuarantees from "./components/ThreeGuarantees.vue";
import Guarantee from './components/Guarantee.vue';
import payPop from "./components/payPop.vue";
import FinishStep from '@/components/FinishStep.vue';
import { mapMutations } from "vuex";
import ToolBox from '@/components/ToolBox.vue'
import Reception from './components/Reception.vue'
import CaseCenter from './components/CaseCenter.vue'
import MediaComponent from './components/MediaComponent.vue'
import History from './components/History.vue'
import ThreeGuarantees from './components/ThreeGuarantees.vue'
import Guarantee from './components/Guarantee.vue'
import payPop from './components/payPop.vue'
import FinishStep from '@/components/FinishStep.vue'
import { mapMutations } from 'vuex'
import informationEntry from './components/informationEntry.vue'
import insurance from '@/components/Insurance/Insurance.vue'
import { receptionTrackMixin } from '@/mixin/index.js'
......@@ -98,6 +50,7 @@ export default {
Reception,
MediaComponent,
payPop,
CaseCenter,
FinishStep,
Guarantee,
History,
......@@ -115,8 +68,9 @@ export default {
toolList: Array
},
mixins: [receptionTrackMixin],
data () {
data() {
return {
backZindex: 9,
drawStatus: false,
startX: null,
startY: null,
......@@ -125,92 +79,94 @@ export default {
showPayPage: false,
productModelStatus: false,
modeName: ''
};
}
},
computed: {
watchStatus () {
watchStatus() {
return this.$store.state.user.historyStatus
},
penSwitch () {
penSwitch() {
return !this.isPreview && this.drawStatus
},
watchPayInfo () {
watchPayInfo() {
return this.$store.state.user.paymentType.length ? true : false
},
title () {
title() {
let { id } = this,
name = this.media.find((e) => e.id == id)?.detailTitle || ""
return name;
name = this.media.find(e => e.id == id)?.detailTitle || ''
return name
},
finishTips () {
const { channelType } = uni.$storage.get("userInfo")
finishTips() {
const { channelType } = uni.$storage.get('userInfo')
let text = ''
if (channelType == 3) text = '检测到“汽车保险告知书”中未填写客户档案,请填写后再完成接待。'
return text
},
isByd () {
const { channelType } = uni.$storage.get("userInfo")
isByd() {
const { channelType } = uni.$storage.get('userInfo')
return channelType == 2
},
isPreview () {
isPreview() {
return this.type == 'preview'
}
},
watch: {
watchStatus: {
immediate: true,
handler (newval) {
handler(newval) {
if (newval) this.drawStatus = false
}
},
}
},
mounted () {
mounted() {
const systemInfo = uni.getSystemInfoSync()
this.screenWidth = systemInfo.screenWidth
},
methods: {
...mapMutations("audio", ["setReceptionStatus"]),
open () {
...mapMutations('audio', ['setReceptionStatus']),
open() {
this.$refs.stepRef.open()
},
handleFull(val) {
this.backZindex = val ? 0 : 9
},
/**切换素材 */
choose (e) {
choose(e) {
Object.keys(this.$refs).map(refKey => {
let ref = this.$refs[refKey];
let ref = this.$refs[refKey]
if (ref) {
if (Array.isArray(ref)) ref = ref[0]
ref.closeAllPopup && ref.closeAllPopup()
ref && ref.closeAllPopup && ref.closeAllPopup()
}
})
this.receptionTrackLeave()
this.$emit('update:id', e.id)
uni.$logger.local.info(`预览${e.title}`)
},
back () {
back() {
this.$refs?.toolRef?.hide()
this.$emit('back')
},
done (e) {
done(e) {
this.showPayPage = false
this.$refs.toolRef.hide()
this.$refs.stepRef.close()
this.receptionTrackLeave()
this.$emit('done', e)
},
toPay () {
toPay() {
this.$refs.pay.show()
},
dbClick () {
dbClick() {
if (!this.isPreview) this.drawStatus = !this.drawStatus
},
touchStart (e) {
touchStart(e) {
if (!this.drawStatus && e.changedTouches?.length) {
this.startX = e.changedTouches[0].pageX
this.startY = e.changedTouches[0].pageY
}
},
touchEnd (e) {
touchEnd(e) {
if (this.modeName) return
try {
let { toolList, drawStatus, startX, screenWidth, id, scaleValueObject, productModelStatus } = this
......@@ -235,14 +191,14 @@ export default {
console.log(error)
}
},
getNextId (index, toolList, startX, halfScreenWidth) {
getNextId(index, toolList, startX, halfScreenWidth) {
let nextItem = {},
modeName = ''
if (startX > halfScreenWidth) {
nextItem = index === toolList.length - 1 ? toolList[0] : toolList[index + 1];
nextItem = index === toolList.length - 1 ? toolList[0] : toolList[index + 1]
modeName = 'to-right'
} else {
nextItem = index === 0 ? toolList[toolList.length - 1] : toolList[index - 1];
nextItem = index === 0 ? toolList[toolList.length - 1] : toolList[index - 1]
modeName = 'to-left'
}
return {
......@@ -251,14 +207,12 @@ export default {
title: nextItem.title
}
},
scale (e) {
scale(e) {
let { id } = this
this.scaleValueObject[id] = e
},
},
};
}
}
}
</script>
<style scoped lang="scss">
.detail-box {
......@@ -299,7 +253,7 @@ export default {
}
.view {
position: absolute; //验证
width: 100%;
width: 100%;
height: 100%;
z-index: -1;
top: 0;
......
......@@ -127,10 +127,38 @@ export default {
})
},
// 查询素材
// 查询素材
async getSoure() {
/**比亚迪 */
if (this.channelType == 2) {
let { moduleList, toolList } = await uni.$api.systemApi.getBydMockData(true)
let configList
try {
configList = await uni.$api.systemApi.findReceptionpriproConfigList({})
uni.$storage.set('findReceptionpriproConfigList', configList)
} catch (error) {
configList = uni.$storage.get('findReceptionpriproConfigList')
}
const toolOtherList = configList.map(i => {
return {
id: 10 + i.id,
shortTitle: i.productName,
shortTitleUrl: i.procuctLog
}
})
toolList = toolList.concat(toolOtherList)
const moduleOtherList = configList.map(i => {
return {
id: 10 + i.id,
title: i.productName,
shortTitleUrl: i.procuctLog,
productPoster: i.productPoster,
showAlt: false,
componentName: 'CaseCenter',
receptionpriproCusCaseList: i.receptionpriproCusCaseList
}
})
moduleList = moduleList.concat(moduleOtherList)
moduleList = await Promise.all(
moduleList.map(async e => ({
...e,
......@@ -151,6 +179,33 @@ export default {
} else {
let { moduleList, toolList, default_moduleList, default_toolList, boutiqueDefaultCarBrandId } = await uni.$api.systemApi.getMockData(true)
if (this.channelType == 3) {
let configList
try {
configList = await uni.$api.systemApi.findReceptionpriproConfigList({})
uni.$storage.set('findReceptionpriproConfigList', configList)
} catch (error) {
configList = uni.$storage.get('findReceptionpriproConfigList')
}
const toolOtherList = configList.map(i => {
return {
id: 10 + i.id,
shortTitle: i.productName,
shortTitleUrl: i.procuctLog
}
})
default_toolList = default_toolList.concat(toolOtherList)
const moduleOtherList = configList.map(i => {
return {
id: 10 + i.id,
title: i.productName,
shortTitleUrl: i.procuctLog,
productPoster: i.productPoster,
showAlt: false,
componentName: 'CaseCenter',
receptionpriproCusCaseList: i.receptionpriproCusCaseList
}
})
default_moduleList = default_moduleList.concat(moduleOtherList)
/**其他品牌 */
default_toolList = await uni.$api.systemApi.imgToBase64(default_toolList, 'shortTitleUrl')
uni.$api.systemApi.updateMockData(
......@@ -180,6 +235,7 @@ export default {
['moduleList', 'toolList']
)
this.$store.state.user.boutiqueDefaultCarBrandId = boutiqueDefaultCarBrandId
console.log(moduleList, toolList, 999)
this.setViewInfo(moduleList, toolList)
}
}
......@@ -193,17 +249,17 @@ export default {
uni.showLoading({
mask: true
})
const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
if (result !== 1) {
uni.showToast({
title: '为了记录语音通话,请打开录音权限',
icon: 'none'
})
return
}
// const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
// if (result !== 1) {
// uni.showToast({
// title: '为了记录语音通话,请打开录音权限',
// icon: 'none'
// })
// return
// }
this.getSoure()
this.clearHistory()
this.$refs.home.startAudio()
// this.$refs.home.startAudio()
this.id = this.moduleList[0].id
this.type = 'edit'
this.recording = true
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-16 09:55:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-24 15:53:41
* @FilePath: \gl-tape\utils\cache\constantData.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
// export const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/'
// import util from '~/utils/util'
......@@ -25,5 +33,6 @@ export const STORAGE_OBJECTKEY = {
historyList: 'historyList',
storageVersion: 'storageVersion',
byd_mock_data: 'byd_mock_data',
boutique_mock_data: 'boutique_mock_data'
boutique_mock_data: 'boutique_mock_data',
findReceptionpriproConfigList: 'findReceptionpriproConfigList'
}
......@@ -2,32 +2,33 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-11-01 15:06:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-19 16:43:04
* @LastEditTime: 2024-12-25 18:20:52
* @FilePath: \gl-tape\utils\logger\LogCat.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { getTime } from './util'
class LogCat {
main = plus.android.runtimeMainActivity()
File = plus.android.importClass('java.io.File')
Environment = plus.android.importClass('android.os.Environment')
BufferedWriter = plus.android.importClass('java.io.BufferedWriter')
FileOutputStream = plus.android.importClass('java.io.FileOutputStream')
OutputStreamWriter = plus.android.importClass('java.io.OutputStreamWriter')
// main = plus.android.runtimeMainActivity()
// File = plus.android.importClass('java.io.File')
// Environment = plus.android.importClass('android.os.Environment')
// BufferedWriter = plus.android.importClass('java.io.BufferedWriter')
// FileOutputStream = plus.android.importClass('java.io.FileOutputStream')
// OutputStreamWriter = plus.android.importClass('java.io.OutputStreamWriter')
// BufferedReader = plus.android.importClass('java.io.BufferedReader')
// FileInputStream = plus.android.importClass('java.io.FileInputStream')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
LogPath = ''
constructor(folderName = '_zyzs_log') {
if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) {
this.LogPath = this.main.getExternalFilesDir(null).getPath() + folderName
} else {
this.LogPath = this.main.getFilesDir().getPath() + folderName
}
console.log('日志文件存放路径->', this.LogPath)
// if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) {
// this.LogPath = this.main.getExternalFilesDir(null).getPath() + folderName
// } else {
// this.LogPath = this.main.getFilesDir().getPath() + folderName
// }
// console.log('日志文件存放路径->', this.LogPath)
}
writeLog(tag, msg) {
return
let date = getTime('YYYY-MM-DD')
let datetime = getTime()
//文件名
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!