history
This commit is contained in:
parent
71544a62d3
commit
33f008b620
|
@ -0,0 +1 @@
|
||||||
|
.main-title-color[data-v-44e55be9]{color:#d14328}
|
|
@ -1 +0,0 @@
|
||||||
.main-title-color[data-v-8fa9bac9]{color:#d14328}
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
var e=Object.defineProperty,t=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(t,a,s)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,r=(e,t)=>{for(var a in t||(t={}))n.call(t,a)&&l(e,a,t[a]);if(s)for(var a of s(t))o.call(t,a)&&l(e,a,t[a]);return e},i=(e,s)=>t(e,a(s)),c=(e,t,a)=>new Promise(((s,n)=>{var o=e=>{try{r(a.next(e))}catch(t){n(t)}},l=e=>{try{r(a.throw(e))}catch(t){n(t)}},r=e=>e.done?s(e.value):Promise.resolve(e.value).then(o,l);r((a=a.apply(e,t)).next())}));import{r as u,s as d,d as p,g as m,a as _,b as y,u as v,n as f,o as g,c as b,e as w,f as O,h as j,i as h,w as I,j as P,k as T,l as x,m as D,p as L,q as $,_ as q}from"./index-bOvkCr62.js";const E=e=>new Promise(((t,a)=>{u(i(r({},e),{dataType:"json",header:{"content-type":"application/json"},responseType:"json",success(e){var s,n,o;(null==(s=e.data)?void 0:s.code)>=200&&(null==(n=e.data)?void 0:n.code)<300?t(e.data):401===(null==(o=e.data)?void 0:o.code)?(window.parent.postMessage({data:{type:"logout"}},"*"),a(e)):t(e.data)},fail(e){d({icon:"none",title:"网络错误,换个网络试试"}),a(e)}}))}));E.get=(e,t)=>E({url:e,query:t,method:"GET"}),E.post=(e,t,a,s=!1)=>E({url:e,query:a,data:t,method:"POST",hideErrorToast:s});const S=e=>E.get("/v1/content",e),k=q(p(i(r({},{name:"Home"}),{__name:"index",setup(e){const{safeAreaInsets:t}=m(),a=_({}),s=y(""),n=v();let o=null;const l=_({url:"",title:""});window.parent.addEventListener("message",(function(e){let t={};const o=(new Date).getTime();if("login"===e.data.data.type)t={url:a.content_templates.source+`?activity_code=${s.value}`,title:a.content_templates.moduledesc};else if("coupon"===e.data.data.type)t={url:a.user_content_templates.source+`?activity_code=${s.value}`,title:a.user_content_templates.moduledesc};else if("product"===e.data.data.type){const n=`product_id=${e.data.data.product_id}&id=${e.data.data.id}&activity_code=${s.value}`,o=encodeURIComponent(n);t={url:a.user_content_templates.source+`#/pages/coupon/product?url=${o}`,title:a.user_content_templates.moduledesc}}else"couponBack"===e.data.data.type?t={url:a.content_templates.source+`?activity_code=${s.value}`,title:a.content_templates.moduledesc}:"logout"===e.data.data.type&&(t={url:a.login_content_templates.source,title:a.login_content_templates.moduledesc});l.url=l.url+(l.url.includes("?")?"×tamp=":"?timestamp=")+o,f((()=>{Object.assign(l,t),b({title:l.title}),n.setUserInfo({srcList:l,contentData:a,query:s.value})}))}));const r=()=>c(this,null,(function*(){const e={activity_code:s.value||""},t=yield S(e);if(Object.assign(a,t.data),200===(null==t?void 0:t.code)&&1===t.data.login_content_template.validate_login){const e=(new Date).getTime(),a=t.data.login_content_templates.source+(t.data.login_content_templates.source.includes("?")?"×tamp=":"?timestamp=")+e;Object.assign(l,{url:a,title:t.data.login_content_templates.moduledesc}),b({title:l.title})}else d({title:t.message,icon:"none"});n.setUserInfo({srcList:l,contentData:a,query:s.value})}));return g((()=>{if(o=setInterval((()=>c(this,null,(function*(){const e={activity_code:s.value||""},t=yield S(e);JSON.stringify(t.data)!==JSON.stringify(n.userInfo.contentData)&&(d({title:"活动发生变更",icon:"none"}),r())}))),6e4),s.value=(()=>{const e=window.location.href.split("#/")[1];return-1===e.indexOf("/")?e||"":e.split("/")[0]})(),n.userInfo.srcList.url&&n.userInfo.query===s.value){const e=(new Date).getTime(),t=n.userInfo.srcList.url+(n.userInfo.srcList.url.includes("?")?"×tamp=":"?timestamp=")+e;Object.assign(l,n.userInfo.srcList,{url:t}),Object.assign(a,n.userInfo.contentData),b({title:l.title})}else r()})),w((()=>{clearInterval(o),o=null})),(e,a)=>{const s=L,n=$,o=O("layout-default-uni");return j(),h(o,null,{default:I((()=>{var e;return[P(n,{class:"bg-white overflow-hidden pt-2 px-4",style:D({marginTop:(null==(e=T(t))?void 0:e.top)+"px"})},{default:I((()=>[T(l).url?(j(),h(s,{key:0,src:T(l).url},null,8,["src"])):x("",!0)])),_:1},8,["style"])]})),_:1})}}})),[["__scopeId","data-v-44e55be9"]]);export{k as default};
|
|
@ -1 +0,0 @@
|
||||||
var t=Object.defineProperty,e=Object.defineProperties,a=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(e,a,n)=>a in e?t(e,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[a]=n,r=(t,e)=>{for(var a in e||(e={}))o.call(e,a)&&l(t,a,e[a]);if(n)for(var a of n(e))s.call(e,a)&&l(t,a,e[a]);return t},c=(t,n)=>e(t,a(n)),i=(t,e,a)=>new Promise(((n,o)=>{var s=t=>{try{r(a.next(t))}catch(e){o(e)}},l=t=>{try{r(a.throw(t))}catch(e){o(e)}},r=t=>t.done?n(t.value):Promise.resolve(t.value).then(s,l);r((a=a.apply(t,e)).next())}));import{r as u,s as d,d as p,g as m,a as y,b as v,u as _,n as f,o as g,c as b,e as O,f as w,h as j,i as h,w as I,j as P,k as x,l as T,m as $,p as q,q as D,_ as L}from"./index-CI5C67kW.js";const E=t=>new Promise(((e,a)=>{u(c(r({},t),{dataType:"json",header:{"content-type":"application/json"},responseType:"json",success(t){var n,o,s;(null==(n=t.data)?void 0:n.code)>=200&&(null==(o=t.data)?void 0:o.code)<300?e(t.data):401===(null==(s=t.data)?void 0:s.code)?(window.parent.postMessage({data:{type:"logout"}},"*"),a(t)):e(t.data)},fail(t){d({icon:"none",title:"网络错误,换个网络试试"}),a(t)}}))}));E.get=(t,e)=>E({url:t,query:e,method:"GET"}),E.post=(t,e,a,n=!1)=>E({url:t,query:a,data:e,method:"POST",hideErrorToast:n});const S=t=>E.get("/v1/content",t),k=L(p(c(r({},{name:"Home"}),{__name:"index",setup(t){const{safeAreaInsets:e}=m(),a=y({}),n=v(""),o=_();let s=null;const l=y({url:"",title:""});window.parent.addEventListener("message",(function(t){let e={};const s=(new Date).getTime();if("login"===t.data.data.type)e={url:a.content_templates.source+`?activity_code=${n.value}`,title:a.content_templates.moduledesc};else if("coupon"===t.data.data.type)e={url:a.user_content_templates.source+`?activity_code=${n.value}`,title:a.user_content_templates.moduledesc};else if("product"===t.data.data.type){const o=`product_id=${t.data.data.product_id}&id=${t.data.data.id}&activity_code=${n.value}`,s=encodeURIComponent(o);e={url:a.user_content_templates.source+`#/pages/coupon/product?url=${s}`,title:a.user_content_templates.moduledesc}}else"couponBack"===t.data.data.type?e={url:a.content_templates.source+`?activity_code=${n.value}`,title:a.content_templates.moduledesc}:"logout"===t.data.data.type&&(e={url:a.login_content_templates.source,title:a.login_content_templates.moduledesc});l.url=l.url+(l.url.includes("?")?"×tamp=":"?timestamp=")+s,f((()=>{Object.assign(l,e),b({title:l.title}),o.setUserInfo({srcList:l,contentData:a,query:n.value})}))}));const r=()=>i(this,null,(function*(){const t={activity_code:n.value||""},e=yield S(t);Object.assign(a,e.data),200===(null==e?void 0:e.code)&&1===e.data.login_content_template.validate_login?(Object.assign(l,{url:e.data.login_content_templates.source,title:e.data.login_content_templates.moduledesc}),b({title:l.title})):d({title:e.message,icon:"none"}),o.setUserInfo({srcList:l,contentData:a,query:n.value})}));return g((()=>{s=setInterval((()=>i(this,null,(function*(){const t={activity_code:n.value||""},e=yield S(t);JSON.stringify(e.data)!==JSON.stringify(o.userInfo.contentData)&&(d({title:"活动发生变更",icon:"none"}),r())}))),6e4),n.value=(()=>{const t=window.location.href.split("#/")[1];return-1===t.indexOf("/")?t||"":t.split("/")[0]})(),o.userInfo.srcList.url&&o.userInfo.query===n.value?(Object.assign(l,o.userInfo.srcList),Object.assign(a,o.userInfo.contentData),b({title:l.title})):r()})),O((()=>{clearInterval(s),s=null})),(t,a)=>{const n=q,o=D,s=w("layout-default-uni");return j(),h(s,null,{default:I((()=>{var t;return[P(o,{class:"bg-white overflow-hidden pt-2 px-4",style:$({marginTop:(null==(t=x(e))?void 0:t.top)+"px"})},{default:I((()=>[x(l).url?(j(),h(n,{key:0,src:x(l).url},null,8,["src"])):T("",!0)])),_:1},8,["style"])]})),_:1})}}})),[["__scopeId","data-v-8fa9bac9"]]);export{k as default};
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html build-date="2024-06-19 15:28:13">
|
<html build-date="2024-06-19 18:52:30">
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="./assets/uni.ad4bcb33.css">
|
<link rel="stylesheet" href="./assets/uni.ad4bcb33.css">
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@
|
||||||
<title>unibest</title>
|
<title>unibest</title>
|
||||||
<!--preload-links-->
|
<!--preload-links-->
|
||||||
<!--app-context-->
|
<!--app-context-->
|
||||||
<script type="module" crossorigin src="./assets/index-CI5C67kW.js"></script>
|
<script type="module" crossorigin src="./assets/index-bOvkCr62.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="./assets/index-balZ1UCs.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-DfE4H0b6.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in New Issue