index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <template>
  2. <!-- 结算中心页面 -->
  3. <view>
  4. <view class="top">
  5. <view class="content">
  6. <view class="content-one">
  7. </view>
  8. <text class="content-two">代理商2</text>
  9. <text class="content-three">核销返利</text>
  10. <view class="content-four">
  11. <text>品牌</text>
  12. <text>奖励</text>
  13. <text @click="checkedAll1">全选</text>
  14. </view>
  15. <view class="content-five">
  16. <view>
  17. <u-icon name="photo"></u-icon>
  18. </view>
  19. <view>
  20. 800万
  21. </view>
  22. <view>
  23. <u-checkbox-group>
  24. <u-checkbox
  25. v-model="checked1"
  26. ></u-checkbox>
  27. </u-checkbox-group>
  28. </view>
  29. </view>
  30. <view class="content-five">
  31. <view>
  32. <u-icon name="photo"></u-icon>
  33. </view>
  34. <view>
  35. 800万
  36. </view>
  37. <view>
  38. <u-checkbox-group>
  39. <u-checkbox
  40. v-model="checked2"
  41. ></u-checkbox>
  42. </u-checkbox-group>
  43. </view>
  44. </view>
  45. <view class="content-five">
  46. <view>
  47. <u-icon name="photo"></u-icon>
  48. </view>
  49. <view>
  50. 800万
  51. </view>
  52. <view>
  53. <u-checkbox-group>
  54. <u-checkbox
  55. v-model="checked3"
  56. ></u-checkbox>
  57. </u-checkbox-group>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="content2">
  63. <view class="content-one">
  64. </view>
  65. <text class="content-two">代理商1</text>
  66. <text class="content-three">核销返利</text>
  67. <view class="content-four">
  68. <text>品牌</text>
  69. <text>奖励</text>
  70. <text @click="checkedAll">全选</text>
  71. </view>
  72. <view class="content-five">
  73. <view>
  74. <u-icon name="photo"></u-icon>
  75. </view>
  76. <view>
  77. 800万
  78. </view>
  79. <view>
  80. <u-checkbox-group>
  81. <u-checkbox
  82. v-model="checked4"
  83. ></u-checkbox>
  84. </u-checkbox-group>
  85. </view>
  86. </view>
  87. <view class="content-five">
  88. <view>
  89. <u-icon name="photo"></u-icon>
  90. </view>
  91. <view>
  92. 800万
  93. </view>
  94. <view>
  95. <u-checkbox-group>
  96. <u-checkbox
  97. v-model="checked5"
  98. ></u-checkbox>
  99. </u-checkbox-group>
  100. <!-- <u-button @click="checkedAll">全选</u-button> -->
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </template>
  107. <script>
  108. export default {
  109. data() {
  110. return {
  111. checked1: false,
  112. checked2: false,
  113. checked3: false,
  114. checked4: false,
  115. checked5: false
  116. };
  117. },
  118. methods: {
  119. // 选中某个复选框时,由checkbox时触发
  120. checkboxChange(e) {
  121. //console.log(e);
  122. },
  123. // 选中任一checkbox时,由checkbox-group触发
  124. checkboxGroupChange(e) {
  125. // console.log(e);
  126. },
  127. // 全选
  128. checkedAll() {
  129. this.checked4 = true
  130. this.checked5 = true
  131. },
  132. checkedAll1() {
  133. this.checked1 = true
  134. this.checked2 = true
  135. this.checked3 = true
  136. }
  137. },
  138. }
  139. </script>
  140. <style>
  141. .top {
  142. width: 750rpx;
  143. height: 331rpx;
  144. background: url(../../../static/sailun/background.png) no-repeat;
  145. background-size: 750rpx 331rpx;
  146. }
  147. .content {
  148. width: 712rpx;
  149. height: 445rpx;
  150. margin: 0 auto;
  151. background: #FFFFFF;
  152. box-shadow: 0px 0px 24px 0px rgba(101, 176, 249, 0.41);
  153. border-radius: 18px;
  154. position: relative;
  155. top: 30rpx;
  156. }
  157. .content2 {
  158. width: 712rpx;
  159. height: 351rpx;
  160. margin: 0 auto;
  161. background: #FFFFFF;
  162. box-shadow: 0px 0px 24px 0px rgba(101, 176, 249, 0.41);
  163. border-radius: 18px;
  164. position: relative;
  165. top: 170rpx;
  166. }
  167. .content-one {
  168. width: 6rpx;
  169. height: 30rpx;
  170. background-color: #0589F8;
  171. position: relative;
  172. top: 20rpx;
  173. left: 30rpx;
  174. }
  175. .content-two {
  176. font: 26rpx;
  177. font-weight: bolder;
  178. position: relative;
  179. top: -14rpx;
  180. left: 60rpx;
  181. }
  182. .content-three {
  183. width: 114rpx;
  184. height: 40rpx;
  185. display: inline-block;
  186. background-color: #3A9FF2;
  187. position: relative;
  188. top: -14rpx;
  189. left: 470rpx;
  190. border-radius: 10rpx;
  191. font-size: 24rpx;
  192. color: #fff;
  193. text-align: center;
  194. line-height: 40rpx;
  195. }
  196. .content-four {
  197. display: flex;
  198. justify-content: space-between;
  199. font-weight: bolder;
  200. font-size: 26rpx;
  201. margin-top: 40rpx;
  202. margin-left: 80rpx;
  203. margin-right: 50rpx;
  204. }
  205. .content-five {
  206. display: flex;
  207. justify-content: space-between;
  208. font-size: 24rpx;
  209. margin-top: 40rpx;
  210. margin-left: 100rpx;
  211. font-weight: bolder;
  212. margin-right: 30rpx;
  213. }
  214. </style>