Merge pull request '新增 701' (#220) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/220
This commit is contained in:
commit
a5962d96df
@ -56,7 +56,7 @@
|
|||||||
<view class="cart" @click="toCartPage">
|
<view class="cart" @click="toCartPage">
|
||||||
<image src="/static/image/common/3.png"></image>
|
<image src="/static/image/common/3.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<u-picker mode="selector" :range="areaList" v-model="chooseArea" range-key="area_name" @confirm="setArea"></u-picker>
|
<u-picker mode="region" v-model="chooseArea" @confirm="setArea"></u-picker>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -124,8 +124,8 @@
|
|||||||
type: 'wgs84',
|
type: 'wgs84',
|
||||||
geocode: true,
|
geocode: true,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// console.log(res.address);
|
console.log(res.address);
|
||||||
this.area = res.address.city;
|
this.area = res.address.district;
|
||||||
},
|
},
|
||||||
fail: (e) => {
|
fail: (e) => {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
@ -221,7 +221,7 @@
|
|||||||
},
|
},
|
||||||
setArea(e) {
|
setArea(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
this.area = this.areaList[e[0]].area_name;
|
this.area = e.area.label;
|
||||||
},
|
},
|
||||||
toCartPage() {
|
toCartPage() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
Loading…
Reference in New Issue
Block a user