Commit 245f8fe4 authored by Mac's avatar Mac

1

parent 1afb353a
......@@ -41,7 +41,7 @@
<div class="mySJbox" v-if="!loading">
<div>
<div style="font-size: 14px; color: #000;padding: 8px 15px;display: flex; justify-content: space-between;">
<span style="border-left: 3px solid #e95252;padding-left: 10px;">财务收据 <span v-if="data && data.State" :style="{'font-size': '12px','color':data.State==1?'#409EFF':'#F56C6C'}">({{data.State==1?'已领取':'未领取'}})</span> </span>
<span style="border-left: 3px solid #e95252;padding-left: 10px;">财务收据 <span v-if="data && data.State" :style="{'font-size': '12px','color':data.State==1?'#409EFF':'#F56C6C'}">({{data.State==1?'已认领':'未认领'}})</span> </span>
<div style="display: flex;align-items: center;" v-if="data && data.State ">
<span class="_btn" @click="Printreceipt" v-if="isoneself">打印</span>
<span class="_btn" @click='addreceipt' v-if="data.State==2&& isoneself">修改</span>
......@@ -125,7 +125,7 @@
<template>
<div id="proToCol"
style="display: flex;flex-direction: column;align-items: center; padding: 15px;">
<img :src="imgurl" alt="" style="width:100%;" />
<img :src="imgurl" alt="" style="width:100%;" ref='imgcode'/>
<div style="margin-top: 25px;width: 100%; display: flex; flex-direction: column; align-items: center;">
<div>成都市锦江区甲鹤外语培训学校</div>
<div>发送给您了一个财务收据</div>
......@@ -307,39 +307,19 @@
}
createWeChatCodeForReceipt(msg).then((res) => {
if (res.Code == 1) {
this.sharedialog = true
let address = process.env.API;
let aOne = address.split('/api')[0];
this.imgUrl = aOne + res.Data;
console.log(aOne + res.Data)
this.$nextTick(() => {
this.$refs.imgcode.src=this.imgUrl;
})
console.log(this.imgUrl)
// this.imgurl = this.domainManager().mallUrl + res.Data
this.sharedialog = true
tipLoadding.hide();
} else {
tipLoadding.hide();
}
});
// this.apipostDS(
// "/api/user/GetWeiXinQRCodeForHT", {
// Path: "/pages/index/index?id=" + this.FrID+'&JumpType=20',
// With: 430
// },
// (res) => {
// if (res.data.resultCode == 1) {
// if (res.data.data) {
// tipLoadding.hide();
// }
// } else {
// this.Error(res.data.message);
// tipLoadding.hide();
// }
// }
// );
});
},
blobToDataURL(blob, callback) {
var a = new FileReader()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment