1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SIM-order-index"],{"0512":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var n={loading:i("8c27").default,tnPopup:i("1fbf").default},r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":"流量卡包",leftSlot:!0}},[e.loadingShow?i("loading"):e._e(),i("v-uni-view",{staticClass:"order-page__wrapper component-page-padding-bottom"},[e.orderData.length>0?[11===e.orderTypes[e.currentSelectOrderTypeIndex].id?i("ChargeOrderList",{attrs:{data:e.orderData},on:{"refresh-data":function(t){arguments[0]=t=e.$handleEvent(t),e.handleRefreshDataEvent.apply(void 0,arguments)}}}):e._e()]:e._e(),e.isLoadAll&&0===e.orderData.length&&6!=e.orderTypes[e.currentSelectOrderTypeIndex].id?[i("empty",{attrs:{icon:"empty-data",tips:"订单为空"}})]:e._e(),6===e.orderTypes[e.currentSelectOrderTypeIndex].id?i("BuffetOrder",{ref:"buffetOrderRef"}):e._e()],2),i("v-uni-view",{staticClass:"refresh-btn tn-shadow tn-flex-center",style:[e.themeBtnStyle],attrs:{"hover-class":"tn-btn-hover-class","hover-stay-time":150},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.handleRefreshDataEvent.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tn-icon-circle-arrow"})],1),i("tn-popup",{attrs:{mode:"bottom",height:"45%",borderRadius:30},model:{value:e.showSift,callback:function(t){e.showSift=t},expression:"showSift"}},[i("v-uni-view",{staticClass:"tn-padding"},[i("v-uni-text",{staticClass:"tn-text-bold tn-text-lg"},[e._v("筛选订单类型")]),i("v-uni-view",{staticClass:"tn-flex tn-margin-top sift-item"},[e._l(e.siftList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"tn-text-center seleMod",class:n==e.currentSelectOrderTypeIndex?"tn-color-red tn-border-red tn-bg-red--light":"",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.clickSift(n)}}},[i("v-uni-view",{staticClass:"tn-padding-sm txt"},[t.icon?i("v-uni-image",{staticClass:"icon",attrs:{src:t.icon,mode:"widthFix"}}):e._e(),i("span",[e._v(e._s(t.name))])],1)],1)})),i("v-uni-view",{staticStyle:{width:"32%"}})],2)],1)],1)],1)},o=[]},"0b12":function(e,t,i){"use strict";var n=i("d4e6"),r=i.n(n);r.a},"14c8":function(e,t,i){"use strict";i.r(t);var n=i("d724"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=r.a},1981:function(e,t,i){"use strict";i.r(t);var n=i("0512"),r=i("d35e");for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);i("d40b");var a=i("828b"),d=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"3c6c1708",null,!1,n["a"],void 0);t["default"]=d.exports},"20d8":function(e,t,i){var n=i("39c8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("967d").default;r("62988b97",n,!0,{sourceMap:!1,shadowMode:!1})},2506:function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitAndPayApi=t.remarkApi=t.queryFlowApi=t.projectList=t.packageListApi=t.listApi=t.getSPDetail=t.getPayType=t.getPackageListApi=t.getOrderDetailApi=void 0;var r=n(i("7653"));t.projectList=function(e){return r.default.post("api/user.product.phoneRecharge.sim/list",e)};t.getSPDetail=function(e){return r.default.post("api/user.product.phoneRecharge.sim/detail",e)};t.packageListApi=function(e){return r.default.post("api/user.product.phoneRecharge.sim/packageList",e)};t.getPayType=function(e){return r.default.post("api/user.visa.product/dict",e)};t.submitAndPayApi=function(e){return r.default.post("api/user.order.phoneRecharge.sim/submitAndPay",e)};t.getOrderDetailApi=function(e){return r.default.post("api/user.order.phoneRecharge.sim/detail",e)};t.getPackageListApi=function(e){return r.default.post("api/user.product.phoneRecharge.sim/packageList",e)};t.queryFlowApi=function(e){return r.default.post("api/user.order.phoneRecharge.sim/queryFlow",e)};t.remarkApi=function(e){return r.default.post("api/user.order.phoneRecharge.sim/remark",e)};t.listApi=function(e){return r.default.post("api/user.order.phoneRecharge.sim/list",e)}},"39c8":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */\n/**\n * 组件页面公用css\n */.component-page-padding-bottom[data-v-3c6c1708]{padding-bottom:%?130?%;padding-bottom:calc(%?130?% + constant(safe-area-inset-bottom));padding-bottom:calc(%?130?% + env(safe-area-inset-bottom))}.order-page[data-v-3c6c1708]{position:relative;width:100%\n /* 自定义顶部导航 start */\n /* 自定义顶部导航 end */}.order-page__wrapper[data-v-3c6c1708]{position:relative;width:100%;padding:%?30?%}.order-page .navbar[data-v-3c6c1708]{position:fixed;left:0;top:0;width:100%;background-color:#fff;z-index:19999\n /* 标题 start */\n /* 标题 end */}.order-page .navbar__title[data-v-3c6c1708]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);line-height:1;font-size:%?32?%;font-weight:500}\n/* 订单类型选择 start */.order-type-select[data-v-3c6c1708]{position:fixed;left:0;width:100%;background-color:#fff;z-index:9999}\n/* 订单类型选择 end */\n/* 刷新按钮 start */.refresh-btn[data-v-3c6c1708]{position:fixed;right:%?20?%;bottom:%?260?%;width:%?80?%;height:%?80?%;border-radius:50%;font-size:%?50?%;z-index:1099}\n/* 刷新按钮 end */.sift-item[data-v-3c6c1708]{flex-wrap:wrap;justify-content:space-between;align-items:center}.sift-item .seleMod[data-v-3c6c1708]{width:32%;line-height:%?30?%;border-radius:%?40?%;margin-bottom:%?20?%;background-color:#f1f2f6;box-sizing:border-box;border:1px solid #f1f2f6}.sift-item .seleMod .icon[data-v-3c6c1708]{width:%?30?%;height:%?30?%;margin-right:%?8?%}.sift-item .seleMod .txt[data-v-3c6c1708]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;width:100%;align-items:center;justify-content:center}',""]),e.exports=t},"54a5":function(e,t,i){"use strict";i.r(t);var n=i("c1b24"),r=i("14c8");for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);i("0b12");var a=i("828b"),d=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"1310ed97",null,!1,n["a"],void 0);t["default"]=d.exports},bd68:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */\n/* 订单列表item start */.order-item[data-v-1310ed97]{position:relative;width:100%;padding:%?20?%;background-color:#fff;border-radius:%?20?%;margin-top:%?30?%\n /* 顶部信息 start */\n /* 顶部信息 end */\n /* 商品列表 start */\n /* 商品列表 end */\n /* 操作按钮 start */\n /* 操作按钮 end */}.order-item[data-v-1310ed97]:first-child{margin-top:%?0?%}.order-item .top-info[data-v-1310ed97]{width:100%;display:flex}.order-item .top-info .store-avatar[data-v-1310ed97]{position:relative;width:%?100?%;height:%?100?%;border-radius:%?15?%;border:%?1?% solid #e6e6e6;overflow:hidden}.order-item .top-info .store-avatar .business-tag[data-v-1310ed97]{position:absolute;top:%?-4?%;right:%?-2?%;border-radius:%?4?%;font-size:%?22?%;line-height:1;padding:%?4?% %?8?%;border-radius:%?0?% %?15?% %?0?% %?0?%}.order-item .top-info .top-right[data-v-1310ed97]{flex:1;margin-left:%?20?%}.order-item .top-info .top-right .top-right-line[data-v-1310ed97]{display:flex;align-items:center;justify-content:space-between}.order-item .top-info .top-right .top-right-line + .top-right-line[data-v-1310ed97]{margin-top:%?8?%}.order-item .top-info .top-right .store-title[data-v-1310ed97]{flex:1;font-size:%?32?%;font-weight:500}.order-item .top-info .top-right .order-status[data-v-1310ed97]{font-size:%?34?%;padding-left:%?40?%;color:#ffca28}.order-item .top-info .top-right .order-type[data-v-1310ed97]{border-radius:%?4?%;line-height:1;padding:%?4?% %?12?%}.order-item .product-list[data-v-1310ed97]{position:relative;width:100%;padding:%?20?% %?0?%\n /* 单个商品 start */\n /* 单个商品 end */\n /* 单个商品 start */\n /* 单个商品 end */\n /* 商品数量、价格 start */\n /* 商品数量、价格 end */}.order-item .product-list .single-product[data-v-1310ed97]{position:relative;width:100%;padding-right:%?140?%}.order-item .product-list .single-product .product-image[data-v-1310ed97]{position:relative;width:%?140?%;height:%?140?%;border-radius:%?10?%}.order-item .product-list .single-product .product-info[data-v-1310ed97]{width:calc(100% - %?140?%);padding-left:%?20?%;font-size:%?30?%}.order-item .product-list .single-product .product-info .num[data-v-1310ed97]{margin-top:%?8?%}.order-item .product-list .scroll-view[data-v-1310ed97]{padding-right:%?140?%}.order-item .product-list .product-item[data-v-1310ed97]{flex-shrink:0;width:%?160?%}.order-item .product-list .product-item .item-image[data-v-1310ed97]{position:relative;width:%?140?%;height:%?140?%;border-radius:%?10?%;border:%?1?% solid #e6e6e6}.order-item .product-list .product-item .item-image .item-num[data-v-1310ed97]{position:absolute;right:0;bottom:0;line-height:1;padding:%?4?% %?10?%;background-color:rgba(0,0,0,.5);color:#fff;font-size:%?20?%;border-radius:%?10?% %?0?% %?10?% %?0?%}.order-item .product-list .product-item .item-title[data-v-1310ed97]{width:100%;font-size:%?20?%;color:#aaa;margin-top:%?6?%}.order-item .product-list .order-price-count-info[data-v-1310ed97]{position:absolute;top:0;right:0;height:100%;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:%?0?% %?20?%}.order-item .product-list .order-price-count-info .order-count[data-v-1310ed97]{font-size:%?24?%}.order-item .product-list .order-price-count-info .order-price[data-v-1310ed97]{display:flex;align-items:flex-end;font-size:%?32?%;line-height:1;margin-bottom:%?10?%}.order-item .product-list .order-price-count-info .order-price .unit[data-v-1310ed97]{font-size:%?24?%;margin-right:%?4?%}.order-item .create-time[data-v-1310ed97]{font-size:%?24?%;color:#aaa}.order-item .operation-btn[data-v-1310ed97]{margin-top:%?26?%}.order-item .operation-btn .btn[data-v-1310ed97]{padding:%?14?% %?20?%;line-height:1;border-radius:%?12?%;background-color:#ffca28;color:#080808}.order-item .operation-btn .btn + .btn[data-v-1310ed97]{margin-left:%?16?%}\n/* 订单列表item end */\n/* 膨胀红包 */.expansion[data-v-1310ed97]{display:flex;position:fixed;top:0;left:0;height:100%;width:100%;justify-content:center;align-items:center;background-color:rgba(0,0,0,.5);flex-direction:column;z-index:999999}.expansion .expansion_box[data-v-1310ed97]{width:%?591?%;background-color:#fff4f8;border-radius:10px;display:flex;flex-direction:column;padding:%?36?% %?45?%}.expansion .expansion_box .expansion_box_title[data-v-1310ed97]{width:100%;text-align:center;font-size:22px;color:#0d0c0c;font-weight:700;margin-bottom:%?15?%}.expansion .expansion_box .expansion_box_img[data-v-1310ed97]{width:100%;text-align:center;font-size:14px;color:#666}.expansion .expansion_box .expansion_box_img img[data-v-1310ed97]{width:100%}.expansion .expansion_box .line4[data-v-1310ed97]{height:40px;width:100%;text-align:center;line-height:40px;font-size:15px;color:#fff;border-radius:10px;background:linear-gradient(90deg,#fc8c09,#fc29b4)}.expansion .expansion_close[data-v-1310ed97]{width:100%;display:flex;justify-content:center;align-items:center;margin-top:%?78?%}.expansion .expansion_close img[data-v-1310ed97]{width:%?60?%;height:%?60?%}',""]),e.exports=t},c1b24:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var n={loading:i("8c27").default},r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"theme-takeaway-order order-list"},[e.loadingShow?i("loading"):e._e(),e._l(e.data,(function(t,n){return i("v-uni-view",{key:n,staticClass:"order-item tn-shadow",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.navOrderDetail(t)}}},[i("v-uni-view",{staticClass:"top-info"},[i("v-uni-view",{staticClass:"top-right"},[i("v-uni-view",{staticClass:"top-right-line"},[i("v-uni-view",{staticClass:"store-title tn-text-ellipsis-1"},[e._v(e._s(t.order_type_text))]),i("v-uni-view",{staticClass:"order-status"},[e._v(e._s(t.order_status_text))])],1)],1)],1),i("v-uni-view",{staticClass:"product-list"},[i("v-uni-view",{staticClass:"single-product tn-flex-row-center"},[i("v-uni-view",{staticClass:"product-image"},[i("v-uni-image",{staticClass:"image",attrs:{src:e.icon[0],mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"product-info"},[i("v-uni-view",{staticClass:"title tn-text-ellipsis-2"},[e._v(e._s(t.product_name))]),t.phoneRecharge&&t.phoneRecharge.card_pin?i("v-uni-view",{staticClass:"create-time mt5"},[e._v("PIN: "+e._s(t.phoneRecharge.card_pin))]):e._e()],1)],1),i("v-uni-view",{staticClass:"order-price-count-info"},[t.pay_amount?i("v-uni-view",{staticClass:"order-price"},[i("v-uni-view",{staticClass:"unit tn-color-gray--dark"},[e._v(e._s(t.pay_amount.currency))]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(t.pay_amount.val))])],1):e._e()],1)],1),t.phoneRecharge&&t.phoneRecharge.card_expired?i("v-uni-view",{staticClass:"create-time mb5"},[e._v("PIN过期时间: "+e._s(t.phoneRecharge.card_expired))]):e._e(),i("v-uni-view",{staticClass:"tn-no-margin-top tn-full-width tn-flex-center-between"},[i("v-uni-view",{staticClass:"create-time"},[e._v("下单时间: "+e._s(t.create_time))])],1)],1)}))],2)},o=[]},d35e:function(e,t,i){"use strict";i.r(t);var n=i("e08d"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=r.a},d40b:function(e,t,i){"use strict";var n=i("20d8"),r=i.n(n);r.a},d4e6:function(e,t,i){var n=i("bd68");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("967d").default;r("96ce162a",n,!0,{sourceMap:!1,shadowMode:!1})},d724:function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("d4b5"),i("4626"),i("5ac7");var r=n(i("dc1f")),o=n(i("dae0")),a=n(i("44ca")),d=n(i("34cae")),s=i("419c"),c=(n(i("8c27")),i("d240")),l=(i("262c"),i("e0a2")),u=i("e0a2"),p={props:{data:{type:Array,default:function(){return[]}}},components:{PaySelectModal:d.default},mixins:[r.default,o.default,a.default],data:function(){return{icon:[u.staticUrl+"api/images/20250618/images_1750217730.png"],currentOrderId:0,showPaySelectModal:!1,loadingShow:!1,qrcode_box_show:!1,order_qrcode:"",open_lock_string:""}},created:function(){console.log("data",this.data)},methods:{goto:function(e){(0,s.navPage)("/SP/informationWP?sn=".concat(e.order_sn))},payOrder:function(e){var t=this;this.currentOrderId=e,this.$nextTick((function(){setTimeout((function(){t.showPaySelectModal=!0}),150)}))},cancelPayEvent:function(){},successPayEvent:function(){this.showPaySelectModal=!1,this.$emit("refresh-data")},failPayEvent:function(){this.showPaySelectModal=!1},navStore:function(e,t,i,n){1==i?(0,s.navPage)("/store-page/groupBuyingFood/groupBuyingFood?sid=".concat(e)):2==i&&n?(0,s.navPage)("".concat(n)):(0,s.navPage)("/store-page/product-showcase/template-1?sid=".concat(e))},navOrderDetail:function(e){"phone_recharge"==e.order_type?(0,s.navPage)("/prepaidRecharge/order/detail?order_sn=".concat(e.order_sn)):"phone_sim_card"==e.order_type?(0,s.navPage)("/SIM/order/detail?order_sn=".concat(e.order_sn)):(0,s.navPage)("/tngRecharge/order/detail?order_sn=".concat(e.order_sn))},cancelOrderCallback:function(){this.$emit("refresh-data")},openLock:function(e){var t=this;uni.showModal({title:"提示",content:"请确认是否开柜",success:function(i){i.confirm&&(t.loadingShow=!0,(0,c.getChannelApi)(e.id).then((function(i){console.log("res",i),e.lock_result.order_sn=i.data.order_sn,e.lock_result.channel_id=i.data.channel_id,e.lock_result.device_sn=i.data.device_sn,t.openWebSocket(e)})))}})},openWebSocket:function(e){var t=this,i={userClient:"user",type:"unlockChannel",method:"order_sn",order_sn:e.lock_result.order_sn,channel_id:e.lock_result.channel_id,device_sn:e.lock_result.device_sn},n=JSON.stringify(i);t.open_lock_string=n;var r=l.LOCK_WEBSOCKET_URL;uni.connectSocket({url:r}),uni.onSocketOpen((function(e){console.log("WebSocket连接已打开!"),uni.sendSocketMessage({data:n})})),uni.onSocketMessage((function(e){console.log("收到服务器内容:"+JSON.stringify(e)),e.data.includes("open_lock_success")&&(t.loadingShow=!1,uni.showToast({title:"开柜成功",icon:"none",duration:2e3}),uni.showModal({title:"提示",content:"是否开门",cancelText:"重开门",confirmText:"已开门",success:function(e){e.confirm?(console.log("用户点击确定已经开门,关闭连接"),t.open_lock_string="",uni.closeSocket(),setTimeout((function(){t.$emit("refresh-data")}),1e3)):e.cancel&&(console.log("点击重试,重新开锁"),uni.sendSocketMessage({data:t.open_lock_string}))}}))}))},openQrcode:function(e){this.order_qrcode=e,this.qrcode_box_show=!0},expansion_close:function(){this.qrcode_box_show=!1},cancelOrder:function(e,t,i,n,r){var o=this;if(1!=r)if(0!=n)if(1==i){var a="once";t&&(a="one_touch"),uni.showModal({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,success:function(t){t.confirm&&(0,s.navPage)("/order-page/takeout-order-refund/index?id="+e+"&type="+a)}})}else uni.showToast({title:"由于下单后商户已开始做餐,请电话联系商家取消订单!如沟通不成,请联系平台客服。",icon:"none",duration:2e3});else uni.showModal({title:"提示",content:"订单未支付,是否确认取消订单??",showCancel:!0,success:function(t){t.confirm&&(0,c.cancelOrderApi)({id:e}).then((function(){o.$emit("refresh-data")}))}});else uni.showToast({title:"退款申请中,请耐心等待",icon:"none",duration:2e3})}}};t.default=p},e08d:function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa"),i("bf0f"),i("c223"),i("fd3c"),i("aa9c"),i("8f71"),i("4626"),i("5ac7");var r=n(i("6fbe")),o=n(i("dc1f")),a=n(i("a71b")),d=n(i("54a5")),s=n(i("21685")),c=i("815c"),l=(i("419c"),n(i("8c27"))),u=(i("419c"),i("9d0a")),p=i("f9ce"),f=(i("f2e5"),i("2506")),h={props:{typeIndex:{type:[String,Number],default:""}},components:{Empty:a.default,loading:l.default,BuffetOrder:s.default,ChargeOrderList:d.default},mixins:[r.default,o.default],data:function(){return{loadings:!1,orderData:[],showSift:!1,siftList:[{id:1,name:"外卖",icon:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/order/delivery.png"},{id:2,name:"跑腿",icon:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/order/paotui.png"},{id:7,name:"积分商城",icon:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/order/shop.png"},{id:3,name:"当面付",icon:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/order/face.png"},{id:4,name:"电商/接龙",icon:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/order/shop.png"},{id:5,name:"电影票",icon:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/order/movie.png"},{id:6,name:"自助餐",icon:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/order/movie.png"}],allOrderDatas:[],orderTypes:[{id:11,name:"手机充值"}],currentSelectOrderTypeIndex:0,currentPage:1,pageSize:10,isLoadAll:!1,isLogin:!0,loadingShow:!1,this_filter_field:[],status_index:-1}},watch:{typeIndex:{handler:function(e){this.currentSelectOrderTypeIndex=Number(e||0),""!==e&&this.getOrderListData()},immediate:!0}},created:function(){this.getFilter(),this.initCustomNavBarInfo()},onLoad:function(e){console.log("e.index",e.index),e&&e.index?this.typeIndex=e.index:this.typeIndex=0},onReachBottom:function(){console.log("触底=================")},methods:{getRechargeOrderList:function(){var e=this;this.loadingShow=!0,(0,f.listApi)({page:this.currentPage,page_size:this.pageSize,order_type:"phone_sim_card"}).then((function(t){e.isLogin=!0;var i=(null===t||void 0===t?void 0:t.list)||[];e.orderData=e.orderData.concat(i.map((function(e){return e}))),i.length<e.pageSize&&(e.isLoadAll=!0)})).catch((function(t){console.error("[order-list]获取订单列表数据失败",t),"请重新登录"===t.msg&&(e.isLogin=!1),e.orderData=[],e.isLoadAll=!0})).finally((function(){e.loadingShow=!1,e.loadings=!1}))},getFilter:function(){var e,t=null!==(e=uni.getStorageSync("store_order_filter"))&&void 0!==e?e:[];t.push("手机充值"),this.this_filter_field=t,t.length>0&&(console.log(this.orderTypes,"this.orderTypes"),this.orderTypes=this.orderTypes.filter((function(e){return t.includes(e.name)})),this.siftList=this.siftList.filter((function(e){return t.includes(e.name)})))},getOrderListData:function(){this.getRechargeOrderList(),uni.stopPullDownRefresh()},orderTypeChangeEvent:function(e){this.currentSelectOrderTypeIndex=e,6!=this.orderTypes[this.currentSelectOrderTypeIndex].id&&(this.currentPage=1,this.isLoadAll=!1,this.orderData=[],this.getOrderListData())},clickSift:function(e){console.log(e),this.currentSelectOrderTypeIndex=e,6!=this.orderTypes[this.currentSelectOrderTypeIndex].id?(this.currentPage=1,this.isLoadAll=!1,this.orderData=[],this.getOrderListData(),this.showSift=!1):this.showSift=!1},reLoadOrderData:function(){var e=this;(0,p.checkUserIsLogin)().then((function(){e.isLogin||(e.currentSelectOrderTypeIndex=0,e.currentPage=1,e.isLoadAll=!1,e.orderData=[],e.getOrderListData())})).catch((function(){(0,u.showToast)({title:"请先登录"})}))},onReachBottom:function(){var e=this;6!=this.orderTypes[this.currentSelectOrderTypeIndex].id?this.isLoadAll||(this.currentPage++,this.getOrderListData()):this.$nextTick((function(){setTimeout((function(){e.$refs.buffetOrderRef.diyOnReachBottom()}),50)}))},handleRefreshDataEvent:function(){var e=this;6!=this.orderTypes[this.currentSelectOrderTypeIndex].id?(this.currentPage=1,this.isLoadAll=!1,this.orderData=[],this.getOrderListData()):this.$nextTick((function(){setTimeout((function(){e.$refs.buffetOrderRef.diyOnLoad()}),50)}))},formatPrice:c.formatPrice}};t.default=h}}]);
|