showBill.vue 1.8 KB

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