一机游雄安uniapp源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

81 lines
2.4 KiB

<template>
<view>
<view class="mode_com">
<view class="guy_img "><image :src="src" class="tup_size_160" ></image></view>
<view class="abt_ht_text">{{name}}文旅APP
</view>
<view class="nr_cot">
{{name}}文旅是利用互联网物联网大数据人工智能融合5G技术打造的全域旅游智慧营销和管理平台实现了旅游全程智能化游客只需要用一部手机就可以满足游前游中游后的旅游需求为游客在旅游信息获取文化旅游行程规划产品预订游记分享特产展示投诉建议等方面提供一站式智能化便捷服务
</view>
<!-- <view style=" text-align: center; font-size: 32rpx;position: fixed;bottom: 140rpx;left: 5%;right: 5%;z-index: 6; color: #999;" >
<text v-if="version != ''">当前版本:V{{version}}</text>
</view> -->
<view class="btn_upd" @click="update">
<view class=" pb_15 agn_center"><text class="an_t_2" v-if="version != ''">当前版本:V{{version}}</text></view>
<text class="btn_upd_inf">检查更新</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
name:this.$param.cityName,
src:"../../static/images/"+this.$param.cityPy+".png",
version:""
}
},
onLoad(){
this.getVersion();
},
methods: {
update:function(){
if (this.$wechat.isWechat()) {
} else {
switch (uni.getSystemInfoSync().platform) {
case 'android':
console.log('运行Android上');
Android.gotoDetial("VERSIONCHECK","");
break;
case 'ios':
console.log('运行iOS上');
window.location.href = 'https://www.baidu.com?url=appupdate';
break;
default:
break;
}
}
},
getVersion:function(){
if (this.$wechat.isWechat()) {
} else {
switch (uni.getSystemInfoSync().platform) {
case 'android':
console.log('运行Android上');
var that = this;
this.$util.bindGpsObj(that);
Android.gotoDetial("GetVersionInfo","");
break;
// case 'ios':
// console.log('运行iOS上');
// window.location.href = 'https://www.baidu.com?url=appupdate';
// break;
default:
break;
}
}
}
}
}
</script>
<style>
@import url('../../static/css/common.css');
page{ background-color: #fff;}
.mode_com{ padding-top:60rpx;}
</style>