From 27f402a49306a1c4884862156050ca09e9f80db4 Mon Sep 17 00:00:00 2001
From: chen <2659004835@qq.com>
Date: Wed, 17 Aug 2022 15:52:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A8=E5=B9=BF=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/yz-qr/yz-qr.vue | 26 ++++++++++++++------------
pagesA/my-course/my-course.vue | 2 +-
pagesA/my-extend/my-extend.vue | 18 +++++++++++++-----
pagesA/my-sign/my-sign.vue | 2 +-
pagesB/second-level/second-level.vue | 15 +++++++++++----
5 files changed, 40 insertions(+), 23 deletions(-)
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',