Commit d6073fac by 前端

fixed

1 parent d9da072d
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-20 10:43:27
* @LastEditTime: 2022-12-21 16:30:13
* @FilePath: \scrm-micro-link\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......
......@@ -35,10 +35,11 @@
<GLDialog class="qr-dialog" title="活动分享" mode="mid" okText="下载" :visible.sync="isQrcodeVisible" @onOk="handleCancelConfirm" @onCancel="isQrcodeVisible = false">
<div class="qrcode-body">
<div class="img" v-loading="imgLoading">
<el-image :src="curQrcode" alt=""></el-image>
<el-image :src="qrCodeUrl" alt=""></el-image>
</div>
<div class="qrcode-link m-t-10">
<span>复制</span>
活动链接:{{ linkUrl }}
<span @click="handleSaveTxt(linkUrl)">复制</span>
</div>
</div>
</GLDialog>
......@@ -60,6 +61,8 @@ export default {
4: 'exchange',
7: 'service'
},
qrCodeUrl: '',
linkUrl: '',
dialogVisibleDel: false,
isQrcodeVisible: false,
dialogType: '',
......@@ -360,7 +363,10 @@ export default {
shareQrcode(row) {
this.isQrcodeVisible = true
this.$apis.activity.getShared({ id: row.id }).then(res => {
console.log(res)
if (res) {
this.linkUrl = res.linkUrl
this.qrCodeUrl = res.qrCodeUrl
}
})
},
handleBoard(row) {
......@@ -371,6 +377,19 @@ export default {
}
})
},
handleSaveTxt(txt) {
this.$message({
message: '复制成功',
type: 'success',
customClass: 'message-Z-zinde'
})
const input = document.createElement('input')
document.body.appendChild(input)
input.setAttribute('value', txt)
input.select()
document.execCommand('Copy')
document.body.removeChild(input)
},
handleEdit(addOrEdit, row) {
var txtObj = {
add: '新建',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!