'资金列表'

This commit is contained in:
unknown 2025-10-29 23:00:52 +08:00
parent b2f1b11bb6
commit 7cc2711f91
4 changed files with 19 additions and 8 deletions

View File

@ -144,4 +144,5 @@ export const verifyPayPassword = (data, callback) => post('api/recover/person/ve
export const priceList = (data, callback) => post('api/recover/personmoneylog/index', data, callback);
export const uploadImg = (data, callback) => upload('api/feedback/upload', data, callback);
export const allarealist = (data, callback) => post('api/recover/area/allarealist', data, callback);
export const qrcode = (data, callback) => post('api/promotion/qrcode', data, callback);
export const qrcode = (data, callback) => post('api/promotion/generate', data, callback);

View File

@ -49,7 +49,7 @@
components:{
},
onLoad() {
this.getPriceList()
},
onShow() {
@ -57,7 +57,10 @@
methods: {
getPriceList(){
var _this = this;
_this.$api.priceList({},res=>{
_this.$api.priceList({
page: this.page,
limit: this.limit
},res=>{
if(res.code == '1'){
if(res.data.user.avatar){
_this.avatar = res.data.user.avatar

View File

@ -133,7 +133,6 @@
});
}
});
//#endif
}
}

View File

@ -64,8 +64,8 @@
that.ctx.fillRect(0, 0, that.canvasW, that.canvasH);
//
that.ctx.drawImage(_imgInfo.path, 0, 0, that.canvasW, that.canvasH);
let _qrcodeImg = await that.getImageInfo({img: 'https://admin.dbcdq.cn/assets/img/icon/bg1.png'});
let urlcode = await that.getCode();
let _qrcodeImg = await that.getImageInfo({img: urlcode});
this.$api.qrcode({},res=>{
if(res.code == '1'){
@ -90,6 +90,16 @@
console.log('15')
}, 500);
},
async getCode(){
return new Promise((resolve, errs) => {
this.$api.qrcode({},res=>{
if(res.code == '1'){
console.log(res.data.promotion_code,'dfffffqqq');
resolve(res.data.promotion_code);
}
})
});
},
async getImageInfo({
img
}) {
@ -131,7 +141,6 @@
},
//
toSave(url) {
//#ifndef H5
uni.getImageInfo({
src: url,
success: function(image) {
@ -147,7 +156,6 @@
});
}
});
//#endif
}
}
};