| | |
| | | <div class="uForm"> |
| | | <u-form :border-bottom="false" :model="form" ref="uForm" :error-type="['toast']" :rule="rules"> |
| | | <!-- #ifndef H5 --> |
| | | <view class="selectAddress" @click="clickUniMap"> |
| | | <!-- <view class="selectAddress" @click="clickUniMap"> |
| | | 选择收货地址 |
| | | </view> |
| | | </view> --> |
| | | <!-- #endif --> |
| | | <u-form-item class="border" label="收货人" label-width="130" prop="name"> |
| | | <u-input v-model="form.name" clearable placeholder="请输入收货人姓名" /> |
| | |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import UForm from '@/uview-components/uview-ui/components/u-form/u-form.vue'; |
| | | import UFormItem from '@/uview-components/uview-ui/components/u-form-item/u-form-item.vue'; |
| | | import UInput from '@/uview-components/uview-ui/components/u-input/u-input.vue'; |
| | | import UCheckboxGroup from '@/uview-components/uview-ui/components/u-checkbox-group/u-checkbox-group.vue'; |
| | | import UCheckbox from '@/uview-components/uview-ui/components/u-checkbox/u-checkbox.vue'; |
| | | import UIcon from '@/uview-components/uview-ui/components/u-icon/u-icon.vue'; |
| | | import UActionSheet from '@/uview-components/uview-ui/components/u-action-sheet/u-action-sheet.vue'; |
| | | import '@/components/uview-components/uview-ui'; |
| | | |
| | | import { addAddress, editAddress, getAddressDetail } from "@/api/address.js"; |
| | | import city from "@/components/m-city/m-city.vue"; |
| | | import uniMap from "@/components/uniMap"; |
| | | import city from "@/pages/mine/m-city/m-city.vue"; |
| | | import uniMap from "@/pages/mine/uniMap.vue"; |
| | | import permision from "@/js_sdk/wa-permission/permission.js"; |
| | | export default { |
| | | components: { |
| | | "m-city": city, |
| | | uniMap, |
| | | UForm,UFormItem,UInput,UCheckboxGroup,UCheckbox,UIcon,UActionSheet |
| | | uniMap |
| | | }, |
| | | onShow() { |
| | | // 判断当前系统权限定位是否开启 |
| | |
| | | |
| | | // 选择地址后数据的回调 |
| | | callBackAddress(val) { |
| | | console.log(val) |
| | | uni.showLoading({ |
| | | title: "加载中", |
| | | }); |