当前位置: 首页 > news >正文

个人快速建站建设个人网站用什么软件

个人快速建站,建设个人网站用什么软件,会网站建设如何找工作,销售网站建设怎么做其它都是正常的#xff0c;就是拉上去拉下来自己又回弹回去了#xff0c;拉不到最底部也拉不到最顶部#xff0c;拉来拉去都会是这样的category/index.vueimport CategoryHeader from ./header;import CategoryTab from ./tab;import CategoryConte…其它都是正常的就是拉上去拉下来自己又回弹回去了拉不到最底部也拉不到最顶部拉来拉去都会是这样的category/index.vueimport CategoryHeader from ./header;import CategoryTab from ./tab;import CategoryContent from ./content;export default {name: Category,components: {CategoryHeader,CategoryTab,CategoryContent},data(){return{curId: }},methods:{getCurrentId(id){this.curId  id;}}};import ~assets/scss/mixins;.category{overflow: hidden;width:100%;height:100%;background-color:$bgc-theme;}.g-content-container{display:flex;}.sidebar{width: 80px;height:100%;}.main{flex:1;height:100%;}tab.vueclasstab-item:class{tab-item-active: item.id  curId}v-for(item,index) in items:keyindexclickswitchTab(item.id){{item.name}}import MeScroll from base/scroll;import {categoryNames} from ./config;export default {name:CategoryTab,components: {MeScroll},data() {return {curId:};},// 因为数据只需要赋值一次所以就把数据写在methods的init()里created(){this.init();this.switchTab(this.items[0].id);},methods:{init(){this.itemscategoryNames;},switchTab(id){if(this.curId  id){return;}this.curId  id;this.$emit(switch-tab,id)}}};import ~assets/scss/mixins;$tab-item-height: 46px;.tab {width: 100%;-item {height: $tab-item-height;background-color: #fff;border-right: 1px solid $border-color;border-bottom: 1px solid $border-color;color: #080808;font-size: $font-size-l;font-weight: bold;text-align: center;line-height: $tab-item-height;include ellipsis();:last-child {border-bottom: none;}-active {background: none;border-right: none;color: #f23030;}}}base/scroll/index.vue// 滚动条也是使用swiper插件import { swiper, swiperSlide } from vue-awesome-swiper;import MeLoading from base/loading;import {PULL_DOWN_HEIGHT,PULL_DOWN_TEXT_INIT,PULL_DOWN_TEXT_START,PULL_DOWN_TEXT_ING,PULL_DOWN_TEXT_END,PULL_UP_HEIGHT,PULL_UP_TEXT_INIT,PULL_UP_TEXT_START,PULL_UP_TEXT_ING,PULL_UP_TEXT_END} from ./config;export default {components: {swiper,swiperSlide,MeLoading},props: {scrollbar: {type: Boolean,default: true},//这个data是接收data: {type: [Array, Object]},pullDown: {type: Boolean,default: false},pullUp: {type: Boolean,default: false}},watch: {data() {this.update();}},created(){this.init();},methods: {update() {// 外部调用的api//如果它存在的话再调用swiper下面的update()this.$refs.swiper  this.$refs.swiper.swiper.update();},scrollToTop(speed,runCallbacks) {// 不是什么回到顶部而是返回到第一个幻灯片this.$refs.swiper  this.$refs.swiper.swiper.slideTo(0,speed,runCallbacks)},init(){this.pulling false;this.pullDownText PULL_DOWN_TEXT_INIT;this.pullUpText PULL_UP_TEXT_INIT;this.swiperOption {direction: vertical,slidesPerView: auto, //一页能看几张图片auto是自适应freeMode: true, //如果设置了这个大力滑可以滑很远setWrapperSize: true, //自动给sliderwrapper设置高度scrollbar: {el: this.scrollbar ? .swiper-scrollbar : null,hide: true //是否自动隐藏},on: {sliderMove: this.scroll,touchEnd: this.touchEnd,transitionEnd:this.scrollEnd}}},// 内部自己使用的scroll() {//this.$refs.swiper是通过refs找到这个组件//后面的.swiper就是找到它组件的对象swiper里又很多的属性const swiper  this.$refs.swiper.swiper;// 传什么时候显示返回顶部按钮什么时候隐藏this.$emit(scroll,swiper.translate,this.$refs.swiper.swiper);if (this.pulling) {return;}if (swiper.translate  0) {//大于0就是下拉if (!this.pullDown) {return;}if (swiper.translate  PULL_DOWN_HEIGHT) {this.$refs.pullDownLoading.setText(PULL_DOWN_TEXT_START);} else {this.$refs.pullDownLoading.setText(PULL_DOWN_TEXT_INIT);}} //下拉//判断是否到达底部else if (swiper.isEnd) {if (!this.pullUp) {return;}const isPullUp Math.abs(swiper.translate)  swiper.height - PULL_UP_HEIGHT parseInt(swiper.$wrapperEl.css(height)); //判断是否到达上拉的触发条件//abs的意思是绝对值if (isPullUp) {this.$refs.pullUpLoading.setText(PULL_UP_TEXT_START);} else {this.$refs.pullUpLoading.setText(PULL_UP_TEXT_INIT);}}},//滑动停止后触发的事件scrollEnd(){this.$emit(scroll-end,this.$refs.swiper.swiper.translate,this.$refs.swiper.swiper,this.pulling);},touchEnd() {if (this.pulling) {return;}const swiper  this.$refs.swiper.swiper;if (swiper.translate  PULL_DOWN_HEIGHT) {//下拉if (!this.pullDown) {return;}this.pulling  true;swiper.allowTouchMove  false; //正在加载时禁止触摸swiper.setTransition(swiper.params.speed); //通过参数找到初始的速度swiper.setTranslate(PULL_DOWN_HEIGHT); //拖过头了就移动到100的位置swiper.params.virtualTranslate  true; //定住不给回弹this.$refs.pullDownLoading.setText(PULL_DOWN_TEXT_ING);this.$emit(pull-down, this.pullDownEnd);}//上拉,判断是否到底部else if(swiper.isEnd){const totalHeight  parseInt(swiper.$wrapperEl.css(height));const isPullUp   Math.abs(swiper.translate)  swiper.height - PULL_UP_HEIGHT totalHeight; //判断是否满足触发的条件if(isPullUp){//上拉if(!this.pullUp){return;}this.pulling  true;//正在加载中不能够继续加载swiper.allowTouchMove  false;//禁止触摸swiper.setTranslate(-(totalHeight  PULL_UP_HEIGHT - swiper.height));swiper.params.virtualTranslate  true;//定住不给回弹this.$refs.pullUpLoading.setText(PULL_UP_TEXT_ING);this.$emit(pull-up,this.pullUpEnd);}}},pullDownEnd() {//下拉后恢复原值const swiper  this.$refs.swiper.swiper;this.pulling  false;this.$refs.pullDownLoading.setText(PULL_DOWN_TEXT_END);swiper.params.virtualTranslate  false; //开始可以回弹swiper.allowTouchMove  true; //可以触摸swiper.setTransition(swiper.params.speed);swiper.setTranslate(0); //回到0的位置console.log(swiper.params)// 下拉回弹后显示headersetTimeout(() {this.$emit(pull-down-transition-end);},swiper.params.speed);},pullUpEnd(){//上拉后恢复原值const swiper  this.$refs.swiper.swiper;this.pulling  false;this.$refs.pullUpLoading.setText(PULL_UP_TEXT_END);swiper.params.virtualTranslate  false;//开始可以回弹swiper.allowTouchMove  true;}}};.swiper-container {overflow: hidden;width: 100%;height: 100%;}.swiper-slide {height: auto;}.mine-scroll-pull-up,.mine-scroll-pull-down {position: absolute;left: 0;width: 100%;}.mine-scroll-pull-down {bottom: 100%;height: 80px;}.mine-scroll-pull-up {top: 100%;height: 30px;}
http://www.zqtcl.cn/news/410975/

