Commit 0b6d7fea by Lin

Merge branch 'saas+v5.8.3' of http://192.168.3.233:8090/glsx/gl_tape into saas+v5.8.3

2 parents cb6d69b6 4eb78bb5
Showing 103 changed files with 223 additions and 259 deletions
...@@ -3,6 +3,4 @@ ...@@ -3,6 +3,4 @@
/.vscode /.vscode
/.DS_Store /.DS_Store
/.hbuilderx /.hbuilderx
node_modules node_modules
assets/images/sprite.png
assets/css/sprite.scss
\ No newline at end of file \ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type

9.49 KB | W: | H:

24.7 KB | W: | H:

assets/spritesmith/active-msg.png
assets/spritesmith/active-msg.png
assets/spritesmith/active-msg.png
assets/spritesmith/active-msg.png
  • 2-up
  • Swipe
  • Onion skin

22.3 KB | W: | H:

46.7 KB | W: | H:

assets/spritesmith/ai-bazaar.png
assets/spritesmith/ai-bazaar.png
assets/spritesmith/ai-bazaar.png
assets/spritesmith/ai-bazaar.png
  • 2-up
  • Swipe
  • Onion skin

26 KB | W: | H:

58.2 KB | W: | H:

assets/spritesmith/bao.png
assets/spritesmith/bao.png
assets/spritesmith/bao.png
assets/spritesmith/bao.png
  • 2-up
  • Swipe
  • Onion skin

25.7 KB | W: | H:

50.3 KB | W: | H:

assets/spritesmith/customer-1.png
assets/spritesmith/customer-1.png
assets/spritesmith/customer-1.png
assets/spritesmith/customer-1.png
  • 2-up
  • Swipe
  • Onion skin

49.6 KB | W: | H:

121 KB | W: | H:

assets/spritesmith/customer-2.png
assets/spritesmith/customer-2.png
assets/spritesmith/customer-2.png
assets/spritesmith/customer-2.png
  • 2-up
  • Swipe
  • Onion skin

10.5 KB | W: | H:

24.6 KB | W: | H:

assets/spritesmith/info-icon.png
assets/spritesmith/info-icon.png
assets/spritesmith/info-icon.png
assets/spritesmith/info-icon.png
  • 2-up
  • Swipe
  • Onion skin

20.1 KB | W: | H:

36.9 KB | W: | H:

assets/spritesmith/learn-bg.png
assets/spritesmith/learn-bg.png
assets/spritesmith/learn-bg.png
assets/spritesmith/learn-bg.png
  • 2-up
  • Swipe
  • Onion skin

168 KB | W: | H:

362 KB | W: | H:

assets/spritesmith/locker-icon.png
assets/spritesmith/locker-icon.png
assets/spritesmith/locker-icon.png
assets/spritesmith/locker-icon.png
  • 2-up
  • Swipe
  • Onion skin

35.6 KB | W: | H:

74.9 KB | W: | H:

assets/spritesmith/no-insurance-data.png
assets/spritesmith/no-insurance-data.png
assets/spritesmith/no-insurance-data.png
assets/spritesmith/no-insurance-data.png
  • 2-up
  • Swipe
  • Onion skin

51.9 KB | W: | H:

80.4 KB | W: | H:

assets/spritesmith/prompt.png
assets/spritesmith/prompt.png
assets/spritesmith/prompt.png
assets/spritesmith/prompt.png
  • 2-up
  • Swipe
  • Onion skin

21 KB | W: | H:

57.2 KB | W: | H:

assets/spritesmith/scene-0.png
assets/spritesmith/scene-0.png
assets/spritesmith/scene-0.png
assets/spritesmith/scene-0.png
  • 2-up
  • Swipe
  • Onion skin

16.3 KB | W: | H:

47.5 KB | W: | H:

assets/spritesmith/scene-1.png
assets/spritesmith/scene-1.png
assets/spritesmith/scene-1.png
assets/spritesmith/scene-1.png
  • 2-up
  • Swipe
  • Onion skin

24.9 KB | W: | H:

76.9 KB | W: | H:

assets/spritesmith/scene-7.png
assets/spritesmith/scene-7.png
assets/spritesmith/scene-7.png
assets/spritesmith/scene-7.png
  • 2-up
  • Swipe
  • Onion skin

17.5 KB | W: | H:

31.7 KB | W: | H:

assets/spritesmith/short-course-learn-room.png
assets/spritesmith/short-course-learn-room.png
assets/spritesmith/short-course-learn-room.png
assets/spritesmith/short-course-learn-room.png
  • 2-up
  • Swipe
  • Onion skin

5.65 KB | W: | H:

15.9 KB | W: | H:

assets/spritesmith/store-daily-report.png
assets/spritesmith/store-daily-report.png
assets/spritesmith/store-daily-report.png
assets/spritesmith/store-daily-report.png
  • 2-up
  • Swipe
  • Onion skin

16.9 KB | W: | H:

58 KB | W: | H:

assets/spritesmith/topTipsRightIcon.png
assets/spritesmith/topTipsRightIcon.png
assets/spritesmith/topTipsRightIcon.png
assets/spritesmith/topTipsRightIcon.png
  • 2-up
  • Swipe
  • Onion skin

4.85 KB | W: | H:

13.3 KB | W: | H:

