2025-07-09 17:27:30 +08:00
|
|
|
<template>
|
2025-07-11 18:14:47 +08:00
|
|
|
<view class="gb template-edit tn-safe-area-inset-bottom">
|
|
|
|
<tn-nav-bar customBack :bottomShadow="false" backgroundColor="transparent">
|
|
|
|
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-center">
|
|
|
|
</view>
|
|
|
|
<view slot="back" class='tn-custom-nav-bar__back' @click="goBack">
|
|
|
|
<image src="/static/wback.png"
|
|
|
|
style="width: 64rpx;height: 64rpx;vertical-align: middle;margin-left: 10px;"></image>
|
2025-07-09 17:27:30 +08:00
|
|
|
</view>
|
|
|
|
</tn-nav-bar>
|
|
|
|
<view class="tn-safe-area-inset-bottom" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
2025-07-11 18:14:47 +08:00
|
|
|
<view style="padding: 30rpx;margin-top: 260rpx;">
|
|
|
|
<view style="background-color: #ffffff;border-radius: 18rpx;padding-bottom: 20rpx;">
|
|
|
|
<view class="tn-flex tn-flex-row-between tn-flex-col-center" style="padding:20rpx 30rpx;">
|
|
|
|
<view style="width: 30%;">
|
|
|
|
<view class="tn-padding-right-xs tn-text-bold">
|
|
|
|
<text class="tn-icon-title" style="color: #FE6E25;"></text>
|
|
|
|
<text>反馈人</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="padding: 20rpx 30rpx;width: 70%;text-align: right;">
|
|
|
|
<input placeholder="请输入您的姓名" disabled v-model="formData.name"
|
|
|
|
placeholder-style="color:#9B9B9B"></input>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="width: 90%;height: 1px;background-color:#E5E5E5;margin: 0 auto;"></view>
|
|
|
|
<view class="tn-flex tn-flex-row-between tn-flex-col-center" style="padding:20rpx 30rpx;">
|
|
|
|
<view style="width: 30%;">
|
|
|
|
<view class="tn-padding-right-xs tn-text-bold">
|
|
|
|
<text class="tn-icon-title" style="color: #FE6E25;"></text>
|
|
|
|
<text>联系方式</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="padding: 20rpx 30rpx;width: 70%;text-align: right;">
|
|
|
|
<input placeholder="请输入您的联系方式" disabled v-model="formData.phone"
|
|
|
|
placeholder-style="color:#9B9B9B"></input>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="width: 90%;height: 1px;background-color:#E5E5E5;margin: 0 auto;"></view>
|
|
|
|
<view class="tn-flex tn-flex-row-between tn-flex-col-center" style="padding:20rpx 30rpx;">
|
|
|
|
<view class="tn-padding-right-xs tn-text-bold">
|
|
|
|
<text class="tn-icon-title" style="color: #FE6E25;"></text>
|
|
|
|
<text>反馈内容</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="tn-margin tn-bg-gray--light tn-padding" style="border-radius: 10rpx;">
|
|
|
|
<textarea maxlength="500" v-model="formData.content" placeholder="填写反馈内容"
|
|
|
|
placeholder-style="color:#AAAAAA"></textarea>
|
|
|
|
</view>
|
2025-07-09 17:27:30 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 悬浮按钮-->
|
2025-07-11 18:14:47 +08:00
|
|
|
<view style="text-align: center;margin-top: 40rpx;">
|
|
|
|
<tn-button shape="round" width="85%" height="85rpx" backgroundColor="#FE6E25" fontColor="#ffffff" @tap="submit">
|
|
|
|
提 交
|
|
|
|
</tn-button>
|
2025-07-09 17:27:30 +08:00
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class='tn-tabbar-height'></view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2025-07-11 18:14:47 +08:00
|
|
|
import {
|
|
|
|
messageAdd
|
|
|
|
} from "@/util/api";
|
|
|
|
import store from "@/store";
|
2025-07-09 17:27:30 +08:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
topCurrent: 0,
|
2025-07-11 18:14:47 +08:00
|
|
|
formData: {
|
|
|
|
name: '',
|
|
|
|
phone: '',
|
|
|
|
content: '',
|
|
|
|
association_id: store.state.Gid,
|
|
|
|
member_id: uni.getStorageSync('uid'),
|
|
|
|
createtime: new Date().toISOString().slice(0, 19).replace('T', ' ')
|
|
|
|
}
|
2025-07-09 17:27:30 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
2025-07-11 18:14:47 +08:00
|
|
|
submit() {
|
|
|
|
messageAdd(this.formData)
|
|
|
|
.then(res => {
|
|
|
|
console.log(res);
|
|
|
|
if (res.code == 1) {
|
|
|
|
uni.showToast({
|
|
|
|
title: '提交成功!',
|
|
|
|
icon: 'none',
|
|
|
|
duration: 2000
|
|
|
|
});
|
|
|
|
this.formData.name = '';
|
|
|
|
this.formData.phone = '';
|
|
|
|
this.formData.content = '';
|
|
|
|
} else {
|
|
|
|
uni.showToast({
|
|
|
|
title: res.msg,
|
|
|
|
icon: 'none',
|
|
|
|
duration: 2000
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.catch(error => {
|
|
|
|
uni.showToast({
|
|
|
|
title: error,
|
|
|
|
icon: 'none',
|
|
|
|
duration: 2000
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
2025-07-09 17:27:30 +08:00
|
|
|
// 跳转
|
|
|
|
tn(e) {
|
|
|
|
uni.navigateTo({
|
|
|
|
url: e,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
goBack() {
|
|
|
|
if (getCurrentPages().length > 1) {
|
|
|
|
uni.navigateBack()
|
|
|
|
} else {
|
|
|
|
uni.redirectTo({
|
|
|
|
url: '/pages/index/index'
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2025-07-11 18:14:47 +08:00
|
|
|
.gb {
|
|
|
|
background: url('https://ysx.0rui.cn/static/ider.png') no-repeat;
|
|
|
|
background-size: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding-bottom: 100rpx;
|
|
|
|
}
|
|
|
|
|
2025-07-09 17:27:30 +08:00
|
|
|
/* 底部悬浮按钮 start*/
|
|
|
|
.tn-tabbar-height {
|
|
|
|
min-height: 100rpx;
|
|
|
|
height: calc(120rpx + env(safe-area-inset-bottom) / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tn-footerfixed {
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
bottom: calc(30rpx + env(safe-area-inset-bottom));
|
|
|
|
z-index: 1024;
|
|
|
|
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 底部悬浮按钮 end*/
|
|
|
|
|
|
|
|
/* 标签内容 start*/
|
|
|
|
.tn-tag-content {
|
|
|
|
&__item {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 45rpx;
|
|
|
|
padding: 10rpx 30rpx;
|
|
|
|
margin: 20rpx 20rpx 5rpx 0rpx;
|
|
|
|
|
|
|
|
&--prefix {
|
|
|
|
padding-right: 10rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 标签内容 end*/
|
2025-07-11 18:14:47 +08:00
|
|
|
</style>
|