acdr-ui/dist/build/mp-weixin/modules/mall/commission/components/commission-auth.js

2 lines
1.0 KiB
JavaScript

"use strict";const e=require("../../../../common/vendor.js"),r=require("../../../../sheep/index.js"),o=require("../../../../sheep/api/trade/brokerage.js");if(!Array){e.resolveComponent("su-popup")()}Math;const s={__name:"commission-auth",setup(s){const t=e.reactive({show:!1});return e.onShow((()=>{return e=this,r=null,s=function*(){const{code:e,data:r}=yield o.BrokerageApi.getBrokerageUser();0!==e||(null==r?void 0:r.brokerageEnabled)||(t.show=!0)},new Promise(((o,t)=>{var n=e=>{try{c(s.next(e))}catch(r){t(r)}},a=e=>{try{c(s.throw(e))}catch(r){t(r)}},c=e=>e.done?o(e.value):Promise.resolve(e.value).then(n,a);c((s=s.apply(e,r)).next())}));var e,r,s})),(o,s)=>({a:e.unref(r.sheep).$url.static("/static/img/shop/commission/forbidden.png"),b:e.o((o=>e.unref(r.sheep).$router.back())),c:e.o((o=>e.unref(r.sheep).$router.back())),d:e.o((e=>t.show=!1)),e:e.p({show:t.show,type:"center",round:"10",isMaskClick:!1,maskBackgroundColor:"rgba(0, 0, 0, 0.7)"})})}},t=e._export_sfc(s,[["__scopeId","data-v-9c38e63b"]]);wx.createComponent(t);