耀实惠小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.8 KiB

  1. <template>
  2. <view class="subscribe">
  3. <view class="subscribe-item border-blue flex align-center" @click="toPage(true)">
  4. <image class="subscribe-item-image" :src="IMG_URL+'subscribe.png'" mode="widthFix"></image>
  5. <view class="font-42 font-weight-bold theme-color m-r-30 m-l-30">没有处方</view>
  6. <view class="">
  7. <u-icon name="arrow-rightward" color="#01AEEA" size="80"></u-icon>
  8. </view>
  9. </view>
  10. <view class="subscribe-item flex align-center" @click="toPage(false)">
  11. <image class="subscribe-item-image" :src="IMG_URL+'subscribe.png'" mode="widthFix"></image>
  12. <view class="font-42 font-weight-bold text-green m-r-30 m-l-30">我有处方</view>
  13. <view class="">
  14. <u-icon name="arrow-rightward" color="#46CF26" size="80"></u-icon>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import { IMG_URL } from '@/env.js'
  21. export default {
  22. data() {
  23. return {
  24. IMG_URL,
  25. goodsId: '',
  26. isSituation: 0,
  27. num: '',
  28. price: '',
  29. goodSkuParam: '',
  30. prescriptionId: 0,
  31. orderType: null,
  32. createOrderType: '',
  33. payType: '',
  34. isZone: ''
  35. }
  36. },
  37. onLoad(options) {
  38. console.log('options.createOrderType ',options.createOrderType )
  39. this.createOrderType = options.createOrderType
  40. this.payType = options.payType
  41. this.goodsId = options.goodsId;
  42. this.isSituation = options.isSituation;
  43. this.num = options.num;
  44. this.price = options.price;
  45. this.goodSkuParam = options.goodSkuParam;
  46. this.prescriptionId = options.prescriptionId
  47. this.orderType = options.orderType
  48. this.isZone = options.isZone
  49. },
  50. methods: {
  51. toPage (flag) {
  52. if (flag) {
  53. // 无处方
  54. this.$tools.navigateTo({
  55. url: `/pagesA/my_other_list/prescription/select_medicine_man/index?goodsId=${this.goodsId}&orderType=${this.orderType}&type=noPrescription&isSituation=${this.isSituation}&num=${this.num}&price=${this.price}&goodSkuParam=${this.goodSkuParam}&prescriptionId=${this.prescriptionId}&createOrderType=${this.createOrderType}&payType=${this.payType}&isZone=${this.isZone}`
  56. })
  57. } else {
  58. // 有处方
  59. this.$tools.navigateTo({
  60. url: `/pagesA/my_other_list/prescription/medicine/index?goodsId=${this.goodsId}&orderType=${this.orderType}&prescription=1&type=prescription&isSituation=${this.isSituation}&num=${this.num}&price=${this.price}&goodSkuParam=${this.goodSkuParam}&prescriptionId=${this.prescriptionId}&createOrderType=${this.createOrderType}&payType=${this.payType}&isZone=${this.isZone}`
  61. })
  62. }
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .subscribe {
  69. padding: 100rpx 40rpx;
  70. &-item {
  71. padding: 0 20rpx;
  72. height: 350rpx;
  73. border: 6rpx solid #46cf26;
  74. border-radius: 20rpx;
  75. margin-bottom: 100rpx;
  76. &-image {
  77. width: 280rpx;
  78. }
  79. }
  80. }
  81. .text-green {
  82. color: #46CF26;
  83. }
  84. .border-blue {
  85. border-color: $u-type-primary;
  86. }
  87. </style>