index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="container">
  3. <!-- #ifdef H5 -->
  4. <view style="color: #fff;">
  5. <tn-nav-bar backgroundColor="#26B3A0" :bottomShadow="false" @rightClick="jumpScoreRed">审核结果
  6. <!-- <template slot="right">
  7. 课程购买记录
  8. </template> -->
  9. </tn-nav-bar>
  10. <view :style="{ height: tobheight + 'px' }"></view>
  11. </view>
  12. <!-- #endif -->
  13. <view class="content">
  14. <view class="topIcon">
  15. <!-- <image src="../../../static/posImg.png" mode=""></image> -->
  16. <icon type="error" size="54" color="#26B3A0" />
  17. <view class="txt">
  18. 审核失败
  19. </view>
  20. </view>
  21. <view class="btn" @click="connectKefu">
  22. 联系客服
  23. </view>
  24. </view>
  25. <view class="line">
  26. </view>
  27. <view class="sunTitle">
  28. 失败原因
  29. </view>
  30. <view class="content2">
  31. {{detail.feedback_reason}}
  32. </view>
  33. <view class="sunTitle">
  34. 失败截图
  35. </view>
  36. <view class="chooscontainer">
  37. <view class="addpicall" v-for="(item,index) in pic_url" :key="index">
  38. <image style="width: 184rpx;height:186rpx;border-radius: 20rpx;" @click="previewImg(item)" :src="item"
  39. mode="aspectFill"></image>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import {
  46. myTaskOrderDetail
  47. } from '@/api/my/index.js'
  48. export default {
  49. components: {},
  50. data() {
  51. return {
  52. tobheight: 45,
  53. pic_url: [require('@/static/posImg.png')],
  54. detail: {}
  55. };
  56. },
  57. computed: {
  58. },
  59. watch: {
  60. },
  61. async onLoad(o) {
  62. let res = await myTaskOrderDetail({
  63. task_order_id: o.id
  64. })
  65. if (res.code == 0) {
  66. this.detail = res.data
  67. this.pic_url = this.detail.feedback_image.split(',')
  68. }
  69. console.log('任务详情', this.detail);
  70. },
  71. onReady() {
  72. },
  73. onShow() {
  74. },
  75. onUnload() {
  76. },
  77. methods: {
  78. //点击预览图片
  79. previewImg(item) {
  80. uni.previewImage({
  81. current: item,
  82. urls: this.pic_url, //存放图片的数组
  83. loop: true,
  84. indicator: 'default'
  85. })
  86. },
  87. connectKefu() {
  88. uni.navigateTo({
  89. url: '/pages/user/public/kefu'
  90. })
  91. }
  92. }
  93. };
  94. </script>
  95. <style lang="scss" scoped>
  96. @import './index.scss';
  97. </style>