|
@@ -10,7 +10,7 @@
|
|
</router-link>
|
|
</router-link>
|
|
</div>
|
|
</div>
|
|
<!--妥妥:本人-->
|
|
<!--妥妥:本人-->
|
|
- <div class="footer myself" v-else-if="!RId">
|
|
|
|
|
|
+ <div class="footer myself" v-else-if="!recommendedUser.RId">
|
|
<!--可以分享-->
|
|
<!--可以分享-->
|
|
<template v-if="userShareConfig.share">
|
|
<template v-if="userShareConfig.share">
|
|
<router-link class="btn-apply double"
|
|
<router-link class="btn-apply double"
|
|
@@ -29,13 +29,13 @@
|
|
<!--妥妥:非本人-->
|
|
<!--妥妥:非本人-->
|
|
<div class="footer other" v-else>
|
|
<div class="footer other" v-else>
|
|
<router-link class="btn-apply single"
|
|
<router-link class="btn-apply single"
|
|
- :to="{path: '/loan/apply/' + orderProductId, query: { RId }}">点击预约办理
|
|
|
|
|
|
+ :to="{path: '/loan/apply/' + orderProductId, query: { RId: recommendedUser.RId }}">点击预约办理
|
|
</router-link>
|
|
</router-link>
|
|
<div class="partner-info">
|
|
<div class="partner-info">
|
|
<div class="partner-avatar">
|
|
<div class="partner-avatar">
|
|
- <img :src="decodeURIComponent(RImgUrl)" alt="">
|
|
|
|
|
|
+ <img :src="recommendedUser.RImgUrl" alt="">
|
|
</div>
|
|
</div>
|
|
- <p class="name">{{ decodeURIComponent(RName) }} 邀请你</p>
|
|
|
|
|
|
+ <p class="name">{{ recommendedUser.RName }} 邀请你</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--生成二维码使用-->
|
|
<!--生成二维码使用-->
|
|
@@ -96,17 +96,11 @@ export default {
|
|
type: String,
|
|
type: String,
|
|
default: ''
|
|
default: ''
|
|
},
|
|
},
|
|
- RId: {
|
|
|
|
- type: [String, Number],
|
|
|
|
- default: ''
|
|
|
|
- },
|
|
|
|
- RName: {
|
|
|
|
- type: String,
|
|
|
|
- default: ''
|
|
|
|
- },
|
|
|
|
- RImgUrl: {
|
|
|
|
- type: String,
|
|
|
|
- default: ''
|
|
|
|
|
|
+ recommendedUser: {
|
|
|
|
+ type: Object,
|
|
|
|
+ default: function () {
|
|
|
|
+ return {}
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
@@ -131,7 +125,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async mounted () {
|
|
async mounted () {
|
|
- const shareHref = this.partnerId ? `${location.origin}${location.pathname}?partnerId=${this.partnerId}` : `${location.origin}${location.pathname}?RId=${this.userShareConfig.id}&RName=${encodeURIComponent(this.userShareConfig.userName)}&RImgUrl=${encodeURIComponent(this.userShareConfig.userImgUrl)}`
|
|
|
|
|
|
+ const shareHref = this.partnerId ? `${location.origin}${location.pathname}?partnerId=${this.partnerId}` : `${location.origin}${location.pathname}?recommendedUser=${encodeURIComponent(JSON.stringify(this.userShareConfig))}`
|
|
funWxShare('驼驼银服', '家里用钱,就找驼驼银服,省心,省力,妥妥的!', shareHref, location.protocol + '//api.tuotuoyinfu.com/img/logo.jpg')
|
|
funWxShare('驼驼银服', '家里用钱,就找驼驼银服,省心,省力,妥妥的!', shareHref, location.protocol + '//api.tuotuoyinfu.com/img/logo.jpg')
|
|
await this.$nextTick()
|
|
await this.$nextTick()
|
|
this.funGetProductDetail()
|
|
this.funGetProductDetail()
|