123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- "use strict";
- var common_vendor = require("../common/vendor.js");
- var api_integral = require("../api/integral.js");
- require("../common/request.js");
- const _sfc_main = {
- data() {
- return {
- order: null
- };
- },
- onLoad(option) {
- common_vendor.index.setNavigationBarTitle({
- title: "\u652F\u4ED8\u7ED3\u679C"
- });
- common_vendor.index.$emit("refreshStoreOrder");
- this.orderId = option.orderId;
- this.getIntegralOrderById();
- },
- methods: {
- getIntegralOrderById() {
- var data = { orderId: this.orderId };
- var that = this;
- common_vendor.index.showLoading();
- api_integral.getIntegralOrderById(data).then((res) => {
- common_vendor.index.hideLoading();
- if (res.code == 200) {
- that.order = res.data;
- } else {
- common_vendor.index.showToast({
- icon: "none",
- title: res.msg
- });
- }
- }, (rej) => {
- });
- },
- copyTest(text) {
- common_vendor.index.setClipboardData({
- data: text,
- success: () => {
- common_vendor.index.showToast({
- title: "\u5185\u5BB9\u5DF2\u6210\u529F\u590D\u5236\u5230\u526A\u5207\u677F",
- icon: "none"
- });
- }
- });
- },
- showOrderDetails(orderId) {
- console.log(orderId);
- common_vendor.index.redirectTo({
- url: "./integralOrderDetails?orderId=" + orderId
- });
- }
- }
- };
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return {
- a: common_vendor.o(($event) => $options.showOrderDetails($data.order.orderId)),
- b: common_vendor.t($data.order.orderCode),
- c: common_vendor.o(($event) => $options.copyTest($data.order.orderCode)),
- d: common_vendor.t($data.order.integral),
- e: common_vendor.t($data.order.createTime)
- };
- }
- var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/integralOrderPaySuccess.vue"]]);
- wx.createPage(MiniProgramPage);
|