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
15 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-common"],{"0f9b":function(n,t,e){"use strict";e.d(t,"a",(function(){return s}));var o=e("5530"),r=(e("e9c4"),e("ac1f"),e("5319"),e("9911"),e("d81d"),e("2ef0")),a=e.n(r);function c(n){var t=n.btn,e=n.json5,o=t.link||DEFAULT_LINK;return{color:t.color||"#17c950",height:e.btnHeight||"md",style:t.style||"primary",type:"button",action:{label:t.text||"預設按鈕文字",type:"uri",uri:o}}}function i(n){var t=n.card,e=(n.cardIdx,n.json5),r=t.link||DEFAULT_LINK;return{type:"bubble",hero:{animated:!0,aspectMode:"cover",aspectRatio:e.ratio||"20:13",size:"full",type:"image",url:t.image||" ",action:{type:"uri",uri:r}},body:{backgroundColor:t.bgColor||"#ffffff",layout:"vertical",spacing:"md",type:"box",action:{type:"uri",uri:r},contents:[{color:t.titleColor||"#000000",size:e.titleSize||"xl",text:t.title||" ",type:"text",weight:"bold",wrap:!0},{color:t.descColor||"#000000",size:e.descSize||"sm",text:t.desc||" ",type:"text",wrap:!0}]},footer:{backgroundColor:t.bgColor||"#ffffff",layout:"vertical",spacing:"sm",type:"box",contents:a.a.map(t.btns,(function(t){return c(Object(o["a"])(Object(o["a"])({},n),{},{btn:t}))}))}}}function s(n){var t=n.json5;return{type:"flex",altText:t.altText,contents:{type:"carousel",contents:a.a.map(t.cards,(function(t,e){return i(Object(o["a"])(Object(o["a"])({},n),{},{card:t,cardIdx:e}))}))}}}},"15fd":function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));e("498a"),e("99af"),e("b0c0");function o(n){var t,e,o;t=n.url.trim().length>0?0===n.level?'{\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(n.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(n.url,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "').concat(n.url,'"\n }\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n },\n '):"",e=n.address.trim().length>0?'\n ,\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(n.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(n.address),'"\n },\n "wrap": true\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n } \n '):"",o=n.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(n.tel,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "tel:').concat(n.tel,'"\n }\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n },\n '):"";var r='\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 },\n {\n "type": "box",\n "layout": "vertical",\n "contents": [\n {\n "type": "image",\n "url": "'.concat(n.avatar,'",\n "size": "xs"\n },\n {\n "type": "text",\n "text": "').concat(n.company,'",\n "color": "#ffffff",\n "size": "md",\n "weight": "bold",\n "wrap": true,\n "align": "center",\n "margin": "sm"\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(n.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/1656969446-mg36Maav","/?userid=").concat(n.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(n.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(n.name,'",\n "size": "xxl",\n "color": "#333334",\n "weight": "bold"\n }\n ]\n },\n {\n "type": "box",\n "layout": "baseline",\n "contents": [],\n "backgroundColor": "#d5602d",\n "height": "3px",\n "margin": "lg"\n },\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(n.phone,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "tel:').concat(n.phone,'"\n }\n }\n ],\n "spacing": "lg",\n "margin": "xxl"\n },\n ').concat(o,"\n ").concat(t,'\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(n.email,'",\n "color": "#333334",\n "size": "sm",\n "weight": "bold",\n "action": {\n "type": "uri",\n "label": "action",\n "uri": "mailto:').concat(n.email,'"\n }\n }\n ],\n "spacing": "lg",\n "margin": "sm"\n }\n ').concat(e,'\n ],\n "position": "absolute",\n "offsetTop": "12%",\n "offsetStart": "35%",\n "offsetEnd": "5%"\n }\n ],\n "paddingAll": "0px"\n }\n }\n }\n ');return{card:r}}},"365c":function(n,t,e){"use strict";e.d(t,"c",(function(){return g})),e.d(t,"a",(function(){return b})),e.d(t,"b",(function(){return m})),e.d(t,"d",(function(){return y}));var o=e("1da1"),r=(e("96cf"),e("5530")),a=(e("d3b7"),e("ac1f"),e("5319"),e("159b"),e("b64b"),e("bc3a")),c=e.n(a),i=e("5502"),s={namespaced:!0,state:function(){return{userInfo:{}}},mutations:{setUserInfo:function(n,t){n.userInfo=t},setCusCard:function(n,t){n.userInfo.cus_card=t},setLevel:function(n,t){n.userInfo.level=t}},actions:{getUserInfo:function(n){return Object(o["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:e=t.sent,200===e.code&&n.commit("setUserInfo",e.data);case 4:case"end":return t.stop()}}),t)})))()}}},u=Object(i["a"])({state:function(){return{user_id:"",token:sessionStorage.getItem("token")||""}},mutations:{setUserId:function(n,t){n.user_id=t}},modules:{user:s}}),l=c.a.create({baseURL:"https://utel.vip/api/v1",timeout:5e3,withCredentials:!0});function p(n){var t=n.headers.authorization;t&&(console.log("change token"),sessionStorage.setItem("token",t))}function f(n){return d.apply(this,arguments)}function d(){return d=Object(o["a"])(regeneratorRuntime.mark((function n(t){var e,o,r,a,c=arguments;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e=c.length>1&&void 0!==c[1]?c[1]:{},o=c.length>2&&void 0!==c[2]?c[2]:"GET","GET"!==o.toUpperCase()){n.next=11;break}return a="",Object.keys(e).forEach((function(n){a+=n+"="+e[n]+"&"})),""!==a&&(a=a.substring(0,a.lastIndexOf("&")),t+="?"+a),n.next=8,l.get(t);case 8:r=n.sent,n.next=14;break;case 11:return n.next=13,l.post(t,e);case 13:r=n.sent;case 14:return n.abrupt("return",r.data);case 15:case"end":return n.stop()}}),n)}))),d.apply(this,arguments)}l.interceptors.request.use((function(n){return sessionStorage.getItem("token")&&(n.headers.Authorization="".concat(sessionStorage.getItem("token"))),"post"===n.method?n.data=Object(r["a"])({uid:sessionStorage.getItem("uid")},n.data):"get"===n.method&&(n.params=Object(r["a"])({uid:sessionStorage.getItem("uid")},n.params)),n}),(function(n){return Promise.reject(n)})),l.interceptors.response.use((function(n){return p(n),n}),(function(n){if(n.response)switch(n.response.status){case 401:u.commit(types.LOGOUT),router.replace({path:"login",query:{redirect:router.currentRoute.fullPath}})}return Promise.reject(n.response.data)}));var g=function(){var n=Object(o["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.abrupt("return",f("/user/getUserInfo"));case 1:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),b=function(){var n=Object(o["a"])(regeneratorRuntime.mark((function n(t){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.abrupt("return",f("/card/getCard",t,"GET"));case 1:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),m=function(){var n=Object(o["a"])(regeneratorRuntime.mark((function n(t){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.abrupt("return",f("/card/getCusCard",t,"GET"));case 1:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),y=function(){var n=Object(o["a"])(regeneratorRuntime.mark((function n(t){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.abrupt("return",f("/card/getVipCard",t,"GET"));case 1:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}()},"3a7b":function(n,t,e){"use strict";e.d(t,"a",(function(){return m}));e("66b9");var o=e("b650"),r=(e("e7e5"),e("d399")),a=(e("d356"),e("48bd")),c=(e("5246"),e("6b41")),i=(e("da3c"),e("0b33")),s=(e("bda7"),e("5e46")),u=(e("38d5"),e("772a")),l=(e("be7f"),e("565f")),p=(e("0653"),e("34e9")),f=(e("e930"),e("8f80")),d=(e("e17f"),e("2241")),g=(e("b0d0"),e("3c69")),b=e("82db");function m(n){n.use(o["b"]).use(r["a"]).use(a["a"]).use(c["a"]).use(i["a"]).use(s["a"]).use(u["a"]).use(l["a"]).use(p["a"]).use(f["a"]).use(d["a"])}g["a"].use("zh-TW",b["a"])},8390:function(n,t,e){"use strict";function o(n){return{type:"flex",altText:"Utel電子名片",contents:n}}e.d(t,"a",(function(){return o}))},e382:function(n,t,e){}}]);
//# sourceMappingURL=chunk-common.9563623c.js.map