he2802 4 år sedan
förälder
incheckning
7a5effe820
5 ändrade filer med 146 tillägg och 3 borttagningar
  1. 10 0
      pages.json
  2. 3 3
      pages/wd/index.vue
  3. 133 0
      pages2/msg/index.vue
  4. BIN
      static/icon/msg_icon1.png
  5. BIN
      static/icon/msg_icon2.png

+ 10 - 0
pages.json

@@ -214,6 +214,16 @@
 						"bounce": "none"
 					}
 				}
+			},
+			{
+				"path": "msg/index",
+				"style": {
+					"navigationBarTitleText": "我的消息",
+					"app-plus": {
+						"titleNView": false, //禁用原生导航栏 
+						"bounce": "none"
+					}
+				}
 			}
 		],
 		"plugins": {

+ 3 - 3
pages/wd/index.vue

@@ -64,7 +64,7 @@
 					<text style="color: #007AFF;margin: 0 5rpx;">3</text>笔待支付
 				</view>
 			</view>
-			<view class="menu_box">
+			<navigator url="/pages2/msg/index" class="menu_box">
 				<view style="display: flex;align-items: center;">
 					<image src="/static/icon/my_icon8.png" class="my_icon"></image>
 					<view>我的消息</view>
@@ -72,7 +72,7 @@
 				<view>
 					<text style="color: #007AFF;margin: 0 5rpx;">3</text>条未读
 				</view>
-			</view>
+			</navigator>
 			<view class="menu_box">
 				<view style="display: flex;align-items: center;">
 					<image src="/static/icon/my_icon9.png" class="my_icon"></image>
@@ -163,7 +163,7 @@
 		margin-right: 20rpx;
 	}
 	.menu_box{
-		width: 100%;
+		
 		height: 104rpx;
 		background: #FFFFFF;
 		border-radius: 24rpx;

+ 133 - 0
pages2/msg/index.vue

@@ -0,0 +1,133 @@
+<template>
+	<view style="padding: 20rpx;">
+		<view  v-for="(item, index) in list1" style="padding-bottom: 20rpx;">
+			<view class="item">
+				<view style="display: flex;justify-content: space-between;align-items: center;height: 60rpx;" @click="openPopup(index)">
+					<view style="color: #333333;font-size: 30rpx;font-weight: bold;display: flex;align-items: center;">
+						<image :src="index==0?img1:img2" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;"></image>系统通知
+					</view>
+					<view style="color: #999999;font-size: 24rpx;">2021/10/26 10:30:26</view>
+				</view>
+				<u-line color="#D6D6DB" />
+				<view style="display: flex;justify-content: space-between;padding: 25rpx;color: #666666;">
+					这是一个通知标题这是一个通知标题这是一个通知
+					标题过长换行
+				</view>
+				<u-line color="#D6D6DB" />
+				<view style="display: flex;justify-content: space-between;align-items: center;height: 50rpx;margin-top: 10rpx;padding: 0 25rpx;" >
+					<view class="color: #333333;font-size: 28rpx;">查看详情</view>
+					<view><u-icon name="arrow-right" color="#999999" size="28"></u-icon></view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+
+import { mapGetters } from 'vuex';
+export default {
+	components: {
+		
+	},
+	data() {
+		return {
+			list: [
+				{
+					name: '待支付'
+				}, 
+				{
+					name: '已支付'
+				}, 
+				{
+					name: '已取消'
+				}
+			],
+			list1:[1,2,3,4,5,6,7],
+			current: 0,
+			img1:'/static/icon/msg_icon1.png',
+			img2:'/static/icon/msg_icon2.png'
+		};
+	},
+	onPullDownRefresh(){
+	},
+	onLoad(option) {
+		
+	},
+	onShow() {
+		/* if(this.current === 2 && this.$method.isLogin()){
+			this.$refs.refMy.init();
+		} */
+	},
+	onShareAppMessage(res) {
+		var self = this;
+		return {
+			title: '中正',
+			path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
+		};
+	},
+	methods: {
+		change(index){
+			this.current = index;
+		}
+	},
+	onReachBottom() {},
+	computed: { ...mapGetters(['userInfo']) }
+};
+</script>
+<style >
+	page {
+			background: #EAEEF1;
+		}
+</style>
+<style scoped>
+	.btn2{
+		width: 144rpx;
+		height: 48rpx;
+		background: #FFFFFF;
+		border: 2rpx solid #007AFF;
+		border-radius: 16rpx;
+		text-align: center;
+		line-height: 48rpx;
+		color: #007AFF;
+		margin: 0 8rpx;
+	}
+	.btn1{
+		width: 144rpx;
+		height: 48rpx;
+		background: #FFFFFF;
+		border: 2rpx solid #999999;
+		border-radius: 16rpx;
+		text-align: center;
+		line-height: 48rpx;
+		color: #999999;
+		margin: 0 8rpx;
+	}
+.item{
+		width: 100%;
+		background: #FFFFFF;
+		border-radius: 16rpx;
+		padding: 15rpx;
+	}
+	.priceTag{
+		font-size: 30rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #FF2D55;
+		display: flex;
+		flex-direction: row-reverse;
+	}
+	
+	.bottomBox{
+		position: fixed;
+		bottom: 0;
+		width: 100%;
+		left: 0;
+		height:98rpx ;
+		background-color: #FFFFFF;
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+		padding: 0 30rpx;
+	}
+</style>

BIN
static/icon/msg_icon1.png


BIN
static/icon/msg_icon2.png