offlineBuy.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <view class="pages">
  3. <view class="top-img">
  4. <image :src="$getimg + 'offlineBuy-bg.png'" class="img" mode="widthFix"></image>
  5. </view>
  6. <view class="offline-content">
  7. <view class="step-wrap" v-if="applyStatus == 0||applyStatus == 1||applyStatus == 2||applyStatus == 3">
  8. <view class="step-item" data-text="步骤一" :class="applyStatus == 0?'active':''"></view>
  9. <view class="step-item" data-text="步骤二" :class="applyStatus == 1?'active':''"></view>
  10. <!-- <view class="step-item" data-text="步骤三" :class="applyStatus == 2?'active':''"></view> -->
  11. </view>
  12. <view class="step-text">
  13. <view class="step-text-item">
  14. <view class="step-text-item-cn">步骤一</view>
  15. <view class="step-text-item-en">Step 1</view>
  16. </view>
  17. <view class="step-text-item">
  18. <view class="step-text-item-cn">步骤二</view>
  19. <view class="step-text-item-en">Step 2</view>
  20. </view>
  21. <!-- <view class="step-text-item">
  22. <view class="step-text-item-cn">步骤三</view>
  23. <view class="step-text-item-en">Step 3</view>
  24. </view> -->
  25. </view>
  26. <!-- step end -->
  27. <view class="step-content" v-if="applyStatus == 0">
  28. <view class="til">
  29. <image :src="$getimg + 'icon-rengou.png'" class="til-img" mode="scaleToFill"></image>
  30. 步骤一
  31. </view>
  32. <view class="con">
  33. 说明:感谢您的认购,生态环境厅将收到您的申请,请尽快联系生态环境厅(联系电话:84546545)签订认购协议
  34. </view>
  35. </view>
  36. <view class="step-content" v-if="applyStatus == 1">
  37. <view class="til">
  38. <image :src="$getimg + 'icon-rengou.png'" class="til-img" mode="scaleToFill"></image>
  39. 步骤二
  40. </view>
  41. <view class="con">
  42. 说明:认购成功,订单已生成,请在2020年11月11日之前,打款完成后等待审核,如有疑问或需开具发票可联系08121212
  43. </view>
  44. </view>
  45. <!-- <view class="step-content" v-if="applyStatus == 2">
  46. <view class="til">
  47. <image :src="$getimg + 'icon-rengou.png'" class="til-img" mode="scaleToFill"></image>
  48. 步骤三
  49. </view>
  50. <view class="con">
  51. 说明:完成购买,如需开具发票可联系:{{phone03}}
  52. </view>
  53. </view> -->
  54. </view>
  55. <view class="bottom-btn-wrap">
  56. <view class="bottom-btn-wrap-bg">
  57. <view class="bottom-btn btn" v-if="applyStatus == 0" @click="callnumber(phone01)">
  58. 联系管理部门
  59. </view>
  60. <view class="bottom-btn btn" v-if="applyStatus == 1" @click="goOrderDetails(guid)">
  61. 查看订单
  62. </view>
  63. <!-- <view class="bottom-btn btn" v-if="applyStatus == 2">
  64. 查看订单
  65. </view> -->
  66. </view>
  67. </view>
  68. </view>
  69. </template>
  70. <script>
  71. export default {
  72. data() {
  73. return {
  74. thetoken:'',
  75. guid:'',
  76. $getimg:this.$getimg,
  77. applyStatus:0,
  78. time:'2020年11月11日',
  79. bankAccount:'6210000000000009900',
  80. phone01:'08121224',
  81. phone01:'08121212',
  82. phone03:'84546545',
  83. }
  84. },
  85. onShow() {
  86. },
  87. onLoad(option) {
  88. this.guid = option.guid;
  89. this.thetoken = 'Bearer' + ' ' + this.$store.state.token;
  90. this.getDetails()
  91. },
  92. methods: {
  93. //打电话
  94. callnumber(number){
  95. if(!number){
  96. uni.showToast({
  97. icon:'none',
  98. mask:true,
  99. title:`手机号码为空`,
  100. duration: 2000
  101. });
  102. return;
  103. };
  104. uni.makePhoneCall({
  105. phoneNumber: number
  106. });
  107. },
  108. getDetails(){
  109. this.$api.http.get(this.config.apiBaseurl+'/carbon-h5/wap/apply/'+this.guid,{header: {Authorization:this.thetoken}}).then( res =>{
  110. console.log('this.applyStatus',res);
  111. this.applyStatus = res.data.data.applyStatus;
  112. this.guid = res.data.data.guid;
  113. console.log('this.applyStatus1',this.applyStatus)
  114. })
  115. },
  116. goOrderDetails(id){
  117. console.log(id)
  118. uni.navigateTo({
  119. url: '/pages/usercenter/orderList/orderdetails/orderdetails?orderid=' + id,
  120. fail:function(err){
  121. console.log('err',err)
  122. }
  123. });
  124. },
  125. }
  126. }
  127. </script>
  128. <style>
  129. @import url("./offlineBuy.css");
  130. </style>