Browse Source

新增我要帮住 和加入志愿者

master
linyumoya 8 months ago
parent
commit
b8ba053e74
6 changed files with 257 additions and 2 deletions
  1. +7
    -0
      pages.json
  2. +1
    -1
      pages/index/center.vue
  3. +1
    -1
      pages/index/index.vue
  4. +83
    -0
      pages_order/mine/volunteer.vue
  5. +165
    -0
      pages_order/service/help.vue
  6. BIN
      pages_order/static/help/uploading.png

+ 7
- 0
pages.json View File

@ -100,7 +100,14 @@
}, },
{ {
"path": "service/articleDetail" "path": "service/articleDetail"
},
{
"path": "service/help"
},
{
"path": "mine/volunteer"
} }
] ]
}], }],
"globalStyle": { "globalStyle": {


+ 1
- 1
pages/index/center.vue View File

@ -74,7 +74,7 @@
<!-- 加入志愿者 --> <!-- 加入志愿者 -->
<uv-cell icon="setting-fill" title="加入志愿者" <uv-cell icon="setting-fill" title="加入志愿者"
isLink>
isLink @click="$utils.navigateTo('/pages_order/mine/volunteer')">
<template #icon> <template #icon>
<image src="/static/image/center/4.png" <image src="/static/image/center/4.png"
class="uv-cell-icon"></image> class="uv-cell-icon"></image>


+ 1
- 1
pages/index/index.vue View File

@ -110,7 +110,7 @@
{ {
icon : '/static/image/home/g10.png', icon : '/static/image/home/g10.png',
title : '我要帮助', title : '我要帮助',
path : '',
path : '/pages_order/service/help',
}, },
], ],
bannerList: [ bannerList: [


+ 83
- 0
pages_order/mine/volunteer.vue View File

@ -0,0 +1,83 @@
<template>
<!-- 加入志愿者 -->
<view class="volunteer">
<navbar title="加入志愿者" leftClick @leftClick="$utils.navigateBack" />
<view class="volunteer-form">
<view class="volunteer-form-title">
<view>志愿者信息</view>
</view>
<view class="volunteer-form-sheet">
<view>
<uv-input placeholder="请输入您的姓名" border="none" fontSize="28rpx"
:custom-style="{backgroundColor: '#fff'}">
<template #prefix>
<view style="background-color: #FCFAF3;">
<uv-text size="28rpx" margin="30rpx 50rpx 30rpx 0rpx" text="姓名" />
</view>
</template>
</uv-input>
</view>
<view>
<uv-input placeholder="请输入证件号码" border="none" fontSize="28rpx"
:custom-style="{backgroundColor: '#fff'}">
<template #prefix>
<view style="background-color: #FCFAF3;">
<uv-text size="28rpx" margin="30rpx 30rpx 30rpx 0rpx" text="证件号码" />
</view>
</template>
</uv-input>
</view>
<view>
<uv-input placeholder="请输入手机号码" border="none" fontSize="28rpx"
:custom-style="{backgroundColor: '#fff'}">
<template #prefix>
<view style="background-color: #FCFAF3;">
<uv-text size="28rpx" margin="30rpx 50rpx 30rpx 0rpx" text="手机号码" />
</view>
</template>
</uv-input>
</view>
<view>
<uv-input placeholder="请输入验证码" border="none" fontSize="28rpx"
:custom-style="{backgroundColor: '#fff'}">
<template #prefix>
<view style="background-color: #FCFAF3;">
<uv-text size="28rpx" margin="30rpx 50rpx 30rpx 0rpx" text="姓名" />
</view>
</template>
</uv-input>
</view>
</view>
</view>
</view>
</template>
<script>
</script>
<style scoped lang="scss">
.volunteer {
.volunteer-form {
width: 94%;
margin-top: 40rpx;
margin-left: 3%;
.volunteer-form-title {
color: #333;
font-size: 36rpx;
font-weight: 600;
padding: 0rpx 0rpx 0rpx 8rpx;
border-left: 8rpx solid #F6732D;
}
.volunteer-form-sheet {
display: flex;
height: 500rpx;
flex-direction: column;
justify-content: space-around;
}
}
}
</style>

+ 165
- 0
pages_order/service/help.vue View File

@ -0,0 +1,165 @@
<template>
<!-- 我要帮助 -->
<view class="help">
<navbar title="我要帮助" leftClick @leftClick="$utils.navigateBack" />
<view class="help-box">
<view>
<view class="help-issue">
<text>问题和意见</text>
<text style="color: #BD3624;">*</text>
</view>
<uv-textarea v-model="value" :count="true" border="none" height="400"
placeholder="请把游览中发现的问题提交给我们,感谢您的参与(必填)" :text-style="{color:'#BCB7B7',fontSize:'28rpx'}" />
</view>
<view>
<view class="help-issue">
<text>问题截图</text>
<text style="color: #BD3624;">*</text>
</view>
<view class="help-screenshot">
<uv-upload :fileList="fileList1" accept="all " name="1" multiple :maxCount="3" width="220"
height="220" multiple @afterRead="afterRead" @delete="deletePic">
<image src="../static/help/uploading.png" mode="aspectFit"
style="width: 220rpx;height: 220rpx;" />
</uv-upload>
</view>
</view>
<view>
<view class="help-issue">
<text>联系方式</text>
<text style="color: #BD3624;">*</text>
</view>
<uv-input placeholder="请输入联系方式" fontSize="24rpx" border="bottom"
:custom-style="{backgroundColor: '#fff'}">
<template #prefix>
<uv-text text="联系姓名" size="24rpx" margin="20rpx 10rpx 20rpx 10rpx" />
</template>
</uv-input>
<uv-input placeholder="请输入联系姓名" border="none" fontSize="24rpx"
:custom-style="{backgroundColor: '#fff'}">
<template #prefix>
<uv-text text="联系方式" size="24rpx" margin="20rpx 10rpx 20rpx 10rpx" />
</template>
</uv-input>
</view>
<view class="help-button">
<view>历史反馈</view>
<view>确认</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
value: "",
fileList1: []
}
},
onLoad(args) {
},
methods: {
//
deletePic(event) {
this[`fileList${event.name}`].splice(event.index, 1)
},
//
async afterRead(event) {
// multiple true , file
let lists = [].concat(event.file)
let fileListLen = this[`fileList${event.name}`].length
lists.map((item) => {
this[`fileList${event.name}`].push({
...item,
status: 'uploading',
message: '上传中'
})
})
for (let i = 0; i < lists.length; i++) {
const result = await this.uploadFilePromise(lists[i].url)
let item = this[`fileList${event.name}`][fileListLen]
this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
status: 'success',
message: '',
url: result
}))
fileListLen++
}
},
uploadFilePromise(url) {
return new Promise((resolve, reject) => {
let a = uni.uploadFile({
url: 'http://127.0.0.1/upload', //
filePath: url,
name: 'file',
formData: {
user: 'test'
},
success: (res) => {
setTimeout(() => {
resolve(res.data.data)
}, 1000)
}
});
})
}
}
}
</script>
<style scoped lang="scss">
.help {
.help-box {
width: 92%;
margin-left: 4%;
.help-issue {
margin: 20rpx;
font-size: 28rpx;
font-weight: 600;
color: #333333;
}
.help-screenshot {
display: flex;
align-items: center;
background-color: #fff;
image {
padding: 60rpx;
}
}
.help-button {
display: flex;
justify-content: space-between;
font-size: 24rpx;
flex-shrink: 0;
margin-top: 60rpx;
view {
padding: 14rpx 120rpx;
border-radius: 38rpx;
}
view:nth-child(1) {
color: #C8C8C8;
background-color: #FFFDF6;
border: 2rpx solid #C8C8C8;
}
view:nth-child(2) {
color: #FFFDF6;
background-color: #C83741;
}
}
}
}
</style>

BIN
pages_order/static/help/uploading.png View File

Before After
Width: 216  |  Height: 216  |  Size: 7.2 KiB

Loading…
Cancel
Save