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
1.0 KiB
2 lines
1.0 KiB
11 months ago
|
import{$ as e,o as t,c as a,w as s,i,a as r,e as o,g as n}from"./index-4ddb689d.js";import{S as l}from"./Setting.15a9e6ae.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};
|