This commit is contained in:
zmj 2024-05-10 09:45:35 +08:00
parent ed8e85904b
commit c2b4521dfd
4 changed files with 118 additions and 11 deletions

View File

@ -1,11 +1,74 @@
<template> <template>
<view class="content">
<view class="card">
<view class="card-li">
<text>反馈类型</text>
<text style="color: #737373 ;">注册</text>
</view>
<view class="card-li">
<text>问题分类</text>
<text style="color: #737373 ;">注册</text>
</view>
<view class="card-li">
<text>姓名</text>
<text style="color: #737373 ;">注册</text>
</view>
<view class="card-li">
<text>电话邮箱</text>
<text style="color: #737373 ;">注册</text>
</view>
</view>
<view class="card">
<view class=""> <view class="">
detail文件 反馈的具体内容可能很长
</view>
<view style="margin-top: 20rpx;">
<up-image :show-loading="true" src="https://cdn.uviewui.com/uview/album/1.jpg" width="160rpx"
height="160rpx" @click="previewImg('https://cdn.uviewui.com/uview/album/1.jpg')"></up-image>
</view>
</view>
</view> </view>
</template> </template>
<script> <script setup>
const previewImg = (url) => {
uni.previewImage({
urls: [url],
longPressActions: {
// itemList: ['', '', ''],
// success: function(data) {
// console.log('' + (data.tapIndex + 1) + ',' + (data.index + 1) + '');
// },
// fail: function(err) {
// console.log(err.errMsg);
// }
}
});
}
</script> </script>
<style> <style lang="scss">
.content {
padding: 20rpx;
.card {
background-color: white;
padding: 20rpx;
border-radius: 16rpx;
margin-bottom: 30rpx;
.card-li {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
}
}
}
</style> </style>

View File

@ -46,7 +46,7 @@
v-model="formData.phone"></up-input> v-model="formData.phone"></up-input>
</view> </view>
<view class="btn"> <view class="btn">
<up-button text="提交反馈" shape='circle' color="#20B128"></up-button> <up-button text="提交反馈" @click="submit" shape='circle' color="#20B128"></up-button>
<view style="display: flex;align-items: center;margin-top: 20rpx;"> <view style="display: flex;align-items: center;margin-top: 20rpx;">
<view style="margin: 0 auto; display: flex;" @click="navgo('/pageQuota/feedBack/list')"> <view style="margin: 0 auto; display: flex;" @click="navgo('/pageQuota/feedBack/list')">
反馈记录 <up-icon name="arrow-right"></up-icon> 反馈记录 <up-icon name="arrow-right"></up-icon>
@ -134,6 +134,18 @@
}); });
}); });
}; };
const submit = () => {
uni.showToast({
title: '提交成功',
duration: 2000
});
setTimeout(function() {
uni.navigateTo({
url: '/pageQuota/feedBack/list'
})
}, 2000);
}
</script> </script>
<style lang="scss"> <style lang="scss">

View File

@ -1,11 +1,43 @@
<template> <template>
<view class="content">
<view class="li" v-for="itme in 10" @click="goDetail">
<view class="lias">
<view class=""> <view class="">
list列表 <view class="">
<text style="color: #20B128;">未收到短信</text> 反馈内容
</view>
<view style="font-size: 24rpx;margin-top: 10rpx;">
2024-05-10 09:24:25
</view>
</view>
<up-icon name="arrow-right"></up-icon>
</view>
<up-line style="margin-top: 20rpx;" color="#EFEFEF"></up-line>
</view>
</view> </view>
</template> </template>
<script> <script setup>
const goDetail = () => {
uni.navigateTo({
url: '/pageQuota/feedBack/detail'
})
}
</script> </script>
<style> <style lang="scss">
.li {
background-color: white;
padding: 20rpx;
padding-bottom: 0;
// align-items: c;
}
.lias {
display: flex;
justify-content: space-between;
align-items: center;
}
</style> </style>

View File

@ -25,7 +25,7 @@ const useUserStore = defineStore("user", () => {
// #ifdef H5 // #ifdef H5
token.value = "1d5c66dda1a45860d7df55ad6ae59998" token.value = "37c15fa496186006ea3707aa4af0d54b"
// token.value = "95b24dd6d2dda836fe07854b08ba0944" // token.value = "95b24dd6d2dda836fe07854b08ba0944"
userInfo.value = { userInfo.value = {
avatar: "https://lihaiim.oss-cn-chengdu.aliyuncs.com/image/admin/default_avatar.png", avatar: "https://lihaiim.oss-cn-chengdu.aliyuncs.com/image/admin/default_avatar.png",
@ -35,7 +35,7 @@ const useUserStore = defineStore("user", () => {
mobile: "19330904744", mobile: "19330904744",
nickname: "用户1714964250", nickname: "用户1714964250",
supplier: null, supplier: null,
token: "1d5c66dda1a45860d7df55ad6ae59998" token: "37c15fa496186006ea3707aa4af0d54b"
} }
// #endif // #endif