开收据调整

This commit is contained in:
qiaomu 2024-09-10 16:11:10 +08:00
parent 37c8d6560f
commit 86ca43d214
6 changed files with 13 additions and 10 deletions

View File

@ -193,7 +193,6 @@ Page({
})
},
async onChangePage(e) {
console.log('e', e)
const page = e.detail.currentIndex;
const that = this;
this.setData({
@ -284,7 +283,6 @@ Page({
});
break;
case "day":
console.log('day')
this.setData({
yearMonthDay: time,
yearMonthDayStamp: new Date(time).getTime(),

View File

@ -90,7 +90,6 @@ Component({
},
//更改页码点击事件
onChangePage: function (e) {
//console.log("更改页码事件:",e);
this.setData({
pageMask: false,
index: e.currentTarget.dataset.index //点击的页数

View File

@ -44,7 +44,6 @@ Component({
})
},
jumpToDetail(e) {
console.log('e', e)
wx.navigateTo({
url: `/pages/encyclopediaDetail/index?id=${e.currentTarget.dataset.data.id}`,
})

View File

@ -65,7 +65,6 @@ Page({
},
getPhoneNumber(e) {
const { errno, code: phoneCode } = e.detail;
console.log('e', e)
switch(errno) {
case 103:
alertInfo("已拒绝");

View File

@ -61,7 +61,6 @@ Page({
alertInfo("文件不能大于1M")
return;
}
// console.log('res', res)
loadingFunc(async () => {
await this.upload(res)
})
@ -93,7 +92,9 @@ Page({
confirmButtonText: "联系客服",
cancelButtonText: "关闭"
}).then(() => {
wx.switchTab({
url: '/pages/home/index',
})
}).catch(() => {
wx.redirectTo({
url: '/pages/rechargeRecord/index',

View File

@ -33,9 +33,18 @@ Page({
})
},
record() {
const { detail } = this.data;
if (detail.orderStatus === 1) {
alertInfo("审核中的充值不能开收据")
return;
}
if (detail.orderStatus === 2) {
alertInfo("已退回的充值不能开收据")
return;
}
const handleDownload = () => {
return new Promise((resolve, rej) => {
const { detail } = this.data;
const result = wx.getAccountInfoSync();
const { envVersion } = result.miniProgram;
let api = ""
@ -55,11 +64,9 @@ Page({
api = `https://zgd.hbhcbn.com/recharge-print-api`;
break;
}
console.log("api", `${api}/${detail.id}`)
wx.downloadFile({
url: `${api}/${detail.id}`,
success: (res) => {
console.log('res', res)
if (res.statusCode === 200) {
if (!res.tempFilePath) {
alertError("获取文件失败")