|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
|
|
|
- <tm-menubars title="消息列表" :shadow="0" :showback="true"></tm-menubars>
|
|
|
+ <tm-menubars title="地址管理" :shadow="0" :showback="true"></tm-menubars>
|
|
|
<div>
|
|
|
<tm-sheet class="kuang" style="padding-bottom: 40px !important;">
|
|
|
<view style="width: 94%;margin:0 auto;">
|
|
@@ -8,12 +8,9 @@
|
|
|
<tm-input title="手机号码" placeholder="填写收件人手机号码" v-model="dizhi.mobile"></tm-input>
|
|
|
<tm-pickersCity @confirm="dateSe_3" :default-value="d_3" btn-color="bg-gradient-deep-purple-accent"
|
|
|
style="margin:0 16px 0px;box-sizing: border-box;">
|
|
|
- <tm-button class="xuanze" theme="bg-gradient-deep-purple-accent"
|
|
|
- style="padding-left: 0px!important;margin-left:0px;border-bottom: 1px solid #303030!important;">
|
|
|
- <tm-input style="padding: 0px 60px 0px 0px!important;margin-left: 0!important;" title="所在地区"
|
|
|
- placeholder="省市区县、乡镇等" v-model="dizhi.region" @click="dateSe_3">
|
|
|
- </tm-input>
|
|
|
- </tm-button>
|
|
|
+ <tm-input style="padding: 0px 60px 0px 0px!important;margin-left: 0!important;" title="所在地区"
|
|
|
+ placeholder="省市区县、乡镇等" v-model="dizhi.region" @click="dateSe_3">
|
|
|
+ </tm-input>
|
|
|
</tm-pickersCity>
|
|
|
<tm-input title="详细地址" placeholder="街道、楼牌号等" v-model="dizhi.address"></tm-input>
|
|
|
</view>
|
|
@@ -160,14 +157,15 @@
|
|
|
model: 'successs',
|
|
|
label: res.data.msg
|
|
|
})
|
|
|
- // uni.showToast({
|
|
|
- // title: res.data.msg,
|
|
|
- // icon: 'success'
|
|
|
- // })
|
|
|
setTimeout(() => {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/dizhi/index'
|
|
|
- })
|
|
|
+ let pages = getCurrentPages(); // 当前页面
|
|
|
+ let beforePage = pages[pages.length - 2]; // 前一个页面
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1,
|
|
|
+ success: function() {
|
|
|
+ beforePage.$vm.getAddList()
|
|
|
+ }
|
|
|
+ });
|
|
|
}, 800)
|
|
|
} else {
|
|
|
that.$refs.toast.show({
|
|
@@ -236,9 +234,14 @@
|
|
|
icon: 'success'
|
|
|
})
|
|
|
setTimeout(() => {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/dizhi/index'
|
|
|
- })
|
|
|
+ let pages = getCurrentPages(); // 当前页面
|
|
|
+ let beforePage = pages[pages.length - 2]; // 前一个页面
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1,
|
|
|
+ success: function() {
|
|
|
+ beforePage.$vm.getAddList()
|
|
|
+ }
|
|
|
+ });
|
|
|
}, 800)
|
|
|
} else {
|
|
|
that.$refs.toast.show({
|