Commit 2cb0061d by 杨明

Merge branch 'v3.12.0' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v3.12.0

2 parents 0ef79ce8 81d65c6d
......@@ -78,31 +78,33 @@
</glsx-dialog>
<!-- 分享 -->
<GLDialog :mode="mode" title="分享" :visible.sync="shareVisible" :hasFooter="false">
<div class="preview-wrap">
<div class="share-content">
<div>
<div class="share-title">海报</div>
<el-button type="primary" @click="handleSaveImg(shareData.posterUrl)">保存图片</el-button>
<div v-loading="loading">
<div class="preview-wrap">
<div class="share-content">
<div>
<div class="share-title">海报</div>
<el-button type="primary" @click="handleSaveImg(shareData.posterUrl)">保存图片</el-button>
</div>
<div class="poster">
<img :src="shareData.posterUrl" />
</div>
</div>
<div class="poster">
<img :src="shareData.posterUrl" />
<div class="share-content">
<div>
<div class="share-title">小程序码</div>
<el-button type="primary" @click="handleSaveImg(shareData.miniProgramCodeUrl, '小程序码')">保存图片</el-button>
</div>
<div class="qr-code">
<img :src="shareData.miniProgramCodeUrl" />
</div>
</div>
</div>
<div class="share-content">
<div>
<div class="share-title">小程序码</div>
<el-button type="primary" @click="handleSaveImg(shareData.miniProgramCodeUrl, '小程序码')">保存图片</el-button>
</div>
<div class="qr-code">
<img :src="shareData.miniProgramCodeUrl" />
</div>
<div class="share-footer">
<div class="share-title">小程序页面路径</div>
<div class="share-path">{{ shareData.linkUrl }}</div>
<el-button class="share-btn" type="primary" @click="handleSaveTxt(shareData.linkUrl)">复制链接</el-button>
</div>
</div>
<div class="share-footer">
<div class="share-title">小程序页面路径</div>
<div class="share-path">{{ shareData.linkUrl }}</div>
<el-button class="share-btn" type="primary" @click="handleSaveTxt(shareData.linkUrl)">复制链接</el-button>
</div>
</GLDialog>
</div>
</template>
......@@ -125,6 +127,7 @@ export default {
},
data() {
return {
loading: false,
shareVisible: false, //分享
showViewer: false,
showGh: false,
......@@ -473,8 +476,11 @@ export default {
},
//分享
handleShare(val) {
this.loading = true
this.shareData ={}
getMealShare({ id: val.id }).then(res => {
this.shareData = res.data
this.loading = false
})
this.shareVisible = true
},
......@@ -712,34 +718,33 @@ export default {
}
}
}
}
.share-footer {
width: 680px;
height: 90px;
background: #f8f8f8;
border-radius: 2px;
margin-top: 10px;
padding: 10px 20px;
box-sizing: border-box;
position: relative;
.share-path {
font-weight: 600;
font-size: 14px;
color: #999999;
max-width:400px;
white-space: wrap;
}
.share-title {
font-weight: 600;
font-size: 14px;
color: #333333;
margin-bottom: 10px;
}
.share-btn {
position: absolute;
right: 40px;
bottom: 29px;
}
.share-footer {
width: 680px;
height: 90px;
background: #f8f8f8;
border-radius: 2px;
margin-top: 10px;
padding: 10px 20px;
box-sizing: border-box;
position: relative;
.share-path {
font-weight: 600;
font-size: 14px;
color: #999999;
max-width: 400px;
white-space: wrap;
}
.share-title {
font-weight: 600;
font-size: 14px;
color: #333333;
margin-bottom: 10px;
}
.share-btn {
position: absolute;
right: 40px;
bottom: 29px;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!