1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- "use strict";
- const common_vendor = require("../common/vendor.js");
- const common_assets = require("../common/assets.js");
- const _sfc_main = {
- data() {
- return {
- statusBarHeight: common_vendor.index.getStorageSync("menuInfo").statusBarHeight,
- orderId: null,
- deliveryId: null,
- express: {},
- expressList: []
- };
- },
- onLoad(option) {
- this.orderId = option.orderId;
- this.getExpress();
- },
- methods: {
- getExpress() {
- var data = { orderId: this.orderId };
- getExpress(data).then((res) => {
- if (res.code == 200) {
- this.express = res.express;
- this.expressList = res.data;
- this.deliveryId = res.deliveryId;
- } else {
- common_vendor.index.showToast({
- icon: "none",
- title: "请求失败"
- });
- }
- });
- },
- // 返回上一页
- back() {
- common_vendor.index.navigateBack();
- },
- // 复制运单号
- copyOrderSn(text) {
- common_vendor.index.setClipboardData({
- data: text,
- success: () => {
- common_vendor.index.showToast({
- title: "内容已成功复制到剪切板",
- icon: "none"
- });
- }
- });
- },
- // 拨打电话
- callPhone(phone) {
- common_vendor.index.makePhoneCall({
- phoneNumber: phone
- });
- }
- }
- };
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return common_vendor.e({
- a: common_assets._imports_0$14,
- b: $data.statusBarHeight,
- c: common_assets._imports_1$9,
- d: common_vendor.o((...args) => $options.back && $options.back(...args)),
- e: common_vendor.t($data.deliveryId),
- f: common_vendor.o(($event) => $options.copyOrderSn($data.deliveryId)),
- g: common_vendor.t($data.express.name),
- h: $data.expressList != null
- }, $data.expressList != null ? common_vendor.e({
- i: $data.expressList.Traces != null
- }, $data.expressList.Traces != null ? {
- j: common_vendor.f($data.expressList.Traces, (item, index, i0) => {
- return {
- a: common_vendor.t(item.AcceptStation),
- b: common_vendor.t(item.AcceptTime),
- c: index
- };
- }),
- k: common_assets._imports_2$6,
- l: common_assets._imports_3$3
- } : {}) : {});
- }
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
- wx.createPage(MiniProgramPage);
|