1
jhzh
2025-04-20 d157d0892f1ab5517dbe3a08328ccb9c4e446615
pages/exchange/open-position.vue
@@ -75,8 +75,8 @@
                </text>
                <i class="iconfont">&#xe6e9;</i>
              </v-picker> -->
                     <v-dropdwon class="w-60 m-r-xs bg-form-panel-3 p-y-xxs rounded posi" :list="commissionTypes"
                        @onClick="dropDownChange">
                     <v-dropdwon class="w-60 m-r-xs bg-form-panel-3 p-y-xxs rounded posi" :current="1"
                        :list="commissionTypes" @onClick="dropDownChange">
                     </v-dropdwon>
                     <!-- <v-picker
                :list="lever_rage"
@@ -89,7 +89,7 @@
              </v-picker> -->
                     <v-dropdwon v-if="lever_rage.length>0"
                        class="w-20 m-r-xs posi bg-form-panel-3 p-y-xxs rounded" :contract="contract"
                        :current="current" :list="lever_rage" @onClick="openNum">
                        :current="4" :list="lever_rage" @onClick="openNum">
                     </v-dropdwon>
                  </view>
                  <view class="m-b-ms">
@@ -109,8 +109,8 @@
                           <span class="color-light fn-bold"> USDT </span>
                        </template>
                     </v-input> -->
                     <v-input :placeholder="$t('contract.a0')+$t('common.money')" v-model="form.amount" @input="sliderActive=-1"
                        class="h-30 p-x-sm p-y-xxs rounded bg-form-panel-3">
                     <v-input :placeholder="$t('contract.a0')+$t('common.money')" v-model="form.amount"
                        @input="sliderActive=-1" class="h-30 p-x-sm p-y-xxs rounded bg-form-panel-3">
                        <template #right>
                           <span class="color-light fn-bold"> USDT </span>
                        </template>
@@ -809,10 +809,10 @@
            // 最多可开张数
            maxNum: 0,
            form: {
               type: 0,
               type: 2,
               entrust_price: "",
               amount: "",
               lever_rate: "",
               lever_rate: "100x",
               tp_trigger_price: "",
               sl_trigger_price: "",
            },
@@ -840,7 +840,7 @@
            sliderActive: -1,
            pingActive: 3,
            contract: "1",
            current: 0,
            current: 4,
            popshow: false,
            contractInstruction: '',
            commissionTypes: [{
@@ -876,6 +876,11 @@
            ws: "ws1",
         }),
         symbol() {
            // if (this.$route.query) {
            //    const username = this.$route.query;
            //    console.log(decodeURIComponent(username.symbol)); // 输出:JohnDoe
            //    this.query.symbol = decodeURIComponent(username.symbol)
            // }
            return this.query.symbol;
         },
         symbolLeft() {
@@ -1063,7 +1068,7 @@
            myCanvas.font = '12px Arial'; //绘制文字
            myCanvas.fillText('全球合约领跑者', 88, windowHeight * 0.653);
            myCanvas.font = '16px Arial';
            myCanvas.fillText('WmagiBIT', 88, windowHeight * 0.63);
            myCanvas.fillText('KCS', 88, windowHeight * 0.63);
            myCanvas.font = '14px Arial';
            myCanvas.setFillStyle('#717171')
            myCanvas.fillText(i.pair_name, 25, windowHeight * 0.53);
@@ -1356,7 +1361,7 @@
               }
               // console.log(this.lever_rage)
               //默认第一个
               this.form.lever_rate = res.data.lever_rage[0];
               this.form.lever_rate = res.data.lever_rage[res.data.lever_rage.length-1];
               // let e= this.lever_rage[0]
               this.openNum();
               // }