Pārlūkot izejas kodu

优化bug 优化

XSXS 1 mēnesi atpakaļ
vecāks
revīzija
2c1c4156e6

+ 1 - 0
components/tabbar/tabbar.vue

@@ -199,6 +199,7 @@ export default {
 	display: flex;
 	flex-direction: column;
 	background: url("@/static/home/taber-bg.png") center top / 100% auto;
+	z-index: 99;
 }
 
 .tabbar-bottom {

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "萌创星球",
     "appid" : "__UNI__00BD11F",
     "description" : "这里是创意与灵魂汇聚的起点",
-    "versionName" : "1.0.1",
-    "versionCode" : 101,
+    "versionName" : "1.0.2",
+    "versionCode" : 102,
     "transformPx" : false,
     "app-plus" : {
         "compatible" : {

+ 4 - 0
pages/index/index.vue

@@ -292,6 +292,10 @@ export default {
 					image: "../../static/home/home-swper.png",
 					url: "/pages/makedetail/makeImgDetail",
 				},
+				{
+					image: "../../static/home/home-swper2.png",
+					url: `/pages/webview/index?url=https://e.zhichao.art/web/czgy.php&title=创作公约`,
+				},
 			],
 			cardList: [],
 			list: [], // 瀑布流全部数据

+ 38 - 35
pages/make/fabuArticle.vue

@@ -1,5 +1,5 @@
 <template>
-	<view class="page"> 
+	<view class="page">
 		<view class="nav-bar">
 			<view class="left">
 				<view class="uni-btn-icon" @click="goBack">&#xe601;</view>
@@ -41,7 +41,7 @@
 			<view class="optionalWorks" @click="onManage">
 				<view class="title">
 					可选作品
-					<text v-if="id < 1">(图片或作品必选一个发布)</text> 
+					<text v-if="id < 1">(图片或作品必选一个发布)</text>
 				</view>
 				<view class="selectLeft">
 					<text class="prompt" v-if="id > 1">已选择一个作品</text>
@@ -322,7 +322,13 @@ export default {
 			if (this.is_submit > 0) {
 				return;
 			}
-
+			// 构建图片字符串
+			let img_str = '';
+			if (this.img_list.length > 0) {
+				for (let i = 0; i < this.img_list.length; i++) {
+					img_str += this.img_list[i] + "|";
+				}
+			}
 			// 校验图片数量和作品选择
 			if (this.img_list.length < 1 && !this.selectedWork.id) {
 				uni.showToast({
@@ -330,35 +336,32 @@ export default {
 					icon: 'none'
 				});
 				return;
-			}else{
-						// 校验图片字符串有效性(可选,因为已经检查了图片数量)
-			if (!img_str || img_str.trim().length < 2) {
-				uni.showToast({
-					title: '请确保至少上传一张有效图片作为封面',
-					icon: 'none'
-				});
-				return;
-			}
-			// 校验图片数量不超过 5 张
-			if (this.img_list.length > 5) {
-				uni.showToast({
-					title: '最多只能上传 5 张图片',
-					icon: 'none'
-				});
-				return;
-			}
-			}
-		
-
-			// 构建图片字符串
-			let img_str = '';
-			if (this.img_list.length > 0) {
-				for (let i = 0; i < this.img_list.length; i++) {
-					img_str += this.img_list[i] + "|";
+			} else {
+				if (!this.selectedWork.id) {
+					// 校验图片字符串有效性(可选,因为已经检查了图片数量)
+					if (!img_str || img_str.trim().length < 2) {
+						uni.showToast({
+							title: '请确保至少上传一张有效图片作为封面',
+							icon: 'none'
+						});
+						return;
+					}
+					// 校验图片数量不超过 5 张
+					if (this.img_list.length > 5) {
+						uni.showToast({
+							title: '最多只能上传 5 张图片',
+							icon: 'none'
+						});
+						return;
+					}
 				}
+
 			}
 
-		
+
+
+
+
 			let that = this;
 			this.is_submit = 1;
 			uni.request({
@@ -434,13 +437,13 @@ export default {
 		async checkRights(sourceType) {
 			try {
 				let hasPermission = false;
-				
+
 				if (sourceType === 'camera') {
 					hasPermission = await permission.request(permission.PermissionType.CAMERA, {
 						title: '“萌创星球”想访问你的相机',
 						describe: '萌创星球想访问您的摄像头,便于拍摄获取图片来与其他用户进行交流'
 					});
-					
+
 					if (!hasPermission) {
 						uni.showToast({
 							title: '未获得相机权限',
@@ -453,7 +456,7 @@ export default {
 						title: '“萌创星球”想访问你的照片图库',
 						describe: '萌创星球想访问您本地照片图库,便于获取图片来与其他用户进行交流'
 					});
-					
+
 					if (!hasPermission) {
 						uni.showToast({
 							title: '未获得相册权限',
@@ -462,9 +465,9 @@ export default {
 						return;
 					}
 				}
-				
+
 				// 权限获取成功后,继续执行上传
-				this.upload2(type, sourceType);
+				this.upload2('list', sourceType);
 			} catch (error) {
 				console.error('权限检查失败:', error);
 				uni.showToast({
@@ -480,7 +483,7 @@ export default {
 				count: 5,
 				sizeType: ['compressed'],
 				sourceType: [sourceType],
-				success: function(res) {
+				success: function (res) {
 					console.log('res:', res)
 					for (let index = 0; index < res.tempFilePaths.length; index++) {
 						let filepath = "";

+ 7 - 0
pages/message/mailMessage.vue

@@ -185,6 +185,13 @@ export default {
 			this.old.scrollTop = e.detail.scrollTop;
 		},
 		goDetail(item) {
+			if (item.article_del == 1) {
+				uni.showToast({
+					title: '该文章已删除',
+					icon: 'none'
+				});
+				return;
+			}
 			let url = '';
 
 			switch (item.type) {

+ 2 - 5
pages/my/my.vue

@@ -80,13 +80,10 @@
 							<image v-else-if="0" src="@/static/me/icon-vip1.png" mode=""></image>
 							<image v-else src="@/static/me/icon-vip0.png" mode=""></image>
 							<text v-if="myinfo.is_vip == 0">开启专属会员权益</text>
-							<text v-else style="font-size: 24rpx;">会员权益生效中&emsp13;
-							</text>
+							<text v-else style="font-size: 24rpx;">会员权益生效中   <text style="color: rgba(172 ,249 ,52, .5);"> ({{myinfo.vip_date}})  </text>  </text>
 						</view>
 						<!-- <view class=""> -->
-						<text style="color: rgba(172 ,249 ,52, .5);">
-						 {{myinfo.vip_date}} 
-						</text>
+						
 						<image v-if="isRecharge" src="@/static/me/wd_icon_jiantou.png" mode=""></image>
 						<!-- </view> -->
 					</view>

+ 6 - 3
pages/vip/index.vue

@@ -192,12 +192,12 @@ export default {
 				desc: '每日登录领更多星源'
 			},
 			{
-				name: '记忆增强',
+				name: '数据安全增强',
 				icon: '../../static/vip/hy_icon_quanyi03.png',
-				desc: '创作加速,更快生成'
+				desc: '多重数据安全更放心'
 			},
 			{
-				name: '升级语言模型',
+				name: '深度思考升级',
 				icon: '../../static/vip/hy_icon_quanyi04.png',
 				desc: '深度思考,提升50%'
 			},
@@ -224,6 +224,9 @@ export default {
 	computed: {
 		...mapState('hideModule', ['isWeChatPay'])
 	},
+	onShow() {
+		this.isSubmitting = false ;
+	},
 	onLoad() {
 		// 获取用户信息,检查是否为VIP
 		this.getUserInfo();

BIN
static/home/home-swper2.png