order.js 2.2 KB

1
  1. "use strict";const e=require("../../../common/vendor.js"),r=require("../../../sheep/index.js");require("../../../sheep/url/index.js"),require("../../../sheep/store/index.js"),require("../../../sheep/store/app.js"),require("../../../sheep/api/promotion/diy.js"),require("../../../sheep/request/index.js"),require("../../../sheep/config/index.js"),require("../../../sheep/platform/index.js"),require("../../../sheep/platform/provider/wechat/index.js"),require("../../../sheep/platform/provider/wechat/miniProgram.js"),require("../../../sheep/api/member/auth.js"),require("../../../sheep/api/member/social.js"),require("../../../sheep/api/member/user.js"),require("../../../sheep/platform/provider/apple/index.js"),require("../../../sheep/platform/share.js"),require("../../../sheep/router/index.js"),require("../../../sheep/hooks/useModal.js"),require("../../../sheep/helper/index.js"),require("../../../sheep/helper/test.js"),require("../../../sheep/helper/digit.js"),require("../../../sheep/api/member/signin.js"),require("../../../sheep/helper/throttle.js"),require("../../../sheep/platform/pay.js"),require("../../../sheep/api/pay/order.js"),require("../../../sheep/store/user.js"),require("../../../sheep/store/cart.js"),require("../../../sheep/api/trade/cart.js"),require("../../../sheep/api/pay/wallet.js"),require("../../../sheep/api/trade/order.js"),require("../../../sheep/api/promotion/coupon.js"),require("../../../sheep/store/sys.js"),require("../../../sheep/store/modal.js"),require("../../../sheep/config/zIndex.js");const s={__name:"order",props:{from:String,orderData:{type:Object,default:{}}},setup:s=>(i,t)=>e.e({a:e.t(s.orderData.order_sn),b:e.t(s.orderData.create_time.split(" ")[1]),c:"msg"!=s.from},"msg"!=s.from?{d:e.f(s.orderData.items,((s,i,t)=>e.e({a:e.unref(r.sheep).$url.cdn(s.goods_image),b:e.t(s.goods_title),c:s.goods_num},s.goods_num?{d:e.t(s.goods_num)}:{},{e:e.t(s.goods_price),f:s}))),e:e.t(s.orderData.status_text)}:{f:e.f([s.orderData.items[0]],((s,i,t)=>({a:e.unref(r.sheep).$url.cdn(s.goods_image),b:e.t(s.goods_title),c:s}))),g:e.t(s.orderData.items.length),h:e.t(s.orderData.pay_fee),i:e.t(s.orderData.status_text)})},i=e._export_sfc(s,[["__scopeId","data-v-6547be72"]]);wx.createComponent(i);