新增地址管理页面
This commit is contained in:
parent
2a59a382d1
commit
757f72328d
|
@ -20,11 +20,17 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/member/address",
|
"path": "pages/address/address",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "地址管理"
|
"navigationBarTitleText": "地址管理"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/address/add",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "新增地址"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/service/cate",
|
"path": "pages/service/cate",
|
||||||
"style": {
|
"style": {
|
||||||
|
@ -43,10 +49,16 @@
|
||||||
"navigationBarTitleText": "服务详情"
|
"navigationBarTitleText": "服务详情"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/order/cart",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "购物车"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/order/create",
|
"path": "pages/order/create",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "服务详情"
|
"navigationBarTitleText": "确认订单"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -89,7 +101,7 @@
|
||||||
"text": "联保"
|
"text": "联保"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/member/address",
|
"pagePath": "pages/order/cart",
|
||||||
"iconPath": "static/temp/tabbar/4.png",
|
"iconPath": "static/temp/tabbar/4.png",
|
||||||
"selectedIconPath": "static/temp/tabbar/4a.png",
|
"selectedIconPath": "static/temp/tabbar/4a.png",
|
||||||
"text": "订单"
|
"text": "订单"
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<app-layout headerBackgroundColor="#00418c" textColor="light"> </app-layout>
|
<app-layout headerBackgroundColor="#00418c" textColor="light">
|
||||||
|
<view class="add" @click="add">新增</view>
|
||||||
|
</app-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AppLayout from "@/components/layout/layout";
|
import AppLayout from "@/components/layout/layout";
|
||||||
export default {
|
export default {
|
||||||
name: "member-address",
|
name: "address-add",
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
@ -17,7 +19,12 @@ export default {
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
methods: {},
|
methods: {
|
||||||
|
add() {
|
||||||
|
this.getOpenerEventChannel().emit("insertId", 99);
|
||||||
|
uni.navigateBack();
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
<template>
|
||||||
|
<app-layout headerBackgroundColor="#00418c" textColor="light">
|
||||||
|
<view class="btn" @click="finish">完成</view>
|
||||||
|
<view class="btn" @click="add">新增</view>
|
||||||
|
</app-layout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import AppLayout from "@/components/layout/layout";
|
||||||
|
export default {
|
||||||
|
name: "member-address",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
selectId: 0,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
AppLayout,
|
||||||
|
},
|
||||||
|
onLoad() {},
|
||||||
|
onShow() {},
|
||||||
|
onReady() {},
|
||||||
|
onReachBottom() {},
|
||||||
|
onPullDownRefresh() {},
|
||||||
|
methods: {
|
||||||
|
add() {
|
||||||
|
let t = this;
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/address/add",
|
||||||
|
events: {
|
||||||
|
insertId(id) {
|
||||||
|
t.selectId = id
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
finish() {
|
||||||
|
this.getOpenerEventChannel().emit("setAddressId", this.selectId);
|
||||||
|
uni.navigateBack();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped></style>
|
|
@ -134,7 +134,14 @@ export default {
|
||||||
this.datetime = e.detail.value;
|
this.datetime = e.detail.value;
|
||||||
},
|
},
|
||||||
selectAddress() {
|
selectAddress() {
|
||||||
console.log("选择地址");
|
uni.navigateTo({
|
||||||
|
url: "/pages/address/address",
|
||||||
|
events: {
|
||||||
|
setAddressId: function (data) {
|
||||||
|
console.log(data);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
},
|
},
|
||||||
selectDateTime() {
|
selectDateTime() {
|
||||||
console.log("选择时间");
|
console.log("选择时间");
|
||||||
|
|
Loading…
Reference in New Issue