高敬炎 il y a 2 ans
Parent
commit
1b0806336e
42 fichiers modifiés avec 127 ajouts et 64 suppressions
  1. 1 1
      xiaochengxu/manifest.json
  2. 18 17
      xiaochengxu/pages.json
  3. 108 46
      xiaochengxu/pages/mySet/mySet.vue
  4. BIN
      xiaochengxu/static/c1.png
  5. BIN
      xiaochengxu/static/c2.png
  6. BIN
      xiaochengxu/static/c3.png
  7. BIN
      xiaochengxu/static/c4.png
  8. BIN
      xiaochengxu/static/c5.png
  9. BIN
      xiaochengxu/static/c6.png
  10. BIN
      xiaochengxu/static/c7.png
  11. BIN
      xiaochengxu/static/c8.png
  12. BIN
      xiaochengxu/static/c9.png
  13. BIN
      xiaochengxu/static/imgs/bz.png
  14. BIN
      xiaochengxu/static/imgs/cirlcle.png
  15. BIN
      xiaochengxu/static/imgs/home.png
  16. BIN
      xiaochengxu/static/imgs/map.png
  17. BIN
      xiaochengxu/static/imgs/messege.png
  18. BIN
      xiaochengxu/static/imgs/mic.png
  19. BIN
      xiaochengxu/static/imgs/mr.png
  20. BIN
      xiaochengxu/static/imgs/my.png
  21. BIN
      xiaochengxu/static/imgs/mySet/account.png
  22. BIN
      xiaochengxu/static/imgs/mySet/card.png
  23. BIN
      xiaochengxu/static/imgs/mySet/card1.png
  24. BIN
      xiaochengxu/static/imgs/mySet/ewm.png
  25. BIN
      xiaochengxu/static/imgs/mySet/help.png
  26. BIN
      xiaochengxu/static/imgs/mySet/home.png
  27. BIN
      xiaochengxu/static/imgs/mySet/kf.png
  28. BIN
      xiaochengxu/static/imgs/mySet/set.png
  29. BIN
      xiaochengxu/static/imgs/mySet/share.png
  30. BIN
      xiaochengxu/static/imgs/mySet/type.png
  31. BIN
      xiaochengxu/static/imgs/mySet/yjt.png
  32. BIN
      xiaochengxu/static/imgs/phone.png
  33. BIN
      xiaochengxu/static/imgs/scan.png
  34. BIN
      xiaochengxu/static/imgs/scirlce.png
  35. BIN
      xiaochengxu/static/imgs/search.png
  36. BIN
      xiaochengxu/static/imgs/share.png
  37. BIN
      xiaochengxu/static/imgs/smy.png
  38. BIN
      xiaochengxu/static/imgs/swjj.png
  39. BIN
      xiaochengxu/static/imgs/wjj.png
  40. BIN
      xiaochengxu/static/imgs/xjt.png
  41. BIN
      xiaochengxu/static/logo.png
  42. BIN
      xiaochengxu/static/uni.png

+ 1 - 1
xiaochengxu/manifest.json

