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 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.25.4",
"versionCode" : 2254,
"versionName" : "2.26.0",
"versionCode" : 2260,
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App特有相关 */
......
......@@ -27,9 +27,9 @@
></view>
</view>
<view
v-if="item.type === 'single' && hasMinSellPrice(item.minSellPrice)"
v-if="item.type === 'single' && hasActivityPrice(item.activityPrice)"
class="min-price"
>活动价 ¥ {{ item.minSellPrice }}</view>
>活动价 ¥ {{ item.activityPrice }}</view>
</view>
</view>
</view>
......@@ -50,9 +50,9 @@
<view class="child-name">{{ child.name }}</view>
</view>
<view
v-if="hasMinSellPrice(child.minSellPrice)"
v-if="hasActivityPrice(child.activityPrice)"
class="min-price"
>活动价 ¥ {{ child.minSellPrice }}</view>
>活动价 ¥ {{ child.activityPrice }}</view>
</view>
<view class="card-right">
<view class="current-price">¥ {{ child.sellPrice }}</view>
......@@ -84,7 +84,7 @@ export default {
}
},
methods: {
hasMinSellPrice(value) {
hasActivityPrice(value) {
return value != null && value !== ''
},
shouldShowMarketingIcon(item) {
......
......@@ -108,6 +108,14 @@ export function snapshotOrderItemsOriginalPrice(items) {
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) {
if (!goods) return 0
const current = parseFloat(goods.sellPrice ?? 0)
......
import { getActivityPrice } from '@/utils/marketingFlag'
export function isBelowMinSellPrice(goods, value) {
if (!goods || goods.validMinSellPrice !== 'Y' || goods.minSellPrice == null || goods.minSellPrice === '') {
return false
......@@ -17,7 +19,7 @@ function buildSingleApprovalItem(item, goods, number) {
type: 'single',
name: getGoodsDisplayName(goods),
sellPrice,
minSellPrice: goods.minSellPrice,
activityPrice: getActivityPrice(goods),
number: number || '1',
sourceItem: item
}
......@@ -47,7 +49,7 @@ function buildPackageApprovalItem(item, orderTypeCode) {
return {
name: getGoodsDisplayName(goods),
sellPrice,
minSellPrice: goods.minSellPrice,
activityPrice: getActivityPrice(goods),
number: item.packageGoods.number || '1',
sourceGoods: goods
}
......
......@@ -295,7 +295,7 @@ class RecordService {
const useWs = !!wsBase
const transport = useWs ? TransportType.WEBSOCKET : TransportType.HTTP
// HTTP 服务端固定为 /health(可在 AiAssistantBall 内按需覆盖)
const httpBaseUrl = 'http://192.168.3.84:8616'
const httpBaseUrl = 'https://lightmodification.test.glsx.com.cn'
const client = new NativeChannelClient(
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!