payCentre.vue 777 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="body">
  3. <image src="/static/payCentre/loading.gif" mode=""></image>
  4. <view>支付中</view>
  5. </view>
  6. </template>
  7. <script>
  8. import uniWeb from '@/utils/uni.webview.1.5.4.js'
  9. export default {
  10. data() {
  11. return {
  12. }
  13. },
  14. onLoad(options) {
  15. // if(options.orderNo){
  16. // this.goto(options.orderNo)
  17. // }
  18. this.goto('100712401150003')
  19. },
  20. methods: {
  21. goto(orderNo) {
  22. try {
  23. uniWeb.webView.postMessage({
  24. data: {
  25. action: 'pay',
  26. orderNo:orderNo
  27. }
  28. })
  29. } catch (err) {
  30. console.log('err==>', err)
  31. }
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .body{
  38. text-align: center;
  39. padding-top: 300rpx;
  40. color: #303133;
  41. image{
  42. width: 200rpx;
  43. height: 200rpx;
  44. }
  45. }
  46. </style>