Handy_Cao 3 달 전
부모
커밋
40867e4652

+ 1 - 1
public/config/appconfig.json

@@ -4,7 +4,7 @@
   "appTitle": "多元世纪交易中心",
   "version": "1.0.8",
   "versionCode": "10008",
-  "apiUrl": "http://192.168.31.169:8080/cfg?key=test_169",
+  "apiUrl": "http://192.168.31.158:19240/cfg?key=dev_104",
   "tradeChannel": "ws",
   "modules": [
     "register",

+ 4 - 2
src/packages/mobile/views/mall/list/Index.vue

@@ -24,12 +24,14 @@
 
 <script lang="ts" setup>
 import { computed, onUnmounted, onActivated } from 'vue'
-import { handleNumberValue, formatDecimal } from '@/filters'
+import { handleNumberValue, formatDecimal, getFileUrl } from '@/filters'
 import { ETradeMode } from '@/constants/client'
 import { useNavigation } from '@mobile/router/navigation'
 import { useUserStore, useFuturesStore, i18n } from '@/stores'
-import quoteSocket from '@/services/websocket/quote'
+import { Tag } from 'vant'
 import { BuyOrSell, BuildType } from '@/constants/order'
+import quoteSocket from '@/services/websocket/quote'
+import Waterfall from '@mobile/components/base/waterfall/index.vue'
 
 defineProps({
     showBackButton: {

+ 14 - 4
src/packages/mobile/views/mall/trade/Index.vue

@@ -9,7 +9,7 @@
             <h1 class="pricing-trade__header-title">{{ goods.goodsname }}</h1>
              <div class="pricing-trade__header-price">
                 <dl v-if="quote.askColor">
-                    <dt>积分</dt>
+                    <dt>销售价</dt>
                     <dd>
                         {{ currencyFormat(quote?.ask, quote?.currencyid, {
                             fractionDigits: quote?.decimalplace, noneValue: true
@@ -96,9 +96,19 @@ const active = shallowRef('images')
 
 // 数量步长列表
 const qtyStepList = computed(() => {
-    const result = [1, 5, 10]
-    const system_1009 = getSystemParamValue('1009') ?? '1'
-    return result.map((value) => +system_1009 * value)
+    // 任务 #6640
+    const param1009 = getSystemParamValue('1009')
+
+    if (param1009) {
+        const values = param1009.split(',')
+        const { traderules = [], agreeunit = 0 } = quote.value ?? {}
+        const { ParamValue = 1 } = traderules.find((e) => e.RuleID === 103) ?? {}
+        const min = ParamValue * agreeunit // ParamValue 是数量
+
+        return values.map((value) => (+value) * min)
+    }
+
+    return []
 })
 const qtyStep = shallowRef(qtyStepList.value[0]) // 数量步长
 const orderQty = shallowRef(qtyStepList.value[0]) // 默认数量

+ 13 - 3
src/packages/mobile/views/score/trade/Index.vue

@@ -95,9 +95,19 @@ const active = shallowRef('images')
 
 // 数量步长列表
 const qtyStepList = computed(() => {
-    const result = [1, 5, 10]
-    const system_1009 = getSystemParamValue('1009') ?? '1'
-    return result.map((value) => +system_1009 * value)
+    // 任务 #6640
+    const param1009 = getSystemParamValue('1009')
+
+    if (param1009) {
+        const values = param1009.split(',')
+        const { traderules = [], agreeunit = 0 } = quote.value ?? {}
+        const { ParamValue = 1 } = traderules.find((e) => e.RuleID === 103) ?? {}
+        const min = ParamValue * agreeunit // ParamValue 是数量
+
+        return values.map((value) => (+value) * min)
+    }
+
+    return []
 })
 const qtyStep = shallowRef(qtyStepList.value[0]) // 数量步长
 const orderQty = shallowRef(qtyStepList.value[0]) // 默认数量

+ 13 - 2
src/packages/pc/views/market/trade/pricing/list/listing/index.vue

@@ -119,8 +119,19 @@ const showAddress = ref(false)
 
 // 数量步长列表
 const qtyStepList = computed(() => {
-    const system_1009 = Number(getSystemParamValue('1009')) ?? 1
-    return [1 * system_1009, 10 * system_1009, 100 * system_1009]
+    // 任务 #6640
+    const param1009 = getSystemParamValue('1009')
+
+    if (param1009) {
+        const values = param1009.split(',')
+        const { traderules = [], agreeunit = 0 } = selectedGoods.value ?? {}
+        const { ParamValue = 1 } = traderules.find((e) => e.RuleID === 103) ?? {}
+        const min = ParamValue * agreeunit // ParamValue 是数量
+
+        return values.map((value) => (+value) * min)
+    }
+
+    return []
 })
 const qtyStep = shallowRef(qtyStepList.value[0]) // 数量步长
 const { t } = i18n.global