版型修改

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_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 VITE_APP_API_URL = https://utel.zltest.com.tw/appapi/v1

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

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

@ -180,12 +180,7 @@ function genCard(vcard) {
"text": "${vcard.title}", "text": "${vcard.title}",
"size": "md", "size": "md",
"weight": "regular", "weight": "regular",
"color": "#666666", "color": "#666666"
"action": {
"type": "uri",
"label": "action",
"uri": "${vcard.nfcurl}&cardid=1"
}
}, },
${vcardPhone} ${vcardPhone}
] ]
@ -250,7 +245,7 @@ function genCard(vcard) {
"action": { "action": {
"type": "uri", "type": "uri",
"label": "action", "label": "action",
"uri": "http://linecorp.com/" "uri": "https://line.naver.jp/ti/p/~${vcard.line}"
} }
}, },
{ {
@ -272,8 +267,8 @@ function genCard(vcard) {
], ],
"action": { "action": {
"type": "uri", "type": "uri",
"label": "action", "label": "分享名片",
"uri": "http://linecorp.com/" "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': case '0':
let { data: res } = await getCard({ userid: sessionStorage.getItem('uid') }) let { data: res } = await getCard({ userid: sessionStorage.getItem('uid') })
let { card } = cardFactory({ tid: userInfo.value.nc_template, vcard: res }) let { card } = cardFactory({ tid: userInfo.value.nc_template, vcard: res })
if (userInfo.value.status !== 0 && !userInfo.value.is_send_ad) { // & if (userInfo.value.status !== 0 && !userInfo.value.is_send_ad) { // &
state.value.flexContent = JSON.parse(card) state.value.flexContent = JSON.parse(card)
} else { } else {
@ -100,7 +99,10 @@ async function showFlex(id) {
} }
} }
console.log('card', JSON.stringify(state.value.flexContent) )
flexRef.value.innerHTML = '' flexRef.value.innerHTML = ''
flex2html("flex", state.value.flexContent) flex2html("flex", state.value.flexContent)
break break

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

Loading…
Cancel
Save