版型修改

main
Wayne 2 years ago
parent 6c6ff6fcd4
commit 30a5f6c53b

@ -6,7 +6,7 @@ VITE_APP_BASE_URL = https://utel.zltest.com.tw
VITE_APP_LINE_LIFF_ID = 1656948609-xMp7dWAz
VITE_APP_SEND_URL = https://liff.line.me/1656948609-xMp7dWAz
VITE_APP_SEND_URL = https://liff.line.me/1656948609-BYr8Nynp
VITE_APP_API_URL = https://utel.zltest.com.tw/appapi/v1

@ -322,7 +322,7 @@ function genCard(vcard) {
"action": {
"type": "uri",
"label": "action",
"uri": "${import.meta.env.VITE_APP_SEND_URL}/?userid=${vcard.user_id}&cardid=1"
"uri": "${import.meta.env.VITE_APP_SEND_URL}/?userid=${vcard.user_id}&cardid=1&tpl=0"
}
}
],

@ -275,7 +275,7 @@ function genCard(vcard) {
"action": {
"type": "uri",
"label": "加入好友",
"uri": "http://linecorp.com/"
"uri": "https://line.naver.jp/ti/p/~${vcard.line}"
},
"color": "#755483",
"height": "sm",
@ -287,7 +287,7 @@ function genCard(vcard) {
"action": {
"type": "uri",
"label": "分享名片",
"uri": "http://linecorp.com/"
"uri": "${import.meta.env.VITE_APP_SEND_URL}/?userid=${vcard.user_id}&cardid=1&tpl=1"
},
"color": "#93476e",
"height": "sm",

@ -277,7 +277,7 @@ function genCard(vcard) {
"action": {
"type": "uri",
"label": "加入好友",
"uri": "http://linecorp.com/"
"uri": "https://line.naver.jp/ti/p/~${vcard.line}"
},
"color": "#6c6664",
"height": "sm",
@ -288,7 +288,7 @@ function genCard(vcard) {
"action": {
"type": "uri",
"label": "分享名片",
"uri": "http://linecorp.com/"
"uri": "${import.meta.env.VITE_APP_SEND_URL}/?userid=${vcard.user_id}&cardid=1&tpl=2"
},
"color": "#6c6664",
"height": "sm",

@ -180,12 +180,7 @@ function genCard(vcard) {
"text": "${vcard.title}",
"size": "md",
"weight": "regular",
"color": "#666666",
"action": {
"type": "uri",
"label": "action",
"uri": "${vcard.nfcurl}&cardid=1"
}
"color": "#666666"
},
${vcardPhone}
]
@ -250,8 +245,8 @@ function genCard(vcard) {
"action": {
"type": "uri",
"label": "action",
"uri": "http://linecorp.com/"
}
"uri": "https://line.naver.jp/ti/p/~${vcard.line}"
}
},
{
"type": "box",
@ -271,10 +266,10 @@ function genCard(vcard) {
}
],
"action": {
"type": "uri",
"label": "action",
"uri": "http://linecorp.com/"
}
"type": "uri",
"label": "分享名片",
"uri": "${import.meta.env.VITE_APP_SEND_URL}/?userid=${vcard.user_id}&cardid=1&tpl=3"
}
}
]
}

@ -84,7 +84,6 @@ async function showFlex(id) {
case '0':
let { data: res } = await getCard({ userid: sessionStorage.getItem('uid') })
let { card } = cardFactory({ tid: userInfo.value.nc_template, vcard: res })
if (userInfo.value.status !== 0 && !userInfo.value.is_send_ad) { // &
state.value.flexContent = JSON.parse(card)
} else {
@ -100,7 +99,10 @@ async function showFlex(id) {
}
}
console.log('card', JSON.stringify(state.value.flexContent) )
flexRef.value.innerHTML = ''
flex2html("flex", state.value.flexContent)
break

@ -25,8 +25,8 @@ export default defineConfig(({ mode }) => {
'@': resolve(__dirname, 'src')
}
},
esbuild: {
drop: ["console", "debugger"],
},
// esbuild: {
// drop: ["console", "debugger"],
// },
}
})

Loading…
Cancel
Save