showOrder.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="app-content">
  3. <view class="billing_box_bg">
  4. <view class="top-view"> </view>
  5. <view class="result-view">
  6. <view style="text-align:center;margin-top:20upx;margin-bottom:60upx;font-size:30upx;">编号:{{id}}</view>
  7. <button v-if="showButton" class="admin-button-com big blue" style="width:45vw;" @click="showCgOrder()">点击查看订单</button>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import { getWeixinId } from "@/api/invite/index"
  14. export default {
  15. name: "showCgOrder",
  16. data() {
  17. return {
  18. getAppIdList:{},
  19. showButton:false,
  20. id:0
  21. };
  22. },
  23. onLoad() {
  24. let that = this
  25. getWeixinId().then(res => {
  26. that.getAppIdList = res.data
  27. that.showButton = true
  28. })
  29. },
  30. onShow() {
  31. if(this.option.id){
  32. this.id = this.option.id
  33. }
  34. },
  35. methods: {
  36. init(){
  37. if(this.option.id){
  38. this.id = this.option.id
  39. }
  40. },
  41. showCgOrder() {
  42. let that = this
  43. console.log('pagesPurchase/purDetails?id='+that.option.id)
  44. uni.navigateToMiniProgram({
  45. //姜枫-2021.04.13
  46. appId: that.getAppIdList.hd.miniAppId,
  47. path: 'pagesPurchase/purDetails?id='+that.option.id,
  48. //develop 开发版 trial 体验版 release 正式版
  49. envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
  50. extraData: {
  51. 'id': that.option.id
  52. },
  53. success (res) {
  54. }
  55. })
  56. }
  57. }
  58. };
  59. </script>
  60. <style lang="scss" scoped>
  61. .go-back{
  62. width: 80%;
  63. height: 80upx;
  64. color: #FFFFFF;
  65. margin-top: 50upx;
  66. background: #3385FF;
  67. border-radius: 10upx;
  68. font-size:30upx;
  69. }
  70. .billing_box_bg {
  71. position: relative;
  72. padding: 60upx 30upx;
  73. display: flex;
  74. background: white;
  75. flex-direction: column;
  76. background-color: #f5f5f5;
  77. .top-view {
  78. position: absolute;
  79. top: 0;
  80. left: 0;
  81. width: 100%;
  82. height: 299upx;
  83. }
  84. .result-view {
  85. position: relative;
  86. display: flex;
  87. flex-direction: column;
  88. align-items: center;
  89. padding: 70upx;
  90. width: 100%;
  91. background: #ffffff;
  92. border-radius: 20upx;
  93. z-index: 1;
  94. .iconchenggong {
  95. font-size: 170upx;
  96. color: $mainColor1;
  97. }
  98. .result-title {
  99. margin: 50upx 0 70upx;
  100. font-size: 32upx;
  101. }
  102. }
  103. }
  104. </style>