Handy_Cao 2 năm trước cách đây
mục cha
commit
fc7b49c9b6

+ 1 - 1
oem/tjmd/config/appconfig.json

@@ -3,7 +3,7 @@
   "appName": "天津麦顿",
   "version": "1.0.0",
   "versionCode": "100000",
-  "apiUrl": "http://192.168.31.204:8080/cfg?key=test_204",
+  "apiUrl": "http://192.168.31.132:8080/cfg?key=test_132",
   "tradeChannel": "ws",
   "modules": [
     "register",

+ 1 - 1
public/config/appconfig.json

@@ -3,7 +3,7 @@
   "appName": "多元世纪交易中心",
   "version": "1.0.5",
   "versionCode": "10005",
-  "apiUrl": "http://192.168.31.204:8080/cfg?key=test_204",
+  "apiUrl": "http://192.168.31.132:8080/cfg?key=test_132",
   "tradeChannel": "ws",
   "modules": [
     "register",

+ 3 - 4
src/packages/mobile/views/swap/detail/components/listing/Index.vue

@@ -50,7 +50,7 @@
             </Field>
             <Field label="估算价格" v-if="priceMove === 3">
                 <template #input>
-                    <span>{{ estimateprice.toFixed(goods?.decimalplace) }}</span>
+                    <span :class="quote?.lastColor">{{ estimateprice.toFixed(goods?.decimalplace) }}</span>
                 </template>
             </Field>
             <Field label="参考价格" v-if="priceMove === 2">
@@ -130,8 +130,6 @@ const { formData, formSubmit } = useOrder()
 const maxBasis = shallowRef(1000.0)
 /// 最小基差范围下限
 const minBasis = shallowRef(1000.0)
-/// 估算价
-const estimateprice = shallowRef(0.0)
 // 商品盘面
 const quote = futuresStore.getGoodsQuote(props.item.refgoodsid) ?? {}
 /// 保证金参数设置
@@ -140,7 +138,8 @@ const margin = shallowRef<Model.TjmdTodayAccountMarginRsp>()
 const goods = computed(() => futuresStore.getGoods(props.item.goodsid) ) 
 /// 市场交易参数配置
 const config = shallowRef<Model.WrMarketTradeConfigRsp>()
-
+/// 估算价
+const estimateprice = shallowRef(quote.value?.last ?? 0.0)
 /// 买卖方向
 const buyOrSell = shallowRef(props.tabIndex)
 

+ 3 - 4
src/packages/pc/views/market/trade/swap/detail/listing/index.vue

@@ -36,7 +36,7 @@
                 <span :class="quote?.lastColor">{{ quote?.last ?? 0.0 }}</span>
             </el-form-item>
             <el-form-item label="估算价格" v-if="priceMove === 3">
-                <span>{{ estimateprice.toFixed(goods?.decimalplace) }}</span>
+                <span :class="quote?.lastColor">{{ estimateprice.toFixed(goods?.decimalplace) }}</span>
             </el-form-item>
             <el-form-item :label="priceMove === 2 ? '挂牌金额' : '估算金额'">
                 <span>{{ amount.toFixed(2) }}</span>
@@ -87,8 +87,6 @@ const permargin = shallowRef(0.0)
 const maxBasis = shallowRef(1000.0)
 /// 最小基差范围下限
 const minBasis = shallowRef(-1000.0)
-/// 估算价
-const estimateprice = shallowRef(0.0)
 
 const { formData, formSubmit, loading } = useOrder()
 const show = shallowRef(true)
@@ -97,9 +95,10 @@ const formRef = shallowRef<FormInstance>()
 const qtyStepList = [1, 5, 10, 20, 30, 50] // 数量步长列表
 const qtyStep = shallowRef(qtyStepList[0]) // 数量步长
 
-
 // 商品盘面
 const quote = futuresStore.getGoodsQuote(props.quoteGoods.refgoodsid) ?? {}
+/// 估算价
+const estimateprice = shallowRef(quote.value?.last ?? 0.0)
 /// 保证金参数设置
 const margin = shallowRef<Model.TjmdTodayAccountMarginRsp>()
 /// 商品信息

+ 1 - 1
src/packages/tjmd/views/account/protocol/Index.vue

@@ -52,7 +52,7 @@ const { run } = useRequest(queryTencentUsereSignRecords, {
         memberUserId: memberUserId
     },
     onSuccess: (res) => {
-        if (res.data.length != 0) {
+        if (res.data != null && res.data.length != 0) {
             dataList.value = res.data
         }  else {
             /// 创建电子签合同