123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <template>
- <view class="">
- <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() {
- let that = this
- uni.getSystemInfo({
- success: function(res) {
- console.log("statusBarHeight", res.statusBarHeight)
- that.statusBarHeight += res.statusBarHeight + "px"; //这就是状态栏的高度
- },
- });
- },
- methods: {
- back_city(e) {
- if (e.positionName !== 'no') {
- this.region = e.positionName.cityName
- // this.$refs.popupRef.close();
- uni.setStorage({
- key: 'nowRegion',
- data: e,
- success() {
- uni.navigateTo({
- url:"../position/position"
- })
- }
- });
-
-
- } else {
- // this.$refs.popupRef.close();
- }
- }
- }
- }
- </script>
- <style>
- .container {
- padding: 20px;
- font-size: 14px;
- line-height: 24px;
- }
- </style>
|