index.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div class="app-content">
  3. <div class="title">
  4. <span>请选择你喜欢的</span>
  5. <span class="app-price">商城风格</span>
  6. </div>
  7. <radio-group class="radio-group" name="template" @change="checkChange">
  8. <div class="list-wrap">
  9. <label class="list">
  10. <div class="list-img">
  11. <img :src="`${constant.imgUrl}/retail/template/1.png`" alt mode="widthFix" />
  12. </div>
  13. <div class="list-bottom">
  14. <div>基础模板</div>
  15. <div>
  16. <radio value="1" :checked="memberCheck" />
  17. </div>
  18. </div>
  19. </label>
  20. <label class="list">
  21. <div class="list-img">
  22. <img :src="`${constant.imgUrl}/retail/template/1.png`" alt mode="widthFix" />
  23. </div>
  24. <div class="list-bottom">
  25. <div>分类定制模板</div>
  26. <div>
  27. <radio value="1" :checked="memberCheck" />
  28. </div>
  29. </div>
  30. </label>
  31. </div>
  32. </radio-group>
  33. </div>
  34. </template>
  35. <script>
  36. export default {
  37. name: 'sel-template',
  38. data() {
  39. return {
  40. constant: this.$constant
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .title {
  47. text-align: center;
  48. font-size: 30px;
  49. padding-top: 44px;
  50. padding-bottom: 54px;
  51. }
  52. // list
  53. .list-wrap {
  54. @include disFlex(center, space-between);
  55. padding: 0 20px;
  56. .list {
  57. width: 48%;
  58. box-shadow: 6px 6px 20px #eee;
  59. border-radius: 10px;
  60. background-color: #fff;
  61. padding-right: 0;
  62. .list-bottom {
  63. @include disFlex(center, space-between);
  64. padding: 40px 20px;
  65. font-size: 28px;
  66. }
  67. }
  68. }
  69. </style>