瀏覽代碼

no message

zpj 2 年之前
父節點
當前提交
893d54eaec
共有 7 個文件被更改,包括 245 次插入 和 8 次删除
  1. 109 0
      pages-address/address.vue
  2. 119 5
      pages-address/select-school.vue
  3. 7 1
      pages.json
  4. 7 2
      pages/index/index.vue
  5. 3 0
      pages/me/index.vue
  6. 二進制
      static/img/common/edit.png
  7. 二進制
      static/img/common/no-order.png

+ 109 - 0
pages-address/address.vue

@@ -0,0 +1,109 @@
+<template>
+	<view class="address-index flex-common-css box-border-box iPhone-bottom bgc-f">
+		<Nav title="地址管理"></Nav>
+		
+		
+		<view v-if="list.length !== 0" class="scroll-view-css">
+			<EnBlank  :customSrc='true'>
+				<template v-slot:blankImg>
+					<image class="black-custom-img" src="@/static/img/common/no-order.png" mode=""></image>
+				</template>
+			</EnBlank>
+		</view>
+		<view v-else class="scroll-view-css box-border-box p-24 ">
+			<view class="list-box" v-for="(item,i) in 10" :key="i" @click.stop="to(1,item)">
+				<view class=" mb-8 display-flex">
+					<view v-if="true" class="list-box-only fs-24 fc-FE9E11 text-align-center">默认</view>
+					<view class="fs-34 fw-500 mr-10">重庆工商职业学校3栋1楼503重1重庆工商职业学校3栋1楼503重1</view>
+				</view>
+				<view class="w-520 fs-26 fc-9 align-items-center">
+					<view class="fs-24 fc-9 mr-24">张晓鹏</view>
+					<view class="fs-24 fc-9">18883660721</view>
+				</view>
+				
+				<image src="@/static/img/common/edit.png" mode=""></image>
+				
+			</view>
+		</view>
+		
+		<view class="box-border-box p-24" @click="to(2)">
+			<view class="add-box text-align-center fs-34 fc-f">新增地址</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import EnBlank from "@/components/en-utils/en-blank/en-blank";
+	import tools from "@/service/tools.js";
+	export default {
+		components:{EnBlank,},
+		data(){
+			return{
+				list:[],
+			}
+		},
+		onShow() {
+			
+		},
+		methods:{
+			getList(){
+				
+			},
+			
+			to(type,item){
+				if(type === 1){
+					uni.navigateTo({
+						url:"pages/me/address-magen/edit-add?id=" + item.id
+					})
+				}else{
+					uni.navigateTo({
+						url:"pages/me/address-magen/edit-add"
+					})
+				}
+			},
+		},
+	}
+</script>
+
+<style scoped lang="scss">
+	.address-index{
+		.w-520{
+			width: 570rpx;
+		}
+		.add-box{
+			width: 100%;
+			height: 80rpx;
+			line-height: 80rpx;
+			background-color: #2F80ED;
+			border-radius: 200rpx;
+			
+		}
+		.list-box{
+			margin-bottom: 24rpx;
+			padding-bottom: 24rpx;
+			border-bottom: 2rpx solid #F9F9F9;
+			position: relative;
+			
+			image{
+				width: 48rpx;
+				height: 48rpx;
+				position: absolute;
+				top: 42rpx;
+				right: 40rpx;
+			}
+			.del-icon{
+				position: absolute;
+				top: 45rpx;
+				right: 0;
+			}
+			.list-box-only{
+				width: 64rpx;
+				height: 34rpx;
+				line-height: 34rpx;
+				border-radius: 8rpx;
+				border: 2rpx solid #FE9E11;
+			}
+		}
+		
+	}
+</style>

+ 119 - 5
pages-address/select-school.vue

@@ -1,20 +1,134 @@
 <template>
 	<view class="select-school-index iPhone-bottom flex-common-css box-border-box">
 		<Nav title='选择学校'></Nav>
