process.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view :style="[mainStyle]">
  3. <!-- 按方抓药流程 -->
  4. <!-- <view class="bg-box">
  5. <image style="width: 100%;" src="../static/images/pic1.png" mode="widthFix"></image>
  6. <view class="process-box">
  7. <view class="title">按方抓药流程</view>
  8. <view v-for="(item, index) in process" class="process-item" :class="index == 0 ? '' : ' process-item-line'">
  9. <view class="process-item-circle">{{ index }}</view>
  10. <view class="process-item-text">{{ item }}</view>
  11. </view>
  12. </view>
  13. </view> -->
  14. <!-- 常见问题 -->
  15. <!-- <view class="questions-box">
  16. <view class="title">常见问题</view>
  17. <view v-for="(item, index) in questionList" class="question-item">
  18. <view class="question">{{ index + 1 }}.{{ item.question }}</view>
  19. <view class="answer">{{ item.answer }}</view>
  20. </view>
  21. </view> -->
  22. <view class="content"><rich-text :nodes="content"></rich-text></view>
  23. <!-- 按钮 -->
  24. <view class="bottom-bar">
  25. <view class="bottom-btn" @click="jumpUrl('fillPrescription/uploadPrescription/uploadPrescription')"><text>上传处方</text></view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. const app = getApp();
  31. const req = require('../../utils/request.js');
  32. const api = require('../../utils/api.js');
  33. const utils = require('../../utils/util.js');
  34. import mpHtml from '../../components/mp-html/components/mp-html/mp-html';
  35. export default {
  36. components: {
  37. mpHtml
  38. },
  39. data() {
  40. return {
  41. mainStyle: app.globalData.mainStyle,
  42. content: ''
  43. };
  44. },
  45. components: {},
  46. props: {},
  47. onLoad: function(options) {
  48. this.getDetail();
  49. },
  50. onShow() {},
  51. methods: {
  52. jumpUrl(url) {
  53. app.globalData.redirectTab(url);
  54. },
  55. getDetail() {
  56. req.getRequest(
  57. '/api/category/detail',
  58. {
  59. code: 'zylc'
  60. },
  61. data => {
  62. this.content = data;
  63. },
  64. true
  65. );
  66. }
  67. },
  68. mounted() {}
  69. };
  70. </script>
  71. <style>
  72. @import './process.css';
  73. </style>