tour-page-order-order.132425e4.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tour-page-order-order"],{1380:function(t,e,r){"use strict";r("6a54"),r("bf0f"),r("2797"),r("dc8a"),Object.defineProperty(e,"__esModule",{value:!0});var n=r("287a");Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}))},2620:function(t,e,r){"use strict";r.r(e);var n=r("2e88b"),a=r("7581");for(var i in a)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(i);r("8755");var u=r("828b"),o=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,"de5e5302",null,!1,n["a"],void 0);e["default"]=o.exports},"287a":function(t,e,r){"use strict";r("6a54"),r("bf0f"),r("2797"),r("dc8a"),Object.defineProperty(e,"__esModule",{value:!0});var n=r("7830");Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}))},"2e88b":function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return n}));var n={tnTabs:r("37fc").default},a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("custom-page",{attrs:{"custom-navbar":!0}},[r("v-uni-view",{staticClass:"nav_tabsBox",style:{top:t.navBarInfo.height+"px"}},[r("tn-tabs",{attrs:{list:t.tabList,current:t.status,isScroll:!1,badgeOffset:[20,50]},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange.apply(void 0,arguments)}}})],1),r("v-uni-view",{staticClass:"container"},[t.orderList.length>0?t._l(t.orderList,(function(e,n){return r("v-uni-view",{key:n,staticClass:"item",on:{click:function(r){arguments[0]=r=t.$handleEvent(r),t.toDetail(e.id,"",e.order_no)}}},[r("v-uni-view",{staticClass:"name"},[r("v-uni-view",{staticStyle:{"font-size":"36rpx","font-weight":"bold"}},[t._v(t._s(e.house_name))]),r("v-uni-view",[10==e.status?r("v-uni-text",{staticStyle:{color:"red"}},[t._v("未支付")]):t._e(),20==e.status?r("v-uni-text",{staticStyle:{color:"orange"}},[t._v("待入住")]):t._e(),30==e.status?r("v-uni-text",{staticStyle:{color:"#4490c5"}},[t._v("已入住")]):t._e(),32==e.status?r("v-uni-text",{staticStyle:{color:"#4490c5"}},[t._v("已续租")]):t._e(),50==e.status?r("v-uni-text",{staticStyle:{color:"#4490c5"}},[t._v("已离店")]):t._e(),60==e.status?r("v-uni-text",{staticStyle:{color:"#06ad06"}},[t._v("已完成")]):t._e(),44==e.status?r("v-uni-text",{staticStyle:{color:"red"}},[t._v("已取消")]):t._e()],1)],1),r("v-uni-view",{staticClass:"date"},[r("v-uni-view",[t._v(t._s(e.start_date)+"至"+t._s(e.end_date))]),r("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.price))])],1),r("v-uni-view",{staticClass:"title"},[t._v(t._s(e.snapshoot&&e.snapshoot.name?e.snapshoot.name:""))]),r("v-uni-view",{staticClass:"btnBox"},[e.is_allow_renew?r("v-uni-view",{staticClass:"btn",on:{click:function(r){r.stopPropagation(),arguments[0]=r=t.$handleEvent(r),t.toDetail(e.id,"add",e.order_no)}}},[t._v("续租")]):t._e(),r("v-uni-view",{staticClass:"btn"},[t._v("订单详情")])],1)],1)})):[r("v-uni-view",{staticClass:"notHaveItem"},[t._v("暂无数据")])]],2)],1)},i=[]},"535bc":function(t,e,r){"use strict";r("6a54");var n=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("c223"),r("fd3c");var a=r("419c"),i=n(r("6fbe")),u=r("1380"),o={components:{},mixins:[i.default],data:function(){return{tabList:[{name:"全部",number:-1},{name:"未支付",number:10},{name:"待入住",number:20},{name:"已入住",number:30},{name:"已续租",number:32},{name:"已完成",number:60}],status:0,orderList:[],pageSize:10,isLoadAll:!1,loadings:!1,currentPage:1}},created:function(){this.initCustomNavBarInfo()},computed:{},onLoad:function(t){this.getOrderList()},onReachBottom:function(){if(console.log("加载更多",this.isLoadAll,this.loadings),!this.isLoadAll){if(this.loadings)return!1;this.currentPage++,this.getOrderList()}},methods:{getOrderList:function(){var t=this;if(this.loadings)return!1;this.loadings=!0,uni.showLoading({title:"加载中..."}),(0,u.HotelUserHomeOrderList)({status:this.tabList[this.status].number,page:this.currentPage,page_size:this.pageSize}).then((function(e){t.loadings=!1,uni.hideLoading(),console.log("订单列表",e);var r=e||[];t.orderList=t.orderList.concat(r.map((function(t){return t}))),r.length<t.pageSize&&(t.isLoadAll=!0),t.orderList.length})).catch((function(e){t.loadings=!1,uni.hideLoading(),console.log(e,"订单列表")}))},tabChange:function(t){this.isLoadAll=!1,this.currentPage=1,this.status=t,this.orderList=[],this.getOrderList()},toDetail:function(t,e,r){(0,a.navPage)("/tour-page/order/orderDetail?id="+t+"&type="+e+"&order_no="+r)}}};e.default=o},"74ff":function(t,e,r){r("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},7540:function(t,e,r){var n=r("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.nav_tabsBox[data-v-de5e5302]{width:100%;position:fixed;z-index:9999;background-color:#fff}.container[data-v-de5e5302]{width:100%;height:auto;background-color:#fff;display:flex;justify-content:center;padding-bottom:%?25?%;flex-wrap:wrap;padding-top:%?100?%}.container .item[data-v-de5e5302]{width:95%;height:auto;background-color:#efeae8;border-radius:%?11?%;margin-top:%?33?%;box-shadow:0 %?4?% %?9?% rgba(56,56,56,.4)}.container .item .name[data-v-de5e5302]{width:100%;height:%?75?%;padding-left:%?20?%;padding-right:%?20?%;line-height:%?75?%;font-size:%?36?%;display:flex;align-items:center;justify-content:space-between}.container .item .date[data-v-de5e5302]{width:100%;height:%?40?%;padding-left:%?20?%;padding-right:%?20?%;line-height:%?40?%;font-size:%?25?%;display:flex;align-items:center;justify-content:space-between}.container .item .title[data-v-de5e5302]{width:100%;height:%?60?%;padding-left:%?20?%;padding-right:%?20?%;line-height:%?60?%;font-size:%?25?%}.container .item .btnBox[data-v-de5e5302]{width:100%;height:%?100?%;padding-left:%?20?%;font-size:%?36?%;font-weight:700;display:flex;align-items:center;justify-content:flex-end;border-top:solid #d9d9d9 %?3?%;background-color:#f1cfb8}.container .item .btnBox .btn[data-v-de5e5302]{width:%?160?%;height:%?62?%;border-radius:%?60?%;display:flex;align-items:center;justify-content:center;font-size:%?28?%;margin-right:%?20?%;background-color:#ececce;color:#7b4646}.container .notHaveItem[data-v-de5e5302]{width:95%;height:%?300?%;background-color:#fff;border-radius:%?11?%;margin-top:%?33?%;padding-bottom:%?14?%;box-shadow:0 %?4?% %?9?% rgba(56,56,56,.4);display:flex;align-items:center;justify-content:center;font-size:%?36?%;color:#828282;font-weight:700}',""]),t.exports=e},7581:function(t,e,r){"use strict";r.r(e);var n=r("535bc"),a=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},7830:function(t,e,r){"use strict";r("6a54");var n=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.renewSubmitAndPayApi=e.renewDetailApi=e.homeInsuranceList=e.default=e.UserStoreList=e.UserStoreInfo=e.UserHouseList=e.UserHouseDetails=e.NearbyTicketList=e.HouseOrderSubmitPreview=e.HotelUserHomeOrderSubmit=e.HotelUserHomeOrderList=e.HotelUserHomeOrderDetail=e.HotelUserCollectionSubmit=e.HotelRoomReserveList=void 0;var a=n(r("2634")),i=n(r("9b1b")),u=n(r("2fdc")),o=n(r("7653")),s=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/renewDetail",(0,i.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.renewDetailApi=s;var c=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/renewSubmitAndPay",(0,i.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.renewSubmitAndPayApi=c;var l=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house/details",(0,i.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.UserHouseDetails=l;var d=function(){var t=(0,u.default)((0,a.default)().mark((function t(e){var r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house/book_date_list",(0,i.default)({},e));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.HotelRoomReserveList=d;var f=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house/referrer",(0,i.default)((0,i.default)({},e),{},{callback:r}));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.NearbyTicketList=f;var p=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house/list",(0,i.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.UserHouseList=p;var v=function(){var t=(0,u.default)((0,a.default)().mark((function t(e){var r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.store/info",(0,i.default)({},e));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.UserStoreInfo=v;var h=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.store/list",(0,i.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.UserStoreList=h;var b=function(){var t=(0,u.default)((0,a.default)().mark((function t(e){var r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/submit_preview",(0,i.default)({},e));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.HouseOrderSubmitPreview=b;var g=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/submit",(0,i.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.HotelUserHomeOrderSubmit=g;var m=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/list",(0,i.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.HotelUserHomeOrderList=m;var w=function(){var t=(0,u.default)((0,a.default)().mark((function t(e){var r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/detail",(0,i.default)({},e));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.HotelUserHomeOrderDetail=w;var _=function(){var t=(0,u.default)((0,a.default)().mark((function t(e){var r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/merchant.store.settle/register",(0,i.default)({},e));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.homeInsuranceList=_;var y=function(){var t=(0,u.default)((0,a.default)().mark((function t(e,r){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.store/collect",(0,i.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.HotelUserCollectionSubmit=y;var x={UserHouseDetails:l,UserStoreInfo:v,NearbyTicketList:f,HotelRoomReserveList:d,HouseOrderSubmitPreview:b,HotelUserHomeOrderSubmit:g,HotelUserHomeOrderList:m,HotelUserHomeOrderDetail:w,UserHouseList:p,UserStoreList:h,homeInsuranceList:_,renewSubmitAndPayApi:c,renewDetailApi:s};e.default=x},8755:function(t,e,r){"use strict";var n=r("e898"),a=r.n(n);a.a},e898:function(t,e,r){var n=r("7540");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=r("967d").default;a("56eaca76",n,!0,{sourceMap:!1,shadowMode:!1})}}]);