Commit eed7bcc6 by 王志慧

fixed

1 parent 0cc139c9
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
</glsx-dialog> </glsx-dialog>
<!-- 分享 --> <!-- 分享 -->
<GLDialog :mode="mode" title="分享" :visible.sync="shareVisible" :hasFooter="false"> <GLDialog :mode="mode" title="分享" :visible.sync="shareVisible" :hasFooter="false">
<div v-loading="loading">
<div class="preview-wrap"> <div class="preview-wrap">
<div class="share-content"> <div class="share-content">
<div> <div>
...@@ -103,6 +104,7 @@ ...@@ -103,6 +104,7 @@
<div class="share-path">{{ shareData.linkUrl }}</div> <div class="share-path">{{ shareData.linkUrl }}</div>
<el-button class="share-btn" type="primary" @click="handleSaveTxt(shareData.linkUrl)">复制链接</el-button> <el-button class="share-btn" type="primary" @click="handleSaveTxt(shareData.linkUrl)">复制链接</el-button>
</div> </div>
</div>
</GLDialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -125,6 +127,7 @@ export default { ...@@ -125,6 +127,7 @@ export default {
}, },
data() { data() {
return { return {
loading: false,
shareVisible: false, //分享 shareVisible: false, //分享
showViewer: false, showViewer: false,
showGh: false, showGh: false,
...@@ -473,8 +476,11 @@ export default { ...@@ -473,8 +476,11 @@ export default {
}, },
//分享 //分享
handleShare(val) { handleShare(val) {
this.loading = true
this.shareData ={}
getMealShare({ id: val.id }).then(res => { getMealShare({ id: val.id }).then(res => {
this.shareData = res.data this.shareData = res.data
this.loading = false
}) })
this.shareVisible = true this.shareVisible = true
}, },
...@@ -712,9 +718,8 @@ export default { ...@@ -712,9 +718,8 @@ export default {
} }
} }
} }
} }
.share-footer { .share-footer {
width: 680px; width: 680px;
height: 90px; height: 90px;
background: #f8f8f8; background: #f8f8f8;
...@@ -727,7 +732,7 @@ export default { ...@@ -727,7 +732,7 @@ export default {
font-weight: 600; font-weight: 600;
font-size: 14px; font-size: 14px;
color: #999999; color: #999999;
max-width:400px; max-width: 400px;
white-space: wrap; white-space: wrap;
} }
.share-title { .share-title {
...@@ -741,5 +746,5 @@ export default { ...@@ -741,5 +746,5 @@ export default {
right: 40px; right: 40px;
bottom: 29px; bottom: 29px;
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!