li.shaoyi vor 1 Monat
Ursprung
Commit
9378750a6d

+ 2 - 2
oem/snhl/config/appconfig.json

@@ -1,8 +1,8 @@
 {
   "appId": "com.snhl.release",
   "appName": "三农互联",
-  "version": "1.0.9",
-  "versionCode": "100009",
+  "version": "1.0.10",
+  "versionCode": "100010",
   "apiUrl": "http://192.168.31.208:8080/cfg?key=test_208",
   "tradeChannel": "ws",
   "modules": [

+ 2 - 0
src/components/base/hqchart/index.vue

@@ -75,6 +75,8 @@ const setChartStyle = (defaultTheme?: keyof typeof AppTheme) => {
                     DownBarColor: downBarColor
                 }
 
+                blackStyle.TitleFont = (12 * GetDevicePixelRatio()) + 'px 微软雅黑'
+
                 jsChart.SetStyle(blackStyle)
                 elStyle.setProperty('background-color', '#000')
                 break

+ 0 - 1
src/packages/mobile/components/modules/hqchart/candlestick/index.less

@@ -27,7 +27,6 @@
                 align-items: center;
                 color: #222;
                 cursor: pointer;
-                padding: 8px 0;
 
                 &:not(:first-child) {
                     margin-left: 0;

+ 11 - 10
src/packages/mobile/components/modules/hqchart/candlestick/index.vue

@@ -6,7 +6,7 @@
 </template>
 
 <script lang="ts" setup>
-import { shallowRef, shallowReactive, watch, computed,PropType } from 'vue'
+import { shallowRef, shallowReactive, watch, computed, PropType } from 'vue'
 import { Chart } from 'hqchart'
 import { timerInterceptor } from '@/utils/timer'
 import { handleNumberValue } from '@/filters'
@@ -84,7 +84,7 @@ const period = computed(() => {
 
 // 获取标题大小
 const getTitleFont = () => {
-    const size = window.devicePixelRatio * 12
+    const size = window.devicePixelRatio * 11
     return size + 'px 微软雅黑'
 }
 
@@ -117,10 +117,10 @@ const chartOption = {
         HPenType: -1
     },
     Border: {
-        Left: 0,
-        Right: 0,
-        Top: props.isShowTitle ? 36 : 10,
-        Bottom: 36,
+        Left: 1,
+        Right: 1,
+        Top: props.isShowTitle ? 28 : 10,
+        Bottom: 28,
         AutoLeft: { Blank: 15, MinWidth: 30 },
         AutoRight: { Blank: 15, MinWidth: 30 },
     },
@@ -132,7 +132,7 @@ const chartOption = {
         Period: period.value,
         PageSize: 50,
         // 最后数据和右边框空白间距,空白的宽度=RightSpaceCount*k线宽度
-        RightSpaceCount: 1,
+        RightSpaceCount: 10,
         // https://blog.csdn.net/jones2000/article/details/104443471
         IsShowTooltip: false,
         KLineDoubleClick: false
@@ -146,17 +146,18 @@ const chartOption = {
     Frame: [
         {
             SplitType: 1,
-            IsShowRightText: false, // 是否显示Y轴右侧刻度
+            SplitCount: 3,
+            IsShowLeftText: false, // 是否显示左边的刻度
             Custom: [
                 {
                     Type: 0,
-                    Position: 'left',
+                    Position: 'right',
                 }
             ],
         },
         {
             SplitType: 1,
-            IsShowRightText: false, // 是否显示Y轴右侧刻度
+            IsShowLeftText: false, // 是否显示左边的刻度
         }
     ],
     OnCreatedCallback: (chart: KLineChartContainer) => {

+ 1 - 1
src/packages/mobile/components/modules/hqchart/index.vue

@@ -17,7 +17,7 @@
             <Icon name="setting-o" style="padding: 0 16px;" v-if="false" />
         </div>
         <MLine v-bind="{ symbol, goodsCode }" :theme="theme" v-if="tabIndex === 0" />
-        <KLine v-bind="{ symbol, goodsCode, cycleType }" :theme="theme" v-else />
+        <KLine v-bind="{ symbol, goodsCode, cycleType }" :is-show-title="false" :theme="theme" v-else />
     </div>
 </template>
 

+ 4 - 4
src/packages/mobile/components/modules/hqchart/timeline/index.vue

@@ -67,10 +67,10 @@ const chartOption = {
     },
     DayCount: 1,
     Border: {
-        Left: 0,
-        Right: 0,
-        Top: 36,
-        Bottom: 36,
+        Left: 1,
+        Right: 1,
+        Top: 28,
+        Bottom: 28,
         AutoLeft: { Blank: 10, MinWidth: 30 },
         AutoRight: { Blank: 10, MinWidth: 30 },
     },

+ 1 - 1
src/stores/modules/global.ts

@@ -47,7 +47,7 @@ export const useGlobalStore = defineStore(() => {
             quotationProperties: [],
             forcedPasswordChange: false,
             strongPassword: true,
-            registrationCodeRule: 1,
+            registrationCodeRule: 0,
             riskType: 0,
             i18nEnabled: true,
             allCloseEnabled: false,