|
@@ -3,7 +3,9 @@ import lPainter from "@/uni_modules/lime-painter/components/l-painter/l-painter.
|
|
import lPainterView from "@/uni_modules/lime-painter/components/l-painter-view/l-painter-view.vue";
|
|
import lPainterView from "@/uni_modules/lime-painter/components/l-painter-view/l-painter-view.vue";
|
|
import lPainterImage from "@/uni_modules/lime-painter/components/l-painter-image/l-painter-image.vue";
|
|
import lPainterImage from "@/uni_modules/lime-painter/components/l-painter-image/l-painter-image.vue";
|
|
import lPainterText from "@/uni_modules/lime-painter/components/l-painter-text/l-painter-text.vue";
|
|
import lPainterText from "@/uni_modules/lime-painter/components/l-painter-text/l-painter-text.vue";
|
|
-import { ref } from "vue";
|
|
|
|
|
|
+import { ref, onMounted } from "vue";
|
|
|
|
+import { request } from "../../utils/request";
|
|
|
|
+import { getRoute, objToUrlParams } from "../../utils/router";
|
|
|
|
|
|
const painter = ref(null);
|
|
const painter = ref(null);
|
|
const prosp = defineProps({
|
|
const prosp = defineProps({
|
|
@@ -22,7 +24,21 @@ const prosp = defineProps({
|
|
onSuccess: {
|
|
onSuccess: {
|
|
type: Function,
|
|
type: Function,
|
|
default: () => {},
|
|
default: () => {},
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+const qrCode = ref("");
|
|
|
|
+
|
|
|
|
+onMounted(() => {
|
|
|
|
+ request("api/question_bank/question_reception/user_share/get_invite_qrcode", {
|
|
|
|
+ page_url: "pages/index/index",
|
|
|
|
+ scene: `id=${getRoute().params.id}`,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.data.image) {
|
|
|
|
+ let url = res.data.image;
|
|
|
|
+ qrCode.value = url;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
});
|
|
});
|
|
|
|
|
|
const onSaveImage = () => {
|
|
const onSaveImage = () => {
|
|
@@ -73,9 +89,11 @@ const onSaveImage = () => {
|
|
:text="correct.rate.toFixed(1) + '%'"
|
|
:text="correct.rate.toFixed(1) + '%'"
|
|
css="position: absolute;top: 550rpx;left: 100rpx;color: #e7a552;font-size: 30rpx; z-index: 2;"
|
|
css="position: absolute;top: 550rpx;left: 100rpx;color: #e7a552;font-size: 30rpx; z-index: 2;"
|
|
/>
|
|
/>
|
|
- <l-painter-view css="background: red; width: 146rpx; height: 146rpx;position: absolute;bottom: 18rpx;left: 18rpx;">
|
|
|
|
-
|
|
|
|
- </l-painter-view>
|
|
|
|
|
|
+ <l-painter-image
|
|
|
|
+ :src="qrCode"
|
|
|
|
+ css="width: 146rpx; height: 146rpx;position: absolute;bottom: 18rpx;left: 18rpx;"
|
|
|
|
+ >
|
|
|
|
+ </l-painter-image>
|
|
</l-painter-view>
|
|
</l-painter-view>
|
|
</l-painter>
|
|
</l-painter>
|
|
</view>
|
|
</view>
|