Commit 245f8fe4 authored by Mac's avatar Mac

1

parent 1afb353a
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class="mySJbox" v-if="!loading"> <div class="mySJbox" v-if="!loading">
<div> <div>
<div style="font-size: 14px; color: #000;padding: 8px 15px;display: flex; justify-content: space-between;"> <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 "> <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="Printreceipt" v-if="isoneself">打印</span>
<span class="_btn" @click='addreceipt' v-if="data.State==2&& isoneself">修改</span> <span class="_btn" @click='addreceipt' v-if="data.State==2&& isoneself">修改</span>
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<template> <template>
<div id="proToCol" <div id="proToCol"
style="display: flex;flex-direction: column;align-items: center; padding: 15px;"> 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 style="margin-top: 25px;width: 100%; display: flex; flex-direction: column; align-items: center;">
<div>成都市锦江区甲鹤外语培训学校</div> <div>成都市锦江区甲鹤外语培训学校</div>
<div>发送给您了一个财务收据</div> <div>发送给您了一个财务收据</div>
...@@ -307,39 +307,19 @@ ...@@ -307,39 +307,19 @@
} }
createWeChatCodeForReceipt(msg).then((res) => { createWeChatCodeForReceipt(msg).then((res) => {
if (res.Code == 1) { if (res.Code == 1) {
this.sharedialog = true
let address = process.env.API; let address = process.env.API;
let aOne = address.split('/api')[0]; let aOne = address.split('/api')[0];
this.imgUrl = aOne + res.Data; this.imgUrl = aOne + res.Data;
this.$nextTick(() => {
console.log(aOne + res.Data) this.$refs.imgcode.src=this.imgUrl;
})
console.log(this.imgUrl) console.log(this.imgUrl)
// this.imgurl = this.domainManager().mallUrl + res.Data
this.sharedialog = true
tipLoadding.hide(); tipLoadding.hide();
} else { } else {
tipLoadding.hide(); 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) { blobToDataURL(blob, callback) {
var a = new FileReader() 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