'资金列表'

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 priceList = (data, callback) => post('api/recover/personmoneylog/index', data, callback);
export const uploadImg = (data, callback) => upload('api/feedback/upload', 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 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:{ components:{
}, },
onLoad() { onLoad() {
this.getPriceList()
}, },
onShow() { onShow() {
@ -57,7 +57,10 @@
methods: { methods: {
getPriceList(){ getPriceList(){
var _this = this; var _this = this;
_this.$api.priceList({},res=>{ _this.$api.priceList({
page: this.page,
limit: this.limit
},res=>{
if(res.code == '1'){ if(res.code == '1'){
if(res.data.user.avatar){ if(res.data.user.avatar){
_this.avatar = 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.fillRect(0, 0, that.canvasW, that.canvasH);
// //
that.ctx.drawImage(_imgInfo.path, 0, 0, that.canvasW, that.canvasH); that.ctx.drawImage(_imgInfo.path, 0, 0, that.canvasW, that.canvasH);
let urlcode = await that.getCode();
let _qrcodeImg = await that.getImageInfo({img: 'https://admin.dbcdq.cn/assets/img/icon/bg1.png'}); let _qrcodeImg = await that.getImageInfo({img: urlcode});
this.$api.qrcode({},res=>{ this.$api.qrcode({},res=>{
if(res.code == '1'){ if(res.code == '1'){
@ -90,6 +90,16 @@
console.log('15') console.log('15')
}, 500); }, 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({ async getImageInfo({
img img
}) { }) {
@ -131,7 +141,6 @@
}, },
// //
toSave(url) { toSave(url) {
//#ifndef H5
uni.getImageInfo({ uni.getImageInfo({
src: url, src: url,
success: function(image) { success: function(image) {
@ -147,7 +156,6 @@
}); });
} }
}); });
//#endif
} }
} }
}; };