更改证书背景图

This commit is contained in:
caoqianming 2021-06-09 10:20:30 +08:00
parent ac446fb5db
commit 8eddadd248
4 changed files with 14 additions and 2 deletions

View File

@ -106,7 +106,7 @@ Page({
goCandidate:function(e){
let candidate_ = e.currentTarget.dataset.candidate_;
wx.navigateTo({
url: '/pages/candidate/show?number='+candidate_.number,
url: '/pages/candidate/show?id='+candidate_.id,
})
}
})

View File

@ -81,6 +81,17 @@ Page({
url: '/pages/candidate/show?id=' + this.data.candidate.id,
})
},
copyUrl: function(e){
wx.setClipboardData({
data: getApp().globalData.host+'/crm/candidate/img/?id='+this.data.candidate.id,
success: function (res) {
wx.showToast({
title: '复制成功,可前往自带浏览器粘贴访问',
icon: 'none'
})
}
})
},
downDoc: function (e) {
let id = this.data.candidate.id
wx.showLoading({

View File

@ -20,5 +20,6 @@
</view>
</view>
<a class="weui-btn weui-btn_primary" bindtap="goCandidate">查看证书</a>
<a class="weui-btn weui-btn_default" bindtap="copyUrl">复制证书链接</a>
<a class="weui-btn weui-btn_default" bindtap="godetail">答题信息</a>
<a class="weui-btn weui-btn_default" bindtap="downDoc">下载完整文档</a>

View File

@ -99,7 +99,7 @@
<div class="paper">
<div class="cell">
<div class="cert active" id="cert"
style="position: relative; ;background:url(https://fushe.chinansc.cn:8026/oss/bgimg/10/2d3703c9b2009d57fb0812938f33cd60.jpg); background-size: cover; width: 208mm; height: 149mm; font-size: 10pt; font-weight: normal; font-family: arial, simsun; zoom: 1;">
style="position: relative; ;background:url(/media/default/bg.jpg); background-size: cover; width: 208mm; height: 149mm; font-size: 10pt; font-weight: normal; font-family: arial, simsun; zoom: 1;">
<div id="RBfDmosc8Wsjo3iNMXZVRh" class="cell moveable " title="自定义文本"
style="position: absolute; width: 99mm; min-height: 5mm; line-height: 1.5; text-indent: 0em; top: 21.33mm; left: 62.48mm; font-size: 16pt; text-align: left; color: rgb(0, 0, 0);"
draggable="true">