123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <template>
- <view class="content">
- <view @click="getAndroid">安卓测试</view>
- {{androidData}}
- <view @click="gojkorder">集客订单</view>
- <view>救援订单1</view>
- <view>
- {{longitude}}-----{{latitude}}
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- title: 'Hello',
- androidData:'',
- latitude:'',
- longitude:'',
- }
- },
- onLoad() {
- window.getAndroid=this.getAndroid;
- // setTimeout( this.getAndroid(),500)
- // alert(11)
-
- // this.callByAndroid()
- // window.LoginOut=this.LoginOut
- /* uni.getLocation({
- type: 'wgs84',
- success: function (res) {
- console.log('当前位置的经度:' + res.longitude);
- console.log('当前位置的纬度:' + res.latitude);
- this.latitude=res.latitude
- this.longitude=res.longitude
- },fail(err){
- console.log(err)
- }
- }); */
-
- },
- 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>
|