detail.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view>
  3. <uni-nav-bar :title="form.projectName" leftIcon="left" @clickLeft="getBack" />
  4. <view class="title">Android安装包</view>
  5. <view class="list" v-for="item in form.android" :key="item.id">
  6. <view class="main">
  7. <text>{{ item.name }}</text>
  8. <text>{{ item.updateTimeText }} 更新 | {{ item.version }}</text>
  9. </view>
  10. <a :href="item.downUrl">安装</a>
  11. </view>
  12. <view class="title">IOS安装包</view>
  13. <view class="list" v-for="item in form.ios" :key="item.id">
  14. <view class="main">
  15. <text>{{ item.name }}</text>
  16. <text>{{ item.updateTimeText }} 更新 | {{ item.version }}</text>
  17. </view>
  18. <a :href="item.downUrl">安装</a>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. form: {}
  27. }
  28. },
  29. onLoad(e) {
  30. this.form = JSON.parse(decodeURIComponent(e.item))
  31. },
  32. methods: {
  33. getBack() {
  34. uni.redirectTo({
  35. url: `/pages/index/index`
  36. })
  37. },
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .uni-list-chat {
  43. display: flex;
  44. }
  45. .title {
  46. padding: 28rpx 20rpx;
  47. font-size: 28rpx;
  48. }
  49. .list {
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. padding: 28rpx 20rpx;
  54. background: #fff;
  55. border-bottom: 2rpx solid #eee;
  56. }
  57. .main {
  58. display: flex;
  59. flex-direction: column;
  60. text:first-child {
  61. font-size: 28rpx;
  62. }
  63. text:last-child {
  64. font-size: 22rpx;
  65. }
  66. }
  67. a {
  68. margin: 0;
  69. background: none;
  70. border: 2rpx solid #f80;
  71. padding: 10rpx 30rpx;
  72. font-size: 24rpx;
  73. color: #f80;
  74. border-radius: 10rpx;
  75. text-decoration: none;
  76. }
  77. </style>