notice.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="nobox">
  3. <view class="notice">
  4. <view class="not_box">
  5. <rich-text :nodes="content"></rich-text>
  6. </view>
  7. <view class="not_btns flexcj">
  8. <view class="not_btn btn1" @click="getSearchFn">预约查询</view>
  9. <view class="not_btn btn2" @click="getOrderFn">在线预约</view>
  10. </view>
  11. <view>
  12. <view class="lread" @click="checkflag=!checkflag">
  13. <view class="lreadl">
  14. <image :src="choseimg" v-if="checkflag"></image>
  15. <image :src="nchoseimg" v-else></image>
  16. </view>
  17. <view class="tit">我已仔细阅读并知晓预约须知,确认进入在线预约</text></view>
  18. </view>
  19. </view>
  20. <image :src="jdiconimg" @click="getJiFn" class="jdimg"></image>
  21. <view class="bbcode">版本号:ZXY_YY_1.3</view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. import {getNewsList} from "@/api/mine/order.js"
  27. export default {
  28. data(){
  29. return{
  30. choseimg:require("@/static/images/order/comes/chose.png"),
  31. nchoseimg:require("@/static/images/order/comes/nchose.png"),
  32. jdiconimg:require("@/static/images/order/comes/jdicon.png"),
  33. checkflag:false,
  34. content:'',
  35. jdurl:'https://www.chinamartyrs.gov.cn/x_lsyml/dqlsyml/dqlsymlnamelist/index.html?id=340882000000,%25E5%25AE%2589%25E5%25BE%25BD%25E7%259C%2581-%25E5%25AE%2589%25E5%25BA%2586%25E5%25B8%2582-%25E6%25BD%259C%25E5%25B1%25B1%25E5%25B8%2582',
  36. }
  37. },
  38. onLoad: function() {
  39. this.getNewsList()
  40. },
  41. methods:{
  42. getSearchFn(){
  43. this.$tab.navigateTo('/pages/order/search')
  44. },
  45. getJiFn(){
  46. window.open(this.jdurl,'_blank')
  47. },
  48. getNewsList(){
  49. var params={
  50. type:5
  51. }
  52. getNewsList(params).then(res=>{
  53. if(res.code==200){
  54. var list=res.rows;
  55. if(list&&list.length){
  56. this.content=list[0].content
  57. }
  58. }
  59. })
  60. },
  61. getOrderFn(){
  62. if(this.checkflag){
  63. this.$tab.navigateTo('/pages/order/come')
  64. }else{
  65. this.$toast('请同意预约须知')
  66. }
  67. }
  68. },
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .nobox{padding-top: 20rpx;}
  73. .bbcode{position: absolute;width: 100%;text-align: center;left: 0;bottom: 16rpx;font-size: 24rpx;color: #666666;}
  74. .notice{min-height: calc(100vh - 20rpx);background: #ffffff;padding: 80rpx 64rpx;box-sizing: border-box;position: relative;
  75. .not_box{font-size: 28rpx;font-weight: 500;color: #161616;margin-bottom: 80rpx;}
  76. .not_btns{margin-bottom: 42rpx;
  77. .not_btn{width: 278rpx;height: 90rpx;border-radius: 46rpx;display: flex;align-items: center;justify-content: center;font-size: 28rpx;font-weight: 500;
  78. &.btn1{background: #FFFFFF;border: 2rpx solid $com-cd3;color: $com-cd3;}
  79. &.btn2{background: $com-cd3;color: #ffffff;}
  80. }
  81. }
  82. }
  83. .jdimg{position: fixed;right: 22rpx;bottom: 72rpx;width: 156rpx;height: 156rpx;}
  84. .lread{
  85. display: flex;align-items: flex-start;justify-content: center;
  86. .lreadl{padding-top: 4rpx;
  87. image{width: 24rpx;height: 24rpx;margin-right: 20rpx;}
  88. }
  89. .tit{font-size: 22rpx;font-weight: 500;color: #666666;
  90. }
  91. }
  92. </style>