Selaa lähdekoodia

fourth commit

eason 1 vuosi sitten
vanhempi
sitoutus
2279a3b60c

+ 1 - 0
WeChatTrading

@@ -0,0 +1 @@
+Subproject commit 65bde4324c6c7a3009ad75ad003f52273abc8ce3

+ 23 - 23
fore-end/pages/home/home.js

@@ -15,32 +15,32 @@ Page({
         commentList: [],
     },
 
-    init() {
-        getCommentList(this.commentPage).then(
-            (res) => {
-                // code message data
-                const {data} = res
-                this.setData({
-                    commentList = data
-                })
-            }
-        ).catch(
-            (err) => {
-                console.log(err);
-                //处理错误状态
-            }
-        ).finally(
-            () => {
-
-            }
-        )
-    },
+    // init() {
+    //     getCommentList(this.commentPage).then(
+    //         (res) => {
+    //             // code message data
+    //             const {data} = res
+    //             this.setData({
+    //                 commentList : data
+    //             })
+    //         }
+    //     ).catch(
+    //         (err) => {
+    //             console.log(err);
+    //             //处理错误状态
+    //         }
+    //     ).finally(
+    //         () => {
+
+    //         }
+    //     )
+    // },
     /**
      * 生命周期函数--监听页面加载
      */
-    onLoad(options) {
-        this.init()
-    },
+    // onLoad(options) {
+    //     this.init()
+    // },
 
     /**
      * 生命周期函数--监听页面初次渲染完成

+ 10 - 10
fore-end/pages/user/user.wxml

@@ -1,7 +1,7 @@
 <!--pages/user/user.wxml-->
 <van-cell-group inset>
 	<view class="pages-user">
-		<view class="pages-user-profile" bindtap="changeBtn">
+		<view class="pages-user-profile" >
 			<view class="pages-user-profile-1"></view>
 		</view>
 		<view class="pages-user-username">
@@ -11,23 +11,23 @@
 				<van-icon name="/assets/tabBar_img/修改.png"></van-icon>
 				<view class="pages-user-username-4-text">编辑个性签名,展示我的独特态度。</view>
 			</view>
-			<van-cell value="编辑个人信息" is-link  class="pages-user-username-3" value-class="font-size:12px;"></van-cell>
+			<van-cell bindtap="changeBtn" value="编辑个人信息" is-link  class="pages-user-username-3" value-class="font-size:12px;"></van-cell>
 		</view>
 	</view>
-	<view class="pages-user-order">
+	<van-cell class="pages-user-order">
 		<van-icon name="/assets/tabBar_img/订单.png" class="pages-user-order-1"></van-icon>
 		<view class="pages-user-order-2">我的订单</view>
-	</view>
+	</van-cell>
 	<van-cell-group class="pages-user-comdity">
 		<van-cell title="已售商品" value="查看更多" is-link class="pages-user-comdity-1"></van-cell>
-		<van-image width="100px" height="110px" fit="cover" src="https://img.js.design/assets/smartFill/img386164da74ff50.jpeg" class="pages-user-comdity-2"></van-image>
-		<van-image width="100px" height="110px" fit="cover" src="https://img.js.design/assets/smartFill/img430164da758808.jpeg" class="pages-user-comdity-2"></van-image>
-		<van-image width="100px" height="110px" fit="cover" src="https://img.js.design/assets/smartFill/img355164da74c4b8.jpg" class="pages-user-comdity-2"></van-image>
+		<van-image width="100px" height="120px" fit="cover" src="https://img.js.design/assets/smartFill/img386164da74ff50.jpeg" class="pages-user-comdity-2"></van-image>
+		<van-image width="100px" height="120px" fit="cover" src="https://img.js.design/assets/smartFill/img430164da758808.jpeg" class="pages-user-comdity-2"></van-image>
+		<van-image width="100px" height="120px" fit="cover" src="https://img.js.design/assets/smartFill/img355164da74c4b8.jpg" class="pages-user-comdity-2"></van-image>
 	</van-cell-group>
 	<van-cell-group class="pages-user-comdity">
 		<van-cell title="待售商品" value="查看更多" is-link class="pages-user-comdity-1"></van-cell>
-		<van-image width="100px" height="110px" fit="cover" src="https://img.js.design/assets/smartFill/img425164da758808.jpg" class="pages-user-comdity-2"></van-image>
-		<van-image width="100px" height="110px" fit="cover" src="https://img.js.design/assets/smartFill/img434164da758808.jpeg" class="pages-user-comdity-2"></van-image>
-		<van-image width="100px" height="110px" fit="cover" src="https://img.js.design/assets/smartFill/img383164da74ff50.jpg" class="pages-user-comdity-2"></van-image>
+		<van-image width="100px" height="120px" fit="cover" src="https://img.js.design/assets/smartFill/img425164da758808.jpg" class="pages-user-comdity-2"></van-image>
+		<van-image width="100px" height="120px" fit="cover" src="https://img.js.design/assets/smartFill/img434164da758808.jpeg" class="pages-user-comdity-2"></van-image>
+		<van-image width="100px" height="120px" fit="cover" src="https://img.js.design/assets/smartFill/img383164da74ff50.jpg" class="pages-user-comdity-2"></van-image>
 	</van-cell-group>
 </van-cell-group>

+ 7 - 4
fore-end/pages/user/user.wxss

@@ -5,6 +5,9 @@ page{
 }
 .pages-user{
 	display: flex;
+	position: relative;
+	top: 25px;
+	margin-bottom: 30px;
 }
 
 .pages-user-profile{
@@ -101,16 +104,16 @@ page{
 	width: 50px;
 	height: 50px;
 	position: relative;
-	left: -115px;
+	left: -225px;
 	top: 10px;
 }
 
 .pages-user-order-2{
 	font-size: 12px;
 	position: relative;
-	top: 10px;
-	left: 25px;
-	margin-bottom: 15px;
+	top: 0px;
+	left: -225px;
+	margin-bottom: 5px;
 }
 
 .pages-user-comdity-1>.van-cell>.van-cell__title{

+ 4 - 3
fore-end/pages/userchange/userchange.wxml

@@ -2,9 +2,10 @@
 <view class="pages">
 	<van-image round fit="cover" src="https://img.js.design/assets/smartFill/img308164da746310.jpeg" class="pages-userchange-profile"></van-image>
 	<van-cell-group>
-		<van-field label="昵称" readonly="{{true}}" class="pages-userchange-username" custom-style="background: rgba(56, 56, 56, 0.17);border-radius: 15px;width:320px;margin-bottom:33px;" title-width="40px" value="deter" placeholder="请输入昵称" adjust-position ></van-field>
-		<van-field label="电话" type="number" class="pages-userchange-username" custom-style="background: rgba(56, 56, 56, 0.17);border-radius: 15px;width:320px;margin-bottom:33px;" title-width="40px" value="{{photonumber}}" placeholder="请输入电话号码" adjust-position ></van-field>
-		<van-field label="密码" class="pages-userchange-username" custom-style="background: rgba(56, 56, 56, 0.17);border-radius: 15px;width:320px;margin-bottom:33px;" title-width="40px" value="{{username}}" placeholder="请输入密码" adjust-position password="{{true}}" ></van-field>
+		<van-field label="昵称"  class="pages-userchange-username" custom-style="background: rgba(56, 56, 56, 0.17);border-radius: 15px;width:320px;margin-bottom:33px;" title-width="60px" value="deter" placeholder="请输入昵称" adjust-position ></van-field>
+		<van-field label="电话" type="number" class="pages-userchange-username" custom-style="background: rgba(56, 56, 56, 0.17);border-radius: 15px;width:320px;margin-bottom:33px;" title-width="60px" value="{{photonumber}}" placeholder="请输入电话号码" adjust-position ></van-field>
+		<van-field label="密码" class="pages-userchange-username" custom-style="background: rgba(56, 56, 56, 0.17);border-radius: 15px;width:320px;margin-bottom:33px;" title-width="60px" value="{{username}}" placeholder="请输入密码" adjust-position password="{{true}}" ></van-field>
+		<van-field label="个性签名" class="pages-userchange-username" custom-style="background: rgba(56, 56, 56, 0.17);border-radius: 15px;width:320px;margin-bottom:33px;" title-width="60px" value="{{username}}" placeholder="请输入个性签名" adjust-position password="{{true}}" ></van-field>
 	</van-cell-group>
 	<van-button disabled round color="rgba(16, 128, 227, 1)" custom-style="width:150px;height:45px;transform: translate(75%, 0%);">提交修改</van-button>
 </view>

+ 2 - 2
fore-end/pages/userchange/userchange.wxss

@@ -11,8 +11,8 @@ page{
 	opacity: 1;
 	position: relative;
 	left: 130px;
-	top: 10px;
-	margin-bottom: 30px;
+	top: 20px;
+	margin-bottom: 40px;
 }
 
 .pages-userchange-username{