x-bottomBtn.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="btn_address bottomFit">
  3. <view class="box_written" v-if="writtenConsent">
  4. <checkbox-group>
  5. <checkbox class="round" style="transform:scale(0.7)" :checked="writtenFlag" />
  6. </checkbox-group>
  7. <view class="title_written">确定已在线下就诊,使用过所购买药品且无过敏或不良反应,当病情稳定,我已阅读并同意 <span @click="goinform">《互联网诊疗风险告知及知情同意书》</span></view>
  8. </view>
  9. <view class="box_address_btn center_in" @click="buttonClick">{{title}}</view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. props: {
  15. title: {
  16. type: String,
  17. default () {
  18. return '新增'
  19. }
  20. },
  21. writtenConsent: {
  22. type: Boolean,
  23. default () {
  24. return false
  25. }
  26. },
  27. },
  28. data() {
  29. return {
  30. writtenFlag: false,
  31. }
  32. },
  33. methods:{
  34. goinform(){
  35. uni.navigateTo({
  36. url: '/pages/medicine/inform'
  37. });
  38. },
  39. // 点击按钮
  40. buttonClick(){
  41. this.$emit('buttonClick')
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. .btn_address {
  48. position: fixed;
  49. bottom: 0;
  50. left: 0;
  51. right: 0;
  52. padding: 20rpx;
  53. background-color: #fff;
  54. }
  55. .box_address_btn {
  56. /*#ifdef H5*/
  57. margin-bottom: 20rpx;
  58. /*#endif*/
  59. width: 100%;
  60. color: #fff;
  61. height: 80rpx;
  62. background-color: $x-color;
  63. border-radius: 50rpx;
  64. font-size: 30rpx;
  65. }
  66. .box_written {
  67. display: flex;
  68. margin-bottom: 15rpx;
  69. }
  70. .title_written {
  71. font-size: 22rpx;
  72. span {
  73. color: #ff9900;
  74. }
  75. }
  76. </style>