You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
16 KiB
1 lines
16 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-template-order-index"],{"0c61":function(t,i,e){"use strict";e.r(i);var s=e("79a0"),a=e("e10f");for(var r in a)"default"!==r&&function(t){e.d(i,t,(function(){return a[t]}))}(r);e("c553"),e("54de");var n,o=e("f0c5"),c=Object(o["a"])(a["default"],s["b"],s["c"],!1,null,"9f0d5f34",null,!1,s["a"],n);i["default"]=c.exports},"194b":function(t,i,e){"use strict";e("d81d"),e("fb6a"),e("a434"),e("acd8"),e("e25e"),e("ac1f"),e("1276"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s={data:function(){return{orderList:[[],[],[],[]],dataList:[{id:1,store:"夏日流星限定贩卖",deal:"交易成功",goodsList:[{goodsUrl:"//img13.360buyimg.com/n7/jfs/t1/103005/7/17719/314825/5e8c19faEb7eed50d/5b81ae4b2f7f3bb7.jpg",title:"【冬日限定】现货 原创jk制服女2020冬装新款小清新宽松软糯毛衣外套女开衫短款百搭日系甜美风",type:"灰色;M",deliveryTime:"付款后30天内发货",price:"348.58",number:2},{goodsUrl:"//img12.360buyimg.com/n7/jfs/t1/102191/19/9072/330688/5e0af7cfE17698872/c91c00d713bf729a.jpg",title:"【葡萄藤】现货 小清新学院风制服格裙百褶裙女短款百搭日系甜美风原创jk制服女2020新款",type:"45cm;S",deliveryTime:"付款后30天内发货",price:"135.00",number:1}]},{id:2,store:"江南皮革厂",deal:"交易失败",goodsList:[{goodsUrl:"//img14.360buyimg.com/n7/jfs/t1/60319/15/6105/406802/5d43f68aE9f00db8c/0affb7ac46c345e2.jpg",title:"【冬日限定】现货 原创jk制服女2020冬装新款小清新宽松软糯毛衣外套女开衫短款百搭日系甜美风",type:"粉色;M",deliveryTime:"付款后7天内发货",price:"128.05",number:1}]},{id:3,store:"三星旗舰店",deal:"交易失败",goodsList:[{goodsUrl:"//img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",title:"三星(SAMSUNG)京品家电 UA65RUF70AJXXZ 65英寸4K超高清 HDR 京东微联 智能语音 教育资源液晶电视机",type:"4K,广色域",deliveryTime:"保质5年",price:"1998",number:3},{goodsUrl:"//img14.360buyimg.com/n7/jfs/t6007/205/4099529191/294869/ae4e6d4f/595dcf19Ndce3227d.jpg!q90.jpg",title:"美的(Midea)639升 对开门冰箱 19分钟急速净味 一级能效冷藏双开门杀菌智能家用双变频节能 BCD-639WKPZM(E)",type:"容量大,速冻",deliveryTime:"保质5年",price:"2354",number:1}]},{id:4,store:"三星旗舰店",deal:"交易失败",goodsList:[{goodsUrl:"//img10.360buyimg.com/n7/jfs/t22300/31/1505958241/171936/9e201a89/5b2b12ffNe6dbb594.jpg!q90.jpg",title:"法国进口红酒 拉菲(LAFITE)传奇波尔多干红葡萄酒750ml*6整箱装",type:"4K,广色域",deliveryTime:"珍藏10年好酒",price:"1543",number:3},{goodsUrl:"//img10.360buyimg.com/n7/jfs/t1/107598/17/3766/525060/5e143aacE9a94d43c/03573ae60b8bf0ee.jpg",title:"蓝妹(BLUE GIRL)酷爽啤酒 清啤 原装进口啤酒 罐装 500ml*9听 整箱装",type:"一打",deliveryTime:"口感好",price:"120",number:1}]},{id:5,store:"三星旗舰店",deal:"交易成功",goodsList:[{goodsUrl:"//img12.360buyimg.com/n7/jfs/t1/52408/35/3554/78293/5d12e9cfEfd118ba1/ba5995e62cbd747f.jpg!q90.jpg",title:"企业微信 中控人脸指纹识别考勤机刷脸机 无线签到异地多店打卡机WX108",type:"识别效率高",deliveryTime:"使用方便",price:"451",number:9}]}],list:[{name:"待付款"},{name:"待发货"},{name:"待收货"},{name:"待评价",count:12}],current:0,swiperCurrent:0,tabsHeight:0,dx:0,loadStatus:["loadmore","loadmore","loadmore","loadmore"]}},onLoad:function(){this.getOrderList(0),this.getOrderList(1),this.getOrderList(3)},computed:{priceDecimal:function(){return function(t){return t!==parseInt(t)?t.slice(-2):"00"}},priceInt:function(){return function(t){return t!==parseInt(t)?t.split(".")[0]:t}}},methods:{reachBottom:function(){var t=this;2!=this.current&&(this.loadStatus.splice(this.current,1,"loading"),setTimeout((function(){t.getOrderList(t.current)}),1200))},getOrderList:function(t){for(var i=0;i<5;i++){var e=this.$u.random(0,this.dataList.length-1),s=JSON.parse(JSON.stringify(this.dataList[e]));s.id=this.$u.guid(),this.orderList[t].push(s)}this.loadStatus.splice(this.current,1,"loadmore")},totalPrice:function(t){var i=0;return t.map((function(t){i+=parseFloat(t.price)})),i.toFixed(2)},totalNum:function(t){var i=0;return t.map((function(t){i+=t.number})),i},change:function(t){this.swiperCurrent=t,this.getOrderList(t)},transition:function(t){var i=t.detail.dx;this.$refs.tabs.setDx(i)},animationfinish:function(t){var i=t.detail.current;this.$refs.tabs.setFinishCurrent(i),this.swiperCurrent=i,this.current=i}}};i.default=s},"1b5a":function(t,i,e){var s=e("24fb");i=s(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.order[data-v-9f0d5f34]{width:%?710?%;background-color:#fff;margin:%?20?% auto;border-radius:%?20?%;box-sizing:border-box;padding:%?20?%;font-size:%?28?%}.order .top[data-v-9f0d5f34]{display:flex;justify-content:space-between}.order .top .left[data-v-9f0d5f34]{display:flex;align-items:center}.order .top .left .store[data-v-9f0d5f34]{margin:0 %?10?%;font-size:%?32?%;font-weight:700}.order .top .right[data-v-9f0d5f34]{color:#f29100}.order .item[data-v-9f0d5f34]{display:flex;margin:%?20?% 0 0}.order .item .left[data-v-9f0d5f34]{margin-right:%?20?%}.order .item .left uni-image[data-v-9f0d5f34]{width:%?200?%;height:%?200?%;border-radius:%?10?%}.order .item .content .title[data-v-9f0d5f34]{font-size:%?28?%;line-height:%?50?%}.order .item .content .type[data-v-9f0d5f34]{margin:%?10?% 0;font-size:%?24?%;color:#909399}.order .item .content .delivery-time[data-v-9f0d5f34]{color:#e5d001;font-size:%?24?%}.order .item .right[data-v-9f0d5f34]{margin-left:%?10?%;padding-top:%?20?%;text-align:right}.order .item .right .decimal[data-v-9f0d5f34]{font-size:%?24?%;margin-top:%?4?%}.order .item .right .number[data-v-9f0d5f34]{color:#909399;font-size:%?24?%}.order .total[data-v-9f0d5f34]{margin-top:%?20?%;text-align:right;font-size:%?24?%}.order .total .total-price[data-v-9f0d5f34]{font-size:%?32?%}.order .bottom[data-v-9f0d5f34]{display:flex;margin-top:%?40?%;padding:0 %?10?%;justify-content:space-between;align-items:center}.order .bottom .btn[data-v-9f0d5f34]{line-height:%?52?%;width:%?160?%;border-radius:%?26?%;border:%?2?% solid #e4e7ed;font-size:%?26?%;text-align:center;color:#82848a}.order .bottom .evaluate[data-v-9f0d5f34]{color:#f29100;border-color:#f29100}.centre[data-v-9f0d5f34]{text-align:center;margin:%?200?% auto;font-size:%?32?%}.centre uni-image[data-v-9f0d5f34]{width:%?164?%;height:%?164?%;border-radius:50%;margin-bottom:%?20?%}.centre .tips[data-v-9f0d5f34]{font-size:%?24?%;color:#999;margin-top:%?20?%}.centre .btn[data-v-9f0d5f34]{margin:%?80?% auto;width:%?200?%;border-radius:%?32?%;line-height:%?64?%;color:#fff;font-size:%?26?%;background:linear-gradient(270deg,#f9745a,#ff9e01)}.wrap[data-v-9f0d5f34]{display:flex;flex-direction:column;height:calc(100vh - var(--window-top));width:100%}.swiper-box[data-v-9f0d5f34]{flex:1}.swiper-item[data-v-9f0d5f34]{height:100%}',""]),t.exports=i},3875:function(t,i,e){var s=e("7865");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=e("4f06").default;a("ac866fe2",s,!0,{sourceMap:!1,shadowMode:!1})},"54de":function(t,i,e){"use strict";var s=e("a8c4"),a=e.n(s);a.a},7865:function(t,i,e){var s=e("24fb");i=s(!1),i.push([t.i,"\nbody.?%PAGE?%[data-v-9f0d5f34]{background-color:#f2f2f2}",""]),t.exports=i},"79a0":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return r})),e.d(i,"a",(function(){return s}));var s={uTabsSwiper:e("c6ae").default,uIcon:e("b1e3").default,uLoadmore:e("340a").default},a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("v-uni-view",{staticClass:"wrap"},[e("v-uni-view",{staticClass:"u-tabs-box"},[e("u-tabs-swiper",{ref:"tabs",attrs:{activeColor:"#f29100",list:t.list,current:t.current,"is-scroll":!1,swiperWidth:"750"},on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.change.apply(void 0,arguments)}}})],1),e("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.swiperCurrent},on:{transition:function(i){arguments[0]=i=t.$handleEvent(i),t.transition.apply(void 0,arguments)},animationfinish:function(i){arguments[0]=i=t.$handleEvent(i),t.animationfinish.apply(void 0,arguments)}}},[e("v-uni-swiper-item",{staticClass:"swiper-item"},[e("v-uni-scroll-view",{staticStyle:{height:"100%",width:"100%"},attrs:{"scroll-y":!0},on:{scrolltolower:function(i){arguments[0]=i=t.$handleEvent(i),t.reachBottom.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"page-box"},[t._l(t.orderList[0],(function(i,s){return e("v-uni-view",{key:i.id,staticClass:"order"},[e("v-uni-view",{staticClass:"top"},[e("v-uni-view",{staticClass:"left"},[e("u-icon",{attrs:{name:"home",size:30,color:"rgb(94,94,94)"}}),e("v-uni-view",{staticClass:"store"},[t._v(t._s(i.store))]),e("u-icon",{attrs:{name:"arrow-right",color:"rgb(203,203,203)",size:26}})],1),e("v-uni-view",{staticClass:"right"},[t._v(t._s(i.deal))])],1),t._l(i.goodsList,(function(i,s){return e("v-uni-view",{key:s,staticClass:"item"},[e("v-uni-view",{staticClass:"left"},[e("v-uni-image",{attrs:{src:i.goodsUrl,mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"title u-line-2"},[t._v(t._s(i.title))]),e("v-uni-view",{staticClass:"type"},[t._v(t._s(i.type))]),e("v-uni-view",{staticClass:"delivery-time"},[t._v("发货时间 "+t._s(i.deliveryTime))])],1),e("v-uni-view",{staticClass:"right"},[e("v-uni-view",{staticClass:"price"},[t._v("¥"+t._s(t.priceInt(i.price))),e("v-uni-text",{staticClass:"decimal"},[t._v("."+t._s(t.priceDecimal(i.price)))])],1),e("v-uni-view",{staticClass:"number"},[t._v("x"+t._s(i.number))])],1)],1)})),e("v-uni-view",{staticClass:"total"},[t._v("共"+t._s(t.totalNum(i.goodsList))+"件商品 合计:"),e("v-uni-text",{staticClass:"total-price"},[t._v("¥"+t._s(t.priceInt(t.totalPrice(i.goodsList)))+"."),e("v-uni-text",{staticClass:"decimal"},[t._v(t._s(t.priceDecimal(t.totalPrice(i.goodsList))))])],1)],1),e("v-uni-view",{staticClass:"bottom"},[e("v-uni-view",{staticClass:"more"},[e("u-icon",{attrs:{name:"more-dot-fill",color:"rgb(203,203,203)"}})],1),e("v-uni-view",{staticClass:"logistics btn"},[t._v("查看物流")]),e("v-uni-view",{staticClass:"exchange btn"},[t._v("卖了换钱")]),e("v-uni-view",{staticClass:"evaluate btn"},[t._v("评价")])],1)],2)})),e("u-loadmore",{attrs:{status:t.loadStatus[0],bgColor:"#f2f2f2"}})],2)],1)],1),e("v-uni-swiper-item",{staticClass:"swiper-item"},[e("v-uni-scroll-view",{staticStyle:{height:"100%",width:"100%"},attrs:{"scroll-y":!0},on:{scrolltolower:function(i){arguments[0]=i=t.$handleEvent(i),t.reachBottom.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"page-box"},[t._l(t.orderList[1],(function(i,s){return e("v-uni-view",{key:i.id,staticClass:"order"},[e("v-uni-view",{staticClass:"top"},[e("v-uni-view",{staticClass:"left"},[e("u-icon",{attrs:{name:"home",size:30,color:"rgb(94,94,94)"}}),e("v-uni-view",{staticClass:"store"},[t._v(t._s(i.store))]),e("u-icon",{attrs:{name:"arrow-right",color:"rgb(203,203,203)",size:26}})],1),e("v-uni-view",{staticClass:"right"},[t._v(t._s(i.deal))])],1),t._l(i.goodsList,(function(i,s){return e("v-uni-view",{key:s,staticClass:"item"},[e("v-uni-view",{staticClass:"left"},[e("v-uni-image",{attrs:{src:i.goodsUrl,mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"title u-line-2"},[t._v(t._s(i.title))]),e("v-uni-view",{staticClass:"type"},[t._v(t._s(i.type))]),e("v-uni-view",{staticClass:"delivery-time"},[t._v("发货时间 "+t._s(i.deliveryTime))])],1),e("v-uni-view",{staticClass:"right"},[e("v-uni-view",{staticClass:"price"},[t._v("¥"+t._s(t.priceInt(i.price))),e("v-uni-text",{staticClass:"decimal"},[t._v("."+t._s(t.priceDecimal(i.price)))])],1),e("v-uni-view",{staticClass:"number"},[t._v("x"+t._s(i.number))])],1)],1)})),e("v-uni-view",{staticClass:"total"},[t._v("共"+t._s(t.totalNum(i.goodsList))+"件商品 合计:"),e("v-uni-text",{staticClass:"total-price"},[t._v("¥"+t._s(t.priceInt(t.totalPrice(i.goodsList)))+"."),e("v-uni-text",{staticClass:"decimal"},[t._v(t._s(t.priceDecimal(t.totalPrice(i.goodsList))))])],1)],1),e("v-uni-view",{staticClass:"bottom"},[e("v-uni-view",{staticClass:"more"},[e("u-icon",{attrs:{name:"more-dot-fill",color:"rgb(203,203,203)"}})],1),e("v-uni-view",{staticClass:"logistics btn"},[t._v("查看物流")]),e("v-uni-view",{staticClass:"exchange btn"},[t._v("卖了换钱")]),e("v-uni-view",{staticClass:"evaluate btn"},[t._v("评价")])],1)],2)})),e("u-loadmore",{attrs:{status:t.loadStatus[1],bgColor:"#f2f2f2"}})],2)],1)],1),e("v-uni-swiper-item",{staticClass:"swiper-item"},[e("v-uni-scroll-view",{staticStyle:{height:"100%",width:"100%"},attrs:{"scroll-y":!0}},[e("v-uni-view",{staticClass:"page-box"},[e("v-uni-view",[e("v-uni-view",{staticClass:"centre"},[e("v-uni-image",{attrs:{src:"https://cdn.uviewui.com/uview/template/taobao-order.png",mode:""}}),e("v-uni-view",{staticClass:"explain"},[t._v("您还没有相关的订单"),e("v-uni-view",{staticClass:"tips"},[t._v("可以去看看有那些想买的")])],1),e("v-uni-view",{staticClass:"btn"},[t._v("随便逛逛")])],1)],1)],1)],1)],1),e("v-uni-swiper-item",{staticClass:"swiper-item"},[e("v-uni-scroll-view",{staticStyle:{height:"100%",width:"100%"},attrs:{"scroll-y":!0},on:{scrolltolower:function(i){arguments[0]=i=t.$handleEvent(i),t.reachBottom.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"page-box"},[t._l(t.orderList[3],(function(i,s){return e("v-uni-view",{key:i.id,staticClass:"order"},[e("v-uni-view",{staticClass:"top"},[e("v-uni-view",{staticClass:"left"},[e("u-icon",{attrs:{name:"home",size:30,color:"rgb(94,94,94)"}}),e("v-uni-view",{staticClass:"store"},[t._v(t._s(i.store))]),e("u-icon",{attrs:{name:"arrow-right",color:"rgb(203,203,203)",size:26}})],1),e("v-uni-view",{staticClass:"right"},[t._v(t._s(i.deal))])],1),t._l(i.goodsList,(function(i,s){return e("v-uni-view",{key:s,staticClass:"item"},[e("v-uni-view",{staticClass:"left"},[e("v-uni-image",{attrs:{src:i.goodsUrl,mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"title u-line-2"},[t._v(t._s(i.title))]),e("v-uni-view",{staticClass:"type"},[t._v(t._s(i.type))]),e("v-uni-view",{staticClass:"delivery-time"},[t._v("发货时间 "+t._s(i.deliveryTime))])],1),e("v-uni-view",{staticClass:"right"},[e("v-uni-view",{staticClass:"price"},[t._v("¥"+t._s(t.priceInt(i.price))),e("v-uni-text",{staticClass:"decimal"},[t._v("."+t._s(t.priceDecimal(i.price)))])],1),e("v-uni-view",{staticClass:"number"},[t._v("x"+t._s(i.number))])],1)],1)})),e("v-uni-view",{staticClass:"total"},[t._v("共"+t._s(t.totalNum(i.goodsList))+"件商品 合计:"),e("v-uni-text",{staticClass:"total-price"},[t._v("¥"+t._s(t.priceInt(t.totalPrice(i.goodsList)))+"."),e("v-uni-text",{staticClass:"decimal"},[t._v(t._s(t.priceDecimal(t.totalPrice(i.goodsList))))])],1)],1),e("v-uni-view",{staticClass:"bottom"},[e("v-uni-view",{staticClass:"more"},[e("u-icon",{attrs:{name:"more-dot-fill",color:"rgb(203,203,203)"}})],1),e("v-uni-view",{staticClass:"logistics btn"},[t._v("查看物流")]),e("v-uni-view",{staticClass:"exchange btn"},[t._v("卖了换钱")]),e("v-uni-view",{staticClass:"evaluate btn"},[t._v("评价")])],1)],2)})),e("u-loadmore",{attrs:{status:t.loadStatus[3],bgColor:"#f2f2f2"}})],2)],1)],1)],1)],1)],1)},r=[]},a8c4:function(t,i,e){var s=e("1b5a");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=e("4f06").default;a("7c650738",s,!0,{sourceMap:!1,shadowMode:!1})},c553:function(t,i,e){"use strict";var s=e("3875"),a=e.n(s);a.a},e10f:function(t,i,e){"use strict";e.r(i);var s=e("194b"),a=e.n(s);for(var r in s)"default"!==r&&function(t){e.d(i,t,(function(){return s[t]}))}(r);i["default"]=a.a}}]);
|