You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1011 B
51 lines
1011 B
2 years ago
|
<template>
|
||
|
<view>
|
||
|
<image class="width100" mode="widthFix" src="https://gratia-pay.dctpay.com/filesystem/share/1679038223473.png">
|
||
|
</image>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
let app = getApp();
|
||
|
import {
|
||
|
generateWeChatMpQrCode
|
||
|
} from '../../Utils/Api.js'
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
urls: 'https://gratia-pay.dctpay.com/filesystem/share/1679038223473.png' //图片地址
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
generateWeChatMpQrCode() {
|
||
|
let that = this;
|
||
|
uni.getStorage({
|
||
|
key: 'staffCode',
|
||
|
success: (res) => {
|
||
|
let datas = {
|
||
|
outTradeNo: res.data,
|
||
|
// 1000017476,
|
||
|
type: 2
|
||
|
}
|
||
|
generateWeChatMpQrCode(datas).then(res => {
|
||
|
if (res.return_code == '000000') {
|
||
|
that.urls = res.return_data;
|
||
|
} else {
|
||
|
uni.showToast({
|
||
|
title: res.return_msg,
|
||
|
duration: 2000,
|
||
|
icon: 'none'
|
||
|
})
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
|
||
|
</style>
|