my_opinion.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="main">
  3. <view class="opinionList" v-for="(item,index) in opinion" :key="index" :data-id="item.id" @click="gotoinfo">
  4. <view class="margin-top-sm margin-lr-sm">
  5. <view class="flex align-center justify-between">
  6. <text>医生:{{item.order.docter.name}}</text>
  7. <view class="phonezi">
  8. 意见单
  9. </view>
  10. </view>
  11. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  12. 咨询类型:<text style="color: rgb(51,51,51);">{{item.order.product_type==1?'电话咨询':'图文咨询'}}</text>
  13. </view>
  14. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  15. 订单号:<text style="color: rgb(51,51,51);">{{item.order.order_sn}}</text>
  16. </view>
  17. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  18. 填写时间:<text style="color: rgb(51,51,51);">{{item.created_at}}</text>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. onLoad(op) {
  27. this.getopinion()
  28. },
  29. data() {
  30. return {
  31. pageindex: 1,
  32. opinion: []
  33. }
  34. },
  35. methods: {
  36. getopinion: async function() {
  37. let res = await this.$request.post("/api/v1/suggest/suggestList", {
  38. page: this.pageindex
  39. })
  40. console.log(res)
  41. if (res.status == 0) {
  42. this.opinion = res.data.data
  43. }
  44. },
  45. gotoinfo(e) {
  46. uni.navigateTo({
  47. url: "opinionInfo?id=" + e.currentTarget.dataset.id
  48. })
  49. }
  50. },
  51. onShow() {
  52. }
  53. }
  54. </script>
  55. <style lang="scss">
  56. .opinionList {
  57. padding-top: 40rpx;
  58. padding-bottom: 40rpx;
  59. border-radius: 16rpx;
  60. box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);
  61. margin-left: 20rpx;
  62. margin-right: 20rpx;
  63. margin-top: 15rpx;
  64. }
  65. .title_yijian {
  66. font-size: 20rpx;
  67. padding: 8rpx;
  68. border-radius: 20rpx;
  69. background-color: #0B73B9;
  70. color: #fff;
  71. width: 90rpx;
  72. text-align: center;
  73. margin-left: 20rpx;
  74. margin-right: 10rpx;
  75. }
  76. .phonezi {
  77. width: 160rpx;
  78. height: 54rpx;
  79. background: rgb(246, 246, 246);
  80. border-radius: 27rpx;
  81. font-size: 28rpx;
  82. font-family: PingFangSC-Regular, PingFang SC;
  83. font-weight: 400;
  84. color: #666666;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. }
  89. </style>