Commit ef474882 by 岑成威

fix: 更改谈客Ai

1 parent e1e013c1

3.23 MB | W: | H:

3.24 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -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特有相关 */
......
...@@ -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) {
......
...@@ -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)
......
import { getActivityPrice } from '@/utils/marketingFlag'
export function isBelowMinSellPrice(goods, value) { export function isBelowMinSellPrice(goods, value) {
if (!goods || goods.validMinSellPrice !== 'Y' || goods.minSellPrice == null || goods.minSellPrice === '') { if (!goods || goods.validMinSellPrice !== 'Y' || goods.minSellPrice == null || goods.minSellPrice === '') {
return false return false
...@@ -17,7 +19,7 @@ function buildSingleApprovalItem(item, goods, number) { ...@@ -17,7 +19,7 @@ function buildSingleApprovalItem(item, goods, number) {
type: 'single', type: 'single',
name: getGoodsDisplayName(goods), name: getGoodsDisplayName(goods),
sellPrice, sellPrice,
minSellPrice: goods.minSellPrice, activityPrice: getActivityPrice(goods),
number: number || '1', number: number || '1',
sourceItem: item sourceItem: item
} }
...@@ -47,7 +49,7 @@ function buildPackageApprovalItem(item, orderTypeCode) { ...@@ -47,7 +49,7 @@ function buildPackageApprovalItem(item, orderTypeCode) {
return { return {
name: getGoodsDisplayName(goods), name: getGoodsDisplayName(goods),
sellPrice, sellPrice,
minSellPrice: goods.minSellPrice, activityPrice: getActivityPrice(goods),
number: item.packageGoods.number || '1', number: item.packageGoods.number || '1',
sourceGoods: goods sourceGoods: goods
} }
......
...@@ -295,7 +295,7 @@ class RecordService { ...@@ -295,7 +295,7 @@ class RecordService {
const useWs = !!wsBase const useWs = !!wsBase
const transport = useWs ? TransportType.WEBSOCKET : TransportType.HTTP const transport = useWs ? TransportType.WEBSOCKET : TransportType.HTTP
// HTTP 服务端固定为 /health(可在 AiAssistantBall 内按需覆盖) // HTTP 服务端固定为 /health(可在 AiAssistantBall 内按需覆盖)
const httpBaseUrl = 'http://192.168.3.84:8616' const httpBaseUrl = 'https://lightmodification.test.glsx.com.cn'
const client = new NativeChannelClient( const client = new NativeChannelClient(
useWs ? { transport } : { transport, baseUrl: httpBaseUrl } useWs ? { transport } : { transport, baseUrl: httpBaseUrl }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!