pages-order-order.a322c24c.js 9.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-order"],{"1bbf":function(t,e,n){"use strict";n.r(e);var i=n("cf6c"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"21cc":function(t,e,n){"use strict";var i=n("b45e"),o=n.n(i);o.a},"82b8":function(t,e,n){var i=n("c86c");e=i(!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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.order[data-v-eb946db4]{width:100vw;height:100%;background:linear-gradient(180deg,#c1fff8,#b8fff3 34%,#f5ffff);position:fixed;box-sizing:border-box}.order .top[data-v-eb946db4]{width:100%;height:%?90?%;display:flex;justify-content:space-around;align-items:center;font-size:%?30?%;box-sizing:border-box;z-index:999;background:radial-gradient(circle,#fcfdff,#fcfdff)}.order .top uni-view[data-v-eb946db4]{height:100%;display:flex;align-items:center;padding:0 %?10?%;background-color:#fff;box-sizing:border-box}.order .top .active[data-v-eb946db4]{font-size:%?30?%;color:#03c8be;font-weight:400;position:relative}.order .top .active[data-v-eb946db4]::after{content:"";position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:%?36?%;height:%?4?%;\n /* 设置你需要的高度 */background-color:#03c8be}.order .list[data-v-eb946db4]{padding:%?32?%;flex:1}.order .list .item[data-v-eb946db4]{width:100%;padding:%?24?% %?32?%;margin-bottom:%?10?%;font-size:%?28?%;margin-bottom:%?28?%;box-sizing:border-box;background:#fff;box-shadow:0 4px 12px 0 rgba(88,209,187,.1);border-radius:24px 24px 24px 24px}.order .list .item .lTitle[data-v-eb946db4]{display:flex;justify-content:space-between;border-bottom:1px solid #eee;margin-bottom:%?10?%;padding-bottom:%?20?%;font-size:%?28?%}.order .list .item .lTitle .status[data-v-eb946db4]{color:#03c8be}.order .list .item .cont[data-v-eb946db4]{color:#a2a2a2;font-size:%?26?%;line-height:%?45?%}.order .list .item .btn[data-v-eb946db4]{height:%?48?%;margin-top:%?20?%;display:flex;align-items:center;justify-content:space-between}.order .list .item .btn .count_down[data-v-eb946db4]{font-size:%?26?%;color:#f53e54}.order .list .item .btn .count_down span[data-v-eb946db4]{font-size:%?20?%}.order .list .item .btn .button .pay[data-v-eb946db4]{display:inline-block;background-color:#2ebcd7;color:#fff;margin-left:%?20?%;padding:%?5?% %?30?%;height:%?48?%;line-height:%?48?%;background:linear-gradient(135deg,#1ad8cf,#21c8c0);border-radius:%?98?% %?98?% %?98?% %?98?%}.order .list .item .btn .button .cancel[data-v-eb946db4]{width:%?152?%;height:%?48?%;border-radius:%?98?%;border:%?2?% solid #bbb;padding:%?5?% %?30?%}.login[data-v-eb946db4]{margin-top:300px;display:flex;flex-direction:column;align-items:center}.login uni-text[data-v-eb946db4]{margin-bottom:50px;color:grey}.login .login_btn[data-v-eb946db4]{width:100px;height:30px;border-radius:30px;text-align:center;color:#fff;line-height:30px;background:linear-gradient(90deg,#35c99d,#27aea7)}.nodate[data-v-eb946db4]{display:flex;align-items:center;justify-content:center;padding:%?200?% 0;text-align:center}.nodate uni-image[data-v-eb946db4]{width:%?300?%;margin-bottom:%?30?%}[data-v-eb946db4]::-webkit-scrollbar{display:none}',""]),t.exports=e},8828:function(t,e,n){"use strict";n.r(e);var i=n("9177"),o=n("1bbf");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("21cc");var s=n("828b"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"eb946db4",null,!1,i["a"],void 0);e["default"]=c.exports},9177:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={mescrollUni:n("23e8").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"order"},[n("v-uni-view",{staticClass:"top"},t._l(t.status,(function(e,i){return n("v-uni-view",{key:i,class:t.checkedIndex===i?"active":"",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.statusTap(e.code,i)}}},[t._v(t._s(e.info))])})),1),t.isLogin?n("mescroll-uni",{ref:"mescrollRef",staticClass:"list",attrs:{fixed:!1},on:{up:function(e){arguments[0]=e=t.$handleEvent(e),t.getList.apply(void 0,arguments)},init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)}}},t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item"},[n("v-uni-view",{staticClass:"lTitle",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goDetails(e.cId)}}},[n("v-uni-view",{staticStyle:{"font-weight":"bold"}},[t._v("上门时间:"+t._s(e.dtCreateTime))]),n("v-uni-view",{staticClass:"status",style:{color:"已取消"===e.statusName?"#999":""}},[t._v(t._s(e.statusName))])],1),n("v-uni-view",{staticClass:"cont",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goDetails(e.cId)}}},[n("v-uni-view",[t._v("商家:"+t._s(e.js.cNickName))]),n("v-uni-view",[t._v("项目:"+t._s(e.cGoods[0].cTitle))])],1),n("v-uni-view",{staticClass:"cont",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goDetails(e.cId)}}},[n("v-uni-view",[t._v("下单时间:"+t._s(e.dtCreateTime))])],1),n("v-uni-view",{staticClass:"btn"},[n("v-uni-view",{staticClass:"count_down"},[n("span",[t._v("¥")]),t._v(t._s(e.totalPrice))]),n("v-uni-view",{staticClass:"button"},[e.nStatus>-2&&e.nStatus<1?n("v-uni-text",{staticClass:"cancel",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.cancle(e.cId)}}},[t._v("取消订单")]):t._e(),-1==e.nStatus&&e.nStatus<1?n("v-uni-text",{staticClass:"pay",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.nowYuyue(e,e.cId,e.dTotalMoney,e.remainingTime)}}},[t._v("支付订单")]):t._e(),4==e.nStatus?n("v-uni-text",{staticClass:"pay",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goEvaluate(e)}}},[t._v("去评价")]):t._e(),e.nStatus<=-2||5==e.nStatus?n("v-uni-text",{staticClass:"pay",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.deleteOrder(e.cId)}}},[t._v("删除订单")]):t._e()],1)],1)],1)})),1):n("v-uni-view",{staticClass:"login"},[n("v-uni-text",[t._v("您还没有登录")]),n("v-uni-view",{staticClass:"login_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goLogin.apply(void 0,arguments)}}},[t._v("去登录")])],1)],1)},a=[]},b45e:function(t,e,n){var i=n("82b8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("46cc0284",i,!0,{sourceMap:!1,shadowMode:!1})},cf6c:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f"),n("2797"),n("5c47"),n("a1c1"),n("c223");var o=i(n("f053")),a=n("e745"),s={mixins:[o.default],data:function(){return{timeStamp:90,status:[],checkedIndex:0,list:[],nStatus:"",money:0,dTotalMoney:0,isLogin:!1,current:1}},methods:{goEvaluate:function(t){uni.navigateTo({url:"./comment?orderNo="+t.orderNo+"&cJsId="+t.cJsId+"&cId="+t.cId+"&cName="+t.js.cName})},nowYuyue:function(t,e,n,i){0==i?uni.showToast({title:"订单已超时",icon:"none"}):uni.navigateTo({url:"/pages/identify/pay_order?orderNo="+t.orderNo+"&page=order"})},goLogin:function(){uni.navigateTo({url:"../login/wxLogin"})},cancle:function(t){var e=this,n={cId:t};(0,a.cancleOrder)(n).then((function(t){200==t.data.code?(uni.showToast({title:"已取消",icon:"none"}),e.$router.go(0)):uni.showToast({title:t.data.msg,icon:"none"})}))},getStatus:function(){var t=this;(0,a.statusList)().then((function(e){t.status=e.data.data,t.nStatus=""}))},getInfo:function(){(0,a.getInfo)().then((function(t){}))},refresh:function(){},getList:function(t){var e=this;console.log("++++++");var n={cOpenId:uni.getStorageSync("wx_copenid"),nStatus:this.nStatus,current:t.num,size:t.size};(0,a.orderDeatails)(n).then((function(t){console.log(t),401==t.data.data.code&&(e.isLogin=!1);t.data.data.records.forEach((function(t){t.dtCreateTime=t.dtCreateTime.replace("T"," ")})),e.mescroll.endSuccess(t.data.data.records.length),e.list=e.list.concat(t.data.data.records)}))},deleteOrder:function(t){var e=this,n={cId:t};uni.showModal({title:"提示",content:"确定删除订单吗?",showCancel:!0,success:function(t){t.confirm&&(0,a.delOrder)(n).then((function(t){200==t.data.code?(e.$router.go(0),e.getList(),uni.showToast({title:"删除订单成功!",icon:"none"})):uni.showToast({title:t.data.msg,icon:"none"})}))}})},goDetails:function(t){uni.navigateTo({url:"../../pages/order/order_detail?cid="+t})},statusTap:function(t,e){this.checkedIndex=e,this.list=[],this.nStatus=t,this.mescroll.resetUpScroll()}},mounted:function(){this.mescroll.optDown.use=!1},onLoad:function(){var t=uni.getStorageSync("wx_copenid");this.isLogin=""!=t},onShow:function(){this.getStatus(),this.mescroll.resetUpScroll()},onHide:function(){this.checkedIndex=0,this.nStatus=100,this.list=[]}};e.default=s}}]);