瀏覽代碼

fix: lint

zhangyuhan 4 年之前
父節點
當前提交
f1fc6139f9
共有 2 個文件被更改,包括 6 次插入8 次删除
  1. 5 7
      jydocs-pc/src/views/Content.vue
  2. 1 1
      jydocs-pc/src/views/purchase/purchase.vue

+ 5 - 7
jydocs-pc/src/views/Content.vue

@@ -51,7 +51,7 @@
           </div>
           <div class="bottoms" id="colWidth" v-show="buyed">
               <div class="page">
-                  
+
                   <div class="cont-p"></div>
               </div>
               <div class="foot-tip tops">
@@ -116,7 +116,6 @@ export default {
   mounted () {
     // 监听滚轮
     window.addEventListener('scroll', this.initHeight)
-    
   },
   destroyed () { // 移除监听
     window.removeEventListener('scroll', this.initHeight)
@@ -132,22 +131,21 @@ export default {
           this.collectd = res.data.data.docCang
         }
       })
-      getCoin({L: true}).then(res => {
+      getCoin({ L: true }).then(res => {
         console.log(res)
         if (res.data.error_code === 0) {
           this.coinNum = res.data.data.data.points.balance
           if (this.buyed) {
-           this.btnName = '下载文档'
+            this.btnName = '下载文档'
           } else {
             if (this.coinNum < this.datas.price) {
-                this.btnName = '立即充值'
+              this.btnName = '立即充值'
             } else {
-                this.btnName = '立即兑换'
+              this.btnName = '立即兑换'
             }
           }
         }
       })
-      
     },
     adverse () {
       getAdverse({ code: '1233456', num: 1 }).then(res => {

+ 1 - 1
jydocs-pc/src/views/purchase/purchase.vue

@@ -121,7 +121,7 @@ export default {
       getDocPays({ docId: '4f6c00ba-8882-11eb-8699-0050568f51e7', phone: '18439509554' }).then((res) => {
         console.log(res)
         if (res.error_code === 0) {
-          sessionStorage.setItem('paydata',JSON.stringify(res.data))
+          sessionStorage.setItem('paydata', JSON.stringify(res.data))
           this.$router.push('/purchasesuccess')
         }
       })