相关文章:

  • 一般做网站都在什么网做wordpress轮播图设置
  • 深圳装饰公司网站thinkphp 网站根目录地址
  • 购物网站建设资讯原创文章代写
  • 门票预订网站建设wordpress siren主题
  • 单位建设网站装修公司需要什么资质
  • 做做做网站做网站赚外快
  • 网站备案后应该做什么网站流量监测
  • 开发网站用什么语言做名片的网站叫什么来着
  • 织梦做网站好不好iis中的网站启动不了
  • 临汾住房与城乡建设厅网站迎访问中国建设银行网站_
  • 织梦做的网站首页幻灯片怎么不能显示北大青鸟网站建设课程
  • 做淘客的网站有哪些延安市住建建设网站
  • 南京林业大学实验与建设网站现在都用什么软件搜索附近的人
  • 建站系统wordpress下载亚马逊雨林十大恐怖生物
  • 凡科网做网站怎么样专业团队电影
  • 有什么有趣的网站移动网站排名怎么做
  • 深圳网站建设专家wordpress 4.5下载地址
  • 网站建设公司公司我我提供一个平台wordpress如何去版权信息
  • seo怎么给网站做外链受欢迎的网站建设教程
  • 网站建设使用多语言河南电商网站设计
  • 网站搭建有免费的吗网站地图生成代码
  • 建设公司网站要注意什么投资小利润高的小生意
  • 网站建设需要做哪些工作做胃镜需那好天津津门网站A
  • 做网站申请域名的流程辽宁省工程造价网
  • 网站系统维护一般多长时间金华高端网站设计
  • 做网站公司销售开场白企业网站规划与开发
  • 兰州新区建站不锈钢网站建设
  • 淘宝小网站怎么做的电商网站有哪些
  • 哪些网站可以做画赚钱wordpress go跳转页
  • 怎么做新网站上线通稿深圳罗湖区网站建设公司