no message
This commit is contained in:
88
unpackage/dist/dev/mp-weixin/pageMake/refund/refund.js
vendored
Normal file
88
unpackage/dist/dev/mp-weixin/pageMake/refund/refund.js
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
balance: 0,
|
||||
dataFrom: {
|
||||
amount: "",
|
||||
refundReason: ""
|
||||
}
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
if (options.balance) {
|
||||
this.balance = options.balance;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toKft() {
|
||||
common_vendor.index.makePhoneCall({
|
||||
phoneNumber: "4008005326"
|
||||
//仅为示例
|
||||
});
|
||||
},
|
||||
refundTo() {
|
||||
if (!this.dataFrom.amount) {
|
||||
return common_vendor.index.showToast({
|
||||
title: "请输入退款金额",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
api_api.refund(this.dataFrom).then((res) => {
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "提交成功",
|
||||
showCancel: false,
|
||||
success: function(res2) {
|
||||
common_vendor.index.navigateBack();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
(_easycom_up_textarea2 + _easycom_up_button2)();
|
||||
}
|
||||
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
|
||||
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_textarea + _easycom_up_button)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: `可申请退款${$data.balance}元`,
|
||||
b: $data.dataFrom.amount,
|
||||
c: common_vendor.o(($event) => $data.dataFrom.amount = $event.detail.value),
|
||||
d: common_vendor.o(($event) => $data.dataFrom.amount = $data.balance),
|
||||
e: common_vendor.o(($event) => $data.dataFrom.refundReason = $event),
|
||||
f: common_vendor.p({
|
||||
placeholder: "请输入退款理由",
|
||||
modelValue: $data.dataFrom.refundReason
|
||||
}),
|
||||
g: common_vendor.o($options.toKft),
|
||||
h: common_vendor.p({
|
||||
customStyle: {
|
||||
height: "80rpx"
|
||||
},
|
||||
text: "联系客服",
|
||||
shape: "circle"
|
||||
}),
|
||||
i: common_vendor.o($options.refundTo),
|
||||
j: common_vendor.p({
|
||||
customStyle: {
|
||||
height: "80rpx"
|
||||
},
|
||||
color: "#4879e6",
|
||||
text: "提交",
|
||||
shape: "circle"
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pageMake/refund/refund.js.map
|
||||
7
unpackage/dist/dev/mp-weixin/pageMake/refund/refund.json
vendored
Normal file
7
unpackage/dist/dev/mp-weixin/pageMake/refund/refund.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "退款申请",
|
||||
"usingComponents": {
|
||||
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pageMake/refund/refund.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pageMake/refund/refund.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30"><view style="font-size:36rpx;font-weight:bold;margin-top:40rpx"> 退款信息 <text style="font-size:26rpx;color:chocolate;font-weight:500">活动金额不在退款范围内</text></view><view style="display:flex;align-items:center;height:100rpx;justify-content:space-between"><view>¥</view><input placeholder="{{a}}" style="width:500rpx;font-size:32rpx" type="number" value="{{b}}" bindinput="{{c}}"/><view bindtap="{{d}}" style="font-size:28rpx;color:#4879e6">全部</view></view><view style="font-size:28rpx;margin-bottom:20rpx">申请退款理由</view><view style="margin-bottom:30rpx"><up-textarea wx:if="{{f}}" u-i="53c42ebc-0" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-textarea></view><view style="font-weight:bold;font-size:30rpx;margin-bottom:20rpx">退款须知:</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">1.退款金额不包含充值时使用的第三方优惠抵扣金额,退款时充值享受到的优惠金额也将全部扣除</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">2.您的退款金额到账时间由各充值渠道(微信/支付宝)决定,请耐心等待,约1~3工作日到账</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">3.退款按照充值记录进行逐笔退款,一次申请可能产生多笔退款到账记录,请注意查收</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">4.正在充电或存在异常订单时无法进行退款操作</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">5.根据各充值渠道规则,只可退一年内的充值金额</view><view style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 30rpx;border-top:1rpx solid #eee" class="flex-acsb"><view style="width:230rpx"><up-button wx:if="{{h}}" bindclick="{{g}}" u-i="53c42ebc-1" bind:__l="__l" u-p="{{h}}"></up-button></view><view style="width:400rpx"><up-button wx:if="{{j}}" bindclick="{{i}}" u-i="53c42ebc-2" bind:__l="__l" u-p="{{j}}"></up-button></view></view></view>
|
||||
4
unpackage/dist/dev/mp-weixin/pageMake/refund/refund.wxss
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pageMake/refund/refund.wxss
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
page {
|
||||
background-color: #fff;
|
||||
}
|
||||
Reference in New Issue
Block a user