'资金列表'
This commit is contained in:
parent
b2f1b11bb6
commit
7cc2711f91
@ -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);
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -133,7 +133,6 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user