12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- "use strict";
- var common_vendor = require("../common/vendor.js");
- const _sfc_main = {
- data() {
- return {
- order: null,
- orderCode: "",
- ids: []
- };
- },
- onLoad(option) {
- this.order = JSON.parse(decodeURIComponent(option.order));
- this.orderCode = this.order && this.order.orderCodes ? this.order.orderCodes.join(",") : this.order.orderCode || "";
- this.ids = this.order && this.order.ids ? this.order.ids : this.order.id ? [this.order.id] : [];
- },
- methods: {
- copyOrderSn(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"
- });
- }
- });
- },
- goOrderDetails(id) {
- if (this.ids && this.ids.length > 1) {
- common_vendor.index.navigateTo({
- url: "/pages_user/user/storeOrder?status="
- });
- } else {
- common_vendor.index.redirectTo({
- url: "/pages_user/user/storeOrderDetail?id=" + this.ids[0]
- });
- }
- }
- }
- };
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return {
- a: common_vendor.o(($event) => $options.goOrderDetails($data.order.id)),
- b: common_vendor.f($data.order.orderCodes, (item, k0, i0) => {
- return {
- a: common_vendor.t(item),
- b: item
- };
- }),
- c: common_vendor.o(($event) => $options.copyOrderSn($data.orderCode)),
- d: common_vendor.t($data.order.createTime)
- };
- }
- var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/Administrator/Desktop/\u9879\u76EE/\u76F4\u64AD/liveH5-v3/pages_shop/success.vue"]]);
- wx.createPage(MiniProgramPage);
|