Browse Source

新增信息卡二维码生成

LinWuTai 3 days ago
parent
commit
3457e777fe

+ 11 - 2
components/creditCard.vue

@@ -24,7 +24,14 @@
 			</view>
 			<view class="image-item-box">
 				<view class="qrcode-box">
-					<image class="qrcode" :src="`${FILE_URL}/zhengshu/qrCode.png`"></image>
+					<!-- <image class="qrcode" :src="`${FILE_URL}/zhengshu/qrCode.png`"></image>-->
+					 <ikun-qrcode
+						v-if="data.url"
+						:width="size === 'mini' ? 75 : 240"
+						:height="size === 'mini' ? 75 : 240"
+						unit="rpx"
+						:data="data.url"
+					 />
 				</view>
 				<view class="text">
 					扫码查信用
@@ -82,7 +89,9 @@
 				date: null,
 				publisher: null,
 				headUrl: null,
-				url: null
+				url: null,
+				isAgtNT: false,
+				isAgtNTAsst: false
 			}
 		},
 		size: {

+ 1 - 1
pages/collect/collect.vue

@@ -133,7 +133,7 @@
 	
 	function onClickReport(report) {
 		uni.navigateTo({
-			url: `/pages/goOnEdu/course/courseDetail/courseDetail?id=${report.id}&name=${report.title}`
+			url: `/pages/goOnEdu/course/courseDetail/courseDetail?id=${report.objId}&name=${report.title}`
 		})
 	}
 	onPullDownRefresh((e) => {

+ 4 - 2
pages/personalCenter/personalCenter.vue

@@ -57,7 +57,7 @@
 		</view>
 		<u-popup v-model="showCreditCard" mode="center">
 			<view class="certificate-preview-box">
-				<CreditCard :isLogin="isLogin" size="normal red" :data="creditCard"></CreditCard>
+				<CreditCard :isLogin="isLogin" :size="`normal ${creditCard.isAgtNTAsst ? 'green' : creditCard.isAgtNT ? 'red' : 'blue'}`" :data="creditCard"></CreditCard>
 			</view>
 		</u-popup>
 		<view class="menu-box">
@@ -253,7 +253,9 @@
 		date: '2018年6月22日',
 		publisher: '广州市住房和城乡建设委员会',
 		headUrl: 'https://ok.166.net/reunionpub/1_20210628_17a5105e667995566.jpeg',
-		url: 'http://www.gzrea.org.cn:8543/icon/wxmp/zhengshu/qrCode.png'
+		url: 'http://www.gzrea.org.cn:8543/icon/wxmp/zhengshu/qrCode.png',
+		isAgtNT: false,
+		isAgtNTAsst: false
 	})
 	function onShowCreditCard() {
 		showCreditCard.value = false

+ 28 - 0
uni_modules/ikun-qrcode/changelog.md

@@ -0,0 +1,28 @@
+## 1.0.14(2025-04-28)
+doc: 文档更新
+## 1.0.13(2025-04-28)
+feat: 添加中间的logo图片
+## 1.0.12(2025-04-22)
+修复微信小程序rpx计算误差,使用vw来代替
+## 1.0.11(2025-04-14)
+docs: 不支持canvas相关的属性,如保存。
+## 1.0.10(2024-10-16)
+优化markdown排版
+## 1.0.9(2024-10-16)
+更新微信小程序在各平台测试结果
+## 1.0.8(2024-10-16)
+ipados 18.0微信小程序发行正式版,测试可以正常出二维码。 (PS: 如果一直转圈动画,排查你的url变量是否为空,是否被微信拦截了接口数据)、 
+## 1.0.7(2024-08-02)
+fix: cssName修复
+## 1.0.6(2024-08-01)
+修复README.md
+## 1.0.5(2024-08-01)
+README新增:vue2,vue3详细用法
+## 1.0.4(2024-08-01)
+更新vue2,vue3详细用法
+## 1.0.3(2024-08-01)
+更新vue2/vue3详细用法
+## 1.0.0版本
+极简的二维码生成组件,vue2 / vue3 可用. 100行搞定。
+### 特点
+- 使用基础的view来生成二维码的点,而不是canvas,避免带来层级问题。

File diff suppressed because it is too large
+ 6 - 0
uni_modules/ikun-qrcode/components/ikun-qrcode/ikun-qrcode.vue


File diff suppressed because it is too large
+ 33 - 0
uni_modules/ikun-qrcode/components/ikun-qrcode/uqrcode_latest.js


+ 86 - 0
uni_modules/ikun-qrcode/package.json

@@ -0,0 +1,86 @@
+{
+  "id": "ikun-qrcode",
+  "displayName": "【ikun-qrcode】极简的二维码生成组件,使用view而非canvas避免层级问题",
+  "version": "1.0.14",
+  "description": "ikun-qrcode,极简的二维码生成组件,使用view而非canvas避免层级问题",
+  "keywords": [
+    "ikun-qrcode",
+    "qrcode",
+    "二维码"
+],
+  "repository": "",
+  "engines": {
+    "HBuilderX": "^3.97"
+  },
+  "dcloudext": {
+    "type": "component-vue",
+    "sale": {
+      "regular": {
+        "price": "0.00"
+      },
+      "sourcecode": {
+        "price": "0.00"
+      }
+    },
+    "contact": {
+      "qq": ""
+    },
+    "declaration": {
+      "ads": "无",
+      "data": "插件不采集任何数据",
+      "permissions": "无"
+    },
+    "npmurl": ""
+  },
+  "uni_modules": {
+    "dependencies": [],
+    "encrypt": [],
+    "platforms": {
+      "cloud": {
+        "tcb": "y",
+        "aliyun": "y",
+        "alipay": "y"
+      },
+      "client": {
+        "Vue": {
+          "vue2": "y",
+          "vue3": "y"
+        },
+        "App": {
+            "app-vue": "y",
+            "app-nvue": "n",
+            "app-uvue": "n",
+            "app-harmony": "u"
+        },
+        "H5-mobile": {
+          "Safari": "y",
+          "Android Browser": "y",
+          "微信浏览器(Android)": "y",
+          "QQ浏览器(Android)": "y"
+        },
+        "H5-pc": {
+          "Chrome": "y",
+          "IE": "y",
+          "Edge": "y",
+          "Firefox": "y",
+          "Safari": "y"
+        },
+        "小程序": {
+          "微信": "y",
+          "阿里": "y",
+          "百度": "y",
+          "字节跳动": "y",
+          "QQ": "y",
+          "钉钉": "y",
+          "快手": "y",
+          "飞书": "y",
+          "京东": "y"
+        },
+        "快应用": {
+          "华为": "u",
+          "联盟": "u"
+        }
+      }
+    }
+  }
+}

File diff suppressed because it is too large
+ 41 - 0
uni_modules/ikun-qrcode/readme.md


Some files were not shown because too many files changed in this diff