启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qicheng_shop_backend/public/static/js/pages-admin-cancellate_resu...

1 line
23 KiB

8 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-cancellate_result-index"],{"0ed0":function(t,e,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d3b7"),n("159b"),n("14d9"),n("4de4");var a=n("316e"),o=(n("736f"),n("26cb")),i=n("ddb3"),c=r(n("c71c")),u=(n("3255"),getApp(),{components:{emptyPage:c.default},data:function(){return{loading:!1,loadend:!1,loadTitle:"加载更多",cartCount:0,hostProduct:[],orderData:{},orderList:[],verify_code:"",mer_id:"",isAllSelect:!0,selectValue:[],selectCountPrice:0,isScan:0}},computed:(0,o.mapGetters)(["isLogin"]),onReady:function(){},mounted:function(){},onLoad:function(t){this.verify_code=t.cal_code,this.mer_id=t.mer_id,this.isScan=t.is_jump},onShow:function(){1==this.isLogin?this.getOrderData():setTimeout((function(){(0,i.toLogin)()}),300)},methods:{goBack:function(){1==this.isScan?uni.navigateTo({url:"/pages/admin/order_cancellation/index?mer_id="+this.mer_id}):uni.navigateBack()},getOrderData:function(){var t=this,e=this;(0,a.verifierOrder)(e.mer_id,e.verify_code).then((function(n){e.orderData=n.data,e.orderList=n.data.orderProduct,e.orderList.forEach((function(e){e.max_count=e.refund_num,t.$set(e,"check",!0)}))})).catch((function(t){e.$util.Tips({title:t}),setTimeout((function(){uni.switchTab({url:"/pages/user/index"})}),500)}))},subCart:function(t){t.refund_num<=0||(t.refund_num<=1?(t.refund_num=1,t.numSub=!0):(t.refund_num--,t.numAdd=!1))},addCart:function(t){t.max_count<=t.refund_num?(t.refund_num=t.max_count,t.numAdd=!0):(t.refund_num++,t.numSub=!1)},goCallate:function(){var t=this,e=t.getSelectedProduct();0==e.length?t.$util.Tips({title:"请勾选商品"}):(0,a.orderVerific)(t.mer_id,t.orderData.order_id,{verify_code:t.verify_code,data:e}).then((function(e){t.$util.Tips({title:e.message}),t.getOrderData()})).catch((function(e){t.$util.Tips({title:e}),setTimeout((function(){uni.navigateTo({url:"/pages/admin/order_cancellation/index?mer_id="+t.mer_id})}),500)}))},getSelectedProduct:function(){var t=[];return this.orderList.forEach((function(e){e.check&&0!=e.refund_num&&t.push({id:e.order_product_id,num:e.refund_num})})),t},goodsCheck:function(t){t.check=!t.check,this.cartAllCheck("goodsCheck")},checkboxAllChange:function(){this.isAllSelect=!this.isAllSelect,this.cartAllCheck("allCheck")},cartAllCheck:function(t){var e=this,n=[],r=[];this.orderList.forEach((function(t){0==e.orderData.status&&t.refund_num>0&&r.push(t)})),"goodsCheck"==t?(n=r.filter((function(t){return t.check})),this.isAllSelect=r.length==n.length):r.forEach((function(t){t.check=e.isAllSelect,t.check&&n.push(t)})),this.isAllSelect=n.length==r.length}},onReachBottom:function(){},onPageScroll:function(t){uni.$emit("scroll")}});e.default=u},1184:function(t,e,n){var r=n("1761");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("235c3bfa",r,!0,{sourceMap:!1,shadowMode:!1})},1761:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-f1a26612]{display:flex;flex-direction:column;j