first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1 @@
e37f9b16-0deb-4f61-9e8d-eff058f60878

View File

@@ -0,0 +1,113 @@
// user/feedback/feedback.js
const app = getApp();
const regeneratorRuntime = app.loadAsync()
const model = app.loadModel("index")
const http = app.loadHttp()
Page({
/**
* 页面的初始数据
*/
data: {
system: app.globalData.system, //设备相关信息
pageTitle: "问题反馈", //头部标题
isBack: true,//显示返回
text: "",//输入的文字
},
//
feedText(e) {
this.setData({
text: e.detail.value
})
},
questionBack() {
let that = this
if (that.data.text.length <= 0) {
wx.showToast({
title: '请填写您的问题',
icon: 'none',
duration: 1000
})
return
}
wx.showModal({
title: '问题反馈',
content: '对于您的反馈我们一定尽快处理',
cancelText: '取消',
confirmText: '提交',
success(res) {
if (res.confirm) {
http.http.request2({ url: `${http.api.questionBack}`, method: "POST", data: { remarks: that.data.text } })
.then(res => {
if (res.data.status == 1) {
that.setData({
text: ''
})
wx.showToast({
title: '提交成功',
icon: 'none',
duration: 2000
})
}
})
}
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -0,0 +1,4 @@
{
"navigationBarTextStyle": "black",
"usingComponents": {}
}

View File

@@ -0,0 +1,12 @@
<!-- 头部 -->
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
<!-- user/feedback/feedback.wxml -->
<view class="feedback">
<view class="feed_text mt20">
<textarea bindinput="feedText" maxlength="500" value="{{text}}" placeholder="请输入10个字以上您想要反馈的问题"></textarea>
<span>{{text.length}}/500</span>
</view>
<view class="feed_sub" bind:tap="questionBack">提交反馈</view>
</view>
<!-- toasta提示 -->
<i-toast id="toast" />

View File

@@ -0,0 +1,36 @@
/* user/feedback/feedback.wxss */
.feed_text{
background: #ffffff;
height: 355rpx;
padding: 32rpx 30rpx 45rpx 30rpx;
position: relative;
}
.feed_text textarea{
height: 100%;
width: 100%;
}
.feed_text span{
position: absolute;
bottom: 10rpx;
right: 25rpx;
font-size: 32rpx;
color: #cccccc;
}
.feed_sub{
width: 690rpx;
height: 100rpx;
background-image: linear-gradient(
#1dbf53,
#1dbf53),
linear-gradient(
#2fd152,
#2fd152);
background-blend-mode: normal,
normal;
border-radius: 10rpx;
font-size: 38rpx;
text-align: center;
line-height: 100rpx;
margin: 50rpx auto 0;
color: #ffffff;
}