|
@@ -18,13 +18,14 @@
|
|
|
/**
|
|
/**
|
|
|
* 冲销单退款凭证页(ssh 冲销单功能)
|
|
* 冲销单退款凭证页(ssh 冲销单功能)
|
|
|
* 用途:affirmForward.vue 提交冲销单成功后,如果客户选择"返充到余额",跳转到本页,
|
|
* 用途:affirmForward.vue 提交冲销单成功后,如果客户选择"返充到余额",跳转到本页,
|
|
|
- * 用 Canvas 绘制一张可长按转发/保存的退款凭证海报(客户名、退款金额、最新余额、冲销单号 + 收款二维码),
|
|
|
|
|
- * 二维码复用 CustomController::actionGetGatheringCode,扫码后跳转 hdApp 的 admin/ghs/pay 页面查看余额明细。
|
|
|
|
|
|
|
+ * 用 Canvas 绘制一张可长按转发/保存的退款凭证海报(客户名、退款金额、最新余额、冲销单号 + 收款小程序码),
|
|
|
|
|
+ * 小程序码复用 CustomController::actionGetGatheringMiniCode,识别后直接打开 hdApp 小程序的
|
|
|
|
|
+ * admin/ghs/pay 页面查看余额明细(比普通二维码少一次跳转浏览器的步骤)。
|
|
|
* 如果没有返充余额,则走通用的 /admin/billing/result 成功页,不显示本页。
|
|
* 如果没有返充余额,则走通用的 /admin/billing/result 成功页,不显示本页。
|
|
|
*/
|
|
*/
|
|
|
import appResult from '@/components/app-result';
|
|
import appResult from '@/components/app-result';
|
|
|
import ItemPosterPopup from '@/components/item-poster-popup.vue';
|
|
import ItemPosterPopup from '@/components/item-poster-popup.vue';
|
|
|
-import { getGatheringCode } from '@/api/custom';
|
|
|
|
|
|
|
+import { getGatheringMiniCode } from '@/api/custom';
|
|
|
import dayjs from 'dayjs';
|
|
import dayjs from 'dayjs';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -55,14 +56,15 @@ export default {
|
|
|
this.generatePoster();
|
|
this.generatePoster();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- /** 拉取收款二维码图片并绘制海报,绘制完成后自动弹出预览 */
|
|
|
|
|
|
|
+ /** 拉取收款小程序码图片并绘制海报,绘制完成后自动弹出预览 */
|
|
|
generatePoster() {
|
|
generatePoster() {
|
|
|
if (!this.customId) {
|
|
if (!this.customId) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
let that = this;
|
|
let that = this;
|
|
|
uni.showLoading({ mask: true, title: '生成凭证中' });
|
|
uni.showLoading({ mask: true, title: '生成凭证中' });
|
|
|
- getGatheringCode({ id: this.customId })
|
|
|
|
|
|
|
+ const envVersion = process.env.NODE_ENV === 'development' ? 'develop' : 'release';
|
|
|
|
|
+ getGatheringMiniCode({ id: this.customId, env_version: envVersion })
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
if (res.code == 1 && res.data && res.data.imgUrl) {
|
|
if (res.code == 1 && res.data && res.data.imgUrl) {
|
|
|
uni.downloadFile({
|
|
uni.downloadFile({
|