diff --git a/components/yz-qr/yz-qr.vue b/components/yz-qr/yz-qr.vue
index 723957b..a93c963 100644
--- a/components/yz-qr/yz-qr.vue
+++ b/components/yz-qr/yz-qr.vue
@@ -1,7 +1,7 @@
-
+
@@ -68,7 +68,7 @@
} else {
this.level = qrCode.CorrectLevel.L
}
- new qrCode('couponQrcode', {
+ new qrCode('qrcode', {
text: this.text,
width: this.size,
height: this.size,
@@ -80,15 +80,17 @@
usingIn: this //在自定义组件下,第二个参数传入组件实例this
})
// 把当前画布指定区域的内容导出生成图片,并返回文件路径。
- uni.canvasToTempFilePath({
- canvasId: 'couponQrcode',
- success: (res) => {
- // 在H5平台下,tempFilePath 为 base64
- // console.log('yz-qr图片路径:', res.tempFilePath)
- this.canvasQrPath = res.tempFilePath
- this.$emit('update:qrPath', this.canvasQrPath)
- }
- }, this);
+ setTimeout(()=>{
+ uni.canvasToTempFilePath({
+ canvasId: 'qrcode',
+ success: (res) => {
+ // 在H5平台下,tempFilePath 为 base64
+ // console.log('yz-qr图片路径:', res.tempFilePath)
+ this.canvasQrPath = res.tempFilePath
+ this.$emit('update:qrPath', this.canvasQrPath)
+ }
+ },that);
+ },200)
console.log('绘制完成');
}
@@ -98,9 +100,9 @@
diff --git a/pagesA/my-course/my-course.vue b/pagesA/my-course/my-course.vue
index 1614d07..5075907 100644
--- a/pagesA/my-course/my-course.vue
+++ b/pagesA/my-course/my-course.vue
@@ -48,7 +48,7 @@
this.getCouresList();
},
onReachBottom() {
- if(this.total!=this.dataList.lenght){
+ if(this.total!=this.dataList.length){
this.page++;
this.getCouresList();
}
diff --git a/pagesA/my-extend/my-extend.vue b/pagesA/my-extend/my-extend.vue
index f29c219..4aecb24 100644
--- a/pagesA/my-extend/my-extend.vue
+++ b/pagesA/my-extend/my-extend.vue
@@ -2,10 +2,14 @@
-
+
-
-
+
+
+
+
+
+
推广获取积分
@@ -44,6 +48,7 @@
},
data() {
return {
+ newtop:uni.getSystemInfoSync().statusBarHeight + 42,
dataList:[],
page:1,
size:20,
@@ -62,13 +67,16 @@
this.getExtend();
},
onReachBottom() {
- if(this.total!=this.dataList.lenght){
+ if(this.total!=this.dataList.length){
this.page++;
this.getExtend();
}
},
methods: {
- // 获取一级推广人
+ getPath(path){
+ this.personCode = path;
+ },
+ // 获取推广人
getExtend(){
let params = {
action:'order',
diff --git a/pagesA/my-sign/my-sign.vue b/pagesA/my-sign/my-sign.vue
index 9836313..fdd2b8a 100644
--- a/pagesA/my-sign/my-sign.vue
+++ b/pagesA/my-sign/my-sign.vue
@@ -25,7 +25,7 @@
- {{item.num}}
+ +{{item.num}}
{{item.created_at.slice(0,10).split('-').join('.')}}
diff --git a/pagesB/second-level/second-level.vue b/pagesB/second-level/second-level.vue
index 5a3236e..3ad254a 100644
--- a/pagesB/second-level/second-level.vue
+++ b/pagesB/second-level/second-level.vue
@@ -4,8 +4,12 @@
-
-
+
+
+
+
+
+
代理登记
@@ -68,13 +72,16 @@
this.getExtend();
},
onReachBottom() {
- if(this.total!=this.dataList.lenght){
+ if(this.total!=this.dataList.length){
this.page++;
this.getExtend();
}
},
methods: {
- // 获取二级推广人
+ getPath(path){
+ this.personCode = path;
+ },
+ // 获取推广人
getExtend(){
let params = {
action:'order',