Commit a2451632 authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_wm' into 'master'

Dev wm

See merge request !94
parents 3ce0ac8d a3076247
...@@ -76,3 +76,17 @@ export function getBankList() { ...@@ -76,3 +76,17 @@ export function getBankList() {
method: "get" method: "get"
}); });
} }
/**
* 获取扣稅説明
* @returns
*/
export function getTaxRate(params) {
return request({
url: "/bank/getTaxRate",
method: "get",
params
});
}
...@@ -31,11 +31,15 @@ ...@@ -31,11 +31,15 @@
<p class="explain"> <p class="explain">
<span>扣税说明</span> <span>扣税说明</span>
<img <img
@click="taxtClick"
class="explain-img" class="explain-img"
src="@/assets/images/explain.png" src="@/assets/images/explain.png"
alt="解释" alt="解释"
/> />
</p> </p>
<p class="explain">
<span>{{this.textName}}</span>
</p>
</div> </div>
</div> </div>
<div style="padding: 10px 16px"> <div style="padding: 10px 16px">
...@@ -85,7 +89,7 @@ ...@@ -85,7 +89,7 @@
<script> <script>
import { getWithdrawalAmount } from "@/api/wallet"; import { getWithdrawalAmount } from "@/api/wallet";
import { getUserBankInfo, sendSms, cashOut } from "@/api/bank"; import { getUserBankInfo, sendSms, cashOut,getTaxRate } from "@/api/bank";
import BaseDialog from "@/components/BaseDialog.vue"; import BaseDialog from "@/components/BaseDialog.vue";
export default { export default {
components: { BaseDialog }, components: { BaseDialog },
...@@ -102,6 +106,7 @@ export default { ...@@ -102,6 +106,7 @@ export default {
resultDialogTip: "", resultDialogTip: "",
resultDialogImg: "", resultDialogImg: "",
resultDialog: false, resultDialog: false,
textName:'',
validCodeDialogShow: false, validCodeDialogShow: false,
validCode: null validCode: null
}; };
...@@ -159,6 +164,16 @@ export default { ...@@ -159,6 +164,16 @@ export default {
this.validCode = null; this.validCode = null;
this.validCodeDialogShow = true; this.validCodeDialogShow = true;
}, },
taxtClick(){
const params = {
money: 1
}
getTaxRate(params).then(res => {
if (res.code === 0) {
this.textName = res.data.taxDesc
}
});
},
getUserInfo() { getUserInfo() {
const params = { const params = {
userId: this.$userId userId: this.$userId
......
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
binaryString[len] = String.fromCharCode(uInt8Array[len]); binaryString[len] = String.fromCharCode(uInt8Array[len]);
} }
let data = window.btoa(binaryString.join("")); let data = window.btoa(binaryString.join(""));
let imageType = "image/jpeg"; let imageType = "image/png";
let imageUrl = "data:" + imageType + ";base64," + data; let imageUrl = "data:" + imageType + ";base64," + data;
return imageUrl; return imageUrl;
} }
......
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