|
@@ -35,7 +35,7 @@
|
|
/>
|
|
/>
|
|
</van-popup>
|
|
</van-popup>
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
- <van-cell-group>
|
|
|
|
|
|
+ <!-- <van-cell-group>
|
|
<van-field
|
|
<van-field
|
|
v-model="inputForm.venueDetailed"
|
|
v-model="inputForm.venueDetailed"
|
|
center
|
|
center
|
|
@@ -44,7 +44,15 @@
|
|
input-align="right"
|
|
input-align="right"
|
|
right-icon="location"
|
|
right-icon="location"
|
|
/>
|
|
/>
|
|
- </van-cell-group>
|
|
|
|
|
|
+ </van-cell-group> -->
|
|
|
|
+
|
|
|
|
+ <van-cell-group>
|
|
|
|
+ <van-field v-model="inputForm.venueDetailed" center label="详细地址:" placeholder="请填写具体地址" input-align="right">
|
|
|
|
+ <template #right-icon>
|
|
|
|
+ <van-icon name="location" @click="getLocation" />
|
|
|
|
+ </template>
|
|
|
|
+ </van-field>
|
|
|
|
+ </van-cell-group>
|
|
|
|
|
|
<van-cell-group>
|
|
<van-cell-group>
|
|
<van-field
|
|
<van-field
|
|
@@ -300,6 +308,13 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ const getLocation = () => {
|
|
|
|
+ xm.getLocation().then(data => {
|
|
|
|
+ inputForm.value.venueDetailed = data.POIName;
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
const submit = () => {
|
|
const submit = () => {
|
|
isLoading.value = true;
|
|
isLoading.value = true;
|
|
new religiousConferenceService().save(inputForm.value).then((res) => {
|
|
new religiousConferenceService().save(inputForm.value).then((res) => {
|
|
@@ -338,6 +353,7 @@ export default {
|
|
fieldNames,
|
|
fieldNames,
|
|
options,
|
|
options,
|
|
onFinish,
|
|
onFinish,
|
|
|
|
+ getLocation,
|
|
cascaderValue,
|
|
cascaderValue,
|
|
contentEditor,
|
|
contentEditor,
|
|
// change,
|
|
// change,
|