li.shaoyi 1 month ago
parent
commit
2127b183b9

+ 3 - 3
oem/snhl/manifest.json

@@ -1,6 +1,6 @@
 {
 {
     "@platforms" : [ "android", "iPhone", "iPad" ],
     "@platforms" : [ "android", "iPhone", "iPad" ],
-    "id" : "H5D0C0CD8",
+    "id" : "H5CD911EF",
     /*应用的标识*/
     /*应用的标识*/
     "name" : "三农互联",
     "name" : "三农互联",
     /*应用名称,程序桌面图标名称*/
     /*应用名称,程序桌面图标名称*/
@@ -156,8 +156,8 @@
                 ],
                 ],
                 "abiFilters" : [ "arm64-v8a" ],
                 "abiFilters" : [ "arm64-v8a" ],
                 "autoSdkPermissions" : false,
                 "autoSdkPermissions" : false,
-                "minSdkVersion" : 32,
-                "targetSdkVersion" : 32,
+                "minSdkVersion" : 26,
+                "targetSdkVersion" : "",
                 "excludePermissions" : [
                 "excludePermissions" : [
                     "<uses-permission android:name=\"android.permission.READ_MEDIA_IMAGES\"/>",
                     "<uses-permission android:name=\"android.permission.READ_MEDIA_IMAGES\"/>",
                     "<uses-permission android:name=\"android.permission.READ_MEDIA_VIDEO\"/>"
                     "<uses-permission android:name=\"android.permission.READ_MEDIA_VIDEO\"/>"

+ 2 - 2
src/packages/digital/views/spot/goods/detail/index.vue

@@ -144,10 +144,10 @@ const calculations = computed(() => {
 
 
     // 可用余额
     // 可用余额
     const maxBalance = spotAccountStore.getAvailableBalance(quoteAccount.value)
     const maxBalance = spotAccountStore.getAvailableBalance(quoteAccount.value)
-    // 可买数量
-    const maxBuyQty = price ? maxBalance / (price * agreeunit) : 0
     // 预估手续费
     // 预估手续费
     const buyEstimatedFee = (buyFeeValue.FeeAlgorithm === 2 ? amount : estimatedAmount) * buyFeeValue.feeValue
     const buyEstimatedFee = (buyFeeValue.FeeAlgorithm === 2 ? amount : estimatedAmount) * buyFeeValue.feeValue
+    // 可买数量
+    const maxBuyQty = price ? (maxBalance - buyEstimatedFee) / (price * agreeunit) : 0
 
 
     // 可卖数量
     // 可卖数量
     const maxSellQty = spotAccountStore.getAvailableBalance(baseAccount.value)
     const maxSellQty = spotAccountStore.getAvailableBalance(baseAccount.value)

+ 1 - 1
src/services/websocket/message.ts

@@ -39,11 +39,11 @@ export async function pushMessage50(pkg: Package50, contentType: 'encrypted' | '
             break
             break
         }
         }
         case FunCode.OrderDealedNtf: {
         case FunCode.OrderDealedNtf: {
-            //console.log('接收到委托单成交通知', funCode)
             timerInterceptor.debounce(() => {
             timerInterceptor.debounce(() => {
                 const res = decodeProto<Proto.OrderDealedNtf>('OrderDealedNtf', content)
                 const res = decodeProto<Proto.OrderDealedNtf>('OrderDealedNtf', content)
                 // 委托单成交通知
                 // 委托单成交通知
                 eventBus.$emit('OrderDealedNtf', res)
                 eventBus.$emit('OrderDealedNtf', res)
+                console.log('接收到委托单成交通知', res)
             }, delay, funCode.toString())
             }, delay, funCode.toString())
             break
             break
         }
         }