orderShop.js
1022 字节
"use strict";const o=require("../common/vendor.js"),c={__name:"orderShop",props:{shop:{type:Array,default:[]}},setup(t){const d=t,n=s=>[1,11].includes(s)?"需付款:":[2,3,4,21].includes(s)?"实付款:":"";return o.onMounted(()=>{o.nextTick$1(()=>{console.log(d.shop,"订单数据是什么")})}),(s,a)=>({a:o.f(t.shop.goods_detail,(e,u,l)=>o.e({a:e.image,b:o.t(e.goods_name),c:o.t(e.goods_attr?e.goods_attr:"")},[2].includes(t.shop.order_status)?{}:{d:o.t(e.total_num)},{e:e.goodstatus!=3},e.goodstatus!=3?o.e({f:o.t(e.goods_price),g:t.shop.goodstatus_text===2},t.shop.goodstatus_text===2?{h:o.t(e.line_price)}:{},{i:o.t(n(t.shop.order_status)),j:o.t(e.total_price)}):o.e({k:[2].includes(t.shop.order_status)},[2].includes(t.shop.order_status)?{l:o.t(t.shop.score),m:o.t(e.total_num)}:{n:o.t(n(t.shop.order_status)),o:o.t(e.coscore),p:o.t(e.diff_price)}),{q:e.id})),b:![2].includes(t.shop.order_status)})}},r=o._export_sfc(c,[["__file","D:/vue/大健康商城/healthMall/componets/orderShop.vue"]]);wx.createComponent(r);