li.shaoyi 9 ماه پیش
والد
کامیت
1afbad4861
3فایلهای تغییر یافته به همراه24 افزوده شده و 8 حذف شده
  1. 3 6
      .eslintrc.js
  2. 18 0
      src/packages/sbyj/views/market/detail/index.less
  3. 3 2
      src/packages/sbyj/views/market/detail/index.vue

+ 3 - 6
.eslintrc.js

@@ -19,11 +19,8 @@ module.exports = {
     'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
     'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
     'vue/multi-word-component-names': 0,
-  },
-  globals: {
-    Proto: 'readonly',
-    Model: 'readonly',
-    App: 'readonly',
-    Store: 'readonly'
+    // https://segmentfault.com/q/1010000040251236
+    // https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
+    'no-undef': 'off',
   }
 }

+ 18 - 0
src/packages/sbyj/views/market/detail/index.less

@@ -26,8 +26,26 @@
 
         .form-submit {
             display: flex;
+
             gap: 16px;
             padding: 16px;
+
+            button {
+                flex: 1;
+                font-size: 16px;
+                font-weight: bold;
+                color: #fff;
+                border-radius: 4px;
+                padding:  12px 0;
+
+                &.buy {
+                    background-color:#df6577;
+                }
+
+                &.sell {
+                    background-color:#4eb16b;
+                }
+            }
         }
 
         .g-qty-group {

+ 3 - 2
src/packages/sbyj/views/market/detail/index.vue

@@ -49,8 +49,9 @@
                 </Cell>
             </Form>
             <div class="form-submit">
-                <Button type="primary" @click="commit(BuyOrSell.Sell)" block square>我要卖料</Button>
-                <Button type="danger" @click="commit(BuyOrSell.Buy)" block square>我要买料</Button>
+                <!-- 任务 #6712 -->
+                <button class="buy" type="button" @click="commit(BuyOrSell.Buy)">买入提料</button>
+                <button class="sell" type="button" @click="commit(BuyOrSell.Sell)">卖出交料</button>
             </div>
         </div>
         <div class="market-detail__list">