新增地址管理页面

This commit is contained in:
TOP糯米 2023-02-13 22:41:01 +08:00
parent 2a59a382d1
commit 757f72328d
4 changed files with 78 additions and 7 deletions

View File

@ -20,11 +20,17 @@
}
},
{
"path": "pages/member/address",
"path": "pages/address/address",
"style": {
"navigationBarTitleText": "地址管理"
}
},
{
"path": "pages/address/add",
"style": {
"navigationBarTitleText": "新增地址"
}
},
{
"path": "pages/service/cate",
"style": {
@ -43,10 +49,16 @@
"navigationBarTitleText": "服务详情"
}
},
{
"path": "pages/order/cart",
"style": {
"navigationBarTitleText": "购物车"
}
},
{
"path": "pages/order/create",
"style": {
"navigationBarTitleText": "服务详情"
"navigationBarTitleText": "确认订单"
}
}
],
@ -89,7 +101,7 @@
"text": "联保"
},
{
"pagePath": "pages/member/address",
"pagePath": "pages/order/cart",
"iconPath": "static/temp/tabbar/4.png",
"selectedIconPath": "static/temp/tabbar/4a.png",
"text": "订单"

View File

@ -1,11 +1,13 @@
<template>
<app-layout headerBackgroundColor="#00418c" textColor="light"> </app-layout>
<app-layout headerBackgroundColor="#00418c" textColor="light">
<view class="add" @click="add">新增</view>
</app-layout>
</template>
<script>
import AppLayout from "@/components/layout/layout";
export default {
name: "member-address",
name: "address-add",
data() {
return {};
},
@ -17,7 +19,12 @@ export default {
onReady() {},
onReachBottom() {},
onPullDownRefresh() {},
methods: {},
methods: {
add() {
this.getOpenerEventChannel().emit("insertId", 99);
uni.navigateBack();
},
},
};
</script>

View File

@ -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>

View File

@ -134,7 +134,14 @@ export default {
this.datetime = e.detail.value;
},
selectAddress() {
console.log("选择地址");
uni.navigateTo({
url: "/pages/address/address",
events: {
setAddressId: function (data) {
console.log(data);
},
},
});
},
selectDateTime() {
console.log("选择时间");