UNPKG

vaneditor

Version:

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

1 lines 7.62 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-scenicTutorials-list"],{"0fc4":function(t,e,a){var i=a("6317");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("d287cf08",i,!0,{sourceMap:!1,shadowMode:!1})},"30b7":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"scenicTutorials"},[a("v-uni-view",{staticClass:"search-box"},[a("div",{staticClass:"searchPosition"},[a("search",{attrs:{name:t.form.bodyName,isFixed:!1,placeholder:"搜索景区名称"},on:{search:function(e){e=t.$handleEvent(e),t.querySearchData(e)},nameInput:function(e){e=t.$handleEvent(e),t.nameInput(e)}}})],1)]),a("v-uni-view",{staticClass:"main2"},[a("ul",{staticClass:"beauty-list"},[t._l(t.list,(function(e){return a("li",{key:e.id,staticClass:"beauty-item",on:{click:function(a){a=t.$handleEvent(a),t.handleClick(e)}}},[a("v-uni-view",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v(t._s(e.name))]),a("div",{staticClass:"imgBox"},[a("v-uni-image",{staticClass:"img",attrs:{src:t.$getImg(e.coverImagesUrl),mode:"aspectFill"}})],1),a("p",{directives:[{name:"show",rawName:"v-show",value:e.rank&&1!==e.rank,expression:"item.rank && item.rank !== 1"}],staticClass:"star"},t._l(e.rank,(function(e){return a("span",{key:e},[t._v("A")])})),0)])],1)})),a("div",{staticClass:"clear"})],2),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()],1),a("scroll-top")],1)},n=[];a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return n}))},"30ec":function(t,e,a){"use strict";var i=a("0fc4"),n=a.n(i);n.a},"41b9":function(t,e,a){"use strict";a.r(e);var i=a("c0ca"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},6317:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".scenicTutorials[data-v-7a78510c]{font-size:%?28?%;width:%?750?%}.scenicTutorials .header[data-v-7a78510c]{position:relative;height:%?475?%}.scenicTutorials .header img[data-v-7a78510c]{width:100%}.scenicTutorials .header .headerImg[data-v-7a78510c]{width:100%;height:100%;overflow:hidden}.scenicTutorials .search-box[data-v-7a78510c]{position:relative;z-index:2000;top:0;left:0;width:%?750?%;height:%?95?%;box-sizing:border-box;border-radius:%?35?%}.scenicTutorials .search-box>.searchPosition[data-v-7a78510c]{position:relative;top:%?-10?%;background:transparent}.scenicTutorials .search-box .topLeft[data-v-7a78510c]{position:absolute;left:0;top:%?-6?%;width:%?154?%;height:%?164?%}.scenicTutorials .search-box[data-v-7a78510c] .search{background:transparent}.scenicTutorials .search-box[data-v-7a78510c] .search .searchContent{background:transparent}.scenicTutorials .search-box[data-v-7a78510c] .search .menuList{border:0}.scenicTutorials .main[data-v-7a78510c]{position:relative;top:%?-146?%;width:100%;overflow:hidden;background:#fff;border-radius:%?49?% %?49?% %?1?% %?1?%}.scenicTutorials .main2[data-v-7a78510c]{position:relative;top:0;width:100%;overflow:hidden;background:#fff}.scenicTutorials .beauty-list[data-v-7a78510c]{width:100%;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;-webkit-flex-direction:column;flex-direction:column;position:relative;padding-top:%?30?%}.scenicTutorials .beauty-list .beauty-item[data-v-7a78510c]{box-sizing:border-box;width:100%;position:relative;background-color:#fff;padding:%?0?% %?30?% %?20?%}.scenicTutorials .beauty-list .item[data-v-7a78510c]{position:relative;background-color:#fff;box-shadow:0 %?5?% %?18?% 0 rgba(0,0,0,.13);border-radius:%?6?%;overflow:hidden}.scenicTutorials .beauty-list .item .name[data-v-7a78510c]{position:absolute;bottom:%?20?%;font-size:%?32?%;font-weight:600;display:inline-block;width:%?690?%;height:%?45?%;line-height:%?45?%;letter-spacing:0;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:99;text-align:center}.scenicTutorials .beauty-list .item .imgBox[data-v-7a78510c]{width:%?690?%;height:%?380?%;overflow:hidden;position:relative}.scenicTutorials .beauty-list .item .imgBox .img[data-v-7a78510c]{width:100%;height:100%}.scenicTutorials .beauty-list .item .star[data-v-7a78510c]{position:absolute;left:0;top:0;height:%?36?%;line-height:%?36?%;background:#324c6a;color:#fff;letter-spacing:1px;padding:0 %?12?%;border-radius:%?6?% 0 %?16?% 0}.end[data-v-7a78510c]{text-align:center;font-size:%?28?%;padding:%?20?%}",""])},"92b3":function(t,e,a){"use strict";a.r(e);var i=a("30b7"),n=a("41b9");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("30ec");var o=a("2877"),s=Object(o["a"])(n["default"],i["a"],i["b"],!1,null,"7a78510c",null);e["default"]=s.exports},c0ca:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("8e6e"),a("ac6a"),a("456d"),a("28a5");var n=i(a("bd86")),r=i(a("09c2")),o=i(a("1427"));function s(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?s(a,!0).forEach((function(e){(0,n.default)(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var l={data:function(){return{headerImg:"http://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/beautyGuide.png",headerJumpUrl:"",city:{name:"",code:""},actions:[],showSheet:!1,isFixed:!1,form:{name:"",districtCode:""},end:!1,page:{pageSize:10,currentPage:1,count:0,loading:!1},list:[]}},components:{uniLoadMore:r.default,search:o.default},onLoad:function(t){this.cityCode=t.cityCode||"",this.getHeaderImg(),this.queryData()},onPullDownRefresh:function(){this.list=[],this.page.currentPage=1,this.queryData("refresh")},onReachBottom:function(){this.list.length<this.page.count&&this.queryData()},destroyed:function(){},methods:{handleClick:function(t){uni.navigateTo({url:"/pages/scenicTutorials/detail?id=".concat(t.id)})},nameInput:function(t){this.form.name=t.target.value||""},querySearchData:function(){this.page.currentPage=1,this.list=[],this.finished=!1,this.queryData()},queryData:function(t){var e=this;this.page.loading=!0,this.$ajax({method:"post",url:"/weChat/cms/scenicspot/queryPage",data:c({},this.form,{},this.page,{cityCode:this.cityCode,isSelling:0})}).then((function(a){e.page.count=a.count,e.list.push.apply(e.list,e.renderData(a.data)),e.list.length>=e.page.count&&(e.end=!0),e.page.currentPage+=1,"refresh"===t&&uni.stopPullDownRefresh(),e.page.loading=!1}))},getHeaderImg:function(){var t=this;this.$ajax({method:"post",url:"/weChat/sowing/querySowingProduct",data:{areaNumbers:"JH-JQLB-001"}}).then((function(e){var a=e.data["JH-JQLB-001"]||"";t.headerImg=a[0]?t.$getImg(a[0].imageUrl):t.headerImg,t.headerJumpUrl=a[0]?a[0].jumpUrl:t.headerJumpUrl})).catch((function(t){}))},handleScroll:function(){var t=this;this.$nextTick((function(){var e=document.documentElement.scrollTop||document.body.scrollTop;if(document.querySelector("#search")){var a=document.querySelector("#search").offsetTop;t.isFixed=e>=a}}))},renderData:function(t){return t.map((function(t){return c({},t,{photos:t.photoImagesUrls.split(","),rank:void 0===t.rank?"":t.rank<=5?t.rank:5})}))}}};e.default=l}}]);