Files
2026-05-26 15:52:30 +08:00

67 lines
1.5 KiB
Vue

<template>
<view class="pages">
<s-layout :bgStyle="{ color: 'var(--color1)' }" title="意见反馈">
<view class="input bg24">
<uni-easyinput
v-model="text"
type="textarea"
placeholder="请输入您的意见"
@confirm="submit"
/>
</view>
<su-fixed bottom placeholder>
<view class="ss-p-x-20 ss-p-b-40">
<button class="loginout-btn ss-reset-button ui-BG-Main btn_bg" @tap="submit">
提交
</button>
</view>
</su-fixed>
</s-layout>
</view>
</template>
<script setup lang="ts">
import { ref, reactive, onMounted, onUnmounted, getCurrentInstance, watch, nextTick } from 'vue';
import * as api from '@/sheep/api/home/index';
let { proxy } = getCurrentInstance();
let text = ref('');
const submit = () => {
api
.createfeedback({
feedbackContent: text.value,
})
.then((res) => {
if (res.code === 0) {
text.value = '';
setTimeout(() => {
uni.navigateBack({ delta: 1 });
}, 500);
}
});
};
</script>
<style lang="scss" scoped>
.pages {
.input {
background-color: #fff;
margin-top: 24rpx;
padding-top: 40rpx;
}
}
:deep(.is-input-border) {
border: none;
}
:deep(.uni-easyinput__content-textarea) {
padding-top: 0;
// color: #ffffff;
}
.loginout-btn {
background: linear-gradient(131deg, #f7772e 0%, #ee0a24 100%), #4d88ff;
height: 100rpx;
font-size: 30rpx;
}
</style>