Showing
17 changed files
with
168 additions
and
15 deletions
| @@ -6,6 +6,7 @@ | @@ -6,6 +6,7 @@ | ||
| 6 | "pages/rank/rank", | 6 | "pages/rank/rank", |
| 7 | "pages/seller/seller", | 7 | "pages/seller/seller", |
| 8 | "pages/seller/s_detail", | 8 | "pages/seller/s_detail", |
| 9 | + "pages/pub/p_team", | ||
| 9 | "pages/question/question", | 10 | "pages/question/question", |
| 10 | "pages/person/person", | 11 | "pages/person/person", |
| 11 | "pages/person/p_list" | 12 | "pages/person/p_list" |
| @@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
| 12 | color:#fff; | 12 | color:#fff; |
| 13 | } | 13 | } |
| 14 | .orange-font{ | 14 | .orange-font{ |
| 15 | - color:#fe9401; | 15 | + color:#f3ab36; |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | /*字体大小*/ | 18 | /*字体大小*/ |
| @@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
| 77 | background:#353535; | 77 | background:#353535; |
| 78 | } | 78 | } |
| 79 | .bg-orange{ | 79 | .bg-orange{ |
| 80 | - background:#fe9401; | 80 | + background:#f3ab36; |
| 81 | } | 81 | } |
| 82 | .bg-gray{ | 82 | .bg-gray{ |
| 83 | background:#f7f7f7; | 83 | background:#f7f7f7; |
| @@ -22,7 +22,7 @@ Component({ | @@ -22,7 +22,7 @@ Component({ | ||
| 22 | iconactive:"/pages/image/dog-server-active.svg" | 22 | iconactive:"/pages/image/dog-server-active.svg" |
| 23 | }, | 23 | }, |
| 24 | { | 24 | { |
| 25 | - pagepath:"/pages/me/d_index", | 25 | + pagepath:"", |
| 26 | title:"发布", | 26 | title:"发布", |
| 27 | icon:"/pages/image/publish.svg" | 27 | icon:"/pages/image/publish.svg" |
| 28 | }, | 28 | }, |
| @@ -40,7 +40,8 @@ Component({ | @@ -40,7 +40,8 @@ Component({ | ||
| 40 | icon:"/pages/image/me.svg", | 40 | icon:"/pages/image/me.svg", |
| 41 | iconactive:"/pages/image/me-active.svg" | 41 | iconactive:"/pages/image/me-active.svg" |
| 42 | } | 42 | } |
| 43 | - ] | 43 | + ], |
| 44 | + pubactive:false, | ||
| 44 | 45 | ||
| 45 | 46 | ||
| 46 | }, | 47 | }, |
| @@ -54,6 +55,11 @@ Component({ | @@ -54,6 +55,11 @@ Component({ | ||
| 54 | }) | 55 | }) |
| 55 | 56 | ||
| 56 | }, | 57 | }, |
| 58 | + tabpub:function(){ | ||
| 59 | + this.setData({ | ||
| 60 | + pubactive:!this.data.pubactive | ||
| 61 | + }) | ||
| 62 | + }, | ||
| 57 | autotab:function(){ | 63 | autotab:function(){ |
| 58 | var tabbar=this.data.tabbar; | 64 | var tabbar=this.data.tabbar; |
| 59 | var idx=this.data.tabidx; | 65 | var idx=this.data.tabidx; |
| @@ -66,6 +72,14 @@ Component({ | @@ -66,6 +72,14 @@ Component({ | ||
| 66 | this.setData({ | 72 | this.setData({ |
| 67 | tabbar:tabbar | 73 | tabbar:tabbar |
| 68 | }) | 74 | }) |
| 75 | + }, | ||
| 76 | + gopubteam:function(){ | ||
| 77 | + this.setData({ | ||
| 78 | + pubactive:false, | ||
| 79 | + }) | ||
| 80 | + wx.navigateTo({ | ||
| 81 | + url:'/pages/pub/p_team' | ||
| 82 | + }) | ||
| 69 | } | 83 | } |
| 70 | } | 84 | } |
| 71 | }) | 85 | }) |
| @@ -7,10 +7,15 @@ | @@ -7,10 +7,15 @@ | ||
| 7 | </view> | 7 | </view> |
| 8 | </block> | 8 | </block> |
| 9 | <block wx:else> | 9 | <block wx:else> |
| 10 | - <view class="tabbar-pub bg-orange flex-cm"> | 10 | + <view class="tabbar-pub bg-orange flex-cm" bindtap="tabpub"> |
| 11 | <image src="{{item.icon}}" style="width:50rpx;height:50rpx;margin-left:10rpx;"></image> | 11 | <image src="{{item.icon}}" style="width:50rpx;height:50rpx;margin-left:10rpx;"></image> |
| 12 | </view> | 12 | </view> |
| 13 | </block> | 13 | </block> |
| 14 | </block> | 14 | </block> |
| 15 | </view> | 15 | </view> |
| 16 | 16 | ||
| 17 | +<view class="tablist fixed left right bottom {{pubactive==true ? 'tablist-active' : ''}}"> | ||
| 18 | + <view class="tab-block white-font font26r font-siny tab-team flex-cm" bindtap="gopubteam">遛呗</view> | ||
| 19 | + <view class="tab-block white-font font26r font-siny tab-pub flex-cm">秀呗</view> | ||
| 20 | +</view> | ||
| 21 | + |
| @@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
| 5 | padding:0 30rpx; | 5 | padding:0 30rpx; |
| 6 | box-sizing:border-box; | 6 | box-sizing:border-box; |
| 7 | box-shadow:0 -1px 5px rgba(0,0,0,.1); | 7 | box-shadow:0 -1px 5px rgba(0,0,0,.1); |
| 8 | + z-index:100; | ||
| 8 | } | 9 | } |
| 9 | .tabbar-block{ | 10 | .tabbar-block{ |
| 10 | 11 | ||
| @@ -21,4 +22,34 @@ | @@ -21,4 +22,34 @@ | ||
| 21 | height:65rpx; | 22 | height:65rpx; |
| 22 | border-radius:10rpx; | 23 | border-radius:10rpx; |
| 23 | margin-top:-14rpx; | 24 | margin-top:-14rpx; |
| 25 | +} | ||
| 26 | +.tablist{ | ||
| 27 | + width:120rpx; | ||
| 28 | + height:120rpx; | ||
| 29 | + margin:0 auto; | ||
| 30 | + z-index:99; | ||
| 31 | +} | ||
| 32 | +.tab-block{ | ||
| 33 | + width:90rpx; | ||
| 34 | + height:90rpx; | ||
| 35 | + border-radius:50%; | ||
| 36 | + background:rgba(0,0,0,.8); | ||
| 37 | + position:absolute; | ||
| 38 | + bottom:15rpx; | ||
| 39 | +} | ||
| 40 | +.tab-team{ | ||
| 41 | + left:15rpx; | ||
| 42 | + transition:left .3s ease,bottom .3s ease; | ||
| 43 | +} | ||
| 44 | +.tablist-active .tab-team{ | ||
| 45 | + left:-90rpx; | ||
| 46 | + bottom:210rpx; | ||
| 47 | +} | ||
| 48 | +.tab-pub{ | ||
| 49 | + right:15rpx; | ||
| 50 | + transition:right .3s ease,bottom .3s ease; | ||
| 51 | +} | ||
| 52 | +.tablist-active .tab-pub{ | ||
| 53 | + right:-90rpx; | ||
| 54 | + bottom:210rpx; | ||
| 24 | } | 55 | } |
| @@ -10,14 +10,14 @@ | @@ -10,14 +10,14 @@ | ||
| 10 | .top-tab-block{ | 10 | .top-tab-block{ |
| 11 | padding:0 24rpx; | 11 | padding:0 24rpx; |
| 12 | height:60rpx; | 12 | height:60rpx; |
| 13 | - border:1px solid #fe9401; | 13 | + border:1px solid #f3ab36; |
| 14 | box-sizing:border-box; | 14 | box-sizing:border-box; |
| 15 | } | 15 | } |
| 16 | .border-right-none{ | 16 | .border-right-none{ |
| 17 | border-right:0; | 17 | border-right:0; |
| 18 | } | 18 | } |
| 19 | .tab-block-active{ | 19 | .tab-block-active{ |
| 20 | - background:#fe9401; | 20 | + background:#ffa830; |
| 21 | } | 21 | } |
| 22 | .search{ | 22 | .search{ |
| 23 | height:100%; | 23 | height:100%; |
pages/image/add.svg
0 → 100644
| 1 | +<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1541053794538" class="icon" style="" viewBox="0 0 1030 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10507" xmlns:xlink="http://www.w3.org/1999/xlink" width="64.375" height="64"><defs><style type="text/css"></style></defs><path d="M979.774086 469.475083H551.122924V40.82392C551.122924 17.009967 530.710963 0 510.299003 0s-40.82392 17.009967-40.82392 40.82392v432.053156H40.82392C17.009967 469.475083 0 489.887043 0 510.299003s17.009967 40.82392 40.82392 40.823921h432.053156v432.053156c0 20.41196 17.009967 40.82392 40.823921 40.82392s40.82392-17.009967 40.82392-40.82392V551.122924H986.578073c20.41196 0 40.82392-17.009967 40.82392-40.823921s-23.813953-40.82392-47.627907-40.82392z" p-id="10508" fill="#ffffff"></path></svg> |
| 1 | -<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1540260084601" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3608" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><defs><style type="text/css"></style></defs><path d="M948.6 242.9c-67.1-33.4-138.6-50.4-212.7-50.4s-145.6 17-212.7 50.4l-2.3 1.1c-6 3-13 3-18.9 0l-2.3-1.1c-67.1-33.4-138.6-50.4-212.7-50.4s-145.6 17-212.7 50.4c-7.2 3.6-11.7 10.9-11.7 19v541.9c0 11.7 9.5 21.2 21.2 21.2h1.7c2.1 0 4.1-0.3 6.1-0.9 62.1-18.5 128.5-27.9 197.1-27.9 68.1 0 133.9 9.2 195.5 27.5l21.2 6.3c3.9 1.2 8.1 1.2 12 0l21.2-6.3c61.7-18.2 127.5-27.5 195.5-27.5 68.7 0 135 9.4 197.1 27.9 2 0.6 4 0.9 6.1 0.9h1.7c11.7 0 21.2-9.5 21.2-21.2V261.9c0.2-8-4.4-15.4-11.6-19z m-479.5 506c0 13.4-12.4 23.5-25.5 20.8-49.8-10.5-101.7-15.9-154.8-15.9-54.3 0-107.2 5.6-158.1 16.6-13.2 2.9-25.6-7.3-25.6-20.7V289c0-8.5 5.1-16.2 12.9-19.5 53.9-23 110.7-34.6 169.1-34.6 58.5 0 115.2 11.6 169.1 34.6 7.8 3.3 12.9 11 12.9 19.5v459.9z m448.8 0.7c0 13.5-12.4 23.6-25.6 20.7-50.8-11-103.8-16.6-158.1-16.6-53.1 0-105 5.3-154.8 15.9-13.2 2.8-25.5-7.3-25.5-20.8V289c0-8.5 5.1-16.2 12.9-19.5 53.9-23 110.7-34.6 169.1-34.6s115.2 11.6 169.1 34.6c7.8 3.3 12.9 11 12.9 19.5v460.6z" p-id="3609" fill="#fe9401"></path></svg> | ||
| 1 | +<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1540260084601" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3608" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><defs><style type="text/css"></style></defs><path d="M948.6 242.9c-67.1-33.4-138.6-50.4-212.7-50.4s-145.6 17-212.7 50.4l-2.3 1.1c-6 3-13 3-18.9 0l-2.3-1.1c-67.1-33.4-138.6-50.4-212.7-50.4s-145.6 17-212.7 50.4c-7.2 3.6-11.7 10.9-11.7 19v541.9c0 11.7 9.5 21.2 21.2 21.2h1.7c2.1 0 4.1-0.3 6.1-0.9 62.1-18.5 128.5-27.9 197.1-27.9 68.1 0 133.9 9.2 195.5 27.5l21.2 6.3c3.9 1.2 8.1 1.2 12 0l21.2-6.3c61.7-18.2 127.5-27.5 195.5-27.5 68.7 0 135 9.4 197.1 27.9 2 0.6 4 0.9 6.1 0.9h1.7c11.7 0 21.2-9.5 21.2-21.2V261.9c0.2-8-4.4-15.4-11.6-19z m-479.5 506c0 13.4-12.4 23.5-25.5 20.8-49.8-10.5-101.7-15.9-154.8-15.9-54.3 0-107.2 5.6-158.1 16.6-13.2 2.9-25.6-7.3-25.6-20.7V289c0-8.5 5.1-16.2 12.9-19.5 53.9-23 110.7-34.6 169.1-34.6 58.5 0 115.2 11.6 169.1 34.6 7.8 3.3 12.9 11 12.9 19.5v459.9z m448.8 0.7c0 13.5-12.4 23.6-25.6 20.7-50.8-11-103.8-16.6-158.1-16.6-53.1 0-105 5.3-154.8 15.9-13.2 2.8-25.5-7.3-25.5-20.8V289c0-8.5 5.1-16.2 12.9-19.5 53.9-23 110.7-34.6 169.1-34.6s115.2 11.6 169.1 34.6c7.8 3.3 12.9 11 12.9 19.5v460.6z" p-id="3609" fill="#666666"></path></svg> |
| @@ -41,5 +41,19 @@ Page({ | @@ -41,5 +41,19 @@ Page({ | ||
| 41 | count:200, | 41 | count:200, |
| 42 | } | 42 | } |
| 43 | ] | 43 | ] |
| 44 | + }, | ||
| 45 | + onLoad:function(){ | ||
| 46 | + | ||
| 47 | + }, | ||
| 48 | + onShow:function(){ | ||
| 49 | + | ||
| 50 | + }, | ||
| 51 | + petlist:function(e){ | ||
| 52 | + var index=e.currentTarget.dataset.idx; | ||
| 53 | + if(index==0){ | ||
| 54 | + wx.navigateTo({ | ||
| 55 | + url:'p_list' | ||
| 56 | + }) | ||
| 57 | + } | ||
| 44 | } | 58 | } |
| 45 | }) | 59 | }) |
| @@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
| 78 | </view> | 78 | </view> |
| 79 | <view class="me-middle bg-white flex-lr"> | 79 | <view class="me-middle bg-white flex-lr"> |
| 80 | <block wx:for="{{setting}}"> | 80 | <block wx:for="{{setting}}"> |
| 81 | - <view class="flex-vc"> | 81 | + <view class="flex-vc" bindtap="petlist" data-idx="{{index}}"> |
| 82 | <image src="{{item.iconurl}}" class="me-setting-icon"></image> | 82 | <image src="{{item.iconurl}}" class="me-setting-icon"></image> |
| 83 | <view class="black-font font24r font-siny">{{item.title}}</view> | 83 | <view class="black-font font24r font-siny">{{item.title}}</view> |
| 84 | </view> | 84 | </view> |
pages/pub/p_team.js
0 → 100644
pages/pub/p_team.json
0 → 100644
pages/pub/p_team.wxml
0 → 100644
| 1 | +<view class="pub-team flex-vl"> | ||
| 2 | + <input placeholder="请输入标题,不能多于20个字" placeholder-class="gray-font font26r font-siny" class="bg-white black-font font28r" maxlength="20"/> | ||
| 3 | + <view class="cut"></view> | ||
| 4 | + <textarea placeholder="请输入详细描述,不能多于500个字" placeholder-class="gray-font font26r font-siny" class="bg-white black-font font28r" maxlength="500"></textarea> | ||
| 5 | + <view class="select-picture bg-white flex-rs"> | ||
| 6 | + <view class="add-picture flex-cm"> | ||
| 7 | + <image src="/pages/image/add.svg" class="add-picture-icon"></image> | ||
| 8 | + </view> | ||
| 9 | + </view> | ||
| 10 | + <view class="cut"></view> | ||
| 11 | + <view class="pub-team-date flex-lr bg-white"> | ||
| 12 | + <view class="gray-deep-font font24r font-siny">2018-11-04 16:40</view> | ||
| 13 | + <image src="/pages/image/click.svg" class="click-icon"></image> | ||
| 14 | + </view> | ||
| 15 | + <view class="cut"></view> | ||
| 16 | + <view class="pub-team-address flex-lr bg-white"> | ||
| 17 | + <view class="gray-deep-font font24r font-siny">地点</view> | ||
| 18 | + <image src="/pages/image/click.svg" class="click-icon"></image> | ||
| 19 | + </view> | ||
| 20 | +</view> | ||
| 21 | +<view class="pub-button white-font bg-orange font30r font-siny flex-cm fixed left bottom">确认发布</view> |
pages/pub/p_team.wxss
0 → 100644
| 1 | +page{ | ||
| 2 | + background:#f7f7f7; | ||
| 3 | +} | ||
| 4 | +.pub-team{ | ||
| 5 | + width:100%; | ||
| 6 | +} | ||
| 7 | +input, .pub-team-date, .pub-team-address{ | ||
| 8 | + width:100%; | ||
| 9 | + height:90rpx; | ||
| 10 | + padding:0 30rpx; | ||
| 11 | + box-sizing:border-box; | ||
| 12 | +} | ||
| 13 | +textarea{ | ||
| 14 | + width:100%; | ||
| 15 | + height:280rpx; | ||
| 16 | + padding:24rpx 30rpx; | ||
| 17 | + box-sizing:border-box; | ||
| 18 | +} | ||
| 19 | +.select-picture{ | ||
| 20 | + width:100%; | ||
| 21 | + padding:30rpx 0 30rpx 30rpx; | ||
| 22 | + box-sizing:border-box; | ||
| 23 | +} | ||
| 24 | +.add-picture{ | ||
| 25 | + width:160rpx; | ||
| 26 | + height:200rpx; | ||
| 27 | + margin-right:20rpx; | ||
| 28 | + background:#eee; | ||
| 29 | +} | ||
| 30 | +.add-picture-icon{ | ||
| 31 | + width:60rpx; | ||
| 32 | + height:60rpx; | ||
| 33 | +} | ||
| 34 | +.pub-button{ | ||
| 35 | + width:100%; | ||
| 36 | + height:90rpx; | ||
| 37 | + background:#ffc16a; | ||
| 38 | +} |
| @@ -18,6 +18,16 @@ | @@ -18,6 +18,16 @@ | ||
| 18 | <view class="flex-vl" style="width:490rpx;padding-right:30rpx;box-sizing:border-box;"> | 18 | <view class="flex-vl" style="width:490rpx;padding-right:30rpx;box-sizing:border-box;"> |
| 19 | <view class="black-font font30r font-bold font-more" style="width:100%;display:block;">平常喂金毛吃鸡肝,有哪些危害?</view> | 19 | <view class="black-font font30r font-bold font-more" style="width:100%;display:block;">平常喂金毛吃鸡肝,有哪些危害?</view> |
| 20 | <view class="font-more gray-deep-font font24r" style="width:100%;display:block;margin-top:20rpx;">有些主人看到金毛喜欢吃鸡肝,就会肆无忌惮的喂金毛吃鸡肝,殊不知发反反复复殊不知发反反复复殊不知发反反复复殊不知发反反复复</view> | 20 | <view class="font-more gray-deep-font font24r" style="width:100%;display:block;margin-top:20rpx;">有些主人看到金毛喜欢吃鸡肝,就会肆无忌惮的喂金毛吃鸡肝,殊不知发反反复复殊不知发反反复复殊不知发反反复复殊不知发反反复复</view> |
| 21 | + <view class="question-action flex-lm"> | ||
| 22 | + <view class="question-look flex-lm"> | ||
| 23 | + <image src="/pages/image/look.svg" class="look-icon"></image> | ||
| 24 | + <view class="gray-deep-font font24r font-siny">200</view> | ||
| 25 | + </view> | ||
| 26 | + <view class="question-look flex-lm"> | ||
| 27 | + <image src="/pages/image/collection.svg" class="collection-icon"></image> | ||
| 28 | + <view class="gray-deep-font font24r font-siny">200</view> | ||
| 29 | + </view> | ||
| 30 | + </view> | ||
| 21 | </view> | 31 | </view> |
| 22 | <image src="/pages/image/topic3.jpg" class="question-image" mode="aspectFill"></image> | 32 | <image src="/pages/image/topic3.jpg" class="question-image" mode="aspectFill"></image> |
| 23 | </view> | 33 | </view> |
| @@ -63,10 +63,19 @@ | @@ -63,10 +63,19 @@ | ||
| 63 | width:200rpx; | 63 | width:200rpx; |
| 64 | height:130rpx; | 64 | height:130rpx; |
| 65 | } | 65 | } |
| 66 | -.question-icon{ | ||
| 67 | - width:50rpx; | ||
| 68 | - height:50rpx; | ||
| 69 | - margin-bottom:2rpx; | 66 | +.question-look{ |
| 67 | + margin-right:30rpx; | ||
| 68 | + padding-top:20rpx; | ||
| 69 | +} | ||
| 70 | +.look-icon{ | ||
| 71 | + width:40rpx; | ||
| 72 | + height:40rpx; | ||
| 73 | + margin-right:10rpx; | ||
| 74 | +} | ||
| 75 | +.collection-icon{ | ||
| 76 | + width:36rpx; | ||
| 77 | + height:36rpx; | ||
| 78 | + margin-right:10rpx; | ||
| 70 | } | 79 | } |
| 71 | .question-act{ | 80 | .question-act{ |
| 72 | margin-left:60rpx; | 81 | margin-left:60rpx; |
| @@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
| 67 | .rank-care-act{ | 67 | .rank-care-act{ |
| 68 | width:120rpx; | 68 | width:120rpx; |
| 69 | height:46rpx; | 69 | height:46rpx; |
| 70 | - border:1px solid #fe9401; | 70 | + border:1px solid #ffc16a; |
| 71 | border-radius:23rpx; | 71 | border-radius:23rpx; |
| 72 | margin-top:22rpx; | 72 | margin-top:22rpx; |
| 73 | } | 73 | } |
| @@ -121,5 +121,5 @@ | @@ -121,5 +121,5 @@ | ||
| 121 | width:120rpx; | 121 | width:120rpx; |
| 122 | height:46rpx; | 122 | height:46rpx; |
| 123 | border-radius:22rpx; | 123 | border-radius:22rpx; |
| 124 | - border:1px solid #fe9401; | 124 | + border:1px solid #ffc16a; |
| 125 | } | 125 | } |
-
Please register or login to post a comment