transactionDetail.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view class="content">
  3. <web-view :src="url+type" @message='back1' ref="webH5"></web-view>
  4. <!-- #ifdef H5 -->
  5. <!-- <view class="btns">
  6. <view @click="back" class="btn btn-green">买入</view>
  7. <view @click="back" class="btn btn-red">卖出</view>
  8. </view> -->
  9. <!-- #endif -->
  10. </view>
  11. </template>
  12. <script>
  13. var wv
  14. export default {
  15. data() {
  16. return {
  17. url: '/hybrid/html/local.html?type=',
  18. type: ''
  19. };
  20. },
  21. onLoad(res) {
  22. this.type = res.type
  23. },
  24. onShow() {},
  25. methods: {
  26. back(eee){
  27. console.log('触发');
  28. },
  29. back1(eee){
  30. console.log('触发1');
  31. }
  32. }
  33. };
  34. </script>
  35. <style lang="scss">
  36. page,
  37. .content {
  38. min-height: 100%;
  39. height: auto;
  40. }
  41. .btns{
  42. position: fixed;
  43. z-index: 1000;
  44. left: 0;
  45. right: 0;
  46. bottom: 0;
  47. display: flex;
  48. flex-direction: row;
  49. align-items: center;
  50. justify-content: center;
  51. padding: 10px;
  52. box-sizing: border-box;
  53. background-color: #131623;
  54. .btn{
  55. flex: 1;
  56. height: 40px;
  57. border-radius: 4px;
  58. line-height: 40px;
  59. text-align: center;
  60. color: #fff;
  61. font-size: 16px;
  62. }
  63. .btn-green{
  64. margin-right: 20px;
  65. background-color: #38ad70;
  66. }
  67. .btn-red{
  68. background-color: #fe5c57;
  69. }
  70. }
  71. </style>