todolist
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
<div class="fullsection" v-show="qiweiShow">
|
||||
<div class="qiwei">
|
||||
<img src="../assets/images/qiwei-bg.png" alt="">
|
||||
<img src="../assets/images/qiwei-bg.webp" alt="">
|
||||
<div class="close" @click="qiweiShow = false"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -32,9 +32,9 @@ import { globalStore } from "@/globalstore";
|
||||
import ModalTransition from "./ModalTransition.vue"
|
||||
import { Storage, generateQR, isWeixin, isMiniPage } from "../libs/utils"
|
||||
import Haibao from "@/libs/haibao"
|
||||
import bg from "../assets/images/haibao-bg.png"
|
||||
import mask from "../assets/images/haibao-mask.png"
|
||||
import haibaoCoverBorder from "../assets/images/haibao-cover.png"
|
||||
import bg from "../assets/images/haibao-bg.webp"
|
||||
import mask from "../assets/images/haibao-mask.webp"
|
||||
import haibaoCoverBorder from "../assets/images/haibao-cover.webp"
|
||||
const props = defineProps({
|
||||
show: false,
|
||||
})
|
||||
@@ -53,19 +53,14 @@ const handleHaibao = async () => {
|
||||
if (haibaoUrl.value) {
|
||||
return
|
||||
}
|
||||
const loading = weui.loading()
|
||||
// let userPicture = 'https://lzlj123.oss-cn-shanghai.aliyuncs.com/face-merged/20250914/face-merge-5c90bb95-d1d2-479a-a13b-ada7ba8e7152.jpg'
|
||||
let userPicture = '';
|
||||
if (!globalStore.result_url) {
|
||||
weui.alert("请先参与活动合成图片并打榜!")
|
||||
haibaoShow.value = false
|
||||
return false;
|
||||
} else {
|
||||
userPicture = await loadImage(globalStore.result_url)
|
||||
}
|
||||
const loading = weui.loading();
|
||||
let userPicture = await loadImage(globalStore.result_url)
|
||||
// let userPicture = await loadImage('https://lzlj123.oss-cn-shanghai.aliyuncs.com/face-merged/20250914/face-merge-5c90bb95-d1d2-479a-a13b-ada7ba8e7152.jpg')
|
||||
|
||||
const infos = Storage.get("userinfos")
|
||||
const haibaoCover = new Haibao(951, 1607)
|
||||
haibaoCover.add(userPicture, 50, 50)
|
||||
haibaoCover.add(userPicture, 0, 50, 951, 1698)
|
||||
haibaoCover.add(mask, 10, 100)
|
||||
haibaoCover.add(haibaoCoverBorder, 0, 0)
|
||||
haibaoCover.draw('destination-in').then(() => {
|
||||
@@ -123,6 +118,9 @@ const openHaibao = (e) => {
|
||||
if (target.classList.contains("has")) {
|
||||
return
|
||||
}
|
||||
if (!globalStore.result_url) {
|
||||
return weui.alert("请先参与活动合成图片并打榜!")
|
||||
}
|
||||
haibaoShow.value = true
|
||||
handleHaibao()
|
||||
}
|
||||
@@ -271,7 +269,7 @@ const handleScan = (e) => {
|
||||
height: 8.148148vw;
|
||||
right: 5vw;
|
||||
top: 15vw;
|
||||
background-image: url("../assets/images/close-btn.png");
|
||||
background-image: url("../assets/images/close-btn.webp");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100%;
|
||||
}
|
||||
@@ -293,7 +291,7 @@ const handleScan = (e) => {
|
||||
position: relative;
|
||||
width: 100vw;
|
||||
height: 123.333333vw;
|
||||
background-image: url("../assets/images/todo-bg.png");
|
||||
background-image: url("../assets/images/todo-bg.webp");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100%;
|
||||
}
|
||||
@@ -317,7 +315,7 @@ const handleScan = (e) => {
|
||||
}
|
||||
|
||||
.btn-share {
|
||||
background-image: url("../assets/images/share-link.png");
|
||||
background-image: url("../assets/images/share-link.webp");
|
||||
}
|
||||
|
||||
.btn-share.has {
|
||||
@@ -325,7 +323,7 @@ const handleScan = (e) => {
|
||||
}
|
||||
|
||||
.btn-qiwei {
|
||||
background-image: url("../assets/images/add-wx.png");
|
||||
background-image: url("../assets/images/add-wx.webp");
|
||||
}
|
||||
|
||||
.btn-qiwei.has {
|
||||
@@ -333,7 +331,7 @@ const handleScan = (e) => {
|
||||
}
|
||||
|
||||
.btn-scan {
|
||||
background-image: url("../assets/images/scan-code.png");
|
||||
background-image: url("../assets/images/scan-code.webp");
|
||||
}
|
||||
|
||||
.btn-scan.has {
|
||||
|
||||
Reference in New Issue
Block a user