建材商城系统20241014
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
2.8 KiB

4 months ago
  1. <template>
  2. <!-- 帮助与反馈 -->
  3. <view class="help">
  4. <navbar title="帮助与反馈" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="help-box">
  6. <view>
  7. <view class="help-issue">
  8. <text>问题和意见</text>
  9. <text style="color: #BD3624;">*</text>
  10. </view>
  11. <uv-textarea v-model="value" :count="true" border="none" height="400"
  12. placeholder="请把发现的问题提交给我们,感谢您的参与(必填)"
  13. :text-style="{color:'#BCB7B7',fontSize:'28rpx'}" />
  14. </view>
  15. <view>
  16. <view class="help-issue">
  17. <text>问题截图</text>
  18. <text style="color: #BD3624;">*</text>
  19. </view>
  20. <view class="help-screenshot">
  21. <uv-upload :fileList="fileList" multiple :maxCount="3" width="180rpx"
  22. height="180rpx" multiple @afterRead="afterRead" @delete="deleteImage">
  23. <image src="../static/help/uploading.png" mode="aspectFill"
  24. style="width: 180rpx;height: 180rpx;" />
  25. </uv-upload>
  26. </view>
  27. </view>
  28. <!-- <view>
  29. <view class="help-issue">
  30. <text>联系方式</text>
  31. <text style="color: #BD3624;">*</text>
  32. </view>
  33. <uv-input placeholder="请输入联系方式" fontSize="24rpx" border="bottom"
  34. :custom-style="{backgroundColor: '#fff'}">
  35. <template #prefix>
  36. <uv-text text="联系姓名" size="24rpx" margin="20rpx 10rpx 20rpx 10rpx" />
  37. </template>
  38. </uv-input>
  39. <uv-input placeholder="请输入联系姓名" border="none" fontSize="24rpx"
  40. :custom-style="{backgroundColor: '#fff'}">
  41. <template #prefix>
  42. <uv-text text="联系方式" size="24rpx" margin="20rpx 10rpx 20rpx 10rpx" />
  43. </template>
  44. </uv-input>
  45. </view> -->
  46. <view class="help-button">
  47. <view>确认</view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. value: "",
  57. fileList: []
  58. }
  59. },
  60. onLoad(args) {
  61. },
  62. methods: {
  63. deleteImage(e){
  64. this.fileList.splice(e.index, 1)
  65. },
  66. afterRead(e){
  67. let self = this
  68. e.file.forEach(file => {
  69. self.$Oss.ossUpload(file.url).then(url => {
  70. self.fileList.push({
  71. url
  72. })
  73. })
  74. })
  75. },
  76. }
  77. }
  78. </script>
  79. <style scoped lang="scss">
  80. .help {
  81. .help-box {
  82. width: 92%;
  83. margin-left: 4%;
  84. .help-issue {
  85. margin: 20rpx;
  86. font-size: 28rpx;
  87. font-weight: 600;
  88. color: #333333;
  89. }
  90. .help-screenshot {
  91. display: flex;
  92. align-items: center;
  93. background-color: #fff;
  94. padding: 20rpx;
  95. }
  96. .help-button {
  97. display: flex;
  98. justify-content: center;
  99. font-size: 24rpx;
  100. flex-shrink: 0;
  101. margin-top: 60rpx;
  102. view {
  103. padding: 14rpx 120rpx;
  104. border-radius: 38rpx;
  105. }
  106. view:nth-child(1) {
  107. background: $uni-color;
  108. color: #fff;
  109. }
  110. view:nth-child(2) {
  111. color: #FFFDF6;
  112. background-color: #C83741;
  113. }
  114. }
  115. }
  116. }
  117. </style>