1 line
5.3 KiB
JavaScript
1 line
5.3 KiB
JavaScript
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["packageA/my/makeList"],{"63b1":function(t,e,o){},"6af4":function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var n={uPopup:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(o.bind(null,"e6bd"))},uLoadmore:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-loadmore/u-loadmore")]).then(o.bind(null,"07ba"))}},a=function(){var t=this,e=t.$createElement,o=(t._self._c,t.__map(t.headers,(function(e,o){var n=t.__get_orig(e),a=t.headerSelected(e.status);return{$orig:n,m0:a}}))),n=t._f("formatDateTime")(t.QR.detail&&t.QR.detail.start_time),a=t._f("formatDateTime")(t.QR.detail&&t.QR.detail.end_time);t._isMounted||(t.e0=function(e){t.show=!1}),t.$mp.data=Object.assign({},{$root:{l0:o,f0:n,f1:a}})},i=[]},"785c":function(t,e,o){"use strict";o.r(e);var n=o("ed89"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},af10:function(t,e,o){"use strict";var n=o("63b1"),a=o.n(n);a.a},b710:function(t,e,o){"use strict";o.r(e);var n=o("6af4"),a=o("785c");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("af10");var s=o("828b"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"23e19488",null,!1,n["a"],void 0);e["default"]=u.exports},ed89:function(t,e,o){"use strict";(function(t){var n=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(o("af34")),i=n(o("7ca3")),s={data:function(){var t;return t={popupStyle:{width:"690rpx",margin:"0 auto",display:"flex",justifyContent:"center",alignItems:"center",padding:"0",borderRadius:"20rpx"},sortList:[{text:"按照价格排序",value:["acs","desc"]},{text:"按照编号排序",value:["acs","desc"]}],QRShow:!1,size:13,sortStyle:["#ff557f","#3f3f3f"],headers:[{status:"-1,0,3,-3",text:"全部"},{status:"-1",text:"待审核"},{status:"0",text:"已预约"},{status:"3",text:"已完成"},{status:"-3",text:"已取消"}]},(0,i.default)(t,"popupStyle",{width:"690rpx",margin:"0 auto",display:"flex",justifyContent:"center",alignItems:"center",padding:"0",borderRadius:"20rpx"}),(0,i.default)(t,"selected","-1,0,3,-3"),(0,i.default)(t,"page",1),(0,i.default)(t,"limit",10),(0,i.default)(t,"loadStatus","loading"),(0,i.default)(t,"keywords",""),(0,i.default)(t,"list",[]),(0,i.default)(t,"show",!1),(0,i.default)(t,"qrcode",{}),(0,i.default)(t,"order_no",""),(0,i.default)(t,"QR",{}),(0,i.default)(t,"count",0),t},filters:{formatDateTime:function(t){if(!t)return"";var e=new Date(1e3*t),o=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),u=String(e.getSeconds()).padStart(2,"0");return"".concat(o,"-").concat(n,"-").concat(a," ").concat(i,":").concat(s,":").concat(u)}},onLoad:function(t){t.status?(this.selected=t.status,this.getList(t.status)):this.getList(this.selected)},onReachBottom:function(){this.list.length<this.count&&(this.page++,this.getList(this.selected))},methods:{openUrl:function(e){t.navigateTo({url:e})},close:function(){this.qrcode={},this.show=!1},open:function(){this.show=!0},QRclose:function(){this.QR={},this.QRShow=!1},QRopen:function(){this.QRShow=!0},switchSort:function(t,e){console.log(t,e)},Confirm:function(e){var o=this;t.$u.http.post("/api/school/hour_order/cancel",{order_no:e}).then((function(e){1==e.code?(o.page=1,o.list=[],o.getList(o.selected),o.show=!1):t.showToast({title:e.msg,icon:"none",duration:2e3})})).catch((function(t){console.error("请求失败",t)}))},toQR:function(e){var o=this;t.$u.http.get("/api/school/order/detail",{params:{id:e}}).then((function(e){1==e.code?o.QR=e.data.detail:t.showToast({title:e.msg,icon:"none",duration:2e3})})).catch((function(t){})),this.QRShow=!0},Cancel:function(e){var o=this;t.$u.http.get("/api/school/hour_order/detail",{params:{
|