panhui 4 years ago
parent
commit
c761a9743b
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/main/nine-space/src/views/Submit.vue

+ 6 - 2
src/main/nine-space/src/views/Submit.vue

@@ -25,7 +25,7 @@
       </div>
       <div class="info">
         <div class="text1">GAS费用</div>
-        <div class="text2">¥1</div>
+        <div class="text2">¥{{ gas }}</div>
       </div>
 
       <van-field
@@ -100,18 +100,22 @@ export default {
       ],
       bottom: null,
       orderId: 0,
+      gas: 1,
     };
   },
   computed: {
     money() {
       if (this.info.price) {
-        return this.info.price + 1;
+        return this.info.price + this.gas;
       } else {
         return 0;
       }
     },
   },
   mounted() {
+    this.$http.post("/sysConfig/get/gas_fee").then((res) => {
+      this.gas = res.value;
+    });
     this.$toast.loading({
       message: "加载中...",
       forbidClick: true,