切换导航条
此项目
正在载入...
登录
miniprogram
/
volunteer
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王智
2020-10-18 17:26:57 +0800
提交
50ed0a3a43c7ba6ba923cb9bc184a9fbf3a7e9af
1 个父辈
09b3a21f
bug
隐藏空白字符变更
内嵌
并排对比
正在显示
18 个修改的文件
包含
840 行增加
和
198 行删除
zhiyuanzhe/imgs/shares.png
zhiyuanzhe/pages/Volunteer_detail/Volunteer_detail.wxml
zhiyuanzhe/pages/Volunteer_detail/Volunteer_detail.wxss
zhiyuanzhe/pages/getNewsInfo/getNewsInfo.js
zhiyuanzhe/pages/getNewsInfo/getNewsInfo.wxml
zhiyuanzhe/pages/getNewsInfo/getNewsInfo.wxss
zhiyuanzhe/pages/getStudycontent/answer/answer.js
zhiyuanzhe/pages/getStudycontent/answer/answer.wxml
zhiyuanzhe/pages/getStudycontent/answer/answer.wxss
zhiyuanzhe/pages/getStudycontent/getStudycontent.wxml
zhiyuanzhe/pages/getStudycontent/getStudycontent.wxss
zhiyuanzhe/pages/img_txt/img_txt.js
zhiyuanzhe/pages/img_txt/img_txt.wxml
zhiyuanzhe/pages/img_txt/img_txt.wxss
zhiyuanzhe/pages/result/result.js
zhiyuanzhe/pages/result/result.wxml
zhiyuanzhe/pages/result/result.wxss
zhiyuanzhe/project.config.json
zhiyuanzhe/imgs/shares.png
0 → 100644
查看文件 @
50ed0a3
3.3 KB
zhiyuanzhe/pages/Volunteer_detail/Volunteer_detail.wxml
查看文件 @
50ed0a3
...
...
@@ -25,4 +25,11 @@
wx:if="{{list.user_status ==1}}">审核已通过</button>
<button wx:if="{{list.user_status ==-1}}">审核不通过</button>
<button wx:if="{{list.user_status ==3}}" bindtap="getshengqin" data-id="{{id}}">未申请</button>
</view>
\ No newline at end of file
</view>
<button open-type='share'>
<view class="btn-item" style="background: url('/imgs/shares.png') no-repeat center;background-size: cover;"
bindtap="change_cover" data-id="2">
</view>
</button>
\ No newline at end of file
...
...
zhiyuanzhe/pages/Volunteer_detail/Volunteer_detail.wxss
查看文件 @
50ed0a3
...
...
@@ -75,4 +75,25 @@ page {
height: 88rpx;
border-radius: 44rpx;
}
\ No newline at end of file
}
/* 分享 */
.btn-item {
width: 100rpx;
height: 100rpx;
border: none !important;
line-height: 1 !important;
padding: 63rpx 0 0;
box-sizing: border-box;
border-radius: 50%;
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgb(255, 255, 255) !important;
text-align: center;
margin: 40rpx 0 0;
background: red;
position: fixed;
bottom: 144rpx;
right: 32rpx;
}
\ No newline at end of file
...
...
zhiyuanzhe/pages/getNewsInfo/getNewsInfo.js
查看文件 @
50ed0a3
...
...
@@ -30,8 +30,7 @@ Page({
},
/**
* 生命周期函数--监听页面加载
*/
...
...
@@ -56,7 +55,7 @@ Page({
onShow
:
function
()
{
let
that
=
this
;
that
.
getactive
()
},
...
...
zhiyuanzhe/pages/getNewsInfo/getNewsInfo.wxml
查看文件 @
50ed0a3
...
...
@@ -11,4 +11,13 @@
<rich-text nodes="{{list.content}}"></rich-text>
</view>
</view>
\ No newline at end of file
</view>
<button open-type='share'>
<view class="btn-item" style="background: url('/imgs/shares.png') no-repeat center;background-size: cover;"
bindtap="change_cover" data-id="2">
</view>
</button>
\ No newline at end of file
...
...
zhiyuanzhe/pages/getNewsInfo/getNewsInfo.wxss
查看文件 @
50ed0a3
...
...
@@ -41,4 +41,24 @@ image {
text-align: justify;
color: #5D5D5D;
}
\ No newline at end of file
}
/* 分享 */
.btn-item {
width: 100rpx;
height: 100rpx;
border: none !important;
line-height: 1 !important;
padding: 63rpx 0 0;
box-sizing: border-box;
border-radius: 50%;
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgb(255, 255, 255) !important;
text-align: center;
margin: 40rpx 0 0;
background: red;
position: fixed;
bottom: 144rpx;
right: 32rpx;
}
\ No newline at end of file
...
...
zhiyuanzhe/pages/getStudycontent/answer/answer.js
查看文件 @
50ed0a3
...
...
@@ -5,13 +5,13 @@ Page({
data
:
{
id
:
''
,
list
:
''
,
answers
:[],
finaAnswer
:[],
answers
:
[],
finaAnswer
:
[],
showAnswer
:
false
},
onLoad
:
function
(
options
)
{
//
console.log(options)
console
.
log
(
options
)
this
.
setData
({
id
:
options
.
id
})
...
...
@@ -24,7 +24,7 @@ Page({
that
.
getlist
();
},
//
题
//
问题列表
getlist
()
{
let
that
=
this
;
...
...
@@ -39,25 +39,26 @@ Page({
console
.
log
(
res
)
that
.
setData
({
list
:
res
,
tempList
:
JSON
.
parse
(
JSON
.
stringify
(
res
))
tempList
:
JSON
.
parse
(
JSON
.
stringify
(
res
))
})
}).
catch
((
err
)
=>
{
})
},
radioChange
(
e
){
radioChange
(
e
)
{
let
tempAnswer
=
e
.
detail
.
value
.
split
(
','
);
console
.
log
(
tempAnswer
)
this
.
data
.
answers
[
tempAnswer
[
1
]]
=
tempAnswer
[
0
];
this
.
data
.
finaAnswer
[
tempAnswer
[
1
]]
=
{
this
.
data
.
finaAnswer
[
tempAnswer
[
1
]]
=
{
key
:
tempAnswer
[
0
],
answer
:
tempAnswer
[
1
]
}
this
.
data
.
list
[
tempAnswer
[
1
]].
choose
=
tempAnswer
[
2
]
this
.
setData
({
this
.
setData
({
answers
:
this
.
data
.
answers
,
finaAnswer
:
this
.
data
.
finaAnswer
,
list
:
this
.
data
.
list
finaAnswer
:
this
.
data
.
finaAnswer
,
list
:
this
.
data
.
list
})
},
...
...
@@ -72,53 +73,67 @@ Page({
let
params
=
{
class_id
:
that
.
data
.
id
,
}
console
.
log
(
params
)
app
.
post
(
url
,
params
,
head
).
then
((
res
)
=>
{
if
(
res
.
code
==
'40000'
)
{
let
answer
=
res
if
(
that
.
data
.
answers
==
''
)
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'很遗憾你没有获得学时'
,
confirmText
:
'重新答题'
,
cancelText
:
'查看答案'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
redirectTo
({
url
:
'/pages/getStudycontent/answer/answer?id='
+
that
.
data
.
id
,
})
// let tempList = JSON.stringify(that.data.tempList)
// that.setData({
// showAnswer: false,
// // list: JSON.parse(tempList)
// })
console
.
log
(
'用户点击确定'
)
}
else
if
(
res
.
cancel
)
{
// wx.navigateTo({
// url: '/pages/getStudycontent/answer/answer',
// })
that
.
setData
({
showAnswer
:
true
})
console
.
log
(
'用户点击取消'
)
}
}
content
:
'请完成答题后再提交'
,
showCancel
:
false
,
})
}
else
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'恭喜'
,
showCancel
:
false
,
success
:
function
(
res
)
{
}
})
if
(
res
.
code
==
'40000'
)
{
let
answer
=
res
wx
.
showModal
({
title
:
'提示'
,
content
:
'很遗憾你没有获得学时'
,
confirmText
:
'重新答题'
,
cancelText
:
'查看答案'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
redirectTo
({
url
:
'/pages/getStudycontent/answer/answer?id='
+
that
.
data
.
id
,
})
// let tempList = JSON.stringify(that.data.tempList)
// that.setData({
// showAnswer: false,
// // list: JSON.parse(tempList)
// })
console
.
log
(
'用户点击确定'
)
}
else
if
(
res
.
cancel
)
{
that
.
setData
({
showAnswer
:
true
})
console
.
log
(
'用户点击取消'
)
}
}
})
}
else
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'恭喜'
,
showCancel
:
false
,
success
:
function
(
res
)
{
}
})
}
}
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
...
...
zhiyuanzhe/pages/getStudycontent/answer/answer.wxml
查看文件 @
50ed0a3
...
...
@@ -21,6 +21,7 @@
</view>
<view class="shengqin">
<button bindtap="getcomfirm">确认</button>
<button style="background: #cfcfcf;" wx:if="">已答题</button>
</view>
<!-- 答案 -->
...
...
zhiyuanzhe/pages/getStudycontent/answer/answer.wxss
查看文件 @
50ed0a3
...
...
@@ -44,48 +44,27 @@ page {
margin-left: 22rpx;
}
/*单选框样式修改 */
radio .wx-radio-input{
width: 28rpx;
height: 28rpx;
}
/* 选中后的 背景样式 (红色背景 无边框 可根据UI需求自己修改) */
/* 选中后的 背景样式 */
radio .wx-radio-input.wx-radio-input-checked {
border-color: #099D43;
background: #099D43;
}
/* 未选中的 背景样式 */
checkbox .wx-checkbox-input{
border-color: #999;
border-radius: 50%;/* 圆角 */
height: 28rpx;
width: 28rpx;
border-color: #099D43!important;
background-color: #ffffff;
}
/* 自定义样式.... */
radio .wx-radio-input {
height: 28rpx;
width: 28rpx;
margin-top: -4rpx;
border-radius: 50%;
border: 2rpx solid #999;
background: transparent;
/* 选中后的 对勾样式 (白色对勾) */
radio .wx-radio-input.wx-radio-input-checked::before {
content: '';
width: 14rpx;
height: 14rpx;
border-radius: 50%;
background-color: #099D43;
}
/* 选中后的 对勾样式 (白色对勾 可根据UI需求自己修改) */
radio .wx-radio-input.wx-radio-input-checked::before {
border-radius: 50%; /* 圆角 */
width: 28rpx; /* 选中后对勾大小,不要超过背景的尺寸 */
height: 28rpx; /* 选中后对勾大小,不要超过背景的尺寸 */
line-height: 28rpx;
text-align: center;
font-size: 28rpx; /* 对勾大小 30rpx */
color: #099D43; /* 对勾颜色 白色 */
background: #ffffff;
transform: translate(-50%, -50%) scale(1);
-webkit-transform: translate(-50%, -50%) scale(1);
}
/* */
.shengqin {
...
...
zhiyuanzhe/pages/getStudycontent/getStudycontent.wxml
查看文件 @
50ed0a3
<!--pages/getStudycontent/getStudycontent.wxml-->
<view class="answer_text">
<view class="answer_title">
...
...
@@ -13,6 +9,13 @@
</view>
<rich-text nodes="{{list.content}}"></rich-text>
</view>
<view class="answer" bindtap="getanswer">
<button hover-class="none">去答题</button>
</view>
\ No newline at end of file
<view hover-class="none" wx:if="{{list}}">去答题</view>
</view>
<button open-type="share">
<view class="btn-item" style="background: url('/imgs/shares.png') no-repeat center;background-size: cover;"
bindtap="change_cover" data-id="2">
</view>
</button>
\ No newline at end of file
...
...
zhiyuanzhe/pages/getStudycontent/getStudycontent.wxss
查看文件 @
50ed0a3
...
...
@@ -36,12 +36,35 @@
}
button {
.answer view{
margin: auto;
width: 622rpx;
height: 88rpx;
line-height: 88rpx;
color: #ffffff;
font-size: 32rpx;
text-align: center;
background: linear-gradient(130deg, #2ed26e 13%, #05983e 98%);
border-radius: 22px;
box-shadow: 0px 9px 19px 0px rgba(0, 116, 45, 0.42);
}
\ No newline at end of file
}
/* 分享 */
.btn-item {
width: 100rpx;
height: 100rpx;
border: none !important;
line-height: 1 !important;
padding: 63rpx 0 0;
box-sizing: border-box;
border-radius: 50%;
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgb(255, 255, 255) !important;
text-align: center;
margin: 40rpx 0 0;
background: red;
position: fixed;
bottom: 144rpx;
right: 32rpx;
}
\ No newline at end of file
...
...
zhiyuanzhe/pages/img_txt/img_txt.js
查看文件 @
50ed0a3
...
...
@@ -115,7 +115,7 @@ Page({
getSystemInfo
()
{
let
that
=
this
;
wx
.
getSystemInfo
({
success
:
function
(
res
)
{
success
:
function
(
res
)
{
that
.
setData
({
height
:
res
.
windowHeight
+
'px'
})
...
...
@@ -179,7 +179,7 @@ Page({
get_token
()
{
let
that
=
this
wx
.
login
({
success
:
function
(
s
)
{
success
:
function
(
s
)
{
let
url
=
'wxapp/public/getSessionKey'
;
if
(
s
.
code
)
{
var
code
=
s
.
code
;
...
...
@@ -253,7 +253,7 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
let
that
=
this
if
(
options
.
scene
)
{
wx
.
setNavigationBarTitle
({
...
...
@@ -313,57 +313,64 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
onShow
:
function
()
{
wx
.
hideShareMenu
()
if
(
wx
.
getStorageSync
(
'page_type'
))
{
wx
.
removeStorageSync
(
'page_type'
)
this
.
getdatalist
()
}
wx
.
showShareMenu
({
withShareTicket
:
true
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
return
{
title
:
this
.
data
.
datalist
.
activity_name
,
path
:
"/pages/img_txt/img_txt?scene="
+
this
.
data
.
id
,
imageUrl
:
this
.
data
.
datalist
.
thumbnail
}
onShareAppMessage
:
function
()
{
// return {
// title: this.data.datalist.activity_name,
// path: "/pages/img_txt/img_txt?scene=" + this.data.id,
// imageUrl: this.data.datalist.thumbnail
// }
}
})
\ No newline at end of file
...
...
zhiyuanzhe/pages/img_txt/img_txt.wxml
查看文件 @
50ed0a3
...
...
@@ -20,27 +20,41 @@
</view>
</view>
<view wx:if="{{type!= 1 && datalist.admin !=1}}">
<navigator class='foot' url="/pages/enroll/enroll?id={{id}}" wx:if='{{datalist.button_status == 1 || datalist.button_status == 7}}' hover-class="none">报名</navigator>
<navigator class='foot' url="/pages/enroll/enroll?id={{id}}"
wx:if='{{datalist.button_status == 1 || datalist.button_status == 7}}' hover-class="none">报名</navigator>
<view class='foot' wx:if='{{datalist.button_status == 2}}' style='background: #FFD700; color: #fff;'>待审核</view>
<navigator class='foot' wx:if='{{datalist.button_status == 3}}' url="/pages/word_report/word_report?id={{id}}" hover-class="none">工作汇报</navigator>
<view class='foot' wx:if='{{datalist.button_status == 4 || datalist.button_status == 8}}' style='background: #ccc;color: #fff;'>工作汇报</view>
<navigator class='foot' wx:if='{{datalist.button_status == 3}}' url="/pages/word_report/word_report?id={{id}}"
hover-class="none">工作汇报</navigator>
<view class='foot' wx:if='{{datalist.button_status == 4 || datalist.button_status == 8}}'
style='background: #ccc;color: #fff;'>工作汇报</view>
<view class='foot' wx:if='{{datalist.button_status == 5}}' style='background: #ccc;color: #fff;'>已结束</view>
<navigator url='/pages/result/result' class='foot' wx:if='{{datalist.button_status == 6}}' hover-class="none">成为志愿者</navigator>
<navigator url='/pages/result/result' class='foot' wx:if='{{datalist.button_status == 6}}' hover-class="none">成为志愿者
</navigator>
</view>
<view class="btn_box" wx:if="{{status == 1}}">
<navigator class="btn-item" style="background: url('https://volunteer.cnpu.org/static/images/index.png') no-repeat center;background-size: cover;" url="/pages/index/index" open-type="switchTab">首页</navigator>
<navigator class="btn-item"
style="background: url('https://volunteer.cnpu.org/static/images/index.png') no-repeat center;background-size: cover;"
url="/pages/index/index" open-type="switchTab">首页</navigator>
<block wx:if="{{datalist.admin !=1 && datalist.is_join == 1}}">
<view class="btn-item" style="background: url('{{datalist.button_status != 4 && datalist.activity_stage == 0?'https://volunteer.cnpu.org/static/images/edit.png':'https://volunteer.cnpu.org/static/images/edit@.png'}}') no-repeat center;background-size: cover;"
bindtap="{{datalist.button_status != 4 && datalist.activity_stage == 0 ?'edit_info':''}}" wx:if="{{datalist.button_status == 2||datalist.button_status == 3 ||datalist.button_status == 4 || datalist.button_status==5|| datalist.button_status == 8 && datalist.admin !=1}}">编辑</view>
<view class="btn-item"
style="background: url('{{datalist.button_status != 4 && datalist.activity_stage == 0?'https://volunteer.cnpu.org/static/images/edit.png':'https://volunteer.cnpu.org/static/images/edit@.png'}}') no-repeat center;background-size: cover;"
bindtap="{{datalist.button_status != 4 && datalist.activity_stage == 0 ?'edit_info':''}}"
wx:if="{{datalist.button_status == 2||datalist.button_status == 3 ||datalist.button_status == 4 || datalist.button_status==5|| datalist.button_status == 8 && datalist.admin !=1}}">
编辑</view>
<view class="btn-item" style="background: url('{{datalist.activity_stage == 0?'https://volunteer.cnpu.org/static/images/out.png':'https://volunteer.cnpu.org/static/images/out@.png'}}') no-repeat center;background-size: cover;" wx:if="{{datalist.button_status==8 || datalist.button_status==5 || datalist.button_status==3 && datalist.admin !=1}}"
<view class="btn-item"
style="background: url('{{datalist.activity_stage == 0?'https://volunteer.cnpu.org/static/images/out.png':'https://volunteer.cnpu.org/static/images/out@.png'}}') no-repeat center;background-size: cover;"
wx:if="{{datalist.button_status==8 || datalist.button_status==5 || datalist.button_status==3 && datalist.admin !=1}}"
bindtap="{{datalist.activity_stage == 0?'change_cover':''}}" data-id="1">退出</view>
</block>
<view class="btn-item" style="background: url('https://volunteer.cnpu.org/static/images/share.png') no-repeat center;background-size: cover;" bindtap="change_cover" data-id="2">分享</view>
<view class="btn-item"
style="background: url('/imgs/shares.png') no-repeat center;background-size: cover;"
bindtap="change_cover" data-id="2"></view>
</view>
<view class="cover_box" catchtouchmove="true" catchtap="change_cover" data-id="{{cover_id}}" wx:if="{{cover_type}}">
...
...
@@ -51,7 +65,8 @@
<view class="b_item" catchtap="out">确认</view>
</view>
</view>
<view class="poster_box" wx:if="{{cover_id == 2}}" style="background: url('{{poster}}') no-repeat center;background-size: cover;">
<view class="poster_box" wx:if="{{cover_id == 2}}"
style="background: url('{{poster}}') no-repeat center;background-size: cover;">
<view class="select_box" style="margin-top:812rpx;">
<view catchtap="change_cover" catchtap="save_poster" class="b_item">保存到相册</view>
<button class="b_item" open-type="share">发送给朋友</button>
...
...
@@ -62,11 +77,13 @@
<view class="c_item" wx:for="{{join_info}}" wx:key="index">
<view class="c_title">{{item.title}}</view>
<view class="c_box">
<view class="i_info {{item.arr.length>3 && zindex<item.arr.length-1?'line':''}}" wx:for="{{item.arr}}" wx:for-item="zitem" wx:for-index="zindex" wx:key="zindex" data-status="{{zitem.status}}" data-user_id="{{zitem.user_id}}" data-join_id="{{zitem.id}}"
bindtap="look_more">
<view class="i_info {{item.arr.length>3 && zindex<item.arr.length-1?'line':''}}" wx:for="{{item.arr}}"
wx:for-item="zitem" wx:for-index="zindex" wx:key="zindex" data-status="{{zitem.status}}"
data-user_id="{{zitem.user_id}}" data-join_id="{{zitem.id}}" bindtap="look_more">
<image src="{{zitem.photo}}" mode="aspectFill" />
<view class="name">{{zitem.name}}</view>
<view class="status {{zitem.status>0?(zitem.status == 2?'bgb':'bga'):'bgc'}}">{{zitem.status>0?(zitem.status == 2?'未通过':'已通过'):'待审核'}}</view>
<view class="status {{zitem.status>0?(zitem.status == 2?'bgb':'bga'):'bgc'}}">
{{zitem.status>0?(zitem.status == 2?'未通过':'已通过'):'待审核'}}</view>
</view>
</view>
</view>
\ No newline at end of file
...
...
zhiyuanzhe/pages/img_txt/img_txt.wxss
查看文件 @
50ed0a3
...
...
@@ -157,7 +157,7 @@ page {
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgb
a(255, 255, 255, 1
) !important;
color: rgb
(255, 255, 255
) !important;
text-align: center;
margin: 40rpx 0 0;
background: red;
...
...
zhiyuanzhe/pages/result/result.js
查看文件 @
50ed0a3
...
...
@@ -5,7 +5,8 @@ Page({
* 页面的初始数据
*/
data
:
{
datalist
:
''
datalist
:
''
,
list
:
''
},
getdatalist
()
{
let
that
=
this
;
...
...
@@ -22,6 +23,25 @@ Page({
})
},
getdatalists
()
{
let
that
=
this
;
let
url
=
'/index/second/getMyStatus'
;
let
head
=
{
'XX-Token'
:
wx
.
getStorageSync
(
'token'
)
}
app
.
post
(
url
,
{},
head
).
then
((
res
)
=>
{
that
.
setData
({
list
:
res
})
}).
catch
((
err
)
=>
{
})
},
goindex
()
{
wx
.
switchTab
({
url
:
'/pages/index/index'
...
...
@@ -31,58 +51,59 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
onShow
:
function
()
{
let
that
=
this
;
that
.
getdatalist
();
that
.
getdatalists
();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
onShareAppMessage
:
function
()
{
}
})
\ No newline at end of file
...
...
zhiyuanzhe/pages/result/result.wxml
查看文件 @
50ed0a3
<view wx:if='{{datalist==""}}'>
<view class='resultimg'>
<image src='https://volunteer.cnpu.org/imgs/dengdaishenhe@2x.png'></image>
</view>
<view class='result_txt'>待提交</view>
<navigator class='start_btn' url='/pages/apply/apply' hover-class="none">成为志愿者</navigator>
<!-- <view wx:if='{{datalist==""}}'>
<view class='resultimg'>
<image src='https://volunteer.cnpu.org/imgs/dengdaishenhe@2x.png'></image>
</view>
<view class='result_txt'>待提交</view>
<navigator class='start_btn' url='/pages/apply/apply' hover-class="none">成为志愿者</navigator>
</view>
<view wx:else>
<view wx:if='{{datalist.status=="3"}}'>
<view class='resultimg'>
<image src='https://volunteer.cnpu.org/imgs/kulian@2x.png'></image>
</view>
<view class='result_txt'>审核未通过</view>
</view>
<view wx:elif='{{datalist.status=="2"}}'>
<view class='resultimg'>
<image src='https://volunteer.cnpu.org/imgs/tongguo@2x.png'></image>
</view>
<view class='result_txt'>审核已通过</view>
</view>
<view wx:else>
<view class='resultimg'>
<image src='https://volunteer.cnpu.org/imgs/dengdaishenhe@2x.png'></image>
</view>
<view class='result_txt'>待审核</view>
</view>
<view class='start_btn' bindtap='goindex'>返回首页</view>
<view wx:if='{{datalist.status=="3"}}'>
<view class='resultimg'>
<image src='https://volunteer.cnpu.org/imgs/kulian@2x.png'></image>
</view>
<view class='result_txt'>审核未通过</view>
</view>
<view wx:elif='{{datalist.status=="2"}}'>
<view class='resultimg'>
<image src='https://volunteer.cnpu.org/imgs/tongguo@2x.png'></image>
</view>
<view class='result_txt'>审核已通过</view>
</view>
<view wx:else>
<view class='resultimg'>
<image src='https://volunteer.cnpu.org/imgs/dengdaishenhe@2x.png'></image>
</view>
<view class='result_txt'>待审核</view>
</view>
<view class='start_btn' bindtap='goindex'>返回首页</view>
</view> -->
<view class="result_wrap" wx:if='{{datalist.status=="2"}}'>
<view class="result">
<view></view>
审核通过
</view>
<view class="result_list_wrap">
<view class="result_left" wx:if="{{list.code==2}}">
<view class="circle"></view>
<view class="circle_s"></view>
<view class="circle_line"></view>
</view>
<view class="result_left_red" wx:else>
<view class="circle_red"></view>
<view class="circle_s_red"></view>
<view class="circle_line_red"></view>
</view>
<view class="result_list ">
<view class="">{{list.remark}}</view>
<view class="">请在“在线培训”页面完成大于5小时的在线学习</view>
</view>
</view>
<view class="result_list_wrap">
<view class="result_left" wx:if="">
<view class="circle"></view>
<view class="circle_s"></view>
<view class="circle_line"></view>
</view>
<view class="result_left_red">
<view class="circle_red"></view>
<view class="circle_s_red"></view>
<view class="circle_line_red"></view>
</view>
<view class="result_list ">
<view class="">实习志愿者</view>
<view class="">请参与志愿者活动,获得10小时工时</view>
</view>
</view>
<view class="result_list_wrap">
<view class="result_left" wx:if="">
<view class="circle"></view>
<view class="circle_s"></view>
</view>
<view class="result_left_red">
<view class="circle_red"></view>
<view class="circle_s_red"></view>
</view>
<view class="result_list ">
<view class="">正式志愿者</view>
<view class="">正式成为白求恩志愿者</view>
</view>
</view>
</view>
<view class="result_wrap" wx:if='{{datalist.status=="1"}}'>
<view class="result">
<view></view>
审核未通过
</view>
<view class="result_list_wrap">
<view class="result_left_red">
<view class="circle_red"></view>
<view class="circle_s_red"></view>
</view>
<view class="result_list ">
<view class="">审核未通过</view>
<view class="">按要求填写实际信息后重新提交审核</view>
</view>
</view>
</view>
\ No newline at end of file
...
...
zhiyuanzhe/pages/result/result.wxss
查看文件 @
50ed0a3
/* pages/result/result.wxss */
.resultimg{
display: flex;
align-items: center;
justify-content: center;
width:140rpx;
height: 140rpx;
border-radius: 50%;
margin: 220rpx auto 34rpx auto;
}
.resultimg image{
width: 100%;
height: 100%;
display: block;
}
.result_txt{
text-align: center;
color:#333;
font-weight: bold;
font-size:32rpx;
}
.start_btn{
margin: 143rpx auto 0 auto;
width:300rpx;
height: 80rpx;
border-radius: 40rpx;
color:#21AE59;
font-size:34rpx;
font-weight: bold;
border:1rpx solid #21AE59;
z-index:20rpx;
display: flex;
align-items: center;
justify-content: center;
}
.start_btn:active{
opacity: 0.7;
.resultimg {
display: flex;
align-items: center;
justify-content: center;
width: 140rpx;
height: 140rpx;
border-radius: 50%;
margin: 220rpx auto 34rpx auto;
}
.resultimg image {
width: 100%;
height: 100%;
display: block;
}
.result_txt {
text-align: center;
color: #333;
font-weight: bold;
font-size: 32rpx;
}
.start_btn {
margin: 143rpx auto 0 auto;
width: 300rpx;
height: 80rpx;
border-radius: 40rpx;
color: #21AE59;
font-size: 34rpx;
font-weight: bold;
border: 1rpx solid #21AE59;
z-index: 20rpx;
display: flex;
align-items: center;
justify-content: center;
}
.start_btn:active {
opacity: 0.7;
}
/* */
page {
background-color: rgb(240, 240, 240);
}
.result_wrap {
margin: 24rpx 24rpx;
}
.result {
font-size: 32rpx;
color: #323233;
line-height: 44rpx;
display: flex;
align-items: center;
}
.result view {
width: 8rpx;
height: 28rpx;
background-color: #21AE59;
margin-right: 16rpx;
}
/* */
.result_list_wrap {
display: flex;
}
.result_left {
width: 25rpx;
height: 200rpx;
/* border: 1px solid red; */
position: relative;
margin-top: 48rpx;
margin-right: 8rpx;
}
.circle {
width: 26rpx;
height: 26rpx;
opacity: 0.3;
background: #14ac20;
border-radius: 50%;
}
.circle_s {
margin: auto;
width: 14rpx;
height: 14rpx;
background: #14ac20;
border-radius: 50%;
position: absolute;
left: 6rpx;
top: 6rpx;
}
.circle_line {
margin: auto;
width: 2rpx;
height: 234rpx;
background-color: #C6C6C6;
}
.result_left_red {
width: 25rpx;
height: 200rpx;
/* border: 1px solid red; */
position: relative;
margin-top: 48rpx;
margin-right: 8rpx;
}
.circle_red {
width: 26rpx;
height: 26rpx;
opacity: 0.3;
background: red;
border-radius: 50%;
}
.circle_s_red {
margin: auto;
width: 14rpx;
height: 14rpx;
background: red;
border-radius: 50%;
position: absolute;
left: 6rpx;
top: 6rpx;
}
.circle_line_red {
margin: auto;
width: 2rpx;
height: 234rpx;
background-color: #C6C6C6;
}
/* */
.result_list {
margin-top: 32rpx;
box-sizing: border-box;
padding: 24rpx 32rpx;
width: 654rpx;
height: 148rpx;
background-color: #ffffff;
border-radius: 16rpx;
border-color: red green blue pink
}
.result_list :nth-child(1) {
font-size: 32rpx;
color: #323233;
line-height: 44rpx;
}
.result_list :nth-child(2) {
font-size: 28rpx;
font-weight: 400;
color: #7d7e80;
line-height: 40rpx;
}
\ No newline at end of file
...
...
zhiyuanzhe/project.config.json
0 → 100644
查看文件 @
50ed0a3
{
"description"
:
"项目配置文件"
,
"packOptions"
:
{
"ignore"
:
[]
},
"setting"
:
{
"urlCheck"
:
false
,
"es6"
:
true
,
"enhance"
:
false
,
"postcss"
:
true
,
"preloadBackgroundData"
:
false
,
"minified"
:
true
,
"newFeature"
:
true
,
"coverView"
:
true
,
"nodeModules"
:
false
,
"autoAudits"
:
false
,
"showShadowRootInWxmlPanel"
:
true
,
"scopeDataCheck"
:
false
,
"uglifyFileName"
:
true
,
"checkInvalidKey"
:
true
,
"checkSiteMap"
:
true
,
"uploadWithSourceMap"
:
true
,
"compileHotReLoad"
:
false
,
"useMultiFrameRuntime"
:
false
,
"useApiHook"
:
true
,
"babelSetting"
:
{
"ignore"
:
[],
"disablePlugins"
:
[],
"outputPath"
:
""
},
"useIsolateContext"
:
true
,
"useCompilerModule"
:
true
,
"userConfirmedUseCompilerModuleSwitch"
:
false
,
"packNpmManually"
:
false
,
"packNpmRelationList"
:
[]
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.3"
,
"appid"
:
"wx7a3bf4e0796c070a"
,
"projectname"
:
"zhiyuanzhe"
,
"cloudfunctionTemplateRoot"
:
""
,
"watchOptions"
:
{
"ignore"
:
[]
},
"debugOptions"
:
{
"hidedInDevtools"
:
[]
},
"scripts"
:
{},
"simulatorType"
:
"wechat"
,
"simulatorPluginLibVersion"
:
{},
"condition"
:
{
"search"
:
{
"current"
:
-1
,
"list"
:
[]
},
"conversation"
:
{
"current"
:
-1
,
"list"
:
[]
},
"plugin"
:
{
"current"
:
-1
,
"list"
:
[]
},
"game"
:
{
"current"
:
-1
,
"list"
:
[]
},
"gamePlugin"
:
{
"current"
:
-1
,
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
-1
,
"list"
:
[
{
"id"
:
0
,
"name"
:
"工作计划表"
,
"pathName"
:
"pages/word_report/word_report"
,
"query"
:
"id=17&status=1"
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/myteam/myteam"
,
"pathName"
:
"pages/myteam/myteam"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
2
,
"name"
:
"我的培训"
,
"pathName"
:
"pages/mytrain/mytrain"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/Online_regulations/Online_regulations"
,
"pathName"
:
"pages/Online_regulations/Online_regulations"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
4
,
"name"
:
"学习内容"
,
"pathName"
:
"pages/getStudycontent/getStudycontent"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/apply/apply"
,
"pathName"
:
"pages/apply/apply"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/Volunteer_detail/Volunteer_detail"
,
"pathName"
:
"pages/Volunteer_detail/Volunteer_detail"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
7
,
"name"
:
"志愿回馈"
,
"pathName"
:
"pages/myfeedback/myfeedback"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/myaddress/myaddress"
,
"pathName"
:
"pages/myaddress/myaddress"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
9
,
"name"
:
"志愿动态"
,
"pathName"
:
"pages/Volunteer_dynamic/Volunteer_dynamic"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/guanlitiaoli/guanlitiaoli"
,
"pathName"
:
"pages/guanlitiaoli/guanlitiaoli"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/mycertificate/mycertificate"
,
"pathName"
:
"pages/mycertificate/mycertificate"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
12
,
"name"
:
"申请加入"
,
"pathName"
:
"pages/Volunteer_group/active/active"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"志愿团队"
,
"pathName"
:
"pages/Volunteer_group/Volunteer_group"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"我的地址列表"
,
"pathName"
:
"pages/myaddress/myaddress"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"我的收货地址"
,
"pathName"
:
"pages/myaddcompile/myaddcompile"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"我的团队"
,
"pathName"
:
"pages/myteam/myteam"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
18
,
"name"
:
"商品详情"
,
"pathName"
:
"pages/myfeedback/myfeedback_active/myfeedback_active"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"积分兑换"
,
"pathName"
:
"pages/myfeedback/myfeedback_duihuan/myfeedback_duihuan"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"光荣排行"
,
"pathName"
:
"pages/guangrongpaihang/guangrongpaihang"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"我的活动"
,
"pathName"
:
"pages/myactivity/myactivity"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/myactivity/myactivity_active/myactivity_active"
,
"pathName"
:
"pages/myactivity/myactivity_active/myactivity_active"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"答题详情"
,
"pathName"
:
"pages/getStudycontent/answer/answer"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
23
,
"name"
:
"在线培训"
,
"pathName"
:
"pages/Online_regulations/Online_regulations"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
24
,
"name"
:
"学习内容"
,
"pathName"
:
"pages/getStudycontent/getStudycontent"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"dati "
,
"pathName"
:
"pages/getStudycontent/answer/answer"
,
"query"
:
"id=1"
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"电子证件"
,
"pathName"
:
"pages/mycertificate/mycertificate"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"编辑资料"
,
"pathName"
:
"pages/mydetail/mydetail"
,
"query"
:
""
,
"scene"
:
null
},
{
"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"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"志愿动态详情"
,
"pathName"
:
"pages/getNewsInfo/getNewsInfo"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"审核状态"
,
"pathName"
:
"pages/result/result"
,
"query"
:
""
,
"scene"
:
null
}
]
}
}
}
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论