You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
34 KiB
2 lines
34 KiB
(function(t){function e(e){for(var o,r,c=e[0],l=e[1],s=e[2],u=0,d=[];u<c.length;u++)r=c[u],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&d.push(a[r][0]),a[r]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(t[o]=l[o]);p&&p(e);while(d.length)d.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var t,e=0;e<i.length;e++){for(var n=i[e],o=!0,c=1;c<n.length;c++){var l=n[c];0!==a[l]&&(o=!1)}o&&(i.splice(e--,1),t=r(r.s=n[0]))}return t}var o={},a={app:0},i=[];function r(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/send/";var c=window["webpackJsonp"]=window["webpackJsonp"]||[],l=c.push.bind(c);c.push=e,c=c.slice();for(var s=0;s<c.length;s++)e(c[s]);var p=l;i.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"3f02":function(t,e,n){},"4caf":function(t,e,n){t.exports=n.p+"img/fly.71fac16a.svg"},"56d7":function(t,e,n){"use strict";n.r(e);n("e260"),n("e6cf"),n("cca6"),n("a79d");var o=n("7a23");function a(t,e){var n=Object(o["G"])("router-view");return Object(o["A"])(),Object(o["f"])(n)}var i=n("6b0d"),r=n.n(i);const c={},l=r()(c,[["render",a]]);var s=l,p=n("6c02"),u=(n("e7e5"),n("d399")),d=n("1da1"),f=(n("96cf"),n("d3b7"),n("3ca3"),n("ddb0"),n("9861"),n("ac1f"),n("841c"),n("5319"),n("e9c4"),n("7db0"),n("4caf")),g=n.n(f),b=(n("77ed"),n("fd32")),y=n.n(b),x=n("5530"),m=(n("159b"),n("b64b"),n("bc3a")),h=n.n(m),v=n("5502"),w=Object(v["a"])({state:{},mutations:{},actions:{},modules:{}}),z=h.a.create({baseURL:"https://card.slash1000.com/appapi/v1",timeout:5e3,withCredentials:!0});function O(t){var e=t.headers.authorization;e&&(console.log("change token"),sessionStorage.setItem("token",e))}function j(t){return T.apply(this,arguments)}function T(){return T=Object(d["a"])(regeneratorRuntime.mark((function t(e){var n,o,a,i,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=r.length>1&&void 0!==r[1]?r[1]:{},o=r.length>2&&void 0!==r[2]?r[2]:"GET","GET"!==o.toUpperCase()){t.next=11;break}return i="",Object.keys(n).forEach((function(t){i+=t+"="+n[t]+"&"})),""!==i&&(i=i.substring(0,i.lastIndexOf("&")),e+="?"+i),t.next=8,z.get(e);case 8:a=t.sent,t.next=14;break;case 11:return t.next=13,z.post(e,n);case 13:a=t.sent;case 14:return t.abrupt("return",a.data);case 15:case"end":return t.stop()}}),t)}))),T.apply(this,arguments)}z.interceptors.request.use((function(t){return sessionStorage.getItem("token")&&(t.headers.Authorization="".concat(sessionStorage.getItem("token"))),"post"===t.method?t.data=Object(x["a"])({uid:sessionStorage.getItem("uid")},t.data):"get"===t.method&&(t.params=Object(x["a"])({uid:sessionStorage.getItem("uid")},t.params)),t}),(function(t){return Promise.reject(t)})),z.interceptors.response.use((function(t){return O(t),t}),(function(t){if(t.response)switch(t.response.status){case 401:w.commit(types.LOGOUT),router.replace({path:"login",query:{redirect:router.currentRoute.fullPath}})}return Promise.reject(t.response.data)}));var S=function(){var t=Object(d["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",j("/card/getCard",e,"GET"));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),k=function(){var t=Object(d["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",j("/card/getCusCard",e,"GET"));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),F=function(){var t=Object(d["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",j("/card/getVipCard",e,"GET"));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();n("d9e2"),n("498a"),n("99af"),n("b0c0");function _(t){var e,n,o,a,i,r;e=t.url.trim().length>0?-1!==t.nc_func.indexOf("nourl")?'{\n "type": "box",\n "layout": "baseline",\n "contents": [\n {\n "type": "icon",\n "url": "https://demo.zltest.com.tw/line/icon02.png",\n "offsetTop": "3px"\n },\n {\n "type": "text",\n "text": "'.concat(t.url,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold"\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n },\n '):'\n {\n "type": "box",\n "layout": "baseline",\n "contents": [\n {\n "type": "icon",\n "url": "https://demo.zltest.com.tw/line/icon02.png",\n "offsetTop": "3px"\n },\n {\n "type": "text",\n "text": "'.concat(t.url,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "').concat(t.url,'"\n }\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n },\n '):"",n=t.address.trim().length>0?'\n {\n "type": "box",\n "layout": "baseline",\n "contents": [\n {\n "type": "icon",\n "url": "https://demo.zltest.com.tw/line/icon04.png",\n "offsetTop": "3px"\n },\n {\n "type": "text",\n "text": "'.concat(t.address,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "https://www.google.com.tw/maps/place/').concat(encodeURIComponent(t.address),'"\n },\n "wrap": true\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n }, \n '):"",o=t.tel.trim().length>0?'\n {\n "type": "box",\n "layout": "baseline",\n "contents": [\n {\n "type": "icon",\n "url": "https://demo.zltest.com.tw/line/icon01.png",\n "offsetTop": "3px"\n },\n {\n "type": "text",\n "text": "'.concat(t.tel,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "tel:').concat(t.tel,'"\n }\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n },\n '):"",a=t.phone.trim().length>0?'\n {\n "type": "box",\n "layout": "baseline",\n "contents": [\n {\n "type": "icon",\n "url": "https://demo.zltest.com.tw/line/icon01.png",\n "offsetTop": "3px"\n },\n {\n "type": "text",\n "text": "'.concat(t.phone,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "tel:').concat(t.phone,'"\n }\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n },\n '):"",i=t.avatar.trim().length>0?'\n {\n "type": "image",\n "url": "'.concat(t.avatar,'",\n "size": "xs",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "').concat(t.nfcurl,'&cardid=1"\n } \n },\n '):"",r=t.email.trim().length>0?'\n {\n "type": "box",\n "layout": "baseline",\n "contents": [\n {\n "type": "icon",\n "url": "https://demo.zltest.com.tw/line/icon03.png",\n "offsetTop": "3px"\n },\n {\n "type": "text",\n "text": "'.concat(t.email,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "mailto:').concat(t.email,'"\n }\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n },\n '):"";var c='\n {\n "altText": "UTel電子名片",\n "type": "flex",\n "contents": \n {\n "type": "bubble",\n "size": "giga",\n "body": {\n "type": "box",\n "layout": "vertical",\n "contents": [\n {\n "type": "image",\n "url": "https://demo.zltest.com.tw/line/bg02.jpg",\n "size": "full",\n "aspectMode": "cover",\n "aspectRatio": "4:3",\n "gravity": "top",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "'.concat(t.nfcurl,'&cardid=1"\n } \n },\n {\n "type": "box",\n "layout": "vertical",\n "contents": [\n ').concat(i,'\n {\n "type": "text",\n "text": "').concat(t.company,'",\n "color": "#ffffff",\n "size": "md",\n "weight": "bold",\n "wrap": true,\n "align": "center",\n "margin": "sm",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "').concat(t.nfcurl,'&cardid=1"\n } \n }\n ],\n "position": "absolute",\n "offsetTop": "13%",\n "offsetStart": "3%",\n "width": "26%"\n },\n {\n "type": "box",\n "layout": "vertical",\n "contents": [\n {\n "type": "box",\n "layout": "vertical",\n "contents": [\n {\n "type": "text",\n "text": "加入好友",\n "align": "center",\n "color": "#ffffff",\n "weight": "bold",\n "margin": "xs"\n }\n ],\n "backgroundColor": "#06c755",\n "width": "100%",\n "cornerRadius": "5px",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "https://line.naver.jp/ti/p/~').concat(t.line,'"\n },\n "paddingTop": "5px",\n "paddingBottom": "5px"\n },\n {\n "type": "box",\n "layout": "vertical",\n "contents": [\n {\n "type": "text",\n "text": "分享名片",\n "align": "center",\n "color": "#ffffff",\n "weight": "bold",\n "margin": "xs"\n }\n ],\n "backgroundColor": "#ffcc5b",\n "width": "100%",\n "cornerRadius": "5px",\n "margin": "md",\n "paddingTop": "5px",\n "paddingBottom": "5px",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "').concat("https://liff.line.me/1657876696-564NGMxy","/?userid=").concat(t.user_id,'&cardid=1"\n }\n }\n ],\n "position": "absolute",\n "offsetStart": "4%",\n "width": "25%",\n "offsetBottom": "5%"\n },\n {\n "type": "box",\n "layout": "vertical",\n "contents": [\n {\n "type": "box",\n "layout": "baseline",\n "contents": [\n {\n "type": "text",\n "text": "').concat(t.title,'",\n "color": "#333334",\n "size": "md",\n "weight": "bold"\n }\n ],\n "spacing": "lg"\n },\n {\n "type": "box",\n "layout": "vertical",\n "contents": [\n {\n "type": "text",\n "text": "').concat(t.name,'",\n "size": "xxl",\n "color": "#333334",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "').concat(t.nfcurl,'&cardid=1"\n } \n }\n ]\n },\n {\n "type": "box",\n "layout": "baseline",\n "contents": [],\n "backgroundColor": "#d5602d",\n "height": "3px",\n "margin": "lg"\n },\n ').concat(a,"\n ").concat(o,"\n ").concat(e,"\n ").concat(r,"\n ").concat(n,'\n {\n "type": "box",\n "layout": "baseline",\n "contents": [],\n "spacing": "lg",\n "margin": "sm"\n } \n ],\n "position": "absolute",\n "offsetTop": "12%",\n "offsetStart": "35%",\n "offsetEnd": "5%"\n }\n ],\n "paddingAll": "0px"\n }\n }\n }\n ');return{card:c}}function R(t){var e,n,o,a,i;e=t.url.trim().length>0?-1!==t.nc_func.indexOf("nourl")?{type:"text",text:t.url,color:"#FFFFFF",align:"end"}:{type:"text",text:t.url,color:"#FFFFFF",align:"end",action:{type:"uri",label:"action",uri:t.url}}:{type:"text",text:" ",color:"#FFFFFF",align:"end"},n=t.address.trim().length>0?{type:"box",layout:"vertical",contents:[{type:"text",text:t.address.substr(0,3),size:"sm"},{type:"text",text:t.address.substr(3).length>0?t.address.substr(3):" ",size:"sm",wrap:!0,maxLines:2}],position:"absolute",offsetTop:"30%",offsetStart:"25%",width:"40%",height:"60px",action:{type:"uri",label:"action",uri:"https://www.google.com.tw/maps/place/".concat(encodeURIComponent(t.address))}}:{type:"box",layout:"vertical",contents:[{type:"text",text:" ",size:"sm"}],position:"absolute",offsetTop:"30%",offsetStart:"25%",width:"40%",height:"60px"},0==t.title.trim().length&&(t.title=" "),o=0==t.tel.trim().length?{type:"text",text:" ",align:"end"}:{type:"text",text:t.tel,align:"end",action:{type:"uri",label:"action",uri:"tel:"+t.tel}},a=0==t.phone.trim().length?{type:"text",text:" ",align:"end"}:{type:"text",text:t.phone,align:"end",action:{type:"uri",label:"action",uri:"tel:"+t.phone}},i=t.avatar.trim().length>0?{type:"image",url:t.avatar,action:{type:"uri",label:"action",uri:t.nfcurl+"&cardid=1"},aspectMode:"cover",size:"full"}:{type:"text",text:" ",size:"xs"},t.email.trim().length>0&&(t.email,"mailto:".concat(t.email));var r={altText:"UTel電子名片",type:"flex",contents:{type:"bubble",size:"giga",body:{type:"box",layout:"vertical",contents:[{type:"image",url:"https://utel.u168.vip/images/tpl02_bg.png",size:"full",aspectMode:"cover",aspectRatio:"4:3",gravity:"top"},{type:"box",layout:"vertical",contents:[i],position:"absolute",offsetTop:"13%",offsetStart:"3%",width:"75px",height:"75px",cornerRadius:"100px"},{type:"box",layout:"vertical",contents:[{type:"box",layout:"vertical",contents:[{type:"text",text:"加入好友",align:"center",color:"#ffffff",weight:"bold",margin:"xs",size:"xs"}],backgroundColor:"#ffcc5b",width:"100%",cornerRadius:"5px",action:{type:"uri",label:"action",uri:"https://line.naver.jp/ti/p/~"+t.line},paddingTop:"5px",paddingBottom:"5px"},{type:"box",layout:"vertical",contents:[{type:"text",text:"分享名片",align:"center",color:"#ffffff",weight:"bold",margin:"xs",size:"xs"}],backgroundColor:"#ffcc5b",width:"100%",cornerRadius:"5px",margin:"md",paddingTop:"5px",paddingBottom:"5px"}],position:"absolute",offsetStart:"10%",width:"20%",offsetBottom:"16%",action:{type:"uri",label:"action",uri:"".concat("https://liff.line.me/1657876696-564NGMxy","/?userid=").concat(t.user_id,"&cardid=1")}},{type:"box",layout:"vertical",contents:[{type:"text",text:t.name}],position:"absolute",offsetTop:"13%",offsetStart:"25%",width:"90px"},{type:"box",layout:"vertical",contents:[{type:"text",text:t.title}],position:"absolute",offsetTop:"13%",offsetStart:"51%",width:"50%"},n,{type:"box",layout:"vertical",contents:[a,o],position:"absolute",offsetTop:"30%",offsetEnd:"5%",width:"30%"},{type:"box",layout:"vertical",contents:[{type:"text",text:t.company,size:"lg",color:"#EFEFEF",align:"end",weight:"bold"},e],position:"absolute",offsetTop:"65%",offsetEnd:"5%",width:"60%"}],paddingAll:"0px",action:{type:"uri",label:"action",uri:t.nfcurl+"&cardid=1"}}}};return{card:JSON.stringify(r)}}function C(t){var e,n,o,a;e=t.url.trim().length>0?-1!==t.nc_func.indexOf("nourl")?{type:"box",layout:"baseline",contents:[{type:"text",text:t.url,color:"#333334",size:"sm",weight:"bold",align:"end"}],spacing:"lg",margin:"xs"}:{type:"box",layout:"baseline",contents:[{type:"text",text:t.url,color:"#333334",size:"sm",action:{type:"uri",label:"action",uri:t.url},weight:"bold",align:"end"}],spacing:"lg",margin:"xs"}:{type:"box",layout:"baseline",contents:[{type:"text",text:" ",color:"#333334",size:"sm",weight:"bold",align:"end"}],spacing:"lg",margin:"xs"},n=t.address.trim().length>0?{type:"box",layout:"vertical",contents:[{type:"text",text:t.address,weight:"bold",color:"#333334",size:"sm",align:"end",action:{type:"uri",label:"action",uri:"https://www.google.com.tw/maps/place/".concat(encodeURIComponent(t.address))},wrap:!0}],spacing:"lg",margin:"xs"}:{type:"box",layout:"vertical",contents:[{type:"text",text:" ",weight:"bold",color:"#333334",size:"sm",align:"end",wrap:!0}],spacing:"lg",margin:"xs"},0==t.title.trim().length&&(t.title=" "),0==t.tel.trim().length&&(t.tel=" "),0==t.phone.trim().length&&(t.phone=" "),o=t.avatar.trim().length>0?{type:"image",url:t.avatar,action:{type:"uri",label:"action",uri:t.nfcurl+"&cardid=1"}}:{type:"text",text:" ",size:"xs"},a=t.email.trim().length>0?{type:"text",text:t.email,color:"#333334",size:"sm",weight:"bold",action:{type:"uri",label:"action",uri:"mailto:".concat(t.email)},align:"end"}:{type:"text",text:" ",color:"#333334",size:"sm",weight:"bold",align:"end"};var i={altText:"UTel電子名片",type:"flex",contents:{type:"bubble",size:"giga",body:{type:"box",layout:"vertical",contents:[{type:"image",url:"https://utel.u168.vip/images/jcibg.png",size:"full",aspectMode:"fit",aspectRatio:"4:3",gravity:"top"},{type:"box",layout:"vertical",contents:[o,{type:"text",text:"大同國際\n青年商會",wrap:!0,align:"center",margin:"md"}],position:"absolute",offsetTop:"13%",offsetStart:"2%",width:"21%"},{type:"box",layout:"vertical",contents:[{type:"box",layout:"vertical",contents:[{type:"text",text:"加入好友",align:"center",color:"#ffffff",weight:"bold",margin:"xs"}],backgroundColor:"#06c755",width:"100%",cornerRadius:"5px",action:{type:"uri",label:"action",uri:"https://line.naver.jp/ti/p/~"+t.line}},{type:"box",layout:"vertical",contents:[{type:"text",text:"分享名片",align:"center",color:"#ffffff",weight:"bold",margin:"xs"}],backgroundColor:"#ffcc5b",width:"100%",cornerRadius:"5px",margin:"md"}],position:"absolute",offsetStart:"2%",width:"20%",offsetBottom:"8%",action:{type:"uri",label:"action",uri:"".concat("https://liff.line.me/1657876696-564NGMxy","/?userid=").concat(t.user_id,"&cardid=1")}},{type:"box",layout:"vertical",contents:[{type:"box",layout:"vertical",contents:[{type:"text",text:t.name,size:"lg",color:"#4EA2D9",weight:"bold",align:"end"}]},{type:"box",layout:"baseline",contents:[{type:"text",text:t.title,color:"#333334",size:"md",weight:"bold",align:"end"}],spacing:"lg"},{type:"box",layout:"vertical",contents:[{type:"separator"}],height:"20px"},{type:"box",layout:"vertical",contents:[{type:"text",text:t.company,color:"#4EA2D9",size:"md",weight:"bold",align:"end"}],spacing:"lg",margin:"xs"},n,{type:"box",layout:"horizontal",contents:[{type:"text",text:t.tel,align:"end",size:"sm",color:"#333334",weight:"bold"},{type:"text",text:t.phone,size:"sm",align:"end",weight:"bold"}]},e,{type:"box",layout:"baseline",contents:[a],spacing:"lg",margin:"xs"}],position:"absolute",offsetTop:"30%",offsetStart:"35%",offsetEnd:"5%"}],paddingAll:"0px",action:{type:"uri",label:"action",uri:t.nfcurl+"&cardid=1"}}}};return{card:JSON.stringify(i)}}function J(t){var e;t.url.trim().length>0&&(-1!==t.nc_func.indexOf("nourl")?t.url:(t.url,t.url)),t.address.trim().length>0&&(t.address,"https://www.google.com.tw/maps/place/".concat(encodeURIComponent(t.address))),0==t.title.trim().length&&(t.title=" "),0==t.tel.trim().length&&(t.tel=" "),0==t.phone.trim().length&&(t.phone=" "),e=t.avatar.trim().length>0?{type:"image",url:t.avatar,action:{type:"uri",label:"action",uri:t.nfcurl+"&cardid=1"}}:{type:"text",text:" ",size:"xs"},t.email.trim().length>0&&(t.email,"mailto:".concat(t.email));var n={altText:"UTel電子名片",type:"flex",contents:{type:"bubble",size:"giga",body:{type:"box",layout:"vertical",contents:[{type:"image",size:"full",aspectMode:"cover",aspectRatio:"4:3",gravity:"top",url:"https://utel.u168.vip/images/tpl03_bg.png?v=1"},{type:"box",layout:"vertical",contents:[{type:"text",text:t.company||" ",size:"xl",wrap:!0}],position:"absolute",offsetTop:"5%",offsetStart:"5%",width:"60%"},{type:"box",layout:"vertical",contents:[e],position:"absolute",offsetTop:"5%",offsetEnd:"5%"},{type:"box",layout:"horizontal",contents:[{type:"text",text:t.name,size:"lg",weight:"bold",align:"center"}],position:"absolute",offsetStart:"40%",offsetTop:"45%",width:"20%"},{type:"box",layout:"vertical",contents:[{type:"text",text:t.title||" ",align:"center"}],position:"absolute",offsetTop:"55%",offsetStart:"40%",width:"20%"},{type:"box",layout:"horizontal",contents:[{type:"box",layout:"vertical",contents:[{type:"image",url:"https://utel.u168.vip/images/icons/web.png",align:"center",size:"xxs"},{type:"text",text:"我的網站",align:"center",color:"#FFFFFF"}],flex:1,action:{type:"uri",label:"action",uri:t.url.trim().length>0?t.url:t.nfcurl+"&cardid=1"}},{type:"box",layout:"vertical",contents:[{type:"image",url:"https://utel.u168.vip/images/icons/phone.png",align:"center",size:"xxs"},{type:"text",text:t.phone,align:"center",color:"#FFFFFF"}],flex:1,action:{type:"uri",label:"action",uri:"tel:"+t.phone}},{type:"box",layout:"vertical",contents:[{type:"image",url:"https://utel.u168.vip/images/icons/email.png",align:"center",size:"xxs"},{type:"text",text:t.email,align:"center",color:"#FFFFFF"}],flex:1,action:{type:"uri",label:"action",uri:"mailto:"+t.email}}],position:"absolute",width:"100%",offsetBottom:"5%"}],paddingAll:"0px",action:{type:"uri",label:"action",uri:t.nfcurl+"&cardid=1"}}}};return console.log(JSON.stringify(n)),{card:JSON.stringify(n)}}function I(t){t.url.trim().length>0&&(-1!==t.nc_func.indexOf("nourl")?t.url:(t.url,t.url)),t.address.trim().length>0&&(t.address,"https://www.google.com.tw/maps/place/".concat(encodeURIComponent(t.address))),0==t.title.trim().length&&(t.title=" "),0==t.tel.trim().length&&(t.tel=" "),0==t.phone.trim().length&&(t.phone=" "),t.avatar.trim().length>0&&(t.avatar,t.nfcurl),t.email.trim().length>0&&(t.email,"mailto:".concat(t.email));var e={altText:"UTel電子名片",type:"flex",contents:{type:"bubble",size:"giga",body:{type:"box",layout:"vertical",contents:[{type:"image",url:"https://demo.zltest.com.tw/line/bg05.jpg",size:"full",aspectMode:"cover",aspectRatio:"4:3",gravity:"top"},{type:"box",layout:"vertical",contents:[{type:"box",layout:"vertical",contents:[{type:"image",url:"https://demo.zltest.com.tw/510/logo.jpg"}],offsetStart:"5%",width:"17%"},{type:"box",layout:"vertical",contents:[{type:"box",layout:"vertical",contents:[{type:"text",text:"綜廉廣告科技有限公司",color:"#333334",size:"24px",weight:"bold"}]},{type:"box",layout:"vertical",contents:[{type:"text",text:"台北市南京東路四段133巷7弄23號",color:"#333334",size:"md",action:{type:"uri",label:"action",uri:"https://goo.gl/maps/GXkbAnx8idesQp1c8"}}]}],position:"absolute",offsetStart:"25%",width:"65%",offsetTop:"10%"}],width:"100%",offsetTop:"7%",position:"absolute"},{type:"box",layout:"vertical",contents:[{type:"box",layout:"vertical",contents:[{type:"box",layout:"vertical",contents:[{type:"text",text:"胡怡霖 / 總經理",color:"#ffffff",size:"xl",weight:"bold"}]},{type:"box",layout:"vertical",contents:[{type:"text",text:"聯絡電話 : 02-6600-8966",color:"#ffffff",size:"md",action:{type:"uri",label:"action",uri:"tel:02-66008966"}}]}],offsetStart:"7%",width:"90%"}],width:"100%",offsetTop:"38%",position:"absolute"},{type:"box",layout:"horizontal",contents:[{type:"box",layout:"vertical",contents:[{type:"image",url:"https://demo.zltest.com.tw/line/c001.png",size:"50px",action:{type:"uri",label:"action",uri:"tel:02-66008966"}},{type:"text",text:"立即來電",color:"#000000",size:"sm",weight:"bold",align:"center",margin:"sm"}]},{type:"box",layout:"vertical",contents:[{type:"image",url:"https://demo.zltest.com.tw/line/c002.png",size:"50px",action:{type:"uri",label:"action",uri:"https://www.coolgo.tw"}},{type:"text",text:"前往網站",color:"#000000",size:"sm",weight:"bold",align:"center",margin:"sm"}]},{type:"box",layout:"vertical",contents:[{type:"image",url:"https://demo.zltest.com.tw/line/c003.png",size:"50px",action:{type:"uri",label:"action",uri:"mailto:510@cityagogo.com.tw"}},{type:"text",text:"發送信箱",color:"#000000",size:"sm",weight:"bold",align:"center",margin:"sm"}]},{type:"box",layout:"vertical",contents:[{type:"image",url:"https://demo.zltest.com.tw/line/c004.png",size:"50px",action:{type:"uri",label:"action",uri:"https://goo.gl/maps/GXkbAnx8idesQp1c8"}},{type:"text",text:"地址導航",color:"#000000",size:"sm",weight:"bold",align:"center",margin:"sm"}]},{type:"box",layout:"vertical",contents:[{type:"image",url:"https://demo.zltest.com.tw/line/c005.png",size:"50px",action:{type:"uri",label:"action",uri:"https://line.naver.jp/ti/p/~0973092510"}},{type:"text",text:"加入好友",color:"#000000",size:"sm",weight:"bold",align:"center",margin:"sm"}]},{type:"box",layout:"vertical",contents:[{type:"image",url:"https://demo.zltest.com.tw/line/c006.png",size:"50px",action:{type:"uri",label:"action",uri:"https://utel.vip/send/?userid=mc623012c9b344d&cardid=1"}},{type:"text",text:"分享名片",color:"#000000",size:"sm",weight:"bold",align:"center",margin:"sm"}]}],width:"100%",offsetTop:"65%",position:"absolute"}],paddingAll:"0px"}}};return{card:JSON.stringify(e)}}function N(t){switch(t.tid){case 0:return _(t.vcard);case 1:return R(t.vcard);case 2:return C(t.vcard);case 3:return J(t.vcard);case 4:return I(t.vcard);default:throw new Error("params error")}}function U(t){return N(t)}n("9911"),n("d81d"),n("4de4");var E=n("2ef0"),M=n.n(E);function G(t){var e=t.btn,n=t.json5,o=e.link||DEFAULT_LINK;return{color:e.color||"#17c950",height:n.btnHeight||"md",style:e.style||"primary",type:"button",action:{label:e.text||"預設按鈕文字",type:"uri",uri:o}}}function P(t){var e=t.card;t.cardIdx,t.json5;return{type:"bubble",hero:{animated:!0,aspectMode:"cover",aspectRatio:e.ratio||"20:13",size:"full",type:"image",url:e.image||" "},body:{backgroundColor:e.bgColor||"#ffffff",layout:"vertical",spacing:"md",type:"box",contents:[{color:e.titleColor||"#000000",size:e.titleSize||"xl",text:e.title||" ",type:"text",weight:"bold",wrap:!0},{color:e.descColor||"#000000",size:e.descSize||"sm",text:e.desc||" ",type:"text",wrap:!0}]},footer:{backgroundColor:e.bgColor||"#ffffff",layout:"vertical",spacing:"sm",type:"box",contents:M.a.map(e.btns,(function(e){return G(Object(x["a"])(Object(x["a"])({},t),{},{btn:e}))}))}}}function A(t){var e=t.json5;return e.cards=e.cards.filter((function(t){return 1==t.isShow})),{type:"flex",altText:e.altText,contents:{type:"carousel",contents:M.a.map(e.cards,(function(e,n){return P(Object(x["a"])(Object(x["a"])({},t),{},{card:e,cardIdx:n}))}))}}}function B(t){return{type:"flex",altText:"Utel電子名片",contents:t}}var L=function(t){return Object(o["D"])("data-v-13978e29"),t=t(),Object(o["B"])(),t},D={id:"home"},q={class:"tab-section"},Q={class:"flyaway-border"},W=L((function(){return Object(o["h"])("img",{src:g.a,alt:"",width:"100"},null,-1)})),X=[W],H=Object(o["i"])("分享好友"),K={setup:function(t){var e=Object(o["F"])({user:{},card_title:"",vip_card:[],flexContent:{}}),n=(Object(o["F"])("0"),Object(o["F"])(!1)),a=(Object(o["F"])(null),Object(o["F"])(!0)),i=new URLSearchParams(window.location.search).get("userid"),r=new URLSearchParams(window.location.search).get("cardid"),c=r-1;function l(t){return s.apply(this,arguments)}function s(){return s=Object(d["a"])(regeneratorRuntime.mark((function t(n){var o,a,i,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=n,t.next=0===t.t0?3:1===t.t0?6:14;break;case 3:return o=U({tid:e.value.user.nc_template,vcard:e.value.user}),a=o.card,e.value.flexContent=JSON.parse(a),t.abrupt("break",16);case 6:if(!(e.value.user.nc_type>1)){t.next=13;break}return t.next=9,k({userid:e.value.user.user_id});case 9:i=t.sent,200===i.code&&i.data.cus_card&&(e.value.flexContent=A(JSON.parse(i.data.cus_card))),t.next=13;break;case 13:return t.abrupt("break",16);case 14:return e.value.user.nc_type>2&&(r=e.value.vip_card.find((function(t){return t.sort_id==c-2})),0===r.type?e.value.flexContent=A(JSON.parse(r.content)):e.value.flexContent=B(JSON.parse(r.content))),t.abrupt("break",16);case 16:case"end":return t.stop()}}),t)}))),s.apply(this,arguments)}Object(o["u"])(Object(d["a"])(regeneratorRuntime.mark((function t(){var n,a,r,s,p;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,y.a.init({liffId:"1657876696-564NGMxy"});case 3:y.a.isLoggedIn()||y.a.login({redirectUri:window.location.href}),t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),console.log("liff.state init error ".concat(t.t0));case 9:if(n={},!i){t.next=14;break}n={userid:i},t.next=19;break;case 14:return t.next=16,y.a.getProfile();case 16:a=t.sent,r=a.userId,n={line_id:r};case 19:return t.next=21,S(n);case 21:if(s=t.sent,console.log(s),200!==s.code&&(Object(u["a"])("非法操作!!!"),console.log("error ec001"),window.location.replace("https://liff.line.me/1656948609-xMp7dWAz")),e.value.user=s.data,!(s.data.nc_type<=1&&0!==c)){t.next=29;break}return Object(u["a"])("非法操作!!!"),console.log("error ec002"),t.abrupt("return");case 29:if(!(2===s.data.nc_type&&c>1)){t.next=33;break}return Object(u["a"])("非法操作!!!"),console.log("error ec003"),t.abrupt("return");case 33:if(!(s.data.nc_type>2)){t.next=40;break}return t.next=36,F({userid:e.value.user.user_id});case 36:p=t.sent,e.value.vip_card=p.data,t.next=41;break;case 40:e.value.vip_card=[];case 41:Object(o["r"])((function(){l(c)}));case 42:case"end":return t.stop()}}),t,null,[[0,6]])})))),Object(o["L"])((function(){return e.value.flexContent}),(function(t,e){"{}"!==JSON.stringify(t)&&(a.value=!1)}),{immediate:!0});var p=function(){var t=Object(d["a"])(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(y.a.isLoggedIn()||y.a.login({redirectUri:window.location.href}),0!==c){t.next=7;break}return t.next=4,y.a.shareTargetPicker([JSON.parse(JSON.stringify(e.value.flexContent)),{type:"text",text:"名片的連結都可以點擊!"}]);case 4:o=t.sent,t.next=10;break;case 7:return t.next=9,y.a.shareTargetPicker([JSON.parse(JSON.stringify(e.value.flexContent))]);case 9:o=t.sent;case 10:n.value=!0,setTimeout((function(){if(n.value=!1,o)return"success"===o.status?Object(u["a"])("傳送成功"):u["a"].fail("傳送失敗")}),1e3);case 12:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return function(t,e){var i=Object(o["G"])("van-nav-bar"),r=Object(o["G"])("van-button");return Object(o["A"])(),Object(o["g"])("div",D,[Object(o["j"])(i,{title:"SlashCard電子名片分享"}),Object(o["h"])("div",q,[Object(o["h"])("div",Q,[Object(o["h"])("div",{class:Object(o["s"])(["flex-section",{animate__animated:Object(o["J"])(n),animate__heartBeat:Object(o["J"])(n)}])},X,2)])]),Object(o["h"])("div",{class:"btn-area",onClick:p},[Object(o["j"])(r,{type:"primary",disabled:Object(o["J"])(a),loading:Object(o["J"])(a),block:""},{default:Object(o["M"])((function(){return[H]})),_:1},8,["disabled","loading"])])])}}};n("a85d");const V=r()(K,[["__scopeId","data-v-13978e29"]]);var Y=V,Z=[{path:"/",name:"Send",component:Y}],$=Object(p["a"])({history:Object(p["b"])("/send/"),routes:Z}),tt=$,et=(n("66b9"),n("b650")),nt=(n("d356"),n("48bd")),ot=(n("5246"),n("6b41")),at=(n("da3c"),n("0b33")),it=(n("bda7"),n("5e46")),rt=(n("38d5"),n("772a")),ct=(n("be7f"),n("565f")),lt=(n("0653"),n("34e9")),st=(n("e930"),n("8f80")),pt=(n("e17f"),n("2241")),ut=(n("b0d0"),n("3c69")),dt=n("82db");function ft(t){t.use(et["b"]).use(u["a"]).use(nt["a"]).use(ot["a"]).use(at["a"]).use(it["a"]).use(rt["a"]).use(ct["a"]).use(lt["a"]).use(st["a"]).use(pt["a"])}ut["a"].use("zh-TW",dt["a"]);n("e382"),n("adf6");var gt=Object(o["e"])(s);ft(gt),gt.use(tt),gt.mount("#app")},a85d:function(t,e,n){"use strict";n("3f02")},adf6:function(t,e,n){},e382:function(t,e,n){}});
|
|
//# sourceMappingURL=app.083ecfcd.js.map
|