add miniprogram
This commit is contained in:
66
miniprogram/pages/other/about.js
Normal file
66
miniprogram/pages/other/about.js
Normal file
@@ -0,0 +1,66 @@
|
||||
// pages/other/about.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
3
miniprogram/pages/other/about.json
Normal file
3
miniprogram/pages/other/about.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
2
miniprogram/pages/other/about.wxml
Normal file
2
miniprogram/pages/other/about.wxml
Normal file
@@ -0,0 +1,2 @@
|
||||
<!--pages/other/about.wxml-->
|
||||
<image src="../../img/about.png" class='imagesize'> </image>
|
11
miniprogram/pages/other/about.wxss
Normal file
11
miniprogram/pages/other/about.wxss
Normal file
@@ -0,0 +1,11 @@
|
||||
/* pages/other/about.wxss */
|
||||
page{
|
||||
height:100%
|
||||
}
|
||||
.imagesize{
|
||||
display:flex;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
align-items:center;
|
||||
}
|
82
miniprogram/pages/other/feedback.js
Normal file
82
miniprogram/pages/other/feedback.js
Normal file
@@ -0,0 +1,82 @@
|
||||
// pages/other/feedback.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
feedbackList:'',
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: 'http://127.0.0.1:8080/other/feedbackList',
|
||||
data: {
|
||||
id:wx.getStorageSync('id')
|
||||
},
|
||||
success: function (d) {
|
||||
for (const iterator of d.data.data) {
|
||||
if(!iterator.reply){
|
||||
iterator.reply = "暂无"
|
||||
}
|
||||
}
|
||||
that.setData({
|
||||
feedbackList: d.data.data
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
3
miniprogram/pages/other/feedback.json
Normal file
3
miniprogram/pages/other/feedback.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
9
miniprogram/pages/other/feedback.wxml
Normal file
9
miniprogram/pages/other/feedback.wxml
Normal file
@@ -0,0 +1,9 @@
|
||||
<!--pages/other/feedback.wxml-->
|
||||
<view class="perason">
|
||||
<h2 class="weui-form__title" style="text-align: center;padding-top: 20px;">我的反馈</h2>
|
||||
<view class="issues-panel" wx:for="{{feedbackList}}">
|
||||
<view class="issues-input" bindinput="titleInput" disabled="true">标题:{{item.title}}</view>
|
||||
<textarea class="issues-textarea" bindinput="contentInput" auto-height disabled="true">内容:{{item.content}}</textarea>
|
||||
<view class="issues-input" bindinput="titleInput" disabled="true">管理员回复:{{item.reply}}</view>
|
||||
</view>
|
||||
</view>
|
115
miniprogram/pages/other/feedback.wxss
Normal file
115
miniprogram/pages/other/feedback.wxss
Normal file
@@ -0,0 +1,115 @@
|
||||
/**issuse.wxss**/
|
||||
.perason{
|
||||
background-color: #f6f6f6;
|
||||
padding: 30rpx;
|
||||
padding-top: 0;
|
||||
font-size: 11pt;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
.issues-label{
|
||||
font-size: 10pt;
|
||||
line-height: 100%;
|
||||
color: #999;
|
||||
margin: 25rpx 20rpx 15rpx;
|
||||
}
|
||||
.issues-panel{
|
||||
margin-top: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.issues-img-panel{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding: 15rpx 25rpx;
|
||||
}
|
||||
.issues-input{
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding: 15rpx 25rpx;
|
||||
}
|
||||
.issues-textarea{
|
||||
padding: 25rpx;
|
||||
min-height: 225rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.issues-photo-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #888;
|
||||
margin: 20rpx;
|
||||
margin-right: 0;
|
||||
width: 135rpx;
|
||||
height: 135rpx;
|
||||
border: 1rpx solid #e5e5e5;
|
||||
border-radius: 5rpx;
|
||||
}
|
||||
.issues-photo-item:active{
|
||||
opacity: .8;
|
||||
}
|
||||
.issues-photo-item .remind-img{
|
||||
padding: 0;
|
||||
}
|
||||
.issues-photo-item image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.add-photo:active {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
.add-photo::before, .add-photo::after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
background: #e5e5e5;
|
||||
}
|
||||
.add-photo:active::before, .add-photo:active::after{
|
||||
background: #ddd;
|
||||
}
|
||||
.add-photo::before {
|
||||
width: 10rpx;
|
||||
height: 80rpx;
|
||||
margin-top: -40rpx;
|
||||
margin-left: -5rpx;
|
||||
}
|
||||
.add-photo::after {
|
||||
width: 80rpx;
|
||||
height: 10rpx;
|
||||
margin-top: -5rpx;
|
||||
margin-left: -40rpx;
|
||||
}
|
||||
.issues-remind {
|
||||
flex: 1;
|
||||
font-size: 9pt;
|
||||
line-height: 135%;
|
||||
color: #ccc;
|
||||
padding: 0 30rpx;
|
||||
word-break: break-all;
|
||||
text-indent: 1em;
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
.submit-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 40rpx 3%;
|
||||
height: 80rpx;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
background-color: #FF8966;
|
||||
color: #fff;
|
||||
font-size: 12pt;
|
||||
}
|
112
miniprogram/pages/other/feedbackReplay.js
Normal file
112
miniprogram/pages/other/feedbackReplay.js
Normal file
@@ -0,0 +1,112 @@
|
||||
// pages/other/feedback.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
feedbackList:'',
|
||||
replay: [],
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
doReplay: function (e) {
|
||||
this.setData({
|
||||
replay: e.detail.value
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: 'http://127.0.0.1:8080/other/feedbackListNoReplay',
|
||||
data: {
|
||||
id:wx.getStorageSync('id')
|
||||
},
|
||||
success: function (d) {
|
||||
for (const iterator of d.data.data) {
|
||||
if(!iterator.reply){
|
||||
iterator.reply = ""
|
||||
}
|
||||
}
|
||||
that.setData({
|
||||
feedbackList: d.data.data
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
replay: function (event) {
|
||||
var that = this
|
||||
console.log(event.target.dataset)
|
||||
wx.request({
|
||||
url: 'http://127.0.0.1:8080/other/feedbackReplay',
|
||||
data: {
|
||||
id:event.target.dataset.id,
|
||||
replay:event.target.dataset.replay
|
||||
},
|
||||
success: function (d) {
|
||||
wx.showToast({
|
||||
title: d.data.msg,
|
||||
icon: 'success',
|
||||
duration: 2000,
|
||||
success: function () {
|
||||
that.setData({
|
||||
replay : ""
|
||||
})
|
||||
that.onShow()
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
3
miniprogram/pages/other/feedbackReplay.json
Normal file
3
miniprogram/pages/other/feedbackReplay.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
14
miniprogram/pages/other/feedbackReplay.wxml
Normal file
14
miniprogram/pages/other/feedbackReplay.wxml
Normal file
@@ -0,0 +1,14 @@
|
||||
<!--pages/other/feedback.wxml-->
|
||||
<view class="perason">
|
||||
<h2 class="weui-form__title" style="text-align: center;padding-top: 20px;">反馈回复</h2>
|
||||
<view class="issues-panel" wx:for="{{feedbackList}}">
|
||||
<view class="issues-input" bindinput="titleInput" disabled="true">标题:{{item.title}}</view>
|
||||
<textarea class="issues-textarea" bindinput="contentInput" auto-height disabled="true" style="border-bottom: none;">内容:{{item.content}}</textarea>
|
||||
<view class="weui-cells weui-cells_after-title">
|
||||
<view class="weui-cell weui-cell_input">
|
||||
<input class="weui-input" auto-focus placeholder="请输入回复的内容" style="width: 80%;" bindinput="doReplay" data-id="{{item.id}}" />
|
||||
<button class="mini-btn" type="primary" size="mini" data-id="{{item.id}}" data-replay="{{replay}}" bindtap="replay">回复</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
115
miniprogram/pages/other/feedbackReplay.wxss
Normal file
115
miniprogram/pages/other/feedbackReplay.wxss
Normal file
@@ -0,0 +1,115 @@
|
||||
/**issuse.wxss**/
|
||||
.perason{
|
||||
background-color: #f6f6f6;
|
||||
padding: 30rpx;
|
||||
padding-top: 0;
|
||||
font-size: 11pt;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
.issues-label{
|
||||
font-size: 10pt;
|
||||
line-height: 100%;
|
||||
color: #999;
|
||||
margin: 25rpx 20rpx 15rpx;
|
||||
}
|
||||
.issues-panel{
|
||||
margin-top: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.issues-img-panel{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding: 15rpx 25rpx;
|
||||
}
|
||||
.issues-input{
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding: 15rpx 25rpx;
|
||||
}
|
||||
.issues-textarea{
|
||||
padding: 25rpx;
|
||||
min-height: 225rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.issues-photo-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #888;
|
||||
margin: 20rpx;
|
||||
margin-right: 0;
|
||||
width: 135rpx;
|
||||
height: 135rpx;
|
||||
border: 1rpx solid #e5e5e5;
|
||||
border-radius: 5rpx;
|
||||
}
|
||||
.issues-photo-item:active{
|
||||
opacity: .8;
|
||||
}
|
||||
.issues-photo-item .remind-img{
|
||||
padding: 0;
|
||||
}
|
||||
.issues-photo-item image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.add-photo:active {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
.add-photo::before, .add-photo::after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
background: #e5e5e5;
|
||||
}
|
||||
.add-photo:active::before, .add-photo:active::after{
|
||||
background: #ddd;
|
||||
}
|
||||
.add-photo::before {
|
||||
width: 10rpx;
|
||||
height: 80rpx;
|
||||
margin-top: -40rpx;
|
||||
margin-left: -5rpx;
|
||||
}
|
||||
.add-photo::after {
|
||||
width: 80rpx;
|
||||
height: 10rpx;
|
||||
margin-top: -5rpx;
|
||||
margin-left: -40rpx;
|
||||
}
|
||||
.issues-remind {
|
||||
flex: 1;
|
||||
font-size: 9pt;
|
||||
line-height: 135%;
|
||||
color: #ccc;
|
||||
padding: 0 30rpx;
|
||||
word-break: break-all;
|
||||
text-indent: 1em;
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
.submit-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 40rpx 3%;
|
||||
height: 80rpx;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
background-color: #FF8966;
|
||||
color: #fff;
|
||||
font-size: 12pt;
|
||||
}
|
126
miniprogram/pages/other/password.js
Normal file
126
miniprogram/pages/other/password.js
Normal file
@@ -0,0 +1,126 @@
|
||||
// pages/other/password.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
username:wx.getStorageSync('username'),
|
||||
pwd1:'',
|
||||
pwd2:'',
|
||||
pwd3:''
|
||||
},
|
||||
pwd1: function (e) {
|
||||
this.setData({
|
||||
pwd1: e.detail.value
|
||||
})
|
||||
},
|
||||
pwd2: function (e) {
|
||||
this.setData({
|
||||
pwd2: e.detail.value
|
||||
})
|
||||
},
|
||||
pwd3: function (e) {
|
||||
this.setData({
|
||||
pwd3: e.detail.value
|
||||
})
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
if(this.data.pwd2 != this.data.pwd3){
|
||||
wx.showToast({
|
||||
title: '新密码不一致',
|
||||
icon: 'error',
|
||||
duration: 2000
|
||||
})
|
||||
}else{
|
||||
wx.request({
|
||||
url: 'http://127.0.0.1:8080/user/updPwd',
|
||||
data: {
|
||||
username: this.data.username,
|
||||
pwd1: this.data.pwd1,
|
||||
pwd2: this.data.pwd2
|
||||
},
|
||||
success: function (d) {
|
||||
if (d.data == "请重新登录") {
|
||||
wx.showToast({
|
||||
title: d.data,
|
||||
icon: 'success',
|
||||
duration: 2000,
|
||||
success: function () {
|
||||
setTimeout(function() {
|
||||
wx.clearStorageSync()
|
||||
wx.navigateTo({
|
||||
url: '../login/login'
|
||||
})
|
||||
}, 2000);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: d.data,
|
||||
icon: 'error',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
3
miniprogram/pages/other/password.json
Normal file
3
miniprogram/pages/other/password.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
18
miniprogram/pages/other/password.wxml
Normal file
18
miniprogram/pages/other/password.wxml
Normal file
@@ -0,0 +1,18 @@
|
||||
<!--pages/other/password.wxml-->
|
||||
<view class="perason">
|
||||
原密码:
|
||||
<view class="issues-panel">
|
||||
<input class="issues-input" bindinput="pwd1" />
|
||||
</view>
|
||||
新密码:
|
||||
<view class="issues-panel">
|
||||
<input class="issues-input" bindinput="pwd2" />
|
||||
</view>
|
||||
再次输入新密码:
|
||||
<view class="issues-panel">
|
||||
<input class="issues-input" bindinput="pwd3" />
|
||||
</view>
|
||||
<view class="submit-btn" bindtap="submit">
|
||||
<text>提交修改</text>
|
||||
</view>
|
||||
</view>
|
114
miniprogram/pages/other/password.wxss
Normal file
114
miniprogram/pages/other/password.wxss
Normal file
@@ -0,0 +1,114 @@
|
||||
/* pages/other/password.wxss *//**issuse.wxss**/
|
||||
.perason{
|
||||
background-color: #f6f6f6;
|
||||
padding: 0 15px;
|
||||
padding-top: 30rpx;
|
||||
font-size: 11pt;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
.issues-label{
|
||||
font-size: 10pt;
|
||||
line-height: 100%;
|
||||
color: #999;
|
||||
margin: 25rpx 20rpx 15rpx;
|
||||
}
|
||||
.issues-panel{
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.issues-img-panel{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding: 15rpx 25rpx;
|
||||
}
|
||||
.issues-input{
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding: 15rpx 25rpx;
|
||||
}
|
||||
.issues-textarea{
|
||||
padding: 25rpx;
|
||||
min-height: 225rpx;
|
||||
}
|
||||
.issues-photo-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #888;
|
||||
margin: 20rpx;
|
||||
margin-right: 0;
|
||||
width: 135rpx;
|
||||
height: 135rpx;
|
||||
border: 1rpx solid #e5e5e5;
|
||||
border-radius: 5rpx;
|
||||
}
|
||||
.issues-photo-item:active{
|
||||
opacity: .8;
|
||||
}
|
||||
.issues-photo-item .remind-img{
|
||||
padding: 0;
|
||||
}
|
||||
.issues-photo-item image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.add-photo:active {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
.add-photo::before, .add-photo::after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
background: #e5e5e5;
|
||||
}
|
||||
.add-photo:active::before, .add-photo:active::after{
|
||||
background: #ddd;
|
||||
}
|
||||
.add-photo::before {
|
||||
width: 10rpx;
|
||||
height: 80rpx;
|
||||
margin-top: -40rpx;
|
||||
margin-left: -5rpx;
|
||||
}
|
||||
.add-photo::after {
|
||||
width: 80rpx;
|
||||
height: 10rpx;
|
||||
margin-top: -5rpx;
|
||||
margin-left: -40rpx;
|
||||
}
|
||||
.issues-remind {
|
||||
flex: 1;
|
||||
font-size: 9pt;
|
||||
line-height: 135%;
|
||||
color: #ccc;
|
||||
padding: 0 30rpx;
|
||||
word-break: break-all;
|
||||
text-indent: 1em;
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
.submit-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 40rpx 3%;
|
||||
height: 80rpx;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
background-color: #FF8966;
|
||||
color: #fff;
|
||||
font-size: 12pt;
|
||||
}
|
33
miniprogram/pages/other/redList.js
Normal file
33
miniprogram/pages/other/redList.js
Normal file
@@ -0,0 +1,33 @@
|
||||
Page({
|
||||
|
||||
data:{
|
||||
|
||||
tableInfo: {},
|
||||
count:''
|
||||
},
|
||||
|
||||
|
||||
onReady: function () {
|
||||
// 生命周期函数--监听页面初次渲染完成
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: 'http://127.0.0.1:8080/user/redCodeList',
|
||||
success: function (d) {
|
||||
let item = [];
|
||||
for (const iterator of d.data.data) {
|
||||
let item1 = [iterator.stu_id,iterator.name];
|
||||
item.push(item1)
|
||||
}
|
||||
that.setData({
|
||||
tableInfo:{
|
||||
title:["学号","姓名"],
|
||||
contentItem: item,
|
||||
},
|
||||
count: d.data.data.length
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
})
|
3
miniprogram/pages/other/redList.json
Normal file
3
miniprogram/pages/other/redList.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
22
miniprogram/pages/other/redList.wxml
Normal file
22
miniprogram/pages/other/redList.wxml
Normal file
@@ -0,0 +1,22 @@
|
||||
<template name="tableTemp">
|
||||
<view>
|
||||
<view class="table">
|
||||
<view class="tr">
|
||||
<block wx:for="{{title}}" wx:key="{{index}}">
|
||||
<view class="th left">{{item}}</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="tr" wx:for="{{contentItem}}" wx:key="index">
|
||||
<block wx:for="{{item}}" wx:key="index">
|
||||
<view class="td left">{{item}}</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<view style="margin-left: 220px;margin-top: 10px;">
|
||||
<h2>未填人数: {{count}}</h2>
|
||||
</view>
|
||||
<view class="tb1">
|
||||
<template is="tableTemp" data="{{...tableInfo}}" />
|
||||
</view>
|
42
miniprogram/pages/other/redList.wxss
Normal file
42
miniprogram/pages/other/redList.wxss
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
.table-wrap{
|
||||
top: 20rpx;
|
||||
}
|
||||
/* 表格代码 */
|
||||
.table{
|
||||
background-color: white;
|
||||
border:1px solid #dadada;
|
||||
border-right:0;
|
||||
border-bottom: 0;
|
||||
width: 96%;
|
||||
margin: auto;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.tr{
|
||||
width:100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.th{
|
||||
padding: 3px;
|
||||
border-bottom: 1px solid #dadada;
|
||||
border-right: 1px solid #dadada;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
background-color: rgba(139, 182, 155, 0.12);
|
||||
font-size: 28rpx;
|
||||
color: rgba(23, 21, 23, 0.73);
|
||||
}
|
||||
.td{
|
||||
padding: 3px;
|
||||
border-bottom: 1px solid #dadada;
|
||||
border-right: 1px solid #dadada;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.left{
|
||||
text-align: left;
|
||||
}
|
33
miniprogram/pages/other/redList2.js
Normal file
33
miniprogram/pages/other/redList2.js
Normal file
@@ -0,0 +1,33 @@
|
||||
Page({
|
||||
|
||||
data:{
|
||||
|
||||
tableInfo: {},
|
||||
count:''
|
||||
},
|
||||
|
||||
|
||||
onReady: function () {
|
||||
// 生命周期函数--监听页面初次渲染完成
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: 'http://127.0.0.1:8080/user/redCodeList2',
|
||||
success: function (d) {
|
||||
let item = [];
|
||||
for (const iterator of d.data.data) {
|
||||
let item1 = [iterator.stu_id,iterator.name];
|
||||
item.push(item1)
|
||||
}
|
||||
that.setData({
|
||||
tableInfo:{
|
||||
title:["学号","姓名"],
|
||||
contentItem: item,
|
||||
},
|
||||
count: d.data.data.length
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
})
|
3
miniprogram/pages/other/redList2.json
Normal file
3
miniprogram/pages/other/redList2.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
22
miniprogram/pages/other/redList2.wxml
Normal file
22
miniprogram/pages/other/redList2.wxml
Normal file
@@ -0,0 +1,22 @@
|
||||
<template name="tableTemp">
|
||||
<view>
|
||||
<view class="table">
|
||||
<view class="tr">
|
||||
<block wx:for="{{title}}" wx:key="{{index}}">
|
||||
<view class="th left">{{item}}</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="tr" wx:for="{{contentItem}}" wx:key="index">
|
||||
<block wx:for="{{item}}" wx:key="index">
|
||||
<view class="td left">{{item}}</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<view style="margin-left: 220px;margin-top: 10px;">
|
||||
<h2>不健康人数: {{count}}</h2>
|
||||
</view>
|
||||
<view class="tb1">
|
||||
<template is="tableTemp" data="{{...tableInfo}}" />
|
||||
</view>
|
42
miniprogram/pages/other/redList2.wxss
Normal file
42
miniprogram/pages/other/redList2.wxss
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
.table-wrap{
|
||||
top: 20rpx;
|
||||
}
|
||||
/* 表格代码 */
|
||||
.table{
|
||||
background-color: white;
|
||||
border:1px solid #dadada;
|
||||
border-right:0;
|
||||
border-bottom: 0;
|
||||
width: 96%;
|
||||
margin: auto;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.tr{
|
||||
width:100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.th{
|
||||
padding: 3px;
|
||||
border-bottom: 1px solid #dadada;
|
||||
border-right: 1px solid #dadada;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
background-color: rgba(139, 182, 155, 0.12);
|
||||
font-size: 28rpx;
|
||||
color: rgba(23, 21, 23, 0.73);
|
||||
}
|
||||
.td{
|
||||
padding: 3px;
|
||||
border-bottom: 1px solid #dadada;
|
||||
border-right: 1px solid #dadada;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.left{
|
||||
text-align: left;
|
||||
}
|
Reference in New Issue
Block a user