12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <template>
- <view class="content">
- <web-view :src="url+type" @message='back1' ref="webH5"></web-view>
- <!-- #ifdef H5 -->
- <!-- <view class="btns">
- <view @click="back" class="btn btn-green">买入</view>
- <view @click="back" class="btn btn-red">卖出</view>
- </view> -->
- <!-- #endif -->
- </view>
- </template>
- <script>
- var wv
- export default {
- data() {
- return {
- url: '/hybrid/html/local.html?type=',
- type: ''
- };
- },
- onLoad(res) {
- this.type = res.type
- },
- onShow() {},
- methods: {
- back(eee){
- console.log('触发');
- },
- back1(eee){
- console.log('触发1');
- }
- }
- };
- </script>
- <style lang="scss">
- page,
- .content {
- min-height: 100%;
- height: auto;
- }
- .btns{
- position: fixed;
- z-index: 1000;
- left: 0;
- right: 0;
- bottom: 0;
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- padding: 10px;
- box-sizing: border-box;
- background-color: #131623;
- .btn{
- flex: 1;
- height: 40px;
- border-radius: 4px;
- line-height: 40px;
- text-align: center;
- color: #fff;
- font-size: 16px;
- }
- .btn-green{
- margin-right: 20px;
- background-color: #38ad70;
- }
- .btn-red{
- background-color: #fe5c57;
- }
- }
- </style>
|