1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template>
- <view class="content">
- <view @click="getAndroid">安卓测试</view>
- {{androidData}}
- <view @click="gojkorder">集客订单</view>
- <view>救援订单</view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- title: 'Hello',
- androidData:'',
- }
- },
- onLoad() {
- window.getAndroid=this.getAndroid;
- // setTimeout( this.getAndroid(),500)
-
-
- // this.callByAndroid()
- // window.LoginOut=this.LoginOut
- },
- created() {
-
- },
- methods: {
- gojkorder(){
- uni.navigateTo({
- url:'../myOrder/myOrder'
- })
- },
- // LoginOut(){
- // uni.showToast({
- // title: '66666',
- // icon:'none',
- // duration: 6000
- // });
- // },
- getAndroid(e){
- uni.showToast({
- title: '66666',
- icon:'none',
- duration: 6000
- });
-
- this.androidData=e
- return "hello";
- },
- callByAndroid(){
- alert("Js收到消息");
- }
- }
- }
- </script>
- <style scoped>
- .content {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
- .logo {
- height: 200rpx;
- width: 200rpx;
- margin-top: 200rpx;
- margin-left: auto;
- margin-right: auto;
- margin-bottom: 50rpx;
- }
- .text-area {
- display: flex;
- justify-content: center;
- }
- .title {
- font-size: 36rpx;
- color: #8f8f94;
- }
- </style>
|