帧视界壹通告,付费看视频的微信小程序
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.

155 lines
3.4 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 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 @click="submitFeedback">确认</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. submitFeedback(){
  77. if(!this.value){
  78. uni.showToast({
  79. title: '请输入你的问题和意见',
  80. icon:'none'
  81. })
  82. return
  83. }
  84. this.$api('submitFeedback', {
  85. content : this.value,
  86. image : this.fileList.map((item) => item.url).join(","),
  87. }, res => {
  88. if(res.code == 200){
  89. uni.showToast({
  90. title: res.message,
  91. icon:'none'
  92. })
  93. setTimeout(() => {
  94. uni.navigateBack(-1)
  95. }, 2000)
  96. }
  97. })
  98. },
  99. }
  100. }
  101. </script>
  102. <style scoped lang="scss">
  103. .help {
  104. .help-box {
  105. width: 92%;
  106. margin-left: 4%;
  107. .help-issue {
  108. margin: 20rpx;
  109. font-size: 28rpx;
  110. font-weight: 600;
  111. color: #333333;
  112. }
  113. .help-screenshot {
  114. display: flex;
  115. align-items: center;
  116. background-color: #fff;
  117. padding: 20rpx;
  118. }
  119. .help-button {
  120. display: flex;
  121. justify-content: center;
  122. font-size: 26rpx;
  123. flex-shrink: 0;
  124. margin-top: 60rpx;
  125. view {
  126. padding: 25rpx 260rpx;
  127. border-radius: 38rpx;
  128. }
  129. view:nth-child(1) {
  130. background: $uni-linear-gradient-btn-color;
  131. color: #fff;
  132. border: 2rpx solid #C8C8C8;
  133. }
  134. view:nth-child(2) {
  135. color: #FFFDF6;
  136. background-color: #C83741;
  137. }
  138. }
  139. }
  140. }
  141. </style>