index.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view class="evaluate bg-white">
  3. <!-- header -->
  4. <cu-custom isBack bgColor="bg-gradual-blue"><view slot="content">评价(999+)</view></cu-custom>
  5. <!-- section -->
  6. <view class="section padding-lr">
  7. <view v-for="(item,index) in value" :key="index" class="item padding-bottom border">
  8. <cu-evaluate :value="item"/>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default{
  15. data(){
  16. return {
  17. value:[
  18. {
  19. avator:"https://gd-hbimg.huaban.com/1f50f2135ba51e4b9aa20caef41860b15005c9386f0b-LxqWsh_fw658/format/webp",
  20. nickname:"用户昵称",
  21. rate:3,
  22. createTime:"20220622 17:05:30",
  23. detail:"项目 'demo' 编译成功。前端运行日志,请另行在小程序开发工具的控制台查看。",
  24. imgs:[
  25. {
  26. id: 0,
  27. type: 'video',
  28. url: 'https://st0.dancf.com/gaoding/gaoding/229e7928-fb34-4a0c-b12b-b26fc0aba91453332268.mp4'
  29. },
  30. {
  31. id: 1,
  32. type: 'image',
  33. url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big84001.jpg'
  34. },
  35. {
  36. id: 2,
  37. type: 'image',
  38. url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big39000.jpg'
  39. },
  40. {
  41. id: 3,
  42. type: 'image',
  43. url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg'
  44. },
  45. {
  46. id: 4,
  47. type: 'image',
  48. url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big25011.jpg'
  49. },
  50. {
  51. id: 5,
  52. type: 'image',
  53. url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big21016.jpg'
  54. },
  55. {
  56. id: 6,
  57. type: 'image',
  58. url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg'
  59. }]
  60. }
  61. ]
  62. }
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. .evaluate{
  68. .border{
  69. position: relative;
  70. &::after{
  71. content:"";
  72. width: 100%;
  73. position: absolute;left: 0;bottom: 0;
  74. border-bottom: 1upx solid #aaa;
  75. transform: scale(1,0.5);
  76. }
  77. }
  78. }
  79. </style>