Sfoglia il codice sorgente

修复启动页变形问题 修复已知bug

XSXS 2 mesi fa
parent
commit
9d9e2e318b

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
 /unpackage
+/.hbuilderx

+ 1 - 1
.hbuilderx/launch.json

@@ -11,7 +11,7 @@
                 "launchtype" : "local"
             },
             "h5" : {
-                "launchtype" : "local"
+                "launchtype" : "remote"
             },
             "provider" : "aliyun",
             "type" : "uniCloud"

+ 25 - 0
App.vue

@@ -326,4 +326,29 @@ uni-modal {
   margin-left: 8rpx;
   background-color: #1f1f1f;
 }
+.blick-btn-animation{
+  
+  &:active {
+			transform: scale(0.98);
+			background-color: #333333;
+		}
+		
+		&::after {
+			content: '';
+			position: absolute;
+			top: 50%;
+			left: 50%;
+			width: 0;
+			height: 0;
+			background: rgba(255, 255, 255, 0.2);
+			border-radius: 50%;
+			transform: translate(-50%, -50%);
+			transition: width 0.3s ease, height 0.3s ease;
+		}
+		
+		&:active::after {
+			width: 200%;
+			height: 200%;
+		}
+}
 </style>

+ 12 - 2
components/cc-comment/componets/common.vue

@@ -1,7 +1,7 @@
 <template>
   <view class="comment_item">
     <view class="top">
-      <view class="top_left">
+      <view class="top_left" @click="goToUserHomepage(data.user_id)">
         <img class="user_avatar" :src="data.user_avatar" />
         <uni-tag v-if="data.author" class="tag" type="primary" :inverted="false" text="作者" size="mini" circle />
         <span class="user_name">{{ data.user_name }}</span>
@@ -97,8 +97,18 @@ export default {
     deleteClick(item) {
       this.$emit("deleteClick", item);
     },
+	goToUserHomepage(id) {
+	  uni.$emit('check_login', () => {
+	    if (!id) {
+	      return;
+	    }
+	    uni.navigateTo({
+	      url: "/pages/my/userHomepage?id=" + id,
+	    });
+	  })
+	},
   },
-  mounted() {
+  mounted() { 
     this.user_content = this.data.user_content;
     this.isShrink = this.user_content.length > this.contentShowLength;
     this.c_content = this.isShrink ? this.user_content.slice(0, this.contentShowLength + 1) : this.user_content;

+ 4 - 4
manifest.json

@@ -1,7 +1,7 @@
 {
     "name" : "萌创星球",
     "appid" : "__UNI__00BD11F",
-    "description" : "",
+    "description" : "这里是创意与灵魂汇聚的起点",
     "versionName" : "1.0.0",
     "versionCode" : 100,
     "transformPx" : false,
@@ -110,9 +110,9 @@
                 "iosStyle" : "common",
                 "ios" : {},
                 "android" : {
-                    "xxhdpi" : "/static/image/1080x1882.png",
-                    "xhdpi" : "/static/image/720x1242.png",
-                    "hdpi" : "/static/image/480x762.png"
+                    "xxhdpi" : "/static/image/1080x1882.9.png",
+                    "xhdpi" : "/static/image/1080x1882.9.png",
+                    "hdpi" : "/static/image/1080x1882.9.png"
                 }
             },
             "icons" : {

+ 4 - 0
pages/login/login.scss

@@ -74,6 +74,10 @@ page {
 		font-weight: bold;
 		font-size: 32rpx;
 		color: #FFFFFF;
+		transition: all 0.2s ease;
+		position: relative;
+		overflow: hidden;
+	
 	}
 	.other {
 		margin-top:38rpx;

+ 4 - 4
pages/login/login.vue

@@ -14,7 +14,7 @@
 				<image class="icon" mode="widthFix" src="../../static/me/avator.png"></image>
 				<text class="mobile">+ 86 1**********</text>
 				<text class="tips">首次验证通过即注册萌创星球账号</text>
-				<text class="btn_submit">本机号码一键登录</text>
+				<text class="btn_submit blick-btn-animation">本机号码一键登录</text>
 				<view class="other">
 					<view class="pass" @click="type = 'pass'">密码登录</view>
 					<view class="line"></view>
@@ -45,7 +45,7 @@
 						<view class="name">验证码:</view>
 						<view class="item">
 							<input type="text" class="input" v-model="code" placeholder="请输入验证码" maxlength="6" />
-							<view class="btn" v-if="captchaTime === 0" @click="getCode">获取验证码</view>
+							<view class="btn blick-btn-animation" v-if="captchaTime === 0" @click="getCode">获取验证码</view>
 							<view class="btn" v-if="captchaTime > 0">{{ captchaTime }}秒后重试</view>
 						</view>
 						<view class="other_list" v-if="false">
@@ -53,9 +53,9 @@
 							<text class="right" @click="type = 'pass'" style="color: blue;">密码登录</text>
 						</view>
 					</block>
-					<text class="btn_submit" @click="toLogin">登录/注册</text>
+					<text class="btn_submit blick-btn-animation" @click="toLogin">登录/注册</text>
 				</template>
-				<text class="btn_submit" @click="oneClickLoginFun">一键登录</text>
+				<text class="btn_submit blick-btn-animation" @click="oneClickLoginFun">一键登录</text>
 			</block>
 
 			<view class="wechat" v-if="false">

BIN
static/image/1080x1882.png


BIN
static/image/480x762.png


BIN
static/image/720x1242.png


BIN
static/image/xiong-bg.png