@@ -51,7 +51,7 @@
     "quickapp" : {},
     /* 快应用特有相关 */
     "mp-weixin" : {
-        "appid" : "wx4505a6ea6f703e17",
+        "appid" : "wx5d8906c2208c899f",
         "setting" : {
             "urlCheck" : false,
             "minified" : true,

+ 18 - 17
xiaochengxu/pages.json

@@ -2,7 +2,15 @@
 	"easycom": {
 		"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
 	},
-	"pages": [{
+	"pages": [
+		{
+			"path": "pages/mySet/mySet",
+			"style": {
+				"navigationBarTitleText": "我的",
+				"enablePullDownRefresh": false
+			}
+		
+		}, {
 			"path": "pages/cardHolder/cardHolder",
 			"style": {
 				"navigationBarTitleText": "电子名片",
@@ -30,13 +38,6 @@
 				"enablePullDownRefresh": false
 			}
 
-		}, {
-			"path": "pages/mySet/mySet",
-			"style": {
-				"navigationBarTitleText": "我的",
-				"enablePullDownRefresh": false
-			}
-
 		}, {
 			"path": "pages/cardHolder/map",
 			"style": {
@@ -186,33 +187,33 @@
 	"tabBar": {
 		"custom": false,
 		"color": "#656765",
-		"selectedColor": "#000102",
+		"selectedColor": "#112253",
 		"borderStyle": "white",
 		"backgroundColor": "#ffffff",
 		"list": [{
 				"pagePath": "pages/cardHolder/cardHolder",
-				"iconPath": "static/c1.png",
-				"selectedIconPath": "static/c2.png",
+				"iconPath": "static/imgs/wjj.png",
+				"selectedIconPath": "static/imgs/swjj.png",
 				"text": "电子名片"
 			},
 			{
 				"pagePath": "pages/circle/circle",
-				"iconPath": "static/c3.png",
-				"selectedIconPath": "static/c4.png",
+				"iconPath": "static/imgs/cirlcle.png",
+				"selectedIconPath": "static/imgs/scirlce.png",
 				"text": "圈子"
 			},
 			{
 				"pagePath": "pages/mySet/mySet",
-				"iconPath": "static/c5.png",
-				"selectedIconPath": "static/c6.png",
+				"iconPath": "static/imgs/my.png",
+				"selectedIconPath": "static/imgs/smy.png",
 				"text": "我的"
 			}
 		]
 	},
 	"globalStyle": {
-		"navigationBarTextStyle": "black",
+		"navigationBarTextStyle": "white",
 		"navigationBarTitleText": "电子名片",
-		"navigationBarBackgroundColor": "#F8F8F8",
+		"navigationBarBackgroundColor": "#112253",
 		"backgroundColor": "#F8F8F8",
 		"app-plus": {
 			"background": "#efeff4"

+ 108 - 46
xiaochengxu/pages/mySet/mySet.vue

@@ -1,22 +1,26 @@
 <template>
 	<view class="content">
-		<view class="content1 flex-all-center relative">
-			<view class="user">
+		<view class="content1 flex-between relative flex">
+			<view class="user flex">
 				<image :src="userInfo.head" mode="widthFix" class="img"></image>
 				<view class="name">
 					{{userInfo.nickname}}
 				</view>
 			</view>
 			<view class="position">
-				<u-icon name="share-square" color="#2979ff" size="28"></u-icon>
-				<u-icon name="grid-fill" color="#2979ff" size="28"></u-icon>
+				<image src="../../static/imgs/mySet/share.png" mode="widthFix" class="right-img"></image>
+				<image src="../../static/imgs/mySet/ewm.png" mode="widthFix" class="right-img"></image>
 			</view>
 		</view>
 		<view class="content2">
-			<view class="row" v-for="item in menuList" @click="menuClick(item.type)">
-				<button class="left" v-if='item.type=="contactCustomer"' open-type='contact'>{{item.name}}</button>
+			<view class="row flex flex-between" v-for="item in menuList" @click="menuClick(item.type)">
+				<view class="flex">
+					<image :src="item.src" mode="widthFix" class="nav-img"></image>
+					<button class="left-btn" v-if='item.type=="contactCustomer"' open-type='contact'>{{item.name}}</button>
 					<span class="left" v-else>{{item.name}}</span>
-				<span class="right">></span>
+				</view>
+				
+				<span class="right"><image src="../../static/imgs/mySet/yjt.png" mode="widthFix" class="row-right-img"></image></span>
 			</view>
 		</view>
 	</view>
@@ -26,36 +30,42 @@
 	export default {
 		data() {
 			return {
-				userInfo:{},
-				menuList:[
+				userInfo: {},
+				menuList: [{
+						name: "我的名片",
+						type: 'myInfo',
+						src:'../../static/imgs/mySet/card.png'
+					},
+					{
+						name: "我的主页",
+						type: 'myHome',
+						src:'../../static/imgs/mySet/home.png'
+					},
+					{
+						name: "名片分类",
+						type: "cardType",
+						src:'../../static/imgs/mySet/type.png'
+					},
+					{
+						name: "我的证件",
+						type: "myCard",
+						src:'../../static/imgs/mySet/card1.png'
+					},
+					{
+						name: "帮助说明",
+						type: "help",
+						src:'../../static/imgs/mySet/help.png'
+					},
+					{
+						name: "联系客服",
+						type: "contactCustomer",
+						src:'../../static/imgs/mySet/kf.png'
+					},
 					{
-					name:"我的名片",
-					type:'myInfo'
-				},
-				{
-					name:"我的主页",
-					type:'myHome'
-				},
-				{
-					name:"名片分类",
-					type:"cardType"
-				},
-				{
-					name:"我的证件",
-					type:"myCard"
-				},
-				{
-					name:"帮助说明",
-					type:"help"
-				},
-				{
-					name:"联系客服",
-					type:"contactCustomer"
-				},
-				{
-					name:"设置",
-					type:'set'
-				},
+						name: "设置",
+						type: 'set',
+						src:'../../static/imgs/mySet/set.png'
+					},
 				]
 			};
 		},
@@ -63,25 +73,77 @@
 			this.userInfo = uni.getStorageSync("userInfo")
 			console.log(this.userInfo)
 		},
-		methods:{
-			menuClick(typeName){
-				let _url = '/pages/mySet/'+typeName
+		methods: {
+			menuClick(typeName) {
+				let _url = '/pages/mySet/' + typeName
 				console.log(_url)
 				uni.navigateTo({
-					url:_url
+					url: _url
 				})
 			}
 		}
-	
+
 	}
 </script>
 
 <style lang="scss" scoped>
-	.content1{
-		
-		.img{
-			width: 100rpx;
+	.content1 {
+		background: #112253;
+		padding: 0rpx 20rpx 160rpx 20rpx;
+		box-sizing: border-box;
+		border-radius: 0px 0px 20rpx 20rpx;
+
+		.user {
+			color: #fff;
+
+			.name {
+				font-weight: 700;
+			}
+		}
+
+		.img {
+			width: 124rpx;
 			border-radius: 50%;
+			margin-right: 32rpx;
+		}
+
+		.position {
+			.right-img {
+				width: 44rpx;
+				margin-left: 40rpx;
+			}
+		}
+	}
+
+	.content2 {
+		background: #fff;
+		margin: 20rpx;
+		padding:0 40rpx;
+		position: relative;
+		top: -100rpx;
+		border-radius: 20rpx;
+		.nav-img{
+			width: 32rpx;
+			margin-right:20rpx ;
+		}
+		.row{
+			border-bottom: 1px solid #E6E6E6;
+			padding: 35rpx 0;
+			.row-right-img{
+				width: 12rpx;
+			}
+		}
+		.row:last-child{
+			border: none;
+		}
+		.left-btn{
+			background: #fff;
+			padding: 0;
+			margin: 0;
+			font-size: 32rpx;
+		}
+		.left-btn:after{
+			border: none!important;
 		}
 	}
-</style>
+</style>

BIN
xiaochengxu/static/c1.png


BIN
xiaochengxu/static/c2.png


BIN
xiaochengxu/static/c3.png


BIN
xiaochengxu/static/c4.png


BIN
xiaochengxu/static/c5.png


BIN
xiaochengxu/static/c6.png


BIN
xiaochengxu/static/c7.png


BIN
xiaochengxu/static/c8.png


BIN
xiaochengxu/static/c9.png


BIN
xiaochengxu/static/imgs/bz.png


BIN
xiaochengxu/static/imgs/cirlcle.png


BIN
xiaochengxu/static/imgs/home.png


BIN
xiaochengxu/static/imgs/map.png


BIN
xiaochengxu/static/imgs/messege.png


BIN
xiaochengxu/static/imgs/mic.png


BIN
xiaochengxu/static/imgs/mr.png


BIN
xiaochengxu/static/imgs/my.png


BIN
xiaochengxu/static/imgs/mySet/account.png


BIN
xiaochengxu/static/imgs/mySet/card.png


BIN
xiaochengxu/static/imgs/mySet/card1.png


BIN
xiaochengxu/static/imgs/mySet/ewm.png


BIN
xiaochengxu/static/imgs/mySet/help.png


BIN
xiaochengxu/static/imgs/mySet/home.png


BIN
xiaochengxu/static/imgs/mySet/kf.png


BIN
xiaochengxu/static/imgs/mySet/set.png


BIN
xiaochengxu/static/imgs/mySet/share.png


BIN
xiaochengxu/static/imgs/mySet/type.png


BIN
xiaochengxu/static/imgs/mySet/yjt.png


BIN
xiaochengxu/static/imgs/phone.png


BIN
xiaochengxu/static/imgs/scan.png


BIN
xiaochengxu/static/imgs/scirlce.png


BIN
xiaochengxu/static/imgs/search.png


BIN
xiaochengxu/static/imgs/share.png


BIN
xiaochengxu/static/imgs/smy.png


BIN
xiaochengxu/static/imgs/swjj.png


BIN
xiaochengxu/static/imgs/wjj.png


BIN
xiaochengxu/static/imgs/xjt.png


BIN
xiaochengxu/static/logo.png


BIN
xiaochengxu/static/uni.png