Browse Source

提现图片显示

threedate
Enzo 4 years ago
parent
commit
5902d68d4e
  1. 2
      common/api.js
  2. 7
      pages/center/wallet.vue

2
common/api.js

@ -76,7 +76,7 @@ export const API_CONFIRM_CODE = '/api/confirm/code'; // 扫码核销
export const API_WIDTHDRAW = '/api/income/extract'; // 提现
export const API_WIDTHDRAWIMG = '/api/income/extractImg'; // 提现图片
export const API_WIDTHDRAWIMG = '/api/share/img'; // 提现图片
/* token相关 */
export const API_WAREHOUSE_SET = '/api/warehouse/set'; // 存储token

7
pages/center/wallet.vue

@ -109,9 +109,10 @@
getWidthdraw() {
let userInfo = uni.getStorageSync('userinfo') || {};
this.$http(this.API.API_WIDTHDRAWIMG, {
token: userInfo.token
token: userInfo.token,
type: 'extract_img'
}).then(res => {
this.widthdrawImg = res.data.img.url
this.widthdrawImg = res.data.img_url
console.log(this.widthdrawImg)
if(this.widthdrawImg) {
this.maskHidden = true
@ -213,7 +214,7 @@
width: 80%;
height: 80%;
position: fixed;
top: 280rpx;
top: 240rpx;
left: 50%;
margin-left: -40%;
z-index: 10;

Loading…
Cancel
Save