paySuccess.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view class="Body">
  3. <image src="/static/login/logo1.png" mode=""></image>
  4. <button type="primary" @click="goBack()">返回宜格服务APP</button>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. orderNo:""
  12. }
  13. },
  14. onLoad(options) {
  15. if(options.orderNo){
  16. this.orderNo=options.orderNo
  17. }else{
  18. uni.showToast({
  19. icon:"none",
  20. title: "参数缺失!",
  21. duration: 2000
  22. });
  23. }
  24. },
  25. methods: {
  26. goBack() {
  27. // window.location.href='sandh5payres://ygfuJumpScheme'
  28. // this.isIos = uni.getSystemInfoSync().platform //判断是否安卓、ios
  29. // if (this.isIos == 'android') {
  30. // let ifr = document.createElement("iframe");
  31. // ifr.src =
  32. // "ygfwUrlSchemes://"; // 这里的hbuilder在manifest.json中配置->“App常用其它设置” -> “Android设置” -> “UrlSchemes” 项中进行设置
  33. // ifr.style.display = "none";
  34. // document.body.appendChild(ifr);
  35. // } else {
  36. // // window.location = "https://apps.apple.com/cn/app/idxxxxxxx" //你的苹果应用app链接
  37. // }
  38. window.location ="ygfwUrlSchemes://&orderNo="+this.orderNo;
  39. },
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .Body {
  45. padding-top: 300rpx;
  46. text-align: center;
  47. image {
  48. width: 200rpx;
  49. height: 200rpx;
  50. }
  51. button {
  52. width: 80%;
  53. margin: 200rpx auto 0;
  54. // background: rgb(107,228,247);
  55. }
  56. }
  57. </style>