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.
yanzong/public/assets/pages-dealer-poster.5431aae...

1 lines
1.0 KiB

import{$ as e,o as t,c as a,w as s,i,a as r,e as o,g as n}from"./index-ae8bbb19.js";import{S as l}from"./Setting.5e5ad8a5.js";import{_ as g}from"./_plugin-vue_export-helper.1b428a4d.js";const c="dealer.poster/qrcode";const d=g({data:()=>({imageUrl:void 0}),onLoad(e){this.getSetting(),this.getPoster()},methods:{getSetting(){const e=this;l.data().then((t=>{const a=t.words.poster;e.setPageTitle(a.title)}))},getPoster(){const t=this;var a;t.isLoading=!0,(a={channel:t.platform},e.get(c,a)).then((e=>{t.imageUrl=e.data.imageUrl})).finally((()=>t.isLoading=!1))},setPageTitle(e){uni.setNavigationBarTitle({title:e.value})},onPreviewImage(){uni.previewImage({current:this.imageUrl,urls:[this.imageUrl]})}}},[["render",function(e,l,g,c,d,m){const p=n,u=i;return t(),a(u,{class:"container"},{default:s((()=>[d.imageUrl?(t(),a(u,{key:0,class:"poster"},{default:s((()=>[r(p,{class:"image",mode:"widthFix",src:d.imageUrl,onClick:m.onPreviewImage},null,8,["src","onClick"])])),_:1})):o("",!0)])),_:1})}],["__scopeId","data-v-a9ca99a7"]]);export{d as default};