progress_detail.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <template>
  2. <view class="warpbox">
  3. <view class="itembox">
  4. <view class="item_title">{{i18n['客户信息']}}</view>
  5. <view class="serwarp">
  6. <view class="label">{{i18n['联系人']}}</view>
  7. <view class="seright">{{info.linkman?info.linkman:''}}</view>
  8. </view>
  9. <view class="serwarp">
  10. <view class="label">{{i18n['手机号']}}</view>
  11. <view class="seright">{{info.linkfun?info.linkfun:''}}</view>
  12. </view>
  13. </view>
  14. <view class="itembox">
  15. <view class="item_title">{{i18n['服务信息']}}</view>
  16. <view class="serwarp">
  17. <view class="label">{{i18n['情况描述']}}</view>
  18. <view class="seright">{{info.desc}}</view>
  19. </view>
  20. <!-- <view class="serwarp">
  21. <view class="label">{{i18n['预约时间']}}</view>
  22. <view class="seright">{{info.createtime?info.createtime:''}}</view>
  23. </view>
  24. <view class="serwarp_li">
  25. <view class="label">{{i18n['产品']}}</view>
  26. <view class="proli">
  27. <view class="pro" v-for="(item,index) in info.product_part" :key="index">
  28. <img :src="item.product.img" class="proimg" alt="">
  29. <view class="proname">{{item.product.name}}</view>
  30. </view>
  31. </view>
  32. </view> -->
  33. <view class="serwarp">
  34. <view class="label">{{i18n['图片']}}</view>
  35. <view class="imglist" v-if="info.file && info.file.length != 0">
  36. <view class="imgbox_con" v-for="(item,index) in info.file" :key="index" @click="toPreveimg(info.file,index)">
  37. <image :src="item.file_path" class="selfimg" mode=""></image>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="itembox">
  43. <view class="item_title" style="margin-bottom:24rpx;">{{i18n['评论内容']}}</view>
  44. <view class="comli" v-for="(item,index) in commList" :key="index">
  45. <view class="comcon">{{item.content}}</view>
  46. <view class="comtime">{{info.createtime}}</view>
  47. </view>
  48. </view>
  49. <view class="button" @click="toComment">{{i18n['评论']}}</view>
  50. <reply-item ref="replyChild" @replySuccess="replySuccess"></reply-item>
  51. </view>
  52. </template>
  53. <script>
  54. import replyItem from '@/components/reply/common_reply'
  55. import { netOrderDetail, netCommentList } from '@/api/api.js'
  56. export default{
  57. components:{
  58. replyItem
  59. },
  60. data(){
  61. return{
  62. id:'',
  63. info:{},
  64. commList:[]
  65. }
  66. },
  67. computed:{
  68. i18n() {
  69. return this.$t("progress")
  70. }
  71. },
  72. onShow() {
  73. uni.setNavigationBarTitle({
  74. title: this.i18n['详情']
  75. })
  76. },
  77. onLoad(options) {
  78. this.id = options.id
  79. this.getDetail()
  80. //获取评论列表
  81. this.getComment()
  82. },
  83. methods:{
  84. getDetail() {
  85. netOrderDetail({id:this.id}).then(res=>{
  86. this.info = res.data
  87. })
  88. },
  89. getComment() {
  90. netCommentList({id:this.id}).then(res=>{
  91. this.commList = res.data
  92. })
  93. },
  94. toPreveimg(arr,index) {
  95. let data = []
  96. arr.forEach(ele=>{
  97. data.push(ele.file_path)
  98. })
  99. uni.previewImage({
  100. current:index,
  101. urls:data
  102. })
  103. },
  104. toComment() {
  105. this.$refs.replyChild.init(this.id)
  106. },
  107. replySuccess() {
  108. //获取评论列表
  109. this.getComment()
  110. }
  111. }
  112. }
  113. </script>
  114. <style lang="scss" scoped>
  115. .warpbox{
  116. background: linear-gradient(180deg, #DFF0FF 0%, #F4F4F4 20%);
  117. .itembox{
  118. width:690rpx;
  119. margin:0 auto 24rpx;
  120. background:#fff;
  121. border-radius: 20rpx;
  122. padding:24rpx;
  123. .item_title{
  124. padding-left:35rpx;
  125. padding-bottom:24rpx;
  126. border-bottom:1rpx solid #EDEDED;
  127. font-size:26rpx;
  128. color:#666666;
  129. position: relative;
  130. &::before{
  131. content:'';
  132. width:14rpx;
  133. height:35rpx;
  134. border-radius: 8rpx;
  135. background:#65ABF6;
  136. position: absolute;
  137. left:0;
  138. top:3rpx;
  139. }
  140. }
  141. .comli{
  142. margin-bottom:35rpx;
  143. border-bottom:1rpx solid #EDEDED;
  144. padding-bottom:15rpx;
  145. .comcon{
  146. font-size:24rpx;
  147. color:#999999;
  148. line-height: 35rpx;
  149. }
  150. .comtime{
  151. text-align: right;
  152. font-size:24rpx;
  153. color:#999;
  154. margin-top:24rpx;
  155. }
  156. }
  157. .serwarp{
  158. display: flex;
  159. justify-content: space-between;
  160. align-items: center;
  161. padding:24rpx;
  162. font-size:24rpx;
  163. color:#666;
  164. .label{
  165. flex-shrink: 0;
  166. margin-right:15rpx;
  167. }
  168. .seright{
  169. text-align: right;
  170. }
  171. .imglist{
  172. display: flex;
  173. justify-content: flex-end;
  174. .imgbox_con{
  175. width:80rpx;
  176. height:80rpx;
  177. margin-left:15rpx;
  178. .selfimg{
  179. width:80rpx;
  180. height:80rpx;
  181. }
  182. }
  183. }
  184. }
  185. .serwarp_li{
  186. padding:24rpx;
  187. font-size:24rpx;
  188. color:#666;
  189. .label{
  190. flex-shrink: 0;
  191. margin-right:15rpx;
  192. }
  193. .proli{
  194. padding:24rpx 24rpx 0;
  195. display: flex;
  196. justify-content: flex-start;
  197. flex-wrap: wrap;
  198. .pro{
  199. display: flex;
  200. flex-direction: column;
  201. align-items: center;
  202. margin-right:24rpx;
  203. margin-bottom:24rpx;
  204. .proimg{
  205. width:100rpx;
  206. height:100rpx;
  207. margin-bottom:8rpx;
  208. }
  209. }
  210. }
  211. }
  212. }
  213. }
  214. .tipwarp{
  215. font-size:30rpx;
  216. color:#000;
  217. padding:15rpx 30rpx;
  218. width:750rpx;
  219. background:#f5f5f5;
  220. }
  221. .infowarp{
  222. width:750rpx;
  223. background:#fff;
  224. .info_li{
  225. padding:30rpx;
  226. margin-bottom:24rpx;
  227. .info_con{
  228. font-size:28rpx;
  229. color:#000;
  230. padding-left:45rpx;
  231. margin-bottom:10rpx;
  232. position: relative;
  233. &::before{
  234. content:'';
  235. width:20rpx;
  236. height:20rpx;
  237. border-radius: 50%;
  238. border:5rpx solid #4CD964;
  239. position: absolute;
  240. left:0;
  241. top:0;
  242. }
  243. }
  244. .info_time{
  245. font-size:26rpx;
  246. color:#666;
  247. padding-left:30rpx;
  248. }
  249. }
  250. }
  251. .de_bot_warp{
  252. position: fixed;
  253. left:0;
  254. bottom:0;
  255. width:750rpx;
  256. height:90rpx;
  257. display: flex;
  258. justify-content: center;
  259. align-items: center;
  260. border-top:1rpx solid #f5f5f5;
  261. .bot_btn{
  262. width:300rpx;
  263. height:76rpx;
  264. border-radius: 38rpx;
  265. text-align: center;
  266. line-height: 76rpx;
  267. font-size:26rpx;
  268. color:#fff;
  269. background:#0287FF;
  270. }
  271. .bot_btn_remove{
  272. margin-left:15rpx;
  273. background:#999999;
  274. }
  275. }
  276. </style>