爱简收旧衣按件回收前端代码仓库
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.
 
 
 
 

83 lines
2.9 KiB

"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 {
statusBarHeight: 0,
realName: "",
amount: "",
showNoticePopup: false,
fromPromotion: false
};
},
onLoad(options) {
this.statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight;
if (options && options.fromPromotion === "true") {
this.fromPromotion = true;
}
},
methods: {
async onRefresh() {
await new Promise((resolve) => setTimeout(resolve, 1e3));
common_vendor.index.stopPullRefresh();
},
goBack() {
common_vendor.index.navigateBack();
},
showNotice() {
this.showNoticePopup = true;
},
closeNotice() {
this.showNoticePopup = false;
},
submitWithdraw() {
if (!this.realName) {
common_vendor.index.showToast({ title: "请输入真实姓名", icon: "none" });
return;
}
if (!this.amount) {
common_vendor.index.showToast({ title: "请输入提现金额", icon: "none" });
return;
}
common_vendor.index.showToast({ title: "提现申请已提交", icon: "success" });
}
}
};
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 common_vendor.e({
a: common_vendor.p({
type: "left",
size: "22",
color: "#222"
}),
b: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
c: $data.statusBarHeight + 88 + "rpx",
d: $data.statusBarHeight + "px",
e: $data.realName,
f: common_vendor.o(($event) => $data.realName = $event.detail.value),
g: $data.amount,
h: common_vendor.o(($event) => $data.amount = $event.detail.value),
i: $data.statusBarHeight + 88 + 32 + "rpx",
j: common_vendor.o((...args) => $options.showNotice && $options.showNotice(...args)),
k: $data.showNoticePopup
}, $data.showNoticePopup ? {
l: common_vendor.o((...args) => $options.closeNotice && $options.closeNotice(...args)),
m: common_vendor.o((...args) => $options.closeNotice && $options.closeNotice(...args))
} : {}, {
n: common_vendor.n($data.fromPromotion ? "promotion" : ""),
o: common_vendor.o((...args) => $options.submitWithdraw && $options.submitWithdraw(...args))
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c6e30f7c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/withdraw.js.map