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

p2p网站建设源码毕业设计网站设计说明书

p2p网站建设源码,毕业设计网站设计说明书,如何入侵网站后台,平面设计网站首页首先我们来分析下UI小妹发来的产品原型图#xff1a; 微信小程序商品分类页需要实现 1.单击左边的商品类目#xff0c;右侧实现联动跳转到对应商品类目标题#xff1b; 2.触屏拖动右侧商品列表#xff0c;右侧跳转到对应商品类目#xff1b; 2.分析需求我们可以把屏幕分…首先我们来分析下UI小妹发来的产品原型图 微信小程序商品分类页需要实现 1.单击左边的商品类目右侧实现联动跳转到对应商品类目标题 2.触屏拖动右侧商品列表右侧跳转到对应商品类目 2.分析需求我们可以把屏幕分为以下部分主要使用到view scroll-view代码结构和分解图如下 view!--搜索框--view/view!--商品类别.商品列表--view!--left--scroll-view/scroll-view!--right--scroll-view/scroll-view/view /view 3.搜索view比较简单在这里就不在阐述主要实现商品类别和商品列表的交互。 scroll-view使用到的属性 scroll-y允许纵向滚动需要设置高度。 scroll-with-animation在设置滚动条位置时使用动画过渡。 scroll-top设置竖向滚动条位置商品列表上下滑动时动态变更位置。 scroll-into-view值应为某子元素idid不能以数字开头。设置哪个方向可滚动则在哪个方向滚动到该元素。 代码实现最后结果如下 1.test.wxml //******************************************************* //* 微信版蚂蚁森林上线了微信搜蚂蚁森林立即体验 * //*******************************************************view classcontainerview styleheight: 100rpx;/viewview classVerticalBox!--left--scroll-view classVerticalNav nav scroll-y scroll-with-animation scroll-top{{navTop}} styleheight:calc(100vh - 100rpx)view classcu-item {{indexTabCur?text-green cur:}} wx:for{{dRes}} wx:keythis bindtaptabSelect data-id{{index}}{{item._name}}/view/scroll-view!--right--scroll-view classVerticalMain scroll-y scroll-with-animation styleheight:calc(100vh - 100rpx) scroll-into-viewmain-{{titleCur}} bindscrollVerticalMainview classpadding-lr wx:for{{dRes}} wx:keythis idmain-{{index}}!--标题--view classcu-barview classaction iconfont icon-icon_collect {{item._name}/view/view!--列--block wx:if{{item.res.length0}}template ishotSelling wx:for{{item.res}} wx:keythis data{{item}}/template/blockblock wx:elseview styleheight: 300rpx;line-height: 300rpx;text-align: center;color:gray;本类目无/view/block/view/scroll-view/view /view 2.test.wxss .VerticalBox {display: flex;width: 100vw;}.VerticalNav.nav {width: 200rpx;white-space: initial;}.VerticalNav.nav .cu-item {width: 100%;text-align: center;background-color: #fff;margin: 0;border: none;height: 50px;line-height: 50px;position: relative;}.VerticalNav.nav .cu-item.cur {background-color: #f1f1f1;}.text-green {color: #39b54a;font-weight: bold;}.VerticalNav.nav .cu-item.cur::after {content: ; width: 18rpx;height: 40rpx;border-radius: 10rpx 0 0 10rpx;position: absolute;background-color: currentColor;top: 0;right: 0rpx;bottom: 0;margin: auto;}.VerticalMain {background-color: #f1f1f1;}.padding-top {padding-top: 30rpx;}.padding-lr {padding-left: 20rpx;padding-right: 20rpx;}.cu-bar {display: flex;position: relative;align-items: center;min-height: 100rpx;justify-content: space-between;position: relative;background-color: white;color: #666666;margin-bottom: 2rpx;background-image: linear-gradient(rgb(0, 180, 230), rgb(250, 250, 250));}.cu-bar .action {display: flex;align-items: center;height: 100%;justify-content: center;max-width: 100%;} 3.test.js //******************************************************* //* 微信版蚂蚁森林上线了微信搜蚂蚁森林立即体验 * //*******************************************************// 微信版蚂蚁森林https://developers.weixin.qq.com/community/personal/oCJUswzZJO5lZcMDd3mKoDAClVdo const app getApp() Page({data: {TabCur: 0, //当前点击TabtitleCur: 0,//标题指引navTop: 0,load: true,dRes: [],},tabSelect(e) {let i Number(e.currentTarget.dataset.id)this.setData({TabCur: i,titleCur: i,navTop: (i - 1) * 50})},VerticalMain(e) {let self this;let dRes this.data.dRes;let tabHeight 0;if (this.data.load) {for (let i 0; i dRes.length; i) {let view wx.createSelectorQuery().select(#main- i);view.fields({size: true}, data {dRes[i].top tabHeight;tabHeight tabHeight data.height;dRes[i].bottom tabHeight;}).exec()}self.setData({load: false,dRes: dRes})}let scrollTop e.detail.scrollTop 20;for (let i 0; i dRes.length; i) {if (scrollTop dRes[i].top scrollTop dRes[i].bottom) {that.setData({navTop: (i - 1) * 50,TabCur: i})return false}}} })
http://www.hkea.cn/news/14430255/

相关文章:

  • 怎么看别人网站怎么做的个人网站主页模板
  • 做网站卖赚钱吗腾讯企业邮箱登录入口下载
  • 做商城网站那个好wordpress图片缝隙
  • 如何做网站内容管理有做网站动态效果软件
  • 申请域名之后如何做网站小企业网站建设制作平台
  • 英铭网站建设襄阳seo费用
  • 站酷logo设计商城网站建设策划方案
  • l临沂互助系统网站开发奎文营销型网站建设
  • 济南网站优化厂家支付行业的网站怎么做
  • 海南高端网站建设网站建设主机耗电量
  • 外贸网站建设的败笔怎样做个做外贸的网站
  • 设计网站公司搜索y湖南岚鸿知名南京网站建设知识
  • 请多记几个本站域名防止失联南宁网约车租赁公司
  • 厦门建设工程信息造价网站邢台网站改版开发
  • 网站推广服务好公司排名网站词库怎么做
  • 如何为企业做网站成都网站建设冠辰哪家强
  • 广州网站建设建设网站设计方案和技巧
  • 河南生产型企业网站建设肇东网页设计
  • 百石网怎么做网站做网站学好哪些软件
  • 韩国食品网站设计欣赏wordpress动静分离
  • 单页设计网站app网站平台建设方案
  • 网站怎么百度收录天津哪里能做网站
  • 邢台营销型网站建设济南市建设行政主管部门网站
  • jsp网站 值班功能惠州市seo上词
  • 廊坊网站关键词优化网站ui案例
  • 网站系统建设系广告经营者青岛城乡建设局网站首页
  • 网站建设人员潍坊做网站潍坊做网站
  • 济南网站建设推荐q479185700上快甘肃高端建设网站
  • 前端网站开发心得体会seo工程师招聘
  • 网站建设和梅州建站