1 line
4.0 KiB
JavaScript
1 line
4.0 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-index"],{"250f":function(t,e,i){"use strict";i.r(e);var a=i("ec3f"),n=i("49f6");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("e201");var o=i("f0c5"),u=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"54248f16",null,!1,a["a"],void 0);e["default"]=u.exports},"49f6":function(t,e,i){"use strict";i.r(e);var a=i("6b05"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"6b05":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("14d9");var n=a(i("ade3")),s={data:function(){var t;return t={istrue:!1,form:{page:1,pageSize:10},list:[]},(0,n.default)(t,"istrue",!1),(0,n.default)(t,"imgUrl",""),t},onLoad:function(){this.imgUrl=this.api.imgUrl,this.getData()},methods:{getData:function(){var t=this;uni.showLoading({title:"加载中..."}),this.api.orderlist(this.form).then((function(e){if(console.log(e),200==e.data.code){if(uni.stopPullDownRefresh(),uni.hideLoading(),0==e.data.data.data.length)return uni.showToast({title:"暂无数据",icon:"none"}),t.istrue=!0,!1;for(var i=0;i<e.data.data.data.length;i++)t.list.push(e.data.data.data[i])}else uni.hideLoading(),uni.showToast({icon:"none",title:e.data.message});t.istrue=!0}))},bufagain:function(t){uni.navigateTo({url:"/pages/product/detail?id="+t})}},onReachBottom:function(){uni.showLoading({title:"加载中..."}),this.form.page+=1,this.getData()},onPullDownRefresh:function(){this.form.page=1,this.list=[],this.getData()}};e.default=s},c459:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"uni-page-body[data-v-54248f16]{background:#f5f5f5!important}body.?%PAGE?%[data-v-54248f16]{background:#f5f5f5!important}.three[data-v-54248f16]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}",""]),t.exports=e},d0c8:function(t,e,i){var a=i("c459");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("3dcaa1f5",a,!0,{sourceMap:!1,shadowMode:!1})},e201:function(t,e,i){"use strict";var a=i("d0c8"),n=i.n(a);n.a},ec3f:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.istrue?i("v-uni-view",{},[0!=t.list.length?i("v-uni-view",t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"mt30 bgwhite ptb30 plr50"},[i("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bufagain(e.product_id)}}},[i("v-uni-view",{staticClass:"flex_between flex_items f26 pb30 bbe9s",staticStyle:{color:"#666"}},[i("v-uni-text",[t._v("订单号:"+t._s(e.order_no))]),0==e.statue?i("v-uni-text",{staticClass:"f28 bold"},[t._v("待支付")]):t._e(),1==e.statue?i("v-uni-text",{staticClass:"f28 bold"},[t._v("已支付")]):t._e(),2==e.statue?i("v-uni-text",{staticClass:"f28 bold"},[t._v("已过期")]):t._e(),3==e.statue?i("v-uni-text",{staticClass:"f28 bold"},[t._v("已取消")]):t._e()],1),i("v-uni-view",{staticClass:"flex_start flex_items mt30"},[i("v-uni-image",{staticStyle:{width:"120rpx",height:"120rpx","boredr-radius":"12rpx"},attrs:{src:e.product_main_image,mode:""}}),i("v-uni-view",{staticClass:"ml30 flex_column",staticStyle:{width:"440rpx"}},[i("v-uni-view",{staticClass:"f30 bold three"},[t._v(t._s(e.product_name))]),i("v-uni-text",{staticClass:"f30 mt30",staticStyle:{color:"#888"}},[t._v("充值账号:"+t._s(e.phone))])],1)],1),i("v-uni-view",{staticClass:"mt40 flex_between flex_items"},[i("v-uni-text",{staticClass:"f28",staticStyle:{color:"#4d4d4d"}},[t._v("消耗积分:"+t._s(e.price)+"积分")]),i("v-uni-image",{staticStyle:{width:"168rpx",height:"64rpx"},attrs:{src:t.imgUrl+"again.png",mode:""}})],1)],1)],1)})),1):i("v-uni-view",{staticClass:"flex_center flex_items f24",staticStyle:{color:"#888",height:"600rpx",width:"100%"}},[i("v-uni-text",[t._v("--暂<EFBFBD>
|