12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <template>
- <view class="container">
- <citySelect @back_city="back_city"></citySelect>
- </view>
- </template>
- <script>
- import citySelect from '@/components/linzq-citySelect/linzq-citySelect.vue';
- export default {
- components: {
- citySelect
- },
- data() {
- return {
- statusBarHeight:''
- }
- },
- onLoad() {
- uni.getSystemInfo({
- success: function(res) {
- console.log("statusBarHeight", res.statusBarHeight)
- that.statusBarHeight += res.statusBarHeight + "px"; //这就是状态栏的高度
- },
- });
- },
- methods: {
- back_city(e) {
- if (e !== 'no') {
- this.region = e.cityName
- // this.$refs.popupRef.close();
- uni.navigateTo({
- url:"../position/position?city="+this.region
- })
-
- } else {
- // this.$refs.popupRef.close();
- }
- }
- }
- }
- </script>
- <style>
- .container {
- padding: 20px;
- font-size: 14px;
- line-height: 24px;
- }
- </style>
|