提交 66e86b63 authored 作者: matian's avatar matian

updates

上级 2817952e
......@@ -6,19 +6,6 @@
<div class="main_content_qdCode">
<qrcode-vue :value="payDetail.url" size="180" ref="qrcode" />
</div>
<!-- <div class="main_content_link">
2.
<el-button
class="link"
slot="append"
data-clipboard-target="#value"
ref="copy"
@click="initClipboard"
type="text"
><img class="link_img" src="https://webapp-pub.ezijing.com/highway/h5/ilink.png" />支付链接</el-button
>
复制链接在浏览器打开去支付
</div> -->
<div class="main_btn">
<van-button class="main_btn_home" round @click="$router.push('/')" v-if="isLastStep && status == 1"
>首页</van-button
......@@ -81,21 +68,7 @@ export default {
.toDataURL('image/png')
.replace('image/png', 'image/octet-stream')
},
// 复制链接
// initClipboard() {
// if (this.clipboard) {
// return
// }
// this.clipboard = new Clipboard(this.$refs.copy.$el)
// this.clipboard.on('success', () => {
// Toast.success('复制成功!')
// this.clipboard.destroy()
// })
// this.clipboard.on('error', () => {
// Toast.fail('复制失败,请重新复制!')
// this.clipboard.destroy()
// })
// },
// 获取支付状态
getPayStatus() {
this.getActivityDetail()
......@@ -105,7 +78,6 @@ export default {
getPayStatus(params).then(res => {
if (res.code === 0) {
this.status = res.data.status
console.log(this.status, 'this.status')
if (res.data.status === 1) {
clearInterval(this.time)
if (this.data.jump_url) {
......@@ -137,9 +109,6 @@ export default {
clearInterval(this.time)
},
mounted() {
if (this.status === 1) {
this.getActivityDetail()
}
clearInterval(this.time)
this.time = setInterval(() => {
this.getPayStatus()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论