Browse Source

贷款-产品介绍、申请新增分享功能

panyong 4 years ago
parent
commit
a311d59779

+ 2 - 0
htmldev/loan/src/views/loan/apply/index.vue

@@ -101,6 +101,7 @@
   import { Popup, Picker, Toast } from 'vant'
   import { createOrder } from './api'
   import { getChinaArea, sendSMS, getProductDetail } from '../../../api/common'
+  import { funWxShare } from '../../../utils/wxShareConfig'
 
   const STRCAPTURE = process.env.API_DOMAIN + '/api/captcha'
   export default {
@@ -196,6 +197,7 @@
         }
       })
       this.$route.meta.isUseCache = false
+      funWxShare('驼驼银服', '家里用钱,就找驼驼银服,省心,省力,妥妥的!', location.href, location.protocol + '//api.tuotuoyinfu.com/img/logo.jpg')
     },
     methods: {
       funGetChinaArea () {

+ 22 - 1
htmldev/loan/src/views/loan/explain/index.vue

@@ -15,6 +15,9 @@
 </template>
 
 <script>
+  import { funWxShare } from '../../../utils/wxShareConfig'
+  import { getProductDetail } from '../../../api/common'
+
   export default {
     name: 'explain',
     props: {
@@ -36,9 +39,27 @@
         default: ''
       }
     },
+    data () {
+      return {
+        productInfo: {}
+      }
+    },
     async mounted () {
+      funWxShare('驼驼银服', '家里用钱,就找驼驼银服,省心,省力,妥妥的!', location.href, location.protocol + '//api.tuotuoyinfu.com/img/logo.jpg')
       await this.$nextTick()
-      this.$refreshTitle('中行贷')
+      this.funGetProductDetail()
+    },
+    methods: {
+      funGetProductDetail () {
+        getProductDetail(this.orderProductId).then(res => {
+          if (res.status) {
+            this.productInfo = res.data
+            this.$nextTick(() => {
+              this.$refreshTitle(res.data.productName)
+            })
+          }
+        })
+      }
     }
   }
 </script>