detail.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <view class="content">
  3. <view class="online_box">
  4. <view class="online_title">{{datas.illegal}}</view>
  5. <u-line color="#E6E6E6" />
  6. <view class="online" style="padding-top: 10rpx;">
  7. <view class="online_tit">违规说明</view>
  8. <view class="online_test">{{datas.wrongExplain}}</view>
  9. </view>
  10. <view class="online">
  11. <view class="online_tit">关联订单</view>
  12. <view class="online_text" v-if="datas.shipAddressDetail" >
  13. <image src="../static/tousu/black.png"></image>
  14. <text>{{datas.shipAddressDetail}}</text>
  15. </view>
  16. <view class="online_text" v-if="datas.deilveryAddressDetail">
  17. <image src="../static/tousu/orange.png"></image>
  18. <text>{{datas.deilveryAddressDetail}}</text>
  19. </view>
  20. <view class="online_text" v-if="datas.shopAddressDetail">
  21. <image src="../static/tousu/black.png"></image>
  22. <text>{{datas.shopAddressDetail}}</text>
  23. </view>
  24. <view class="online_text" v-if="datas.userAddressDetail">
  25. <image src="../static/tousu/orange.png"></image>
  26. <text>{{datas.userAddressDetail}}</text>
  27. </view>
  28. <view class="online_text" v-if="datas.indentNumber" @click="copyOrder(datas.indentNumber)">
  29. <image src="../static/tousu/orange.png"></image>
  30. <text>订单号:{{datas.indentNumber}}</text>
  31. </view>
  32. </view>
  33. <!-- <view class="online">
  34. <view class="online_tit">违规说明</view>
  35. <view style="font-size: 24rpx;margin-top: 10rpx;">{{datas.resultHanding}}</view>
  36. <view class="pnline_tip">如果配送中上报异常,审核成功后违规消除,不扣款</view>
  37. </view> -->
  38. </view>
  39. <!-- <view class="btn" v-if="datas.complaintState=='1'" @click="bindonline">在线申诉</view>
  40. <view class="btn btn1" v-if="datas.complaintState=='2'" >申诉中</view>
  41. <view class="btn" v-if="datas.complaintState=='3'"@click="bindonline" >申诉未通过</view>
  42. <view class="btn" v-if="datas.complaintState=='4'" >申诉通过</view> -->
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. list: [{
  50. id: 1,
  51. img: '../../../../static/image/black.png',
  52. name: '西安智能大厦'
  53. }, {
  54. id: 2,
  55. img: '../../../../static/image/orange.png',
  56. name: '用户地址隐藏',
  57. }],
  58. indentNumber:'',
  59. datas:{},
  60. complaintId: ''
  61. }
  62. },
  63. onLoad(options) {
  64. console.log(options)
  65. this.indentNumber =options.indentNumber
  66. this.complaintId = options.complaintId
  67. // this.bindorder()
  68. },
  69. onShow() {
  70. console.log('`````````````11111111')
  71. if(this.indentNumber!=''){
  72. this.bindorder()
  73. }
  74. },
  75. methods: {
  76. copyOrder(value) {
  77. uni.setClipboardData({
  78. data: value, //要被复制的内容
  79. success: () => { //复制成功的回调函数
  80. uni.showToast({ //提示
  81. title: '复制成功'
  82. })
  83. }
  84. });
  85. },
  86. bindonline() {
  87. uni.navigateTo({
  88. url: '/pages/riderMy/myOnline/myOnline?indentNumber='+this.indentNumber+'&complaintType='+this.datas.complaintType+'&complaintId='+this.complaintId
  89. })
  90. },
  91. // 获取数据
  92. bindorder() {
  93. this.$Request.getT('/app/tbindent/findComplaint',
  94. {
  95. indentNumber:this.indentNumber,
  96. complaintId: this.complaintId
  97. }).then(res => {
  98. if(res.code==0){
  99. this.datas = res.data
  100. }else{
  101. console.log('失败:',res.data)
  102. }
  103. });
  104. },
  105. }
  106. }
  107. </script>
  108. <style>
  109. body {
  110. background-color: #F5F5F5;
  111. }
  112. .content {
  113. width: 100%;
  114. }
  115. .online_box {
  116. width: 90%;
  117. margin: 0 auto;
  118. background: #FFFFFF;
  119. border-radius: 20rpx;
  120. margin-top: 30rpx;
  121. }
  122. .online_title {
  123. font-size: 28rpx;
  124. font-weight: bold;
  125. letter-spacing: 2rpx;
  126. width: 90%;
  127. margin: 0 auto;
  128. line-height: 80rpx;
  129. }
  130. .online {
  131. width: 90%;
  132. margin: 0 auto;
  133. padding-bottom: 34rpx;
  134. }
  135. .online_tit {
  136. font-size: 27rpx;
  137. letter-spacing: 2rpx;
  138. font-weight: bolder;
  139. line-height: 40rpx;
  140. }
  141. .online_test {
  142. color: #333333;
  143. font-size: 26rpx;
  144. letter-spacing: 2rpx;
  145. line-height: 38rpx;
  146. }
  147. .online_text {}
  148. .online_text image {
  149. width: 15rpx;
  150. height: 15rpx;
  151. }
  152. .online_text text {
  153. font-size: 21rpx;
  154. color: #333333;
  155. margin-left: 15rpx;
  156. letter-spacing: 1rpx;
  157. }
  158. .pnline_tip {
  159. color: #999999;
  160. font-size: 25rpx;
  161. line-height: 50rpx;
  162. }
  163. .btn {
  164. width: 90%;
  165. margin: 0 auto;
  166. background: #FF7F00;
  167. line-height: 90rpx;
  168. text-align: center;
  169. color: white;
  170. border-radius: 15rpx;
  171. margin-top: 20rpx;
  172. font-size: 28rpx;
  173. }
  174. .btn1{
  175. background: #ccc;
  176. }
  177. </style>