This commit is contained in:
XGL-THINKPAD-X1\rucky 2024-01-24 16:40:48 +08:00
parent 17284027f4
commit 974011a28f
3 changed files with 12 additions and 6 deletions

View File

@ -123,7 +123,7 @@ const createPoster = (event) => {
{ {
name: "product", name: "product",
src: mbtiObj.value.productPic, 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 = () => {
<div class="product" <div class="product"
:class="mbtiObj.type == 'ISTJ' || mbtiObj.type == 'INTJ' ? 'adptFont' : ''" :class="mbtiObj.type == 'ISTJ' || mbtiObj.type == 'INTJ' ? 'adptFont' : ''"
>{{ mbtiObj.product }}</div> >{{ mbtiObj.product }}</div>
<div class="produc-img" :style="{width:mbtiObj.picPos.w+'px',height:mbtiObj.picPos.h+'px'}"> <div class="produc-img"
:style="{
width:mbtiObj.picPos.w+'px',
height:mbtiObj.picPos.h+'px',
marginTop: mbtiObj.type =='INFP' && '0px'
}"
>
<img :src="mbtiObj.productPic" alt="" srcset="" /> <img :src="mbtiObj.productPic" alt="" srcset="" />
</div> </div>
</div> </div>

View File

@ -223,7 +223,7 @@ export const mbtiList = [
blessings: ['多吃不胖积极向上', '有钱有颜喜乐连年'], blessings: ['多吃不胖积极向上', '有钱有颜喜乐连年'],
product: '启航增强持有', product: '启航增强持有',
productPic: new URL('../assets/images/result/product/ISTP.png', import.meta.url).href, 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', type: 'ESTP',
@ -292,7 +292,7 @@ export const mbtiList = [
blessings: ['前路浩浩荡荡', '万事尽可期待'], blessings: ['前路浩浩荡荡', '万事尽可期待'],
product: '启明日申季赎', product: '启明日申季赎',
productPic: new URL('../assets/images/result/product/INFJ.png', import.meta.url).href, 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: ['山外青山楼外楼', '容光焕发没忧愁'], blessings: ['山外青山楼外楼', '容光焕发没忧愁'],
product: '启元稳利30天', product: '启元稳利30天',
productPic: new URL('../assets/images/result/product/INFP.png', import.meta.url).href, 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', type: 'ENFP',

View File

@ -6,7 +6,7 @@ export const useMainStore = defineStore("counter", {
return { return {
hasDraw: true, //是否有抽奖机会 hasDraw: true, //是否有抽奖机会
token: '', token: '',
MBTI: 'ESFP', //测试结果 MBTI: 'ISTJ', //测试结果
hasPrize: false, //是否有奖品 hasPrize: false, //是否有奖品
prizeCode: 'oggSVMbeLgSK', //兑换码 prizeCode: 'oggSVMbeLgSK', //兑换码
prizeMoney: '8.88', //金额 prizeMoney: '8.88', //金额