TANGSHIZHE 4 жил өмнө
parent
commit
5dc5f99131

+ 1 - 1
jydocs-mobile/src/views/details/details.vue

@@ -301,7 +301,7 @@ export default class extends Vue {
       if (this.coins.balance < this.detailData.price) {
         ;(this.$refs.charge as any).show = true
       } else {
-        this.$router.replace('/purchase/' + this.detailData.docId)
+        this.$router.push('/purchase/' + this.detailData.docId)
       }
     }
   }

+ 6 - 1
jydocs-mobile/src/views/purchase/purchase.vue

@@ -231,7 +231,7 @@ export default class extends Vue {
           width: 100px;
           height: 124px;
           border-radius: 4px;
-          border: 1px solid #000000;
+          border: 1px solid rgba($color: #000000, $alpha: 0.1);
           .docs_img{
             width: 100%;
             height: 100%;
@@ -406,6 +406,11 @@ export default class extends Vue {
           margin-left: 12px;
         }
         .van-checkbox__icon--round .van-icon{
+          width: 20px;
+          height: 20px;
+          transform:scale(1);
+          transform-origin: 0% center;
+          vertical-align:middle;
           border-radius: 50%;
         }
       }

+ 13 - 9
jydocs-mobile/src/views/purchase/purchasesuccess.vue

@@ -42,9 +42,11 @@ import { mapMutations } from 'vuex'
 
 @Component({
   name: 'test',
-  ...mapMutations({
-    clearLibState: 'main/clearMyLibState'
-  })
+  methods: {
+    ...mapMutations({
+      clearLibState: 'main/clearMyLibState'
+    })
+  }
 })
 export default class extends Vue {
   clearLibState: any
@@ -60,6 +62,13 @@ export default class extends Vue {
     currency: 0
   }
 
+  beforeRouteLeave (to, from, next) {
+    if (this.timer) {
+      clearInterval(this.timer)
+    }
+    next()
+  }
+
   created () {
     this.query = location.href.split('/')[location.href.split('/').length - 1] // 获取num
     this.setCountDown()
@@ -88,12 +97,7 @@ export default class extends Vue {
         } else {
           clearInterval(this.timer)
           this.timer = null
-          this.$router.replace({
-            name: 'details',
-            params: {
-              id: this.payinfor.docId
-            }
-          })
+          this.$router.back()
         }
       }, 1000)
     }

+ 3 - 0
jydocs-pc/src/views/purchase/purchase.vue

@@ -254,6 +254,9 @@ export default {
               margin-right: 21px;
               width: 110px;
               height: 150px;
+              border-radius: 4px;
+              background: #FFFFFF;
+              border: 1px solid #ECECEC;
               .doc_c_img{
                 width: 100%;
                 height: 100%;