fanp 6 years ago
parent
commit
d4d849f33a
  1. 3
      components/segment/index.wxss
  2. 6
      pages/article/index.js
  3. 4
      pages/article/index.wxml
  4. 12
      pages/article/index.wxss
  5. 2
      pages/billboards/policy/index.wxml
  6. 7
      pages/register/index.js
  7. 3
      pages/register/index.wxss

3
components/segment/index.wxss

@ -6,7 +6,8 @@
padding: 5px; padding: 5px;
} }
.title { .title {
min-width: 150rpx; min-width: 100rpx;
padding: 0 20rpx;
white-space: nowrap; white-space: nowrap;
display: flex; display: flex;
align-items: center; align-items: center;

6
pages/article/index.js

@ -21,6 +21,8 @@ Page({
unStar: '/images/common/star.png', unStar: '/images/common/star.png',
star: '/images/common/star_light.png', star: '/images/common/star_light.png',
disable: true, disable: true,
readNum: 0,
collectNum: 0,
}, },
onClickCollect () { onClickCollect () {
// 收藏功能 // 收藏功能
@ -51,7 +53,7 @@ Page({
fetchArticeApi () { fetchArticeApi () {
artice.getDetail(this.data.aId, (res) => { artice.getDetail(this.data.aId, (res) => {
//console.log('artice detail') //console.log('artice detail')
//console.log(res) console.log(res)
const data = res.result const data = res.result
const date = dayjs(data.createTime).format('MM月DD日') const date = dayjs(data.createTime).format('MM月DD日')
this.setData({ this.setData({
@ -63,6 +65,8 @@ Page({
isStar: data.isCollection ? true : false, isStar: data.isCollection ? true : false,
showBtn: data.typeFlag >= 2 ? true : false, showBtn: data.typeFlag >= 2 ? true : false,
disable: data.typeFlag == 3 ? true : false, disable: data.typeFlag == 3 ? true : false,
readNum: data.readNum,
collectNum: data.collectNum,
}) })
}) })
}, },

4
pages/article/index.wxml

@ -13,6 +13,10 @@
</view> </view>
<view class="page_bd {{showBtn ? 'page_bd_short':''}}"> <view class="page_bd {{showBtn ? 'page_bd_short':''}}">
<rich-text nodes="{{nodes}}"></rich-text> <rich-text nodes="{{nodes}}"></rich-text>
<view class="read_collectNum">
<view class="read_num">阅读:{{readNum}}</view>
<view class="collect_num">收藏:{{collectNum}}</view>
</view>
</view> </view>
<view class="page_footer" wx:if="{{showBtn}}"> <view class="page_footer" wx:if="{{showBtn}}">
<e-ibutton title="{{disable ? '已报名' : '在线报名'}}" bind:onTap="onlineSubmit" disable="{{disable}}"/> <e-ibutton title="{{disable ? '已报名' : '在线报名'}}" bind:onTap="onlineSubmit" disable="{{disable}}"/>

12
pages/article/index.wxss

@ -60,5 +60,15 @@
padding: 0 10px; padding: 0 10px;
} }
.page_bd_short { .page_bd_short {
margin-bottom: 81px; padding-bottom: 81px;
}
.read_collectNum {
padding: 20rpx 0;
display: flex;
flex-direction: row;
justify-content: space-between;
font-size: 16px;
}
.read_num, .collect_num {
color: #999;
} }

2
pages/billboards/policy/index.wxml

@ -12,5 +12,5 @@
bind:clickListItem="clickListItem" bind:clickListItem="clickListItem"
/> />
</block> </block>
<e-empty empty="{{list.length <= 0}}" message="暂无搜索内容"/> <e-empty empty="{{list.length <= 0}}" message="{{searchKey.length > 0 ? '暂无搜索内容' : '暂无内容'}}"/>
</view> </view>

7
pages/register/index.js

@ -34,9 +34,10 @@ Page({
onLoad: function (options) { onLoad: function (options) {
}, },
onHide () { onUnload () {
clearInterval(this.data.interval) clearInterval(this.data.interval)
}, },
// 重新获取Code // 重新获取Code
refetchCodeDownTime () { refetchCodeDownTime () {
@ -48,7 +49,7 @@ Page({
time: time, time: time,
btnTitle: title btnTitle: title
}) })
if (time == 0) { if (time <= 0) {
this.setData({ this.setData({
fetchCode: true, fetchCode: true,
time: 60, time: 60,
@ -77,6 +78,8 @@ Page({
// console.log(this.data.formData) // console.log(this.data.formData)
this.fetchMsgCodeApi() this.fetchMsgCodeApi()
} }
} else {
this.fetchMsgCodeApi()
} }
}) })
}, },

3
pages/register/index.wxss

@ -33,3 +33,6 @@
.register_form .weui-cells::before { .register_form .weui-cells::before {
border-top: 0px solid white; border-top: 0px solid white;
} }
.register_form .weui-vcode-btn {
width: 100px;
}
Loading…
Cancel
Save