|
@@ -2,9 +2,6 @@
|
|
|
<view class="content mone" v-if="baseURL">
|
|
|
<model :modelId='mtype' :templateData='userTemplate' :isShare='isShare' :isLook='isLook' :isDefault='isDefault'
|
|
|
:share-number='shareNumber'></model>
|
|
|
- <view class="bottom_padding" v-if="type!=1">
|
|
|
-
|
|
|
- </view>
|
|
|
<view class="fxmp flex bottom" v-if="type==2">
|
|
|
<button class="share" type="default" open-type="share">
|
|
|
分享名片
|
|
@@ -117,7 +114,7 @@
|
|
|
}
|
|
|
//个人中心提交数据预览
|
|
|
if (this.type === 1) {
|
|
|
- this.templateData = uni.getStorageSync('modeldata');
|
|
|
+ this.userTemplate = uni.getStorageSync('modeldata');
|
|
|
return
|
|
|
}
|
|
|
//分享预览
|
|
@@ -172,8 +169,9 @@
|
|
|
let url = currentPage.route; //当前页面url
|
|
|
let item = currentPage.options; //如果要获取url中所带的参数可以查看options
|
|
|
let shareObj = {}
|
|
|
+ console.log(url,'url');
|
|
|
shareObj = {
|
|
|
- title: this.templateData.name + '母婴界数字名片', // 默认是小程序的名称(可以写slogan等)
|
|
|
+ title: this.userTemplate.name + '母婴界数字名片', // 默认是小程序的名称(可以写slogan等)
|
|
|
path: url + '?uid=' + this.shareId + '&mtype=' + this.mtype + '&type=2', // 默认是当前页面,必须是以‘/’开头的完整路径
|
|
|
imageUrl: '',
|
|
|
success: function(res) {
|