Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-28a268de.b80bc25b.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
5.2 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28a268de"],{d9401:function(t,s,a){"use strict";a.r(s);var r=function(){var t=this,s=t._self._c;return s("div",[s("div",{staticClass:"cart-box"},[s("div",{staticClass:"nb"},[s("div",{staticClass:"cart-step"},[s("ul",[s("li",{staticClass:"cart1"},[s("i"),t._v(t._s(t.$t("payResult.cart")))]),s("li",{staticClass:"cart2 oncart2"},[s("i"),t._v(t._s(t.$t("payResult.confirmOrder")))]),s("li",{staticClass:"cart3 oncart3"},[s("i"),t._v(t._s(t.$t("payResult.payment")))]),"0"==t.orderInfo.state?s("li",{staticClass:"cart4 oncart4"},[s("i"),t._v(t._s(t.$t("payResult.paySuccess")))]):t._e(),"9"==t.orderInfo.state?s("li",{staticClass:"cart4 oncart4"},[s("i"),t._v(t._s(t.$t("payResult.orderCanceled")))]):t._e()])]),s("div",{staticClass:"add-deliver"},[s("div",{staticClass:"cart-title"},[s("h3",[s("span",[t._v(t._s(t.$t("payResult.payResult")))])])]),s("div",[s("div",{staticClass:"result-message"},["0"==t.orderInfo.state?s("span",[t._v(t._s(t.$t("payResult.paySuccessMsg")))]):t._e(),"9"==t.orderInfo.state?s("span",[t._v(t._s(t.$t("payResult.orderCanceledMsg")))]):t._e()])])]),s("div",{staticClass:"add-deliver"},[s("div",{staticClass:"cart-title"},[s("h3",[s("span",[t._v(t._s(t.$t("payResult.receiverInfo")))])])]),s("div",[s("div",{staticClass:"sh-address"},[s("ul",[s("li",{staticClass:"default-add"},[s("div",{staticClass:"inner-infos"},[s("div",{staticClass:"addr-hd"},[s("span",[t._v(t._s(t.orderInfo.storeOrderAddressDto.username))])]),s("div",{staticClass:"addr-bd"},[s("span"),s("span",[t._v(t._s(t.orderInfo.storeOrderAddressDto.address)+t._s(t.orderInfo.storeOrderAddressDto.tel))])])])])])])])]),s("div",{staticClass:"goods-infor"},[s("div",{staticClass:"cart-title"},[s("h3",[s("span",[t._v(t._s(t.$t("payResult.goodsInfo")))])])]),s("div",{staticClass:"goods-table"},[s("div",{staticClass:"goods-thead"},[s("div",{staticClass:"col col1"},[t._v(" "+t._s(t.$t("payResult.goods"))+" ")]),s("div",{staticClass:"col col3"},[t._v(" "+t._s(t.$t("payResult.price"))+" ")]),s("div",{staticClass:"col col4"},[t._v(" "+t._s(t.$t("payResult.quantity"))+" ")]),s("div",{staticClass:"col col5"},[t._v(" "+t._s(t.$t("payResult.subtotal"))+" ")])]),s("div",{staticClass:"goods-tbody"},t._l(t.orderInfo.storeOrderCartDtos,(function(a,r){return s("div",{key:r,staticClass:"goodinfor"},[s("div",{staticClass:"col col1 goods-title-pic"},[s("a",{attrs:{href:"https://www.121wuye.com/sh4nb-g.html"}},[s("img",{attrs:{src:a.coverPhoto,width:"60",height:"60"}})]),s("div",{staticClass:"goods-describ elli"},[s("p",[s("a",{attrs:{href:"https://www.121wuye.com/sh4nb-g.html"}},[t._v(t._s(a.prodName))])]),s("p")])]),s("div",{staticClass:"col col3 goods-price"},[t._v(" ¥"+t._s(a.price)+" ")]),s("div",{staticClass:"col col4 good-num"},[t._v(" "+t._s(a.cartNum)+" ")]),s("div",{staticClass:"col col5 orange-bold xiaoji",staticStyle:{"border-bottom":"none"}},[t._v(" ¥"+t._s(a.cartNum*a.price)+" ")])])})),0)])]),s("div",{staticClass:"style-zhifu"},[s("div",{staticClass:"fare-result"},[s("div",{staticClass:"cart-title"},[s("h3",[s("span",[t._v(t._s(t.$t("payResult.settlementInfo")))])])]),s("div",{staticClass:"result-box"},[s("ul",[s("li",{staticClass:"first"},[s("div",{staticClass:"calu-box"},[s("p",{staticClass:"slivergrey"},[s("span",[s("b",{staticClass:"orange-bold"},[t._v(t._s(t.orderInfo.totalNum))]),t._v(" "+t._s(t.$t("payResult.goodsCount"))+" "+t._s(t.$t("payResult.total"))+"")]),s("span",{staticClass:"orange-bold big"},[t._v("¥"),s("b",{attrs:{id:"payAmount"}},[t._v(t._s(t.orderInfo.totalPrice))])])]),s("p",{staticClass:"slivergrey"},[s("span",[t._v(t._s(t.$t("payResult.freight"))+"")]),t._m(0)])])])])])])])])])])},e=[function(){var t=this,s=t._self._c;return s("span",{staticClass:"txtmoney"},[t._v("¥"),s("b",{attrs:{id:"expfee"}},[t._v("0.00")])])}],o=a("b775");function i(t){return new Promise((s,a)=>{Object(o["a"])({url:"/storeOrder.listStoreOrder",method:"get",params:t}).then(t=>{const a=t.data;s(a)}).catch(t=>{a(t)})})}var d=a("7323"),l={name:"PayResult",data(){return{orderInfo:{appId:"",freightPrice:"",oId:"",orderId:"",personId:"",personName:"",records:0,remark:"",stateName:"",storeOrderAddressDto:{},storeOrderCartDtos:[]},shopId:""}},created(){this.shopId=Object(d["f"])(),console.log(this.shopId),this._listOrders(1,1)},methods:{async _listOrders(t,s){try{const a={page:t,row:s,orderId:this.$route.query.orderId},r=await i(a),e=r.data[0];if(!e)return void this.$message.error(this.$t("payResult.invalidOrder"));if(this.orderInfo=e,"1"===this.orderInfo.state)return void this.$router.push("/pages/plateform/pay?orderId="+this.orderInfo.orderId);this._caculTotalMount()}catch(a){console.error("请求失败:",a)}},_caculTotalMount(){let t=0,s=0;this.orderInfo.storeOrderCartDtos.forEach(a=>{if(isNaN(a.cartNum)||isNaN(a.price))throw this.orderInfo.totalMount=this.$t("payResult.inputCorrectNumber"),this.orderInfo.totalNum=this.$t("payResult.inputCorrectNumber"),Error();t+=parseFloat(a.cartNum)*parseFloat(a.price).toFixed(2),s+=parseFloat(a.cartNum)}),this.orderInfo.totalMount=t.toFixed(2),this.orderInfo.totalNum=s}}},c=l,n=(a("fb85"),a("2877")),u=Object(n["a"])(c,r,e,!1,null,"6ddccd56",null);s["default"]=u.exports},f9a0:function(t,s,a){},fb85:function(t,s,a){"use strict";a("f9a0")}}]);
//# sourceMappingURL=chunk-28a268de.b80bc25b.js.map