浏览代码

2023-5-10

cmy 1 年之前
父节点
当前提交
92f5206965
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      pages/user/model/model.vue

+ 3 - 5
pages/user/model/model.vue

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