2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../sheep/index.js");if(!Array){e.resolveComponent("l-painter")()}Math;const r={__name:"pickUpVerify",props:{orderInfo:{type:Object,default(){}},systemStore:{type:Object,default(){}}},setup(r,{expose:o}){const s=r,a=e.reactive({qrcodeSize:145}),i=()=>{s.systemStore.latitude&&s.systemStore.longitude?e.index.openLocation({latitude:s.systemStore.latitude,longitude:s.systemStore.longitude,scale:8,name:s.systemStore.name,address:s.systemStore.areaName+s.systemStore.detailAddress}):t.sheep.$helper.toast("缺少经纬度信息无法查看地图!")},d=e.ref(),n=e.ref(),p=e.ref(!0),l=e=>{return t=this,r=null,o=function*(){yield d.value.render(e)},new Promise(((e,s)=>{var a=e=>{try{d(o.next(e))}catch(t){s(t)}},i=e=>{try{d(o.throw(e))}catch(t){s(t)}},d=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,i);d((o=o.apply(t,r)).next())}));var t,r,o},c=e=>{n.value=e,p.value=!1};return o({markCode:e=>{l({css:{width:`${a.qrcodeSize}px`,height:`${a.qrcodeSize}px`},views:[{type:"qrcode",text:e,css:{width:`${a.qrcodeSize}px`,height:`${a.qrcodeSize}px`}}]})}}),(o,s)=>e.e({a:2===r.orderInfo.deliveryType&&r.orderInfo.payStatus},2===r.orderInfo.deliveryType&&r.orderInfo.payStatus?e.e({b:!!n.value},n.value?{c:n.value,d:`${a.qrcodeSize}px`,e:`${a.qrcodeSize}px`}:{},{f:e.unref(t.sheep).$url.static("/static/images/writeOff.png","local"),g:e.t(r.orderInfo.pickUpVerifyCode)}):{},{h:2===r.orderInfo.deliveryType},2===r.orderInfo.deliveryType?{i:e.o(i)}:{},{j:p.value},p.value?{k:e.sr(d,"107b8f7c-0",{k:"painterRef"}),l:e.o(c),m:e.p({isCanvasToTempFilePath:!0,pathType:"url",hidden:!0})}:{})}},o=e._export_sfc(r,[["__scopeId","data-v-107b8f7c"]]);wx.createComponent(o);
|