Browse Source

上传文件至 'hangout-master/asset/components/report'

master
曹天怡 3 years ago
parent
commit
9cadc6deb7
4 changed files with 122 additions and 0 deletions
  1. +27
    -0
      hangout-master/asset/components/report/report.js
  2. +4
    -0
      hangout-master/asset/components/report/report.json
  3. +35
    -0
      hangout-master/asset/components/report/report.wxml
  4. +56
    -0
      hangout-master/asset/components/report/report.wxss

+ 27
- 0
hangout-master/asset/components/report/report.js View File

@ -0,0 +1,27 @@
// components/report/report.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
onRet: function () {
wx.reLaunch({
url: "/Pages/travel/home/home",
});
},
}
})

+ 4
- 0
hangout-master/asset/components/report/report.json View File

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

+ 35
- 0
hangout-master/asset/components/report/report.wxml View File

@ -0,0 +1,35 @@
<!--components/report/report.wxml-->
<view style="display: flex;">
<image class="navi" src="/asset/img/navi.png" bindtap="onRet"></image>
<view style="padding: 0;margin: 0;width: 1px;height:700px;background-color: #7B8B6F;"></view>
<view class="report" style="display: block;">
<view class="title">行动报备</view>
<view>
<image class="re1" src="/asset/img/icon-report1.png"></image>
<view class="report1">我要报备</view>
<view class="sent1" style="display: flex;">
我要去
<input type="text" style="height: 28px;width: 175px;margin-left: 10px;" placeholder="__________________" confirm-type="next" />
</view>
<view class="sent1" style="display: flex;">
我会在
<input type="text" style="height: 28px;width: 120px;margin-left: 10px;margin-right: 10px;" placeholder="__________________" confirm-type="done" />
回来
</view>
<view>
<image class="re2" src="/asset/img/icon-report2.png"></image>
<view class="report1" style="display: flex;">我要归队
<switch style="padding-left: 80px;" color="#D8CAAF" bindchange="onSend"></switch>
<!--TODO:传送到后端,发送消息给组长-->
</view>
</view>
</view>
</view>
</view>

+ 56
- 0
hangout-master/asset/components/report/report.wxss View File

@ -0,0 +1,56 @@
/* components/report/report.wxss */
.navi{
width: 40px;
height: 30px;
margin: 5px;
padding-top: 10px;
}
.title{
position: relative;
top: 20px;
left: 15px;
font-size: 22px;
font-weight: 900;
color: #000;
}
.report {
display: block;
padding: 0;
margin: 0;
position: relative;
top: -5px;
}
.re1{
position: relative;
margin: 20px;
top:50px;
width: 30px;
height:30px;
}
.report1{
position: relative;
font-size: 22px;
left: 70px;
}
.sent1{
position: relative;
font-size: 22px;
color: #000;
left:40px;
top:20px;
padding-bottom: 20px;
padding-top: 20px;
}
.re2{
position: relative;
margin: 20px;
top:50px;
width: 35px;
height:30px;
}

Loading…
Cancel
Save