medicine.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <view>
  3. <x-steps :current="1"></x-steps>
  4. <x-commodity :commodityData="commodityData"></x-commodity>
  5. <view class="shop-foot">
  6. <view class="same_row_in" style="align-items: flex-end;">
  7. <view class="same_row_in">
  8. <checkbox-group @change="checkboxChangeAll">
  9. <checkbox class="round" style="transform:scale(0.8)" :checked="isAllChecked" />
  10. </checkbox-group>
  11. <!-- <u-checkbox-group shape="circle" v-model="checked">
  12. <u-checkbox activeColor="red" label="全选"></u-checkbox>
  13. </u-checkbox-group> -->
  14. </view>
  15. <view>全选</view>
  16. </view>
  17. <view class="same_row_in">
  18. <view class="footing_box">
  19. <view class="title_total">合计</view>
  20. <view class="title_money">¥</view>
  21. <view class="money_num">{{priceNum}}</view>
  22. </view>
  23. <view class="settle_accounts center_in" @click="settleAccounts">结算</view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. isAllChecked: false,
  33. priceNum: 0,
  34. checked: [],
  35. commodityData: [{
  36. shopName: '国药控股大药房',
  37. drugData: [{
  38. title: '维生素c片',
  39. specification: '0.3gx24粒',
  40. price: 45,
  41. num: 4,
  42. }, {
  43. title: '布洛芬缓释胶囊',
  44. specification: '0.3gx24粒',
  45. price: 45,
  46. num: 4,
  47. }]
  48. }]
  49. }
  50. },
  51. methods: {
  52. checkboxChangeAll() {
  53. console.log(3214)
  54. },
  55. // 结算
  56. settleAccounts() {
  57. uni.navigateTo({
  58. url: '/pages/medicine/consultation'
  59. });
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss">
  65. .shop-foot {
  66. border-bottom: 1rpx solid $u-border-color;
  67. background-color: #FFF;
  68. position: fixed;
  69. bottom: var(--window-bottom, 0);
  70. left: 0;
  71. right: 0;
  72. justify-content: space-between;
  73. align-items: center;
  74. display: flex;
  75. padding: 15rpx 30rpx;
  76. }
  77. .footing_box {
  78. display: flex;
  79. align-items: flex-end;
  80. align-items: baseline;
  81. }
  82. .title_total {
  83. color: rgb(96, 98, 102);
  84. font-size: 30rpx;
  85. }
  86. .title_money {
  87. font-size: 30rpx;
  88. font-weight: 600;
  89. color: $u-error;
  90. }
  91. .money_num {
  92. font-size: 40rpx;
  93. font-weight: bold;
  94. color: $u-error;
  95. }
  96. .settle_accounts {
  97. margin-left: 20rpx;
  98. width: 120rpx;
  99. padding: 15rpx;
  100. font-size: 30rpx;
  101. color: #FFF;
  102. border-radius: 60rpx;
  103. background-color: $x-color;
  104. }
  105. </style>