作者 王智

页面完善

... ... @@ -5,6 +5,7 @@
"pages/my/my",
"pages/mydetail/mydetail",
"pages/more/more",
"pages/more_other/more_other",
"pages/admin/admin",
"pages/apply/apply",
"pages/img_txt/img_txt",
... ... @@ -44,6 +45,12 @@
],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#21AE59",
... ...
... ... @@ -26,8 +26,8 @@ Page({
},
// 选择
bindPickerChange: function (e) {
// 选择
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
index: e.detail.value
... ... @@ -35,24 +35,6 @@ Page({
that.getList()
},
// 地址获取
get_city() {
let that = this;
let url = '/index/index/cityList'
let head = {
'XX-Token': wx.getStorageSync('token')
}
app.post(url, {}, head).then((res) => {
console.log(res)
that.setData({
array: res.city
})
}).catch((err) => {
})
},
// 志愿列表
getList() {
... ... @@ -75,6 +57,24 @@ Page({
})
},
// 地址获取
get_city() {
let that = this;
let url = '/index/index/cityList'
let head = {
'XX-Token': wx.getStorageSync('token')
}
app.post(url, {}, head).then((res) => {
console.log(res)
that.setData({
array: res.city
})
}).catch((err) => {
})
},
// 详情页
getDetail(e) {
... ... @@ -94,37 +94,13 @@ Page({
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
... ...
... ... @@ -61,6 +61,20 @@ page {
font-size: 28rpx;
}
.goods_groups view {
width: 25%;
}
.goods_groups :nth-child(2){
text-align: left;
}
.goods_groups :nth-child(3){
text-align: center;
}
.goods_groups :nth-child(4){
text-align: right;
}
\ No newline at end of file
... ...
... ... @@ -103,19 +103,21 @@ Page({
})
},
// 招募活动
get() {
wx.navigateTo({
url: '/pages/index/active/active',
})
},
//他人主页
getother(e) {
var id =e.currentTarget.id
console.log(e)
wx.navigateTo({
url: '/pages/more_other/more_other?id='+id,
})
},
/**
... ... @@ -132,7 +134,7 @@ Page({
this.getdatalist();
let that = this;
that.getdatalists();
},
//导航跳转
... ...
<!-- 轮播图 -->
<swiper indicator-dots="true" indicator-color='#8C9194' indicator-active-color='#ffffff' class="slide-image">
<navigator wx:for="{{datalist.slide}}" wx:key="id" hover-class="none" url='/pages/img_txt/img_txt?id={{item.activity_id}}&status=1'>
<swiper indicator-dots="true" indicator-color='#8C9194' indicator-active-color='#ffffff' class="slide-image">
<navigator wx:for="{{datalist.slide}}" wx:key="id" hover-class="none"
url='/pages/img_txt/img_txt?id={{item.activity_id}}&status=1'>
<swiper-item>
<image src="{{item.image}}" mode="aspectFill" />
</swiper-item>
... ... @@ -9,7 +10,8 @@
<!-- <view class='vold_line'></view> -->
<!-- 菜单 -->
<view class="home_menu ">
<view class="home_time" bindtap="gotoNav" data-id="{{item.id}}" data-path="{{item.path}}" wx:for="{{navList}}" wx:key="id" >
<view class="home_time" bindtap="gotoNav" data-id="{{item.id}}" data-path="{{item.path}}" wx:for="{{navList}}"
wx:key="id">
<view>
<image src="{{item.icon}}" />
</view>
... ... @@ -25,21 +27,28 @@
</navigator>
</view>
<view class='volunteerbox'>
<view class='volunteercell' wx:for='{{datalist.volunteer}}' wx:key="index" id='{{item.id}}' wx:if="{{index<=3}}">
<view class='volunteercell' wx:for='{{datalist.volunteer}}' wx:key="index" id='{{item.user_id}}' wx:if="{{index<=3}}"
bindtap="getother">
<view class='cell_top'>
<view class='cellimg'>
<image src='{{item.photo?item.photo:"https://volunteer.cnpu.org/imgs/wode_02@2x.png"}}' mode="aspectFill" />
<image src='{{item.photo?item.photo:"https://volunteer.cnpu.org/imgs/wode_02@2x.png"}}'
mode="aspectFill" />
</view>
<view class="c_right">
<view class="name">{{item.name}}</view>
<view class="province">{{item.province}}</view>
<view class='star_box'>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>0}}'></image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>1}}'></image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>2}}'></image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>3}}'></image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>4}}'></image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>0}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>1}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>2}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>3}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>4}}'>
</image>
</view>
</view>
</view>
... ... @@ -57,7 +66,8 @@
<view>
<view class='new_box'>
<navigator class='new_cell' wx:for='{{activity}}' wx:key="id" url='/pages/img_txt/img_txt?id={{item.id}}&status=1' hover-class="none">
<navigator class='new_cell' wx:for='{{activity}}' wx:key="id"
url='/pages/img_txt/img_txt?id={{item.id}}&status=1' hover-class="none">
<view class='new_cellmain'>
<view class='new_img'>
<image src='{{item.thumbnail}}' mode="aspectFill" />
... ... @@ -78,12 +88,14 @@
<view class='index_newbox' wx:if="{{news.length>0}}">
<view class='index_volunteertitle'>
<view class='title'>活动回顾</view>
<navigator class="more" url='/pages/index/active/active?end_type=1' hover-class="none">查看更多\t<image src="/imgs/more.png"></image>
<navigator class="more" url='/pages/index/active/active?end_type=1' hover-class="none">查看更多\t<image
src="/imgs/more.png"></image>
</navigator>
</view>
<view class="review_box">
<view class="review_wrap">
<navigator class="r_item" wx:for='{{news}}' wx:key="index" url='/pages/img_txt/img_txt?id={{item.id}}&status=1' hover-class="none">
<navigator class="r_item" wx:for='{{news}}' wx:key="index"
url='/pages/img_txt/img_txt?id={{item.id}}&status=1' hover-class="none">
<view class="r_left">
<view class="r_title">{{item.activity_name}}</view>
<!-- <view class="r_info">
... ...
const app = getApp();
Page({
... ... @@ -9,7 +8,7 @@ Page({
page: 0,
pageNum: 24,
volunteer: [],
page_type: false
page_type: false
},
getdatalist() {
wx.showLoading({
... ... @@ -30,7 +29,7 @@ Page({
let datavolunteer = this.data.volunteer;
let tem = [];
let temvolunteer = [];
if (volunteer.length > 0){
if (volunteer.length > 0) {
for (let i = 0; i < volunteer.length; i++) {
tem.push(volunteer[i]);
if ((i + 1) != volunteer.length) {
... ... @@ -44,80 +43,90 @@ Page({
}
}
let setvolunteer = datavolunteer.concat(temvolunteer)
if (that.data.page == 0){
if (that.data.page == 0) {
wx.hideLoading()
that.setData({
volunteer: setvolunteer,
page: res.page
})
} else {
setTimeout(()=>{
setTimeout(() => {
wx.hideLoading()
that.setData({
volunteer: setvolunteer,
page: res.page
})
},1000)
}, 1000)
}
} else {
wx.hideLoading()
that.setData({
page_type: true
})
}
}).catch((err) => {
})
},
//他人主页
getother(e) {
// console.log(e)
var id = e.currentTarget.dataset.id
wx.navigateTo({
url: '/pages/more_other/more_other?id=' + id,
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
onLoad: function (options) {
this.getdatalist()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
onReachBottom: function () {
let that = this
if (that.data.page_type) {
wx.showToast({
... ... @@ -133,7 +142,7 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
<bolck wx:for='{{volunteer}}' wx:key >
<view class='volunteerbox'>
<view class='volunteercell' wx:for='{{item}}' wx:key>
<view class='volunteerbox' >
<view class='volunteercell' wx:for='{{item}}' bindtap="getother" data-id="{{item.user_id}}" wx:key>
<view class='cell_top'>
<view class='cellimg'>
<image src='{{item.photo?item.photo:"https://volunteer.cnpu.org/imgs/wode_02@2x.png"}}' mode="aspectFill" />
... ...
const app = getApp();
Page({
data: {
nav: 0,
id:'',
list:''
},
getlist(e) {
let that = this;
let url = '/index/second/otherHome';
let head = {
'XX-Token': wx.getStorageSync('token')
}
let params = {
user_id: that.data.id
}
app.post(url, params, head).then((res) => {
console.log(res)
that.setData({
list: res
})
}).catch(() => {})
},
// 导航切换
bindNav(e) {
var nav = e.currentTarget.dataset.nav
console.log(nav)
this.setData({
nav
})
},
onLoad: function (options) {
console.log(options)
this.setData({
id: options.id
})
},
onReady: function () {
},
onShow: function () {
let that = this
that.getlist()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
{
"usingComponents": {},
"navigationBarTitleText": "他人主页"
}
\ No newline at end of file
... ...
<!--姓名 -->
<view class='apply_item'>
<view>头像</view>
<view class='apply_item_list'>
<image src="{{list.userInfo.avatar}}"></image>
</view>
</view>
<view class="line">
<view></view>
</view>
<view class='apply_item'>
<view>姓名</view>
<view class='apply_item_list'>
{{list.userInfo.name}}
</view>
</view>
<view class="line">
<view></view>
</view>
<view class='apply_item'>
<view>志愿者</view>
<view class='apply_item_list'>
{{list.userInfo.status}}
</view>
</view>
<view class="line">
<view></view>
</view>
<view class='apply_item'>
<view>等级</view>
<view class='apply_item_list star'>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.userInfo.level>0}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.userInfo.level>1}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.userInfo.level>2}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.userInfo.level>3}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.userInfo.level>4}}'>
</image>
</view>
</view>
<view class="line">
<view></view>
</view>
<view class='apply_item'>
<view>地区</view>
<view class='apply_item_list'>
{{list.address}}
</view>
</view>
<view class="navbar">
<view class="item {{nav==0?'choose':''}}" bindtap="bindNav" data-nav="{{0}}">加入的活动</view>
<view class="item {{nav==1?'choose':''}}" bindtap="bindNav" data-nav="{{1}}">加入的团队</view>
</view>
<view wx:if="{{nav==0}}">
<view class="myactive_wrap" wx:for="{{list.userJoin}}">
<view class="myactive_time">
<image src="/imgs/shijian-19.png"></image>{{item.date}}
{{ item.start_clock_time}}-{{item.end_clock_time}}
</view>
<view class="myactive_list">
<image src="{{item.thumbnail}}"></image>
<view class="myactive_name">
<view>{{item.activity_name}}</view>
<view class="myactive_gps">
<image src="/imgs/didian-14.png"></image> 获得5小时工时
</view>
</view>
</view>
</view>
</view>
<view wx:else>
<view class="myactive_wrap" wx:for="{{list.team}}">
<view class="myactive_time">
<image src="/imgs/shijian-19.png"></image>{{item.date}}
{{ item.start_clock_time}}-{{item.end_clock_time}}
</view>
<view class="myactive_list">
<image src="{{item.pic}}"></image>
<view class="myactive_name">
<view>{{item.name}}</view>
<view class="myactive_gps">
<image src="/imgs/didian-14.png"></image> 获得5小时工时
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
... ...
page {
background-color: rgb(240, 240, 240);
}
.apply_item {
padding: 0 32rpx;
height: 88rpx;
color: #333;
font-size: 28rpx;
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: space-between;
}
.apply_item_list {
text-align: right;
width: 70%;
color: #333;
font-size: 28rpx;
}
.apply_item_list image {
width: 56rpx;
height: 56rpx;
border-radius: 50%;
}
.distance {
margin-top: 16rpx;
}
.distance image {
width: 16rpx;
height: 27rpx;
}
.star image {
width: 28rpx;
height: 28rpx;
}
.line view {
margin: 0 32rpx;
background-color: #e6e6e6;
height: 1px;
}
.line {
background-color: #ffffff;
}
/* 导航条开始 */
.navbar {
height: 88rpx;
padding: 0 62rpx;
margin-top: 24rpx;
display: flex;
justify-content: space-around;
/* background : linear-gradient(136deg,#4e8fff 2%, #55c2fa); */
background-color: #ffffff;
font-size: 30rpx;
color: #969799;
border-radius: 2px 0px 0px 2px;
}
.navbar .item {
width: 346rpx;
height: 64rpx;
line-height: 66rpx;
font-size: 24rpx;
position: relative;
text-align: center;
/* background-color: #FFC909; */
/* border-radius : 19px; */
}
.navbar .item.choose {
color: black;
/* background: linear-gradient(136deg, #4e8fff 2%, #55c2fa); */
}
.navbar .item.choose:after {
content: "";
display: block;
position: absolute;
bottom: 0;
left: 0;
right: 0;
width: 80rpx;
height: 6rpx;
background: #21AE58;
margin: 0 auto;
}
/* 团队 */
.myactive_wrap {
margin: 32rpx 24rpx;
padding: 32rpx 24rpx;
background-color: #ffffff;
border-radius: 16rpx;
}
.myactive_time image {
width: 26rpx;
height: 26rpx;
}
.myactive_name {
width: 434rpx;
padding: 6rpx 0;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.myactive_list {
font-size: 28rpx;
margin-top: 24rpx;
display: flex;
justify-content: space-between;
}
.myactive_list image {
width: 182rpx;
height: 138rpx;
margin-right: 24rpx;
border-radius: 5px;
}
.myactive_gps {
margin-top: 16rpx;
color: #7D7E80;
}
.myactive_gps image {
width: 28rpx;
height: 28rpx;
}
... ...
... ... @@ -24,9 +24,12 @@ Page({
})
},
// 我的个人信息
getmy() {
getmy(e) {
var id =e.currentTarget.dataset.id
console.log(id)
wx.navigateTo({
url: '/pages/mydetail/mydetail',
url: '/pages/mydetail/mydetail?id='+id,
})
... ...
<view class='my_head'>
<image class="my_headimg" src='/imgs/card.png'></image>
<view class='my_headitem' bindtap="getmy">
<view class='my_headitem' >
<view class="my_headitemtop">
<view class='my_headitemimg'>
<view class='my_headitemimg' bindtap="getmy" data-id="{{datalist.id}}">
<image src="{{datalist.avatar?datalist.avatar:'/imgs/icon_59.png'}}"></image>
</view>
<view class="my_headitemname">
<view class='word'>{{datalist.user_nickname}}</view>
<view class="word1">志愿者(待学习)<image src="/imgs/more_gray.png"></image>
<view class="word1">{{datalist.status}}(待学习)<image src="/imgs/more_gray.png"></image>
</view>
<!-- <view class='word'>工时: {{datalist.work_time}}h</view> -->
<view class='star_box'>
<image src="/imgs/xingxing_weixuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{datalist.level>0}}'>
</image>
... ...
... ... @@ -63,7 +63,7 @@ page {
.my_headitem .word {
width: 100%;
/* text-align: center; */
margin-top: 10rpx;
/* margin-top: 10rpx; */
font-size: 32rpx;
font-weight: bold;
... ...
... ... @@ -9,7 +9,8 @@ Page({
list: '',
id: '',
latitude: '',
longitude: ''
longitude: '',
time: ''
},
onLoad: function (options) {
... ... @@ -17,6 +18,9 @@ Page({
this.setData({
id: options.id
})
},
onReady: function () {
... ... @@ -36,7 +40,12 @@ Page({
},
})
// 获取时间点
var time = util.formathour(new Date());
this.setData({
time: time
})
},
... ... @@ -84,7 +93,7 @@ Page({
app.post(url, d, head).then((res) => {
console.log(res)
wx.showToast({
title: '打卡成功',
title: '打卡成功',
})
}).catch((err) => {
... ... @@ -103,7 +112,7 @@ Page({
}
let d = {
id: that.data.id,
}
console.log(d)
... ... @@ -111,7 +120,7 @@ Page({
console.log(res)
wx.showToast({
title: '打卡成功',
})
})
}).catch((err) => {
... ...
... ... @@ -11,22 +11,20 @@
<view class="myactivity_starttime">
<view>上岗打卡{{list.start_clock_time}}</view>
<view class="state">{{list.user_start_text}} {{list.start_status}}</view>
<!-- <view class="state" wx:if="{{list.status==1}}">已开始</view>
<view class="state" wx:if="{{list.status==2}}">完成打卡</view>
<view class="state" wx:if="{{list.status==3}}">未完成</view> -->
</view>
<view class="myactivity_starttime">
<view>下岗打卡{{list.end_clock_time}}</view>
<view class="state">{{list.user_end_text}} {{list.end_status}}</view>
</view>
</view>
<!-- 打卡 -->
<view class="myactivity_start" bindtap="getpunch" wx:if="{{list.status==0}}">
<view>上岗打卡</view>
<view>12:00</view>
<view>{{time}}</view>
</view>
<view class="myactivity_start" bindtap="getEnd" wx:if="{{list.status==1}}">
<view>下岗打卡</view>
<view>12:00</view>
<view>{{time}}</view>
</view>
<view class="myactivity_end" wx:if="{{list.status==2}}">
... ...
... ... @@ -3,88 +3,45 @@ Page({
data: {
name: '',
},
//姓名
setname(e) {
console.log(e)
this.setData({
name: e.detail.value
})
list: '',
id:''
},
// submit(e) {
// let that = this;
// let url = '/index/second/applyTeam';
// let head = {
// 'XX-Token': wx.getStorageSync('token')
// }
// let params = {
// name: that.data.name,
// job: that.data.job,
// data: that.data.data,
// time: that.data.time,
// join_reason: that.data.join_reason
// }
getlist(e) {
let that = this;
let url = 'index/member_center/edit';
let head = {
'XX-Token': wx.getStorageSync('token')
}
let params = {
id: that.data.id
}
app.post(url, params, head).then((res) => {
// app.post(url, params, head).then((res) => {
console.log(res)
that.setData({
list: res
// wx.showModal({
// title: '提示',
// content: '请仔细核对信息,确认无误!',
// confirmText: '确认提交',
// cancelText: '我再想想',
// success(res) {
// if (res.confirm) {
// wx.showToast({
// title: '提交成功,等待审核',
// mask: true,
// icon: 'none',
// // duration: 2000
// })
// setTimeout(function () {
// wx.navigateBack({
// delta: 0,
// })
// }, 1000)
// console.log('用户点击确定')
// } else if (res.cancel) {
})
// console.log('用户点击取消')
// }
// }
// })
// }).catch(() => {})
// },
}).catch(() => {})
},
// 我的志愿者资料
getmyData() {
wx.navigateTo({
url: '/pages/apply/apply',
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
// console.log(options)
console.log(options)
this.setData({
id: options.id
})
... ... @@ -101,7 +58,8 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
let that = this
that.getlist()
},
/**
... ...
{
"usingComponents": {},
"navigationBarTitleText": "编辑资料"
"navigationBarTitleText": "我的主页"
}
\ No newline at end of file
... ...
<!--姓名 -->
<view class='apply_item'>
<view>头像</view>
<view class='apply_item_list'>
<image src="{{list.photo}}"></image>
</view>
</view>
<view class="line">
<view></view>
</view>
<view class='apply_item'>
<view>姓名</view>
<view class='apply_item_input'>
<input placeholder='请输入姓名' placeholder-class='input_p' bindinput='setname' value='{{name}}'
disabled="{{page_type}}">444</input>
<view class='apply_item_list'>
{{list.name}}
</view>
</view>
<view class="line">
<view></view>
</view>
<!--工作内容 -->
<view class='apply_item'>
<view>工作内容</view>
<view class='apply_item_input'>
<input placeholder='请输入工作内容' placeholder-class='input_p' bindinput='setmove_job' value='{{job}}'
disabled="{{page_type}}"></input>
<view>志愿者</view>
<view class='apply_item_list'>
{{list.status}}
</view>
</view>
<view class="line">
<view></view>
</view>
<view class='apply_item'>
<view>等级</view>
<view class='apply_item_list star'>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.level>0}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.level>1}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.level>2}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.level>3}}'>
</image>
<image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{list.level>4}}'>
</image>
</view>
</view>
<view class="line">
<view></view>
</view>
<view class='apply_item'>
<view>地区</view>
<view class='apply_item_list'>
{{list.addr}}
</view>
</view>
<form class="shengqin" bindsubmit="submit" report-submit='true'>
<button form-type="submit">提交</button>
</form>
\ No newline at end of file
<view class='apply_item distance' bindtap="getmyData">
<view>我的志愿者资料</view>
<view class='apply_item_list '>
<image src="/imgs/right.png"></image>
</view>
</view>
\ No newline at end of file
... ...
/* @import "../../apply//apply.wxss"; */
/* page {
page {
background-color: rgb(240, 240, 240);
} */
}
.apply_item {
padding: 0 32rpx;
height: 88rpx;
color: #333;
font-size: 28rpx;
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: space-between;
/* margin: 0 32rpx; */
/* border-bottom: 1rpx solid #e6e6e6; */
padding: 30rpx 32rpx;
background-color: #ffffff;
}
.apply_item_input {
display: flex;
align-items: center;
flex-direction: row-reverse;
.apply_item_list {
text-align: right;
width: 70%;
color: #333;
font-size: 28rpx;
}
.apply_item_input input {
width: 100%;
.apply_item_list image {
width: 56rpx;
height: 56rpx;
border-radius: 50%;
}
.apply_item_input .iconfont {
color: #ccc;
.distance {
margin-top: 16rpx;
}
.big_item .apply_item_input {
width: 60%;
.distance image {
width: 16rpx;
height: 27rpx;
}
.apply_item_input input {
text-align: right;
}
.star image {
width: 28rpx;
height: 28rpx;
.input_p {
color: #ccc;
font-size: 28rpx;
}
.line view {
... ... @@ -53,124 +49,4 @@
.line {
background-color: #ffffff;
}
/* */
/* .doc-listform {
margin-bottom: 100rpx;
padding: 40rpx 32rpx;
font-size: 28rpx;
background-color: #ffffff;
position: relative;
}
.listforms {
height: 15rpx;
background-color: #eeeeee;
}
textarea {
padding: 20rpx;
font-size: 28rpx;
margin-top: 20rpx;
width: auto;
border: 2rpx solid #eeeeee;
}
/* 提示 */
/*
.tishi_wrap {
padding: 24rpx 36rpx;
margin: 0 32rpx;
margin-top: 40rpx;
border-radius: 8px;
background-color: #ffffff;
}
.tishi {
display: flex;
align-items: center;
justify-content: space-between;
color: #FF4444;
font-size: 32rpx;
}
.tishi image {
width: 28rpx;
height: 28rpx;
margin-right: 8rpx;
}
.tishi_text {
margin-top: 16rpx;
font-size: 28rpx;
color: #7D7E80;
} */
/* 图片 */
/* .doc-Images {
width: 100%;
}
.chooseImage {
width: 200rpx;
height: 200rpx;
line-height: 200rpx;
text-align: center;
font-size: 80rpx;
padding: 0px !important;
margin: 20rpx 0rpx !important;
color: #ddd;
border: 1px solid #eeeeee;
display: inline-block !important;
border-radius: 0px
}
.chooseImage::after {
border: none;
}
.doc-ImageList {
height: 200rpx;
margin: 0 25rpx;
display: inline-block;
}
.doc-ImageList image {
width: 200rpx;
height: 200rpx;
position: relative;
z-index: 4px;
}
.doc-ImageList image .iconfont {
position: absolute;
z-index: 5px;
right: 0rpx;
top: 0rpx;
} */
.shengqin {
height: 122rpx;
background-color: #ffffff;
font-size: 32rpx;
position: fixed;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
}
.shengqin button {
width: 622rpx;
height: 88rpx;
color: #ffffff;
border-radius: 22px;
background: linear-gradient(130deg, #2ed26e 13%, #05983e 98%);
box-shadow: 0px 9px 19px 0px rgba(0, 116, 45, 0.42);
}
\ No newline at end of file
... ...
... ... @@ -50,14 +50,19 @@ Page({
// 商品详情
getbindshop(e) {
var id =e.currentTarget.dataset.id
var id = e.currentTarget.dataset.id
// console.log(id)
wx.navigateTo({
url: '/pages/myfeedback/myfeedback_active/myfeedback_active?id='+id,
url: '/pages/myfeedback/myfeedback_active/myfeedback_active?id=' + id,
})
},
//我的主页
getmyData() {
wx.navigateTo({
url: '/pages/mydetail/mydetail',
})
},
... ...
... ... @@ -2,7 +2,7 @@
<image class="my_headimg" src='/imgs/myfeedback.png'></image>
<view class='my_headitem'>
<view class="my_headitemtop">
<view class='my_headitemimg'>
<view class='my_headitemimg' bindtap="getmyData">
<image src="{{datalist.user.avatar?datalist.user.avatar:'/imgs/icon_59.png'}}"></image>
</view>
<view class="my_headitemname">
... ...
... ... @@ -268,6 +268,20 @@
"id": -1,
"name": "工时兑换",
"pathName": "pages/myfeedback/myfeedback_list/myfeedback_list",
"query": "",
"scene": null
},
{
"id": -1,
"name": "我的资料",
"pathName": "pages/mydetail/mydetail",
"query": "",
"scene": null
},
{
"id": -1,
"name": "更多志愿者",
"pathName": "pages/more/more",
"scene": null
}
]
... ...
... ... @@ -9,11 +9,25 @@ const formatTime = date => {
return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
}
const formathour = date => {
const hour = date.getHours()
const minute = date.getMinutes()
return [hour, minute].map(formatNumber).join(':')
}
const formatNumber = n => {
n = n.toString()
return n[1] ? n : '0' + n
}
module.exports = {
formatTime: formatTime
formatTime: formatTime,
formathour: formathour
}
... ...