assets/spritesmith/wage-appeal.png
assets/spritesmith/wage-appeal.png
assets/spritesmith/wage-appeal.png
assets/spritesmith/wage-appeal.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
<view class="fab-content-idle"> <view class="fab-content-idle">
<image <image
class="idle-mascot-svg" class="idle-mascot-svg"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/ai-assistant/side-sparkle-rise-export.svg" src="/static/images/ai-assistant/side-sparkle-rise-export.svg"
mode="scaleToFill" mode="scaleToFill"
></image> ></image>
</view> </view>
<view class="fab-content-active"> <view class="fab-content-active">
<image <image
class="thinking-orb-svg" class="thinking-orb-svg"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/ai-assistant/122-eye-blink.svg" src="/static/images/ai-assistant/122-eye-blink.svg"
mode="scaleToFill" mode="scaleToFill"
></image> ></image>
<!-- <view class="thinking-capsule-bg"></view> --> <!-- <view class="thinking-capsule-bg"></view> -->
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<text class="help-menu-action-text">✨ 帮我回答顾客刚才的问题(近1分钟)</text> <text class="help-menu-action-text">✨ 帮我回答顾客刚才的问题(近1分钟)</text>
<image <image
class="help-menu-action-arrow" class="help-menu-action-arrow"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/ai-assistant/Vector.png" src="/static/images/ai-assistant/Vector.png"
mode="aspectFit" mode="aspectFit"
/> />
</view> </view>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<text class="help-menu-action-text">🌟 介绍下谈客助手该如何使用</text> <text class="help-menu-action-text">🌟 介绍下谈客助手该如何使用</text>
<image <image
class="help-menu-action-arrow" class="help-menu-action-arrow"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/ai-assistant/Vector.png" src="/static/images/ai-assistant/Vector.png"
mode="aspectFit" mode="aspectFit"
/> />
</view> </view>
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<text class="help-menu-action-text">🌟 {{ item.query }}</text> <text class="help-menu-action-text">🌟 {{ item.query }}</text>
<image <image
class="help-menu-action-arrow" class="help-menu-action-arrow"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/ai-assistant/Vector.png" src="/static/images/ai-assistant/Vector.png"
mode="aspectFit" mode="aspectFit"
/> />
</view> </view>
......
...@@ -31,16 +31,10 @@ export default { ...@@ -31,16 +31,10 @@ export default {
valueKey: { valueKey: {
type: String, type: String,
default: 'uuid' default: 'uuid'
},
/** 转化人员(驻店零售)模式,与 OrderPopup 转化人员选择项一致 */
sellerUser: {
type: Boolean,
default: false
} }
}, },
data () { data () {
return { return {
sellerEmployeeList: []
} }
}, },
watch: { watch: {
...@@ -56,7 +50,7 @@ export default { ...@@ -56,7 +50,7 @@ export default {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
selectedId () { selectedId () {
if (Array.isArray(this.list) || this.sellerUser) { if (Array.isArray(this.list)) {
return this.salesPropsUuid return this.salesPropsUuid
} }
return this.$store.state.user.customerInfo.salesUuid || this.salesPropsUuid return this.$store.state.user.customerInfo.salesUuid || this.salesPropsUuid
...@@ -65,9 +59,6 @@ export default { ...@@ -65,9 +59,6 @@ export default {
if (Array.isArray(this.list)) { if (Array.isArray(this.list)) {
return this.list return this.list
} }
if (this.sellerUser) {
return this.sellerEmployeeList
}
return this.$store.state.user.employeeList return this.$store.state.user.employeeList
} }
}, },
...@@ -77,19 +68,8 @@ export default { ...@@ -77,19 +68,8 @@ export default {
open () { open () {
this.$refs.employeeBoxVisible.open() this.$refs.employeeBoxVisible.open()
if (Array.isArray(this.list)) return if (Array.isArray(this.list)) return
const userInfo = uni.$storage.get("userInfo") const userInfo = uni.$storage.get("userInfo"),
if (this.sellerUser) { { shopMerchantId } = userInfo;
const { sceneType, merchantId } = userInfo
const apiTargetName = sceneType == 1 ? 'getEmployeeList' : 'getOrderScreenEmployeeList'
uni.$api.popupApi[apiTargetName]({
merchantId,
sceneList: ''
}).then((res) => {
this.sellerEmployeeList = res || []
})
return
}
const { shopMerchantId } = userInfo
/**获取销售人员 */ /**获取销售人员 */
uni.$api.commonApi uni.$api.commonApi
.getEmployeeList({ .getEmployeeList({
......
<template> <template>
<view class="entrance-box"> <view class="entrance-box">
<template v-if="displayEntranceList.length"> <template v-if="entranceList.length">
<view class="entrance-container"> <view class="entrance-container">
<scroll-view <scroll-view
v-if="scrollable" v-if="scrollable"
...@@ -12,20 +12,18 @@ ...@@ -12,20 +12,18 @@
<view class="entrance-list entrance-list-scroll"> <view class="entrance-list entrance-list-scroll">
<view <view
class="entrance-item" class="entrance-item"
v-for="(item, index) in displayEntranceList" v-for="(item, index) in entranceList"
:key="index" :key="index"
@click="handleClick(item)" @click="handleClick(item)"
> >
<image v-if="item.iconImage" class="entrance-icon" :src="item.iconImage" mode="aspectFit" /> <view :class="['sprite-icon', `icon-${item.icon}`]"></view>
<view v-else :class="['sprite-icon', `icon-${item.icon}`]"></view>
<view class="entrance-name">{{ item.label }}</view> <view class="entrance-name">{{ item.label }}</view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<view v-else :class="['entrance-list', `entrance-list-${type}`]"> <view v-else :class="['entrance-list', `entrance-list-${type}`]">
<view class="entrance-item" v-for="(item, index) in displayEntranceList" :key="index" @click="handleClick(item)"> <view class="entrance-item" v-for="(item, index) in entranceList" :key="index" @click="handleClick(item)">
<image v-if="item.iconImage" class="entrance-icon" :src="item.iconImage" mode="aspectFit" /> <view :class="['sprite-icon', `icon-${item.icon}`]"></view>
<view v-else :class="['sprite-icon', `icon-${item.icon}`]"></view>
<view class="entrance-name">{{ item.label }}</view> <view class="entrance-name">{{ item.label }}</view>
</view> </view>
</view> </view>
...@@ -53,11 +51,6 @@ export default { ...@@ -53,11 +51,6 @@ export default {
scrollable: { scrollable: {
type: Boolean, type: Boolean,
default: false default: false
},
// 轻改限时产品活动 tab 激活时,控制服务中心入口展示
showOnActivityTab: {
type: Boolean,
default: false
} }
}, },
data() { data() {
...@@ -75,12 +68,7 @@ export default { ...@@ -75,12 +68,7 @@ export default {
this.getEntranceList() this.getEntranceList()
}, },
computed: { computed: {
displayEntranceList() {
return this.entranceList.filter(e => {
if (e.showOnActivityTab) return this.showOnActivityTab
return true
})
}
}, },
methods: { methods: {
// 请求工资申诉入口权限,并设置显示开关 // 请求工资申诉入口权限,并设置显示开关
...@@ -212,17 +200,6 @@ export default { ...@@ -212,17 +200,6 @@ export default {
noInterception: true noInterception: true
}, },
{ {
iconImage: require('@/assets/images/common/icon-menu-sever.png'),
name: 'ServiceCenter',
label: '服务中心',
page: '/pages/common/serviceDetail/index',
eventCode: 'app_service_center',
sceneType: [1],
showOnActivityTab: true,
pageDirect: true,
noInterception: true
},
{
icon: 'negotiation-detail', icon: 'negotiation-detail',
name: 'NegotiationDetail', name: 'NegotiationDetail',
label: '洽谈明细', label: '洽谈明细',
...@@ -313,11 +290,6 @@ export default { ...@@ -313,11 +290,6 @@ export default {
margin-top: toRpx(8); margin-top: toRpx(8);
white-space: nowrap; white-space: nowrap;
} }
.entrance-icon {
width: calc(100vmin * (1173 / 768) * 0.04092071611253197);
height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
}
} }
.developing { .developing {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<view class="car-list-inner"> <view class="car-list-inner">
<view <view
v-for="(item, index) in carModelTabs" v-for="(item, index) in carModelTabs"
:key="item.carSeriesId" :key="item.carSeriesId || 'all'"
:class="['car-item', { active: carModelIndex === index }]" :class="['car-item', { active: carModelIndex === index }]"
@click="handleCarModelClick(index)" @click="handleCarModelClick(index)"
> >
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<!-- 展业工具 --> <!-- 展业工具 -->
<view class="tools-box"> <view class="tools-box">
<Entrance scrollable :show-on-activity-tab="showOnActivityTab" @entranceClick="handleEntranceClick" /> <Entrance scrollable @entranceClick="handleEntranceClick" />
</view> </view>
</view> </view>
</template> </template>
...@@ -79,6 +79,13 @@ ...@@ -79,6 +79,13 @@
<script> <script>
import Entrance from '@/components/Entrance.vue' import Entrance from '@/components/Entrance.vue'
const GOODS_COVER = require('@/assets/images/common/goods-activity-cover.png')
/** 前端虚拟 Tab:接口 carSeriesList 不含此项,仅用于 UI 展示「全部车型」 */
const ALL_CAR_SERIES_TAB = {
carSeriesId: '__ALL__',
carSeriesName: '全部车型'
}
export default { export default {
name: 'ActivityTime', name: 'ActivityTime',
...@@ -90,10 +97,6 @@ export default { ...@@ -90,10 +97,6 @@ export default {
activityProductList: { activityProductList: {
type: Array, type: Array,
default: () => [] default: () => []
},
showOnActivityTab: {
type: Boolean,
default: false
} }
}, },
data() { data() {
...@@ -116,7 +119,7 @@ export default { ...@@ -116,7 +119,7 @@ export default {
} }
], ],
activityTypeIndex: 0, activityTypeIndex: 0,
carModelIndex: 0, carModelIndex: 0, // 0 对应「全部车型」,切换活动类型或数据刷新时重置至此
goodsIndex: 0 goodsIndex: 0
} }
}, },
...@@ -135,15 +138,26 @@ export default { ...@@ -135,15 +138,26 @@ export default {
} }
}) })
}, },
// 车型标签栏,无车型数据时不展示 // 当前活动类型下的原始车型列表(接口数据,不含虚拟 Tab)
carModelTabs() { carSeriesList() {
return this.activityProductList[this.activityTypeIndex]?.carSeriesList ?? [] return this.activityProductList[this.activityTypeIndex]?.carSeriesList ?? []
}, },
// 车型标签栏:首位注入「全部车型」,无车型数据时不展示标签栏
carModelTabs() {
if (!this.carSeriesList.length) return []
return [ALL_CAR_SERIES_TAB, ...this.carSeriesList]
},
selectedCarTab() { selectedCarTab() {
return this.carModelTabs[this.carModelIndex] ?? null return this.carModelTabs[this.carModelIndex] ?? null
}, },
isAllCarModelSelected() {
return this.selectedCarTab?.carSeriesId === ALL_CAR_SERIES_TAB.carSeriesId
},
// 全部车型:合并当前活动类型下所有 productList;具体车型:取选中项 productList
goodsList() { goodsList() {
const productList = this.selectedCarTab?.productList ?? [] const productList = this.isAllCarModelSelected
? this.carSeriesList.flatMap(series => series.productList ?? [])
: (this.selectedCarTab?.productList ?? [])
return productList.map(product => this.mapProductItem(product)) return productList.map(product => this.mapProductItem(product))
}, },
selectedGoods() { selectedGoods() {
...@@ -160,7 +174,7 @@ export default { ...@@ -160,7 +174,7 @@ export default {
} }
}, },
watch: { watch: {
// 接口数据更新时重置选中态,默认回到首个活动类型 + 首个车型 // 接口数据更新时重置选中态,默认回到首个活动类型 + 全部车型
activityProductList() { activityProductList() {
this.resetTabSelection() this.resetTabSelection()
}, },
...@@ -174,7 +188,7 @@ export default { ...@@ -174,7 +188,7 @@ export default {
methods: { methods: {
resetTabSelection() { resetTabSelection() {
this.activityTypeIndex = 0 this.activityTypeIndex = 0
this.carModelIndex = 0 this.carModelIndex = 0 // 重置为「全部车型」
this.goodsIndex = 0 this.goodsIndex = 0
}, },
formatPrice(value) { formatPrice(value) {
...@@ -203,13 +217,13 @@ export default { ...@@ -203,13 +217,13 @@ export default {
startTime: product.startTime, startTime: product.startTime,
endTime: product.endTime, endTime: product.endTime,
thumbImageUrl: product.thumbImageUrl, thumbImageUrl: product.thumbImageUrl,
cover: '' cover: GOODS_COVER
} }
}, },
handleActivityTypeClick(index) { handleActivityTypeClick(index) {
if (this.activityTypeIndex === index) return if (this.activityTypeIndex === index) return
this.activityTypeIndex = index this.activityTypeIndex = index
this.carModelIndex = 0 this.carModelIndex = 0 // 切换活动类型后默认选中「全部车型」
this.goodsIndex = 0 this.goodsIndex = 0
}, },
handleCarModelClick(index) { handleCarModelClick(index) {
...@@ -228,7 +242,7 @@ export default { ...@@ -228,7 +242,7 @@ export default {
const payload = { const payload = {
...goods, ...goods,
activityTypeLabel: this.activityTypeList[this.activityTypeIndex]?.label || '', activityTypeLabel: this.activityTypeList[this.activityTypeIndex]?.label || '',
carSeriesName: this.selectedCarTab?.carSeriesName || '' carSeriesName: this.isAllCarModelSelected ? '全部车型' : (this.selectedCarTab?.carSeriesName || '')
} }
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/actuvityDetail?row=${encodeURIComponent(JSON.stringify(payload))}`, url: `/pages/common/actuvityDetail?row=${encodeURIComponent(JSON.stringify(payload))}`,
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<view class="customer-item-body" @click="handleGoCustomerDetail(item)"> <view class="customer-item-body" @click="handleGoCustomerDetail(item)">
<view class="customer-item-row customer-item-row--name"> <view class="customer-item-row customer-item-row--name">
<view class="customer-item-name-left"> <view class="customer-item-name-left">
<text class="customer-item-name">{{ formatName(item.customerName) }}</text> <text class="customer-item-name">{{ item.customerName || '-' }}</text>
<view v-if="item.carSeriesName" class="customer-item-car-tag"> <view v-if="item.carSeriesName" class="customer-item-car-tag">
<text class="customer-item-car-text">{{ item.carSeriesName }}</text> <text class="customer-item-car-text">{{ item.carSeriesName }}</text>
</view> </view>
...@@ -71,18 +71,14 @@ ...@@ -71,18 +71,14 @@
</view> </view>
</view> </view>
<view class="customer-item-row customer-item-row--meta"> <view class="customer-item-row customer-item-row--meta">
<text class="customer-item-meta">{{ formatPhone(item.customerPhone) }}</text> <text class="customer-item-meta">{{ item.customerPhone || '-' }}</text>
<template v-if="hasDisplayDate(item.deliveryDate)"> <view class="customer-item-divider"></view>
<view class="customer-item-divider"></view> <text class="customer-item-meta">交付{{ formatDisplayDate(item.deliveryDate) }}</text>
<text class="customer-item-meta">交付{{ formatDisplayDate(item.deliveryDate) }}</text> <view class="customer-item-divider"></view>
</template> <text class="customer-item-meta">到店{{ formatDisplayDate(item.inviteDate) }}</text>
<template v-if="hasDisplayDate(item.inviteDate)">
<view class="customer-item-divider"></view>
<text class="customer-item-meta">到店{{ formatDisplayDate(item.inviteDate) }}</text>
</template>
</view> </view>
<view class="customer-item-row customer-item-row--group"> <view class="customer-item-row customer-item-row--group">
<text class="customer-item-group">客户群:{{ item.qwGroupName || '客户群不存在' }}</text> <text class="customer-item-group">客户群:{{ item.qwGroupName || '-' }}</text>
<view class="customer-item-arrow"> <view class="customer-item-arrow">
<view class="sprite-icon icon-arrow-right"></view> <view class="sprite-icon icon-arrow-right"></view>
</view> </view>
...@@ -113,14 +109,6 @@ export default { ...@@ -113,14 +109,6 @@ export default {
if (!name) return '' if (!name) return ''
return String(name).charAt(0) return String(name).charAt(0)
}, },
formatName(name) {
if (!name) return '-'
return String(name).charAt(0) + '**'
},
formatPhone(phone) {
if (!phone) return '-'
return String(phone).replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
},
getCustomerStatusLabel(status) { getCustomerStatusLabel(status) {
const map = { const map = {
1: '待跟进', 1: '待跟进',
...@@ -139,14 +127,6 @@ export default { ...@@ -139,14 +127,6 @@ export default {
} }
return map[status] || '' return map[status] || ''
}, },
hasDisplayDate(val) {
if (val === null || val === undefined || val === '') return false
if (typeof val === 'number') {
const date = new Date(val)
return !Number.isNaN(date.getTime())
}
return !!String(val).trim()
},
formatDisplayDate(val) { formatDisplayDate(val) {
if (!val) return '-' if (!val) return '-'
if (typeof val === 'number') { if (typeof val === 'number') {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
pointClassification: ['C001', 'C003', 'C002'], pointClassification: ['C001', 'C003', 'C002'],
pointClassName: ['培训类', '行为类', '学习类'], pointClassName: ['培训类', '行为类', '学习类'],
statistics: {}, statistics: {},
levelImg: [require('@/assets/images/point/time_grey.webp'), require('@/assets/images/point/silver.webp'), require('@/assets/images/point/gold.webp'), require('@/assets/images/point/masonry.webp')], levelImg: [require('@/assets/images/point/bronze.png'), require('@/assets/images/point/silver.png'), require('@/assets/images/point/gold.png'), require('@/assets/images/point/masonry.png')],
detail: [], detail: [],
currentIndex: 0, currentIndex: 0,
pointList: [] pointList: []
......
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
<view :class="{ 'star-desc': true, grey: !badgeList.includes(item.medalType) && !isHigh }">{{ item.levelDesc }}</view> <view :class="{ 'star-desc': true, grey: !badgeList.includes(item.medalType) && !isHigh }">{{ item.levelDesc }}</view>
<view class="star-coupon" v-if="item.couponName"> <view class="star-coupon" v-if="item.couponName">
<view class="coupon-box"> <view class="coupon-box">
<image :src="require('@/assets/images/point/coupon_bg.webp')" v-if="badgeList.includes(item.medalType) || isHigh"></image> <image :src="require('@/assets/images/point/coupon_bg.png')" v-if="badgeList.includes(item.medalType) || isHigh"></image>
<image :src="require('@/assets/images/point/coupon_grey.webp')" v-else></image> <image :src="require('@/assets/images/point/coupon_grey.png')" v-else></image>
<view :class="{ 'coupon-title': true, grey: !badgeList.includes(item.medalType) && !isHigh }">{{ item.couponName }}</view> <view :class="{ 'coupon-title': true, grey: !badgeList.includes(item.medalType) && !isHigh }">{{ item.couponName }}</view>
<view :class="{ 'coupon-num': true, grey: !badgeList.includes(item.medalType) && !isHigh }">{{ item.couponCount }}张</view> <view :class="{ 'coupon-num': true, grey: !badgeList.includes(item.medalType) && !isHigh }">{{ item.couponCount }}张</view>
</view> </view>
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
<script> <script>
const GROUP_LIST = [ const GROUP_LIST = [
{ 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名' }, { 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名' },
{ title: '全勤之星', style: 'background: #FFFAED;', medalType: 2, logo: require('@/assets/images/point/time_star.webp'), logo_grey: require('@/assets/images/point/time_grey.webp'), content: '当月全勤准时打卡,不包含请假特批' }, { title: '全勤之星', style: 'background: #FFFAED;', medalType: 2, logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), content: '当月全勤准时打卡,不包含请假特批' },
{ title: '平板接待精英', style: 'background: #FFFAED;', medalType: 3, logo: require('@/assets/images/point/elite_star.webp'), logo_grey: require('@/assets/images/point/elite_grey.webp'), content: '平板接待月度无扣分记录' } { title: '平板接待精英', style: 'background: #FFFAED;', medalType: 3, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), content: '平板接待月度无扣分记录' }
] ]
import point from '@/mixin/point' import point from '@/mixin/point'
import pointTrack from '@/mixin/pointTrack' import pointTrack from '@/mixin/pointTrack'
......
...@@ -1225,7 +1225,7 @@ export default { ...@@ -1225,7 +1225,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: toRpx(24); margin-bottom: toRpx(24);
background: url(../../../../assets/images/point/coupon-address.webp) no-repeat; background: url(../../../../assets/images/point/coupon-address.png) no-repeat;
// background-size: 100% auto; // background-size: 100% auto;
// background-image: linear-gradient(90deg, #ffffff99 0%, #ffffffeb 23%, #F5F7FA 100%); // background-image: linear-gradient(90deg, #ffffff99 0%, #ffffffeb 23%, #F5F7FA 100%);
border-radius: toRpx(16); border-radius: toRpx(16);
......
...@@ -67,14 +67,14 @@ const POINT_LIST = [ ...@@ -67,14 +67,14 @@ const POINT_LIST = [
{ {
id: 0, id: 0,
title: '积分排行', title: '积分排行',
src: require('@/assets/images/point/point_bg.webp'), src: require('@/assets/images/point/point_bg.png'),
style: 'background: #fef2cb99;', style: 'background: #fef2cb99;',
isCrown: true isCrown: true
}, },
{ {
id: 1, id: 1,
title: '学习之星', title: '学习之星',
src: require('@/assets/images/point/study_bg.webp'), src: require('@/assets/images/point/study_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);' style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
}, },
{ {
...@@ -101,8 +101,8 @@ export default { ...@@ -101,8 +101,8 @@ export default {
selectItem: {}, selectItem: {},
detail: [], detail: [],
currentIndex: 0, currentIndex: 0,
pointImg: [require('@/assets/images/point/bronze_ranking.webp'), require('@/assets/images/point/silver_ranking.webp'), require('@/assets/images/point/masonry_ranking.webp')], pointImg: [require('@/assets/images/point/bronze_ranking.png'), require('@/assets/images/point/silver_ranking.png'), require('@/assets/images/point/masonry_ranking.png')],
starImg: [require('@/assets/images/point/study_star.png'), require('@/assets/images/point/time_star.webp'), require('@/assets/images/point/elite_star.webp')], starImg: [require('@/assets/images/point/study_star.png'), require('@/assets/images/point/time_star.png'), require('@/assets/images/point/elite_star.png')],
pointList: [] pointList: []
} }
}, },
......
...@@ -119,8 +119,8 @@ ...@@ -119,8 +119,8 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
const START_LIST = [{ title: '学习之星', medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), }, const START_LIST = [{ title: '学习之星', medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), },
{ title: '全勤之星', medalType: 2, logo: require('@/assets/images/point/time_star.webp'), logo_grey: require('@/assets/images/point/time_grey.webp'), }, { title: '全勤之星', medalType: 2, logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), },
{ title: '平板接待精英', medalType: 4, logo: require('@/assets/images/point/elite_star.webp'), logo_grey: require('@/assets/images/point/elite_grey.webp'), }] { title: '平板接待精英', medalType: 4, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), }]
import pointTrack from '@/mixin/pointTrack' import pointTrack from '@/mixin/pointTrack'
export default { export default {
mixins: [pointTrack], mixins: [pointTrack],
...@@ -139,28 +139,28 @@ export default { ...@@ -139,28 +139,28 @@ export default {
titleStyle: 'background: linear-gradient(129deg, #88696B 13%, #665253 91%);color: transparent; background-clip: text;-webkit-background-clip: text; ', titleStyle: 'background: linear-gradient(129deg, #88696B 13%, #665253 91%);color: transparent; background-clip: text;-webkit-background-clip: text; ',
subTitleStyle: 'color: #995737;background-image: linear-gradient(94deg, #ffffff3d 2%, #ffffff66 51%, #ffffff1f 99%);', subTitleStyle: 'color: #995737;background-image: linear-gradient(94deg, #ffffff3d 2%, #ffffff66 51%, #ffffff1f 99%);',
style: 'background-image: linear-gradient(138deg, #F5E7DE 0%, #F1DBCF 20%, #F1DACD 39%, #EACEC0 40%, #EACDBF 70%, #F3DBD0 100%);', style: 'background-image: linear-gradient(138deg, #F5E7DE 0%, #F1DBCF 20%, #F1DACD 39%, #EACEC0 40%, #EACDBF 70%, #F3DBD0 100%);',
logo: require('@/assets/images/point/time_grey.webp'), logo: require('@/assets/images/point/bronze.png'),
}, },
{ {
title: '白银级熟手', title: '白银级熟手',
titleStyle: 'background: linear-gradient(129deg, #4A668F 13%, #333B43 91%);color: transparent; background-clip: text;webkit-background-clip: text;', titleStyle: 'background: linear-gradient(129deg, #4A668F 13%, #333B43 91%);color: transparent; background-clip: text;webkit-background-clip: text;',
subTitleStyle: 'color: #556985;background-image: linear-gradient(94deg, #ffffff3d 2%, #ffffff66 51%, #ffffff1f 99%);', subTitleStyle: 'color: #556985;background-image: linear-gradient(94deg, #ffffff3d 2%, #ffffff66 51%, #ffffff1f 99%);',
style: 'background-image: linear-gradient(138deg, #EDF0F5 0%, #E0E7EF 25%, #E4EAF2 39%, #DDE4ED 40%, #CCD7E6 74%, #D8E1ED 100%);', style: 'background-image: linear-gradient(138deg, #EDF0F5 0%, #E0E7EF 25%, #E4EAF2 39%, #DDE4ED 40%, #CCD7E6 74%, #D8E1ED 100%);',
logo: require('@/assets/images/point/silver.webp'), logo: require('@/assets/images/point/silver.png'),
}, },
{ {
title: '黄金级能手', title: '黄金级能手',
titleStyle: 'background: linear-gradient(129deg, #B17813 13%, #794308 91%);color: transparent; background-clip: text;webkit-background-clip: text;', titleStyle: 'background: linear-gradient(129deg, #B17813 13%, #794308 91%);color: transparent; background-clip: text;webkit-background-clip: text;',
subTitleStyle: 'color: #855A1B;background-image: linear-gradient(94deg, #ffffff3d 2%, #ffffff66 51%, #ffffff1f 99%);', subTitleStyle: 'color: #855A1B;background-image: linear-gradient(94deg, #ffffff3d 2%, #ffffff66 51%, #ffffff1f 99%);',
style: 'background-image: linear-gradient(138deg, #F7EFD7 0%, #F1E3C0 25%, #F1E4C1 39%, #EAD6A8 40%, #EAD6A6 74%, #F0E3C0 100%);', style: 'background-image: linear-gradient(138deg, #F7EFD7 0%, #F1E3C0 25%, #F1E4C1 39%, #EAD6A8 40%, #EAD6A6 74%, #F0E3C0 100%);',
logo: require('@/assets/images/point/gold.webp'), logo: require('@/assets/images/point/gold.png'),
}, },
{ {
title: '钻石级专家', title: '钻石级专家',
titleStyle: 'background: linear-gradient(111deg, #E7E8FD 11%, #C7CDF2 53%, #F4D8E8 100%);color: transparent; background-clip: text;webkit-background-clip: text;', titleStyle: 'background: linear-gradient(111deg, #E7E8FD 11%, #C7CDF2 53%, #F4D8E8 100%);color: transparent; background-clip: text;webkit-background-clip: text;',
subTitleStyle: 'color: #E7E8FD;background-image: linear-gradient(94deg, #ffffff3d 2%, #ffffff66 51%, #ffffff1f 99%);', subTitleStyle: 'color: #E7E8FD;background-image: linear-gradient(94deg, #ffffff3d 2%, #ffffff66 51%, #ffffff1f 99%);',
style: 'background-image: linear-gradient(138deg, #7162B6 0%, #433C94 25%, #313279 39%, #272A5B 40%, #2F356B 74%, #363E7A 100%);', style: 'background-image: linear-gradient(138deg, #7162B6 0%, #433C94 25%, #313279 39%, #272A5B 40%, #2F356B 74%, #363E7A 100%);',
logo: require('@/assets/images/point/masonry.webp'), logo: require('@/assets/images/point/masonry.png'),
} }
], ],
starList: [], starList: [],
...@@ -409,12 +409,12 @@ export default { ...@@ -409,12 +409,12 @@ export default {
} }
.claimed-bg { .claimed-bg {
background: url(../../../../assets//images/boutique/coupon-1.webp) no-repeat; background: url(../../../../assets//images/boutique/coupon-1.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.unclaimed-bg { .unclaimed-bg {
background: url(../../../../assets//images/boutique/coupon-2.webp) no-repeat; background: url(../../../../assets//images/boutique/coupon-2.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
......
...@@ -104,11 +104,7 @@ ...@@ -104,11 +104,7 @@
<!-- 限时产品活动 --> <!-- 限时产品活动 -->
<view v-show="currentHomeContentTab && currentHomeContentTab.key === 'activity'" class="right-content-box flex right-content-box-scene1"> <view v-show="currentHomeContentTab && currentHomeContentTab.key === 'activity'" class="right-content-box flex right-content-box-scene1">
<view class="tab-container"> <view class="tab-container">
<ActivityTime <ActivityTime :activityProductList="activityProductList" @entranceClick="entranceClick" />
:activityProductList="activityProductList"
:show-on-activity-tab="currentHomeContentTab && currentHomeContentTab.key === 'activity'"
@entranceClick="entranceClick"
/>
<view class="line"></view> <view class="line"></view>
<CustomerSide :customerProfile="customerProfileList" /> <CustomerSide :customerProfile="customerProfileList" />
</view> </view>
...@@ -730,7 +726,12 @@ export default { ...@@ -730,7 +726,12 @@ export default {
* 查询策略首页数据状态(营销活动和客户列表是否有数据) * 查询策略首页数据状态(营销活动和客户列表是否有数据)
*/ */
async getStrategyStatus() { async getStrategyStatus() {
const res = await uni.$api.activityApi.getActivityStatusAPI({merchantId: uni.$storage.get('userInfo').shopMerchantId}) // const res = await uni.$api.activityApi.getActivityStatusAPI()
console.log('查询策略首页数据状态(营销活动和客户列表是否有数据):', res)
const res = {
marketingActivityHasData: true,
customerListHasData: true
}
console.log('%c查询策略首页数据状态(营销活动和客户列表是否有数据):', 'color: green;', res) console.log('%c查询策略首页数据状态(营销活动和客户列表是否有数据):', 'color: green;', res)
if (!res) return if (!res) return
...@@ -778,7 +779,7 @@ export default { ...@@ -778,7 +779,7 @@ export default {
async getPrelearnHome() { async getPrelearnHome() {
try { try {
const res = await uni.$api.commonApi.getPrelernHomePopupAPI() const res = await uni.$api.commonApi.getPrelernHomePopupAPI()
console.log('预学习:查询预学习首页弹框信息***', res); console.log('getPrelernHomePopupAPI res***', res);
if (!res) return if (!res) return
this.prelearnData = res this.prelearnData = res
this.showPreStudyPopup = res.shouldPopup this.showPreStudyPopup = res.shouldPopup
...@@ -988,7 +989,7 @@ export default { ...@@ -988,7 +989,7 @@ export default {
} }
if (item.page) if (item.page)
return uni.navigateTo({ return uni.navigateTo({
url: item.pageDirect ? item.page : `${item.page}?componentName=${item.name}` url: `${item.page}?componentName=${item.name}`
}) })
let pageName = { let pageName = {
0: 'equity', 0: 'equity',
......
...@@ -67,7 +67,24 @@ export default { ...@@ -67,7 +67,24 @@ export default {
if (item.learnStatus !== 'NOT_STUDY') return if (item.learnStatus !== 'NOT_STUDY') return
try { try {
const res = await uni.$api.commonApi.getPrelernHomePopupAPI() // const res = await uni.$api.commonApi.getPrelernHomePopupAPI()
const res = {
"activityId": 31,
"activityName": "618年中促活动A",
"packages": [
{
"activityProductId": "16",
"packageName": "tttttttt",
"includes": ['原厂定制车衣','玻璃贴膜'],
"learnStatus": "NOT_STUDY",
"scriptReady": true
}
],
"remainingSkipCount": 0,
"shouldPopup": true,
"muteReason": null,
"remainingActivityCount": null
}
console.log('getPrelernHomePopupAPI res***', res) console.log('getPrelernHomePopupAPI res***', res)
if (!res) return if (!res) return
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "展业助手", "name" : "展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "2.25.4", "versionName" : "2.26.0",
"versionCode" : 2254, "versionCode" : 2260,
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
<template v-else> <template v-else>
<view :class="['sku-box', isPreview ? 'preview' : '']"> <view :class="['sku-box', isPreview ? 'preview' : '']">
<sku-box :currentCar="currentCarId" :defaultTabId="tabId" <sku-box :currentCar="currentCarId" :defaultTabId="tabId"
:show="show && (tabIndex != tabs.length - 1)" @changePreView="changePreView" ref="sku" /> :show="show && !showActivity && (tabIndex != tabs.length - 1)" @changePreView="changePreView"
ref="sku" />
</view> </view>
</template> </template>
<view class="coupon-btn flex" v-if="!isPreview" @click="couponPopupRef.open(customerType, customerInfo)"> <view class="coupon-btn flex" v-if="!isPreview" @click="couponPopupRef.open(customerType, customerInfo)">
...@@ -286,7 +287,6 @@ export default { ...@@ -286,7 +287,6 @@ export default {
this.isSelect = false this.isSelect = false
this.updateViewKey = Date.now() this.updateViewKey = Date.now()
this.clearCanvas() this.clearCanvas()
if (this.tabIndex == 0 && !this.$refs.sku && !this.hasBeforeActivity && !this.hasAfterActivity) this.changeTab(0, true, false)
}, },
changePreView(e, leave = true, clearBoard = true) { changePreView(e, leave = true, clearBoard = true) {
let { currentItem } = this, let { currentItem } = this,
...@@ -365,15 +365,13 @@ export default { ...@@ -365,15 +365,13 @@ export default {
let skuIndex = 0 let skuIndex = 0
if (this.hasBeforeActivity || this.hasAfterActivity) skuIndex = 1 if (this.hasBeforeActivity || this.hasAfterActivity) skuIndex = 1
if (this.hasBeforeActivity && this.hasAfterActivity) skuIndex = 2 if (this.hasBeforeActivity && this.hasAfterActivity) skuIndex = 2
if (this.tabIndex == skuIndex && this.currentItem && this.currentItem.carModelName) this.previewLeave(this.currentItem) if (this.tabIndex == skuIndex && this.currentItem.carModelName) this.previewLeave(this.currentItem)
let goods = this.$refs.goodsBox let goods = this.$refs.goodsBox
let skuRef = this.$refs.sku
this.tabIndex = index this.tabIndex = index
this.currentItem = null this.currentItem = null
this.tabListId = this.tabs[index].id this.tabListId = this.tabs[index].id
setTimeout(() => { setTimeout(() => {
if (changeCar && goods && [0, 1].includes(this.tabListId)) goods.changeCar(this.currentCarId) if (changeCar && goods && [0, 1].includes(this.tabListId)) goods.changeCar(this.currentCarId)
if (skuRef && skuIndex == index) skuRef.changeCar(this.currentCarId)
this.clearCanvas() this.clearCanvas()
}, 100) }, 100)
}, },
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<image <image
v-else v-else
class="image-box photo" class="image-box photo"
src="../../assets/images/boutique/photos.webp" src="../../assets/images/boutique/photos.png"
/> />
<view class="gradient-overlay"></view> <view class="gradient-overlay"></view>
<view class="box-desc"> <view class="box-desc">
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
></view> ></view>
</view> </view>
<view <view
v-if="item.type === 'single' && hasMinSellPrice(item.minSellPrice)" v-if="item.type === 'single' && hasActivityPrice(item.activityPrice)"
class="min-price" class="min-price"
>活动价 ¥ {{ item.minSellPrice }}</view> >活动价 ¥ {{ item.activityPrice }}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -50,9 +50,9 @@ ...@@ -50,9 +50,9 @@
<view class="child-name">{{ child.name }}</view> <view class="child-name">{{ child.name }}</view>
</view> </view>
<view <view
v-if="hasMinSellPrice(child.minSellPrice)" v-if="hasActivityPrice(child.activityPrice)"
class="min-price" class="min-price"
>活动价 ¥ {{ child.minSellPrice }}</view> >活动价 ¥ {{ child.activityPrice }}</view>
</view> </view>
<view class="card-right"> <view class="card-right">
<view class="current-price">¥ {{ child.sellPrice }}</view> <view class="current-price">¥ {{ child.sellPrice }}</view>
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
} }
}, },
methods: { methods: {
hasMinSellPrice(value) { hasActivityPrice(value) {
return value != null && value !== '' return value != null && value !== ''
}, },
shouldShowMarketingIcon(item) { shouldShowMarketingIcon(item) {
......
<template> <template>
<view class="activity-detail-page"> <view class="activity-detail-page">
<view class="back-btn" :style="backButtonStyle" @click.stop="back"> <view class="nav-bar">
<image <view class="back" @click="back">
class="back-icon" <uni-icons type="left" :size="20" color="#000"></uni-icons>
:src="require('@/assets/images/common/icon-arrow-back.png')" </view>
mode="aspectFit" <view class="title">商品详情</view>
/>
</view> </view>
<image <scroll-view class="detail-scroll" scroll-y>
class="goods-img" <view class="detail-content">
:src="displayMainImage" <view class="goods-img-wrap">
mode="aspectFill" <image
/> class="goods-img"
:src="displayMainImage"
<image mode="aspectFill"
v-if="goodsInfo.isMainPush == 1" />
class="prelearn-entrance" <view
:style="prelearnButtonStyle" v-if="goodsInfo.isMainPush == 1"
:src="require('@/assets/images/common/icon-prestudy-entrance.webp')" class="prelearn-btn"
mode="aspectFit" @click.stop="handlePrelearnClick"
@click.stop="handlePrelearnClick" >
/> 预学习
</view>
</view>
</view>
</scroll-view>
</view> </view>
</template> </template>
<script> <script>
const GOODS_COVER = require('@/assets/images/common/goods-activity-cover.png')
const PRELEARN_AI_STATUS = { const PRELEARN_AI_STATUS = {
GENERATING: 'GENERATING', GENERATING: 'GENERATING',
...@@ -49,32 +53,7 @@ export default { ...@@ -49,32 +53,7 @@ export default {
}, },
computed: { computed: {
displayMainImage() { displayMainImage() {
return this.goodsInfo.detailImageUrl || '' return this.goodsInfo.mainImageUrl || this.goodsInfo.thumbImageUrl || GOODS_COVER
},
backButtonStyle() {
const { top, left } = this.overlayLayoutPx
return {
top: `${top}px`,
left: `${left}px`
}
},
prelearnButtonStyle() {
const { top, right } = this.overlayLayoutPx
return {
top: `${top}px`,
right: `${right}px`
}
},
overlayLayoutPx() {
const sys = uni.getSystemInfoSync()
const r = sys.windowWidth / 750
const safeTop = sys.safeAreaInsets?.top ?? sys.statusBarHeight ?? 0
const edge = Math.ceil(18 * r)
return {
top: safeTop + Math.ceil(16 * r),
left: edge,
right: edge
}
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -143,36 +122,78 @@ export default { ...@@ -143,36 +122,78 @@ export default {
position: relative; position: relative;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
overflow: hidden; background-image: url('@/assets/images/common/page-bg.webp');
background-color: #000; background-size: 100%;
box-sizing: border-box;
padding-top: toRpx(160);
} }
.goods-img { .nav-bar {
position: fixed;
width: 100%; width: 100%;
height: 100%; height: toRpx(96);
display: block; left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
} }
.back-btn { .detail-scroll {
position: fixed; height: calc(100vh - #{toRpx(160)});
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
} }
.back-icon { .detail-content {
width: 24px; margin: 0 toRpx(64) toRpx(80);
height: 24px; padding-bottom: toRpx(40);
} }
.prelearn-entrance { .goods-img-wrap {
position: fixed; position: relative;
z-index: 10; width: 100%;
width: 152px; height: 288px;
height: 92px; overflow: hidden;
border-radius: 8px;
}
.goods-img {
width: 100%;
height: 288px;
display: block;
border-radius: 8px;
}
.prelearn-btn {
position: absolute;
top: 0;
right: 0;
z-index: 1;
padding: toRpx(10) toRpx(16);
border-radius: 0 8px 0 8px;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
font-size: 14px;
line-height: 14px;
font-weight: 500;
color: #ffffff;
white-space: nowrap;
&:active { &:active {
opacity: 0.85; opacity: 0.85;
......
...@@ -49,9 +49,9 @@ ...@@ -49,9 +49,9 @@
<template v-else> <template v-else>
<view <view
:class="['select flex', { placeholderStyle: !customerInfo[i.valueKey] }]" :class="['select flex', { placeholderStyle: !customerInfo[i.valueKey] }]"
@click="showPopup(i)" @click="showPopup(i.popKey)"
> >
<view class="value text-hide">{{ getFieldDisplayValue(i) || `请选择${i.label}` }}</view> <view class="value text-hide">{{ customerInfo[i.valueKey] || `请选择${i.label}` }}</view>
<uni-icons class="arrow" type="right" :size="16"></uni-icons> <uni-icons class="arrow" type="right" :size="16"></uni-icons>
</view> </view>
</template> </template>
...@@ -99,9 +99,9 @@ ...@@ -99,9 +99,9 @@
<template v-else> <template v-else>
<view <view
:class="['select flex', { placeholderStyle: !customerInfo[i.valueKey] }]" :class="['select flex', { placeholderStyle: !customerInfo[i.valueKey] }]"
@click="showPopup(i)" @click="showPopup(i.popKey)"
> >
<view class="value text-hide">{{ getFieldDisplayValue(i) || '请选择' }}</view> <view class="value text-hide">{{ customerInfo[i.valueKey] || '请选择' }}</view>
<uni-icons class="arrow" type="right" :size="16"></uni-icons> <uni-icons class="arrow" type="right" :size="16"></uni-icons>
</view> </view>
</template> </template>
...@@ -132,8 +132,7 @@ ...@@ -132,8 +132,7 @@
<employee <employee
ref="residentSaleVisible" ref="residentSaleVisible"
title="驻店零售" title="驻店零售"
:sellerUser="employeeSelectKey === 'sellerUserId'" :salesPropsUuid="customerInfo.residentSaleId"
:salesPropsUuid="employeeSelectKey ? customerInfo[employeeSelectKey] : ''"
@select="handleSelect($event, 'residentSaleVisible')" @select="handleSelect($event, 'residentSaleVisible')"
/> />
</view> </view>
...@@ -191,12 +190,11 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/, ...@@ -191,12 +190,11 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
}, },
{ {
label: '流量来源', label: '流量来源',
valueKey: 'employeeName', valueKey: 'residentSaleName',
key: 'userId', key: 'residentSaleId',
type: 'select', type: 'select',
required: true, required: true,
popKey: 'residentSaleVisible', popKey: 'residentSaleVisible'
merchantNameKey: 'merchantName'
} }
// { // {
// label: '接待场景', // label: '接待场景',
...@@ -228,8 +226,8 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/, ...@@ -228,8 +226,8 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
type: 'date' type: 'date'
},{ },{
label: '驻店零售', label: '驻店零售',
valueKey: 'sellerName', valueKey: 'residentSaleName',
key: 'sellerUserId', key: 'residentSaleId',
type: 'select', type: 'select',
popKey: 'residentSaleVisible' popKey: 'residentSaleVisible'
}] }]
...@@ -288,8 +286,6 @@ export default { ...@@ -288,8 +286,6 @@ export default {
customerName: '', customerName: '',
customerPhone: '', customerPhone: '',
carTypeName: '', carTypeName: '',
carChildsBrandId: '',
carChildsBrandName: '',
receptionScene: '', receptionScene: '',
arrivalDate: '', arrivalDate: '',
receptionSceneName: '', receptionSceneName: '',
...@@ -322,15 +318,8 @@ export default { ...@@ -322,15 +318,8 @@ export default {
animationDuration: 100 animationDuration: 100
}) })
}, },
showPopup (item) { showPopup (e) {
this.employeeSelectKey = item.key this.$refs[e].open()
this.$refs[item.popKey].open()
},
getFieldDisplayValue (field) {
const value = this.customerInfo[field.valueKey]
if (!value) return ''
const merchantName = field.merchantNameKey && this.customerInfo[field.merchantNameKey]
return merchantName ? `${merchantName}-${value}` : value
}, },
handleSelect (item, popkey) { handleSelect (item, popkey) {
this.$refs[popkey].close() this.$refs[popkey].close()
...@@ -339,23 +328,14 @@ export default { ...@@ -339,23 +328,14 @@ export default {
Object.assign(this.customerInfo, { Object.assign(this.customerInfo, {
carTypeName: item.name, carTypeName: item.name,
carTypeId: item.id, carTypeId: item.id,
carChildsBrandName: item.carChildsBrandName,
carChildsBrandId: item.carChildsBrandId,
carBrand: item.carChildsBrandName, carBrand: item.carChildsBrandName,
carBrandId: item.carChildsBrandId, carBrandId: item.carChildsBrandId,
oneCarBrand: item.carBrand, oneCarBrand: item.carBrand,
oneCarBrandId: item.carBrandId oneCarBrandId: item.carBrandId
}) })
} else if (popkey == 'residentSaleVisible') { } else if (popkey == 'residentSaleVisible') {
const field = this.customerForm.concat(this.optionalForm).find(e => e.key === this.employeeSelectKey) this.customerInfo.residentSaleName = item.staffName
if (field) { this.customerInfo.residentSaleId = item.uuid
if (field.merchantNameKey) {
const { shopMerchantName } = uni.$storage.get('userInfo') || {}
this.customerInfo[field.merchantNameKey] = item.merchantName || shopMerchantName || ''
}
this.customerInfo[field.valueKey] = item.staffName
this.customerInfo[field.key] = item.uuid
}
} else { } else {
this.customerInfo.receptionSceneName = item.receptionSceneName this.customerInfo.receptionSceneName = item.receptionSceneName
this.customerInfo.receptionScene = item.id this.customerInfo.receptionScene = item.id
...@@ -430,12 +410,10 @@ export default { ...@@ -430,12 +410,10 @@ export default {
carTypeId: customerInfo.carTypeId, carTypeId: customerInfo.carTypeId,
carBrand: customerInfo.carBrand, carBrand: customerInfo.carBrand,
carBrandId: customerInfo.carBrandId, carBrandId: customerInfo.carBrandId,
carChildsBrandId: customerInfo.carChildsBrandId,
carChildsBrandName: customerInfo.carChildsBrandName,
oneCarBrand: customerInfo.oneCarBrand, oneCarBrand: customerInfo.oneCarBrand,
oneCarBrandId: customerInfo.oneCarBrandId, oneCarBrandId: customerInfo.oneCarBrandId,
employeeName: customerInfo.employeeName, employeeName: uni.$storage.get('userInfo').name,
userId: customerInfo.userId, userId: uni.$storage.get('userInfo').uuid,
sellerMerchantId: uni.$storage.get('userInfo').merchantId sellerMerchantId: uni.$storage.get('userInfo').merchantId
}) })
uni.showLoading({ uni.showLoading({
...@@ -457,13 +435,10 @@ export default { ...@@ -457,13 +435,10 @@ export default {
customerPhone:params.customerPhone, customerPhone:params.customerPhone,
carBrand:params.carBrand, carBrand:params.carBrand,
carBrandId:params.carBrandId, carBrandId:params.carBrandId,
carChildsBrandId: params.carChildsBrandId, carChildsBrandId:'',
carChildsBrandName: params.carChildsBrandName, carChildsBrandName:'',
standNo:params.standNo,
carSeriesId:params.carTypeId, carSeriesId:params.carTypeId,
carSeriesName:params.carTypeName, carSeriesName:params.carTypeName,
employeeName:params.employeeName,
userId:params.userId,
deliveryDate: params.arrivalDate ? params.arrivalDate + ' 00:00:00' : params.arrivalDate, //交付日期 deliveryDate: params.arrivalDate ? params.arrivalDate + ' 00:00:00' : params.arrivalDate, //交付日期
inviteDate: params.inviteDate ? params.inviteDate + ' 00:00:00' : params.inviteDate, //到店日期 inviteDate: params.inviteDate ? params.inviteDate + ' 00:00:00' : params.inviteDate, //到店日期
createdDate: params.filingDate, //建档日期 createdDate: params.filingDate, //建档日期
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</view> </view>
<!-- 成功图片 --> <!-- 成功图片 -->
<image class="success-icon" :src="require('@/assets/images/studyCenter/success.webp')" mode="aspectFit" /> <image class="success-icon" :src="require('@/assets/images/studyCenter/success.png')" mode="aspectFit" />
</view> </view>
</view> </view>
</view> </view>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<!-- 左侧排行榜 --> <!-- 左侧排行榜 -->
<view class="left-panel"> <view class="left-panel">
<view class="top-image-wrapper"> <view class="top-image-wrapper">
<image class="panel-image" :src="require('@/assets/images/studyCenter/Leaderboard-bg.webp')" <image class="panel-image" :src="require('@/assets/images/studyCenter/Leaderboard-bg.png')"
mode="scaleToFill" /> mode="scaleToFill" />
</view> </view>
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -108,6 +108,14 @@ export function snapshotOrderItemsOriginalPrice(items) { ...@@ -108,6 +108,14 @@ export function snapshotOrderItemsOriginalPrice(items) {
items.forEach(snapshotOrderItemOriginalPrice) items.forEach(snapshotOrderItemOriginalPrice)
} }
// 活动价:选品时商品列表售价快照,改价后不变
export function getActivityPrice(goods) {
if (!goods) return null
const source = goods.oldPrice ?? goods.upgradePrice ?? goods.price
if (!hasActivityValue(source)) return null
return source
}
export function getSubmitModifyFlag(goods) { export function getSubmitModifyFlag(goods) {
if (!goods) return 0 if (!goods) return 0
const current = parseFloat(goods.sellPrice ?? 0) const current = parseFloat(goods.sellPrice ?? 0)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!