65 lines
2.2 KiB
JavaScript
65 lines
2.2 KiB
JavaScript
"use strict";
|
|
var __async = (__this, __arguments, generator) => {
|
|
return new Promise((resolve, reject) => {
|
|
var fulfilled = (value) => {
|
|
try {
|
|
step(generator.next(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var rejected = (value) => {
|
|
try {
|
|
step(generator.throw(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
});
|
|
};
|
|
const common_vendor = require("../../../../common/vendor.js");
|
|
const sheep_index = require("../../../../sheep/index.js");
|
|
const sheep_api_trade_brokerage = require("../../../../sheep/api/trade/brokerage.js");
|
|
if (!Array) {
|
|
const _easycom_su_popup2 = common_vendor.resolveComponent("su-popup");
|
|
_easycom_su_popup2();
|
|
}
|
|
const _easycom_su_popup = () => "../../../../sheep/ui/su-popup/su-popup.js";
|
|
if (!Math) {
|
|
_easycom_su_popup();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "commission-auth",
|
|
setup(__props) {
|
|
const state = common_vendor.reactive({
|
|
show: false
|
|
});
|
|
common_vendor.onShow(() => __async(this, null, function* () {
|
|
const { code, data } = yield sheep_api_trade_brokerage.BrokerageApi.getBrokerageUser();
|
|
if (code === 0 && !(data == null ? void 0 : data.brokerageEnabled)) {
|
|
state.show = true;
|
|
}
|
|
}));
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.unref(sheep_index.sheep).$url.static("/static/img/shop/commission/forbidden.png"),
|
|
b: common_vendor.o(($event) => common_vendor.unref(sheep_index.sheep).$router.back()),
|
|
c: common_vendor.o(($event) => common_vendor.unref(sheep_index.sheep).$router.back()),
|
|
d: common_vendor.o(($event) => state.show = false),
|
|
e: common_vendor.p({
|
|
show: state.show,
|
|
type: "center",
|
|
round: "10",
|
|
isMaskClick: false,
|
|
maskBackgroundColor: "rgba(0, 0, 0, 0.7)"
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8432b87a"]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=commission-auth.js.map
|