UNPKG

vaneditor

Version:

``` 移动端ui框架统一用uView,css扩展语言用scss,全局数据管理vuex,统一样式主体风格颜色定义/src/uni.scss ```

1 lines 8.27 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-route-list"],{2034:function(t,e,a){"use strict";var n=a("4086"),i=a.n(n);i.a},4086:function(t,e,a){var n=a("94b8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("389054c0",n,!0,{sourceMap:!1,shadowMode:!1})},"5b82":function(t,e,a){"use strict";a.r(e);var n=a("d739"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"94b8":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".routeMain[data-v-0098da0c]{width:%?750?%}.routeMain .list[data-v-0098da0c]{overflow:hidden;background:#f9f9f9;padding:%?10?% %?20?% %?10?% %?30?%}.routeMain .routeList[data-v-0098da0c]{overflow:hidden;float:left;width:%?340?%;margin-right:%?10?%}.routeMain .routeContent[data-v-0098da0c]{width:%?340?%;background:#fff;border-radius:%?6?%;overflow:hidden;float:left;margin-bottom:%?20?%;box-shadow:0 0 %?20?% rgba(0,0,0,.1)}.routeMain .routeContent[data-v-0098da0c]:nth-child(2n){margin-right:0}.routeMain .routeContent uni-image[data-v-0098da0c]{width:%?340?%;height:%?223?%;border-radius:%?6?% %?6?% 0 0;overflow:hidden}.routeMain .routeContent .box[data-v-0098da0c]{position:relative}.routeMain .routeContent .box .mask[data-v-0098da0c]{position:absolute;top:%?157?%;width:%?340?%;height:%?66?%;line-height:%?66?%;padding:0 %?12?%;color:#fff;font-size:%?25?%;background:linear-gradient(180deg,transparent,rgba(0,0,0,.54))}.routeMain .routeContent .routeDetail[data-v-0098da0c]{padding:%?9?% %?12?% %?17?%;box-sizing:border-box}.routeMain .routeContent .routeDetail .contentTitle[data-v-0098da0c]{font-size:%?24?%;line-height:%?32?%;color:#333;padding-bottom:%?10?%;word-break:break-all}.routeMain .routeContent .routeDetail .labelList[data-v-0098da0c]{height:%?36?%;overflow:hidden;padding-bottom:%?15?%}.routeMain .routeContent .routeDetail .label[data-v-0098da0c]{display:inline-block;font-size:%?24?%;color:#ff740b;border:%?1?% #ff740b solid;border-radius:%?8?%;padding:%?2?% %?9?%;line-height:%?32?%;margin:0 %?10?% %?15?% 0}.routeMain .routeContent .routeDetail .pirce[data-v-0098da0c]{font-weight:700;font-size:%?42?%;line-height:%?42?%;color:#fc4747}.routeMain .routeContent .routeDetail .pirce span[data-v-0098da0c]{font-size:%?24?%}.routeMain .end[data-v-0098da0c]{overflow:hidden;padding:20px 0;text-align:center;font-size:%?28?%}",""])},"95f1":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"routeMain"},[a("search",{attrs:{name:t.name,menu:t.menu},on:{nameInput:function(e){e=t.$handleEvent(e),t.nameInput(e)},search:function(e){e=t.$handleEvent(e),t.querySearchData(e)},confirm:function(e){e=t.$handleEvent(e),t.confirm(e)},reset:function(e){e=t.$handleEvent(e),t.reset(e)}}}),a("v-uni-view",{staticClass:"list"},t._l(t.dataList,(function(e,n,i){return a("ul",{key:i,staticClass:"routeList"},t._l(e,(function(e,n){return a("li",{key:n,staticClass:"routeContent"},[a("v-uni-navigator",{staticClass:"box",attrs:{url:"/pages/route/detail?id="+e.productId}},[a("v-uni-image",{attrs:{src:t.$getImg(e.cover),mode:"aspectFill"}}),a("v-uni-view",{staticClass:"mask"},[t._v("已有"+t._s(e.totalSale)+"人出游")]),a("v-uni-view",{staticClass:"routeDetail"},[a("v-uni-view",{staticClass:"contentTitle"},[t._v(t._s(e.productName))]),e.lineTypeName.length>0?a("v-uni-view",{staticClass:"labelList"},t._l(e.lineTypeName,(function(e,n){return a("v-uni-view",{key:n,staticClass:"label"},[t._v(t._s(e))])})),1):t._e(),e.referPrice?a("v-uni-view",{staticClass:"pirce"},[a("span",[t._v("¥")]),t._v(t._s(e.referPrice)),a("span",{staticStyle:{"font-weight":"normal","padding-left":"10upx",color:"#666"}},[t._v("起")])]):t._e()],1)],1)],1)})),0)})),0),t.end&&!t.page.loading?a("p",{staticClass:"end"},[t._v("没有更多")]):t._e(),t.page.loading?a("uni-load-more",{attrs:{status:"loading"}}):t._e(),a("scroll-top")],1)},i=[];a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i}))},d739:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("8e6e"),a("ac6a"),a("456d");var i=n(a("bd86"));a("96cf");var r=n(a("3b8d"));a("28a5");var o=n(a("1427")),s=n(a("09c2")),u=a("cc87");function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(a,!0).forEach((function(e){(0,i.default)(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var l={data:function(){return{name:"",lineType:"",playDays:"",sortType:"4",page:{pageSize:10,currentPage:1,count:0,loading:!1},count:0,end:!1,dataList:{dataList1:[],dataList2:[]},list:[],menu:[{title:"线路类型",detailList:[{name:"",code:""}]},{title:"线路天数",detailList:[{name:"",code:""}]},{title:"综合排序",style:"columnar",detailList:[{name:"默认",code:"4"},{name:"销量高到低",code:"1"},{name:"价格高到低",code:"2"},{name:"价格低到高",code:"3"},{name:"评分高到低",code:"6"}]}]}},components:{search:o.default,uniLoadMore:s.default},onReady:function(){this.$wxShare("畅游金华 游玩线路","金华本地旅游生活体验,新鲜好玩,惊喜不断!",window.location.hash.split("#")[1])},onLoad:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,u.getListByCode)("","/weChat/lineOrder/queryLineTypes",!0);case 2:return this.menu[0].detailList=t.sent,t.next=5,(0,u.getLIstByCodeSimple)("playDate");case 5:this.menu[1].detailList=t.sent,this.querySearchData();case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onPullDownRefresh:function(){this.dataList.dataList1=[],this.dataList.dataList2=[],this.page.currentPage=1,this.queryData("refresh")},onReachBottom:function(){this.dataList.dataList1.length+this.dataList.dataList2.length<this.count&&this.queryData()},methods:{mountMenu:function(t){var e=this,a=t||0,n=uni.createSelectorQuery().in(this);n.selectAll(".routeList").boundingClientRect((function(t){if(e.list.length>a){var n=t[0].height,i=t[1].height;n<=i?e.dataList["dataList1"].push(e.list[a]):e.dataList["dataList2"].push(e.list[a]),e.$nextTick((function(){e.mountMenu(a+1)}))}})).exec()},querySearchData:function(){this.list=[],this.dataList.dataList1=[],this.dataList.dataList2=[],this.page.currentPage=1,this.queryData()},confirm:function(t){0===t.index?this.lineType=t.code||"":1===t.index?this.playDays=t.code||"":2===t.index&&(this.sortType=t.code||""),this.querySearchData()},reset:function(t){0===t?this.lineType="":1===t?this.playDays="":2===t&&(this.sortType="4"),this.querySearchData()},nameInput:function(t){this.name=t.target.value},queryData:function(t){var e=this;this.page.loading=!0,this.$ajax({method:"post",url:"/weChat/lineOrder/queryPage",data:c({},this.page,{productName:this.name||"",lineType:this.lineType||"",playDays:this.playDays||"",sortType:this.sortType||"4"})}).then((function(a){e.list.push.apply(e.list,e.renderData(a.data)),e.list.map((function(t){if(!(t.productName.length>23))return t.productName;t.productName=t.productName.substr(0,23)+"..."})),e.page.loading=!1,e.count=a.count,e.list.length+e.dataList.dataList1.length+e.dataList.dataList2.length>=e.count&&(e.end=!0),e.page.currentPage+=1,"refresh"===t&&uni.stopPullDownRefresh(),e.$nextTick((function(){e.mountMenu()}))}))},renderData:function(t){return t.map((function(t){return c({},t,{productId:t.productId,productName:t.productName,cover:t.cover,lineTypeName:t.lineTypeName?t.lineTypeName.split(","):[]})}))}}};e.default=l},faa7:function(t,e,a){"use strict";a.r(e);var n=a("95f1"),i=a("5b82");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("2034");var o=a("2877"),s=Object(o["a"])(i["default"],n["a"],n["b"],!1,null,"0098da0c",null);e["default"]=s.exports}}]);