From 974011a28f98f5dfded34b37c334519e52a729f4 Mon Sep 17 00:00:00 2001 From: "XGL-THINKPAD-X1\\rucky" Date: Wed, 24 Jan 2024 16:40:48 +0800 Subject: [PATCH] update --- src/components/Result.vue | 10 ++++++++-- src/data/index.js | 6 +++--- src/store/index.js | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/Result.vue b/src/components/Result.vue index e34f2f1..4e4b7fe 100644 --- a/src/components/Result.vue +++ b/src/components/Result.vue @@ -123,7 +123,7 @@ const createPoster = (event) => { { name: "product", src: mbtiObj.value.productPic, - pos: { w: mbtiObj.value.picPos.w, h: mbtiObj.value.picPos.h, x: 137, y: 921 }, + pos: { w: mbtiObj.value.picPos.w, h: mbtiObj.value.picPos.h, x: 137, y: mbtiObj.value.type =='INFP'? 900 : 921 }, }, // 二维码 { @@ -240,7 +240,13 @@ const hideShare = () => {
{{ mbtiObj.product }}
-
+
diff --git a/src/data/index.js b/src/data/index.js index 35679dd..14a4952 100644 --- a/src/data/index.js +++ b/src/data/index.js @@ -223,7 +223,7 @@ export const mbtiList = [ blessings: ['多吃不胖积极向上', '有钱有颜喜乐连年'], product: '启航增强持有', productPic: new URL('../assets/images/result/product/ISTP.png', import.meta.url).href, - picPos:{w:322,h:107} + picPos:{w:491,h:109} }, { type: 'ESTP', @@ -292,7 +292,7 @@ export const mbtiList = [ blessings: ['前路浩浩荡荡', '万事尽可期待'], product: '启明日申季赎', productPic: new URL('../assets/images/result/product/INFJ.png', import.meta.url).href, - picPos:{w:321,h:105} + picPos:{w:537,h:99} }, { @@ -302,7 +302,7 @@ export const mbtiList = [ blessings: ['山外青山楼外楼', '容光焕发没忧愁'], product: '启元稳利30天', productPic: new URL('../assets/images/result/product/INFP.png', import.meta.url).href, - picPos:{w:321,h:105} + picPos:{w:470,h:121} }, { type: 'ENFP', diff --git a/src/store/index.js b/src/store/index.js index 740bef7..007aae7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -6,7 +6,7 @@ export const useMainStore = defineStore("counter", { return { hasDraw: true, //是否有抽奖机会 token: '', - MBTI: 'ESFP', //测试结果 + MBTI: 'ISTJ', //测试结果 hasPrize: false, //是否有奖品 prizeCode: 'oggSVMbeLgSK', //兑换码 prizeMoney: '8.88', //金额