payCentre.vue 746 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. data:""
  13. }
  14. },
  15. onLoad(options) {
  16. if(options.orderNo){
  17. this.goto(options.orderNo)
  18. }
  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>