"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const pages_mixins_pullRefreshMixin = require("../mixins/pullRefreshMixin.js");
|
|
const _sfc_main = {
|
|
mixins: [pages_mixins_pullRefreshMixin.pullRefreshMixin],
|
|
data() {
|
|
return {
|
|
tui: {
|
|
name: "周小艺",
|
|
phone: "18899102278",
|
|
level1: 67,
|
|
level2: 67,
|
|
totalAmount: "8273.99",
|
|
commission: "278.99"
|
|
},
|
|
statusBarHeight: 0
|
|
};
|
|
},
|
|
computed: {
|
|
navbarStyle() {
|
|
return `padding-top: ${this.statusBarHeight}px;`;
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
common_vendor.index.getSystemInfo({
|
|
success: (res) => {
|
|
this.statusBarHeight = res.statusBarHeight || 20;
|
|
}
|
|
});
|
|
const eventChannel = this.getOpenerEventChannel && this.getOpenerEventChannel();
|
|
if (eventChannel) {
|
|
eventChannel.on("tuiDetail", (tui) => {
|
|
this.tui = Object.assign({}, this.tui, tui);
|
|
});
|
|
}
|
|
},
|
|
methods: {
|
|
goBack() {
|
|
common_vendor.index.navigateBack();
|
|
},
|
|
removeTui() {
|
|
common_vendor.index.showToast({ title: "已解除推广官", icon: "none" });
|
|
},
|
|
refreshData() {
|
|
},
|
|
async onRefresh() {
|
|
await this.refreshData && this.refreshData();
|
|
}
|
|
},
|
|
onPullDownRefresh() {
|
|
this.refreshData && this.refreshData();
|
|
common_vendor.index.stopPullDownRefresh();
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
|
_easycom_uni_icons2();
|
|
}
|
|
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
|
if (!Math) {
|
|
_easycom_uni_icons();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_vendor.p({
|
|
type: "back",
|
|
size: "24",
|
|
color: "#222"
|
|
}),
|
|
b: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
|
|
c: common_vendor.s($options.navbarStyle),
|
|
d: common_vendor.t($data.tui.name),
|
|
e: common_vendor.t($data.tui.phone),
|
|
f: common_vendor.t($data.tui.level1),
|
|
g: common_vendor.t($data.tui.level2),
|
|
h: common_vendor.t($data.tui.totalAmount),
|
|
i: common_vendor.t($data.tui.commission),
|
|
j: common_vendor.o((...args) => $options.removeTui && $options.removeTui(...args))
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4922c184"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/manager/tui-detail.js.map
|