+		
+		<view class="bgc-f box-border-box p-24 mb-28">
+			<view class="head-search mb-32">
+				<input type="text" placeholder="搜索学校名称">
+				<view class="fs-28 fc-f index-search-box-buttom">搜索</view>
+			</view>
+			
+			<view class="head-address display-flex">
+				<uni-icons type="location-filled" size="24"></uni-icons>
+				<view class="ml-16">
+					<view class="fs-36 fw-600 mb-12">四川外语大学重南岸翻译学校(綦江校区)</view>
+					<view class="fs-28 fw-400" @click="openPop()">楼栋1</view>
+				</view>
+			</view>
+		</view>
+		
+		<scroll-view scroll-y="true" class="scroll-view-css bgc-f box-border-box plr-32">
+			<view class="item-box fs-32 fw-400" v-for="(item,i) in 20" :key="i">
+				四川外国语大学重庆南方翻译学院(渝北校区)四川外国语大学重庆南方翻译学院
+			</view>
+		</scroll-view>
+		
+		<uni-popup ref="popup" type="bottom">
+			<view class="pop-coupon box-border-box p-24">
+				<view class="text-align-center fs-36 fw-600 box-title mb-32">
+					请选择楼栋
+					<uni-icons @click="closePop" class="box-close" type="closeempty" size="20"></uni-icons>
+				</view>
+				<view class="head-search mb-32">
+					<input type="text" placeholder="搜索楼栋名称">
+					<view class="fs-28 fc-f index-search-box-buttom">搜索</view>
+				</view>
+				
+				<view class="scroll-view-css">
+					<view class="item-box item-box-f fs-32 fw-400" 
+					v-for="(item,i) in 20" :key="i" :class="id == i?'fc-41ABF5':''">
+						<!-- <image src="@/static/img/common/n-select.png" mode=""></image> -->
+						<image src="@/static/img/common/y-select.png" mode=""></image>
+						楼栋1
+					</view>
+				</view>
+			</view>
+		</uni-popup>
 	</view>
 </template>
 
 <script>
 	export default {
-		
+		data(){
+			return{
+				id:0,
+			}
+		},
+		onShow() {
+			
+		},
+		methods:{
+			openPop(){
+				this.$refs.popup.open()
+			},
+			closePop(){
+				this.$refs.popup.close()
+			},
+		},
 	}
 </script>
 
-<style>
-	
-</style>
+
 <style scoped lang="scss">
 	.select-school-index{
-		
+		.head-search{
+			position: relative;
+			input{
+				width: 100%;
+				height: 72rpx;
+				background: #F4F5F7;
+				border-radius: 200rpx;
+				font-size: 32rpx;
+				box-sizing: border-box;
+				padding: 0 130rpx 0 24rpx;
+			}
+			.index-search-box-buttom{
+				position: absolute;
+				right: 6rpx;
+				top: 6rpx;
+				width: 120rpx;
+				height: 60rpx;
+				background: linear-gradient( 90deg, #57CAFF 0%, #41ABF5 100%);
+				border-radius: 200rpx;
+				margin-left: auto;
+				line-height: 60rpx;
+				text-align: center;
+			}
+		}
+		.item-box{
+			box-sizing: border-box;
+			padding: 24rpx 0;
+			border-bottom: 1rpx solid #eee;
+		}
+		.item-box-f{
+			width: 100%;
+			position: absolute;
+			box-sizing: border-box;
+			padding-left: 60rpx;
+			image{
+				width: 40rpx;
+				height: 40rpx;
+				position: absolute;
+				left: 0;
+				top: 28rpx;
+			}
+		}
+		.pop-coupon{
+			width: 100%;
+			height: 70vh;
+			background-color: #fff;
+			border-radius: 24rpx 24rpx 0rpx 0rpx;
+			padding-top: 32rpx !important;
+			display: flex;
+			flex-direction: column;
+			.box-title{
+				position: relative;
+				.box-close{
+					position: absolute;
+					right: 22rpx;
+				}
+			}
+			
+		}
 	}
 </style>

+ 7 - 1
pages.json

@@ -73,7 +73,13 @@
 				{
 					"path": "select-school",
 					"style": {
-						"navigationBarTitleText": "地址选择"
+						"navigationBarTitleText": "选择学校"
+					}
+				},
+				{
+					"path": "address",
+					"style": {
+						"navigationBarTitleText": "地址管理"
 					}
 				}
 			]

+ 7 - 2
pages/index/index.vue

@@ -5,7 +5,7 @@
 		<view class="">
 			<Nav :leftShow='false' :customNav='true' :bgckgroundBox='bgckgroundBox'>
 				<template>
-					<view slot="custom" class="align-items-center">
+					<view slot="custom" class="align-items-center" @click="toScroll()">
 						<uni-icons type="location-filled" size="20"></uni-icons>
 						<view class="fs-32 fw-600 ml-10">重庆邮电大学...</view>
 						<image class="nav-icon ml-10" src="@/static/img/index/index-right.png" mode="aspectFit"></image>
@@ -222,7 +222,12 @@
 				}else{
 					tools.error('暂未开放')
 				}
-			}
+			},
+			toScroll(){
+				uni.navigateTo({
+					url:'/pages-address/select-school'
+				})
+			},
 		},
 	}
 </script>

+ 3 - 0
pages/me/index.vue

@@ -168,6 +168,9 @@
 					})
 				} else if (type == 4) {
 					// 地址管理
+					uni.navigateTo({
+						url: '/pages-address/address'
+					})
 				} else if (type == 5) {
 					// 领券中心
 					uni.navigateTo({

二進制
static/img/common/edit.png


二進制
static/img/common/no-order.png