Kaynağa Gözat

修改小程序我要投稿样式

wrh 2 yıl önce
ebeveyn
işleme
45d8e861a6

+ 5 - 5
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/albumEdit/albumEdit.js

@@ -57,15 +57,15 @@ Page({
 				icon: "none",
 				duration: 1500
 			})
-		} else if (this.data.img == '') {
+		} else if (this.data.pictureDescription == '') {
 			wx.showToast({
-				title: "我的作品不能为空",
+				title: "作品描述不能为空",
 				icon: "none",
 				duration: 1500
 			})
-		} else if (e.detail.value.pictureDescription == '') {
+		} else if (e.detail.value.img == '') {
 			wx.showToast({
-				title: "作品描述不能为空",
+				title: "我的作品不能为空",
 				icon: "none",
 				duration: 1500
 			})
@@ -109,7 +109,7 @@ Page({
 			count: 1,
 			mediaType: ['image'],
 			sizeType: ["original", "compressed"],
-			sourceType: ["album", "camera"],
+			sourceType: ["album"],
 			success: function (res) {
 				var tempFilePaths = res.tempFiles[0];
 				if (tempFilePaths.size > 1024 * 1024 * 5) {

+ 11 - 11
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/albumEdit/albumEdit.wxml

@@ -1,14 +1,14 @@
 <!--pages/albumEdit/albumEdit.wxml-->
 <view style="background: #F0F0F0;padding: 20rpx 0 40rpx 0;">
 	<form catchsubmit="formSubmit">
-		<view style="width: 700rpx;background: #FFFFFF;border-radius: 10rpx;margin: auto;">
+		<view style="width: 700rpx;background: #FFFFFF;border-radius: 10rpx;margin: auto;padding-top: 10rpx;">
 			<view style="display: flex;border-bottom: 1px solid #DDDDDD;margin: 20rpx 18rpx;">
 				<view style="font-size: 24rpx;display: flex;line-height: 70rpx;height: 70rpx;">
 					<view style="color: #A91919;">*</view>
 					<view style="width: 132rpx;">作者电话</view>
 				</view>
 				<input name="uploaderPhone" style="font-size: 24rpx;line-height: 70rpx;height: 70rpx;width: 100%;" type='number' placeholder="请输入电话" maxlength="11" />
-				<switch name="isPublic" bindchange="publicChange" style="line-height: 60rpx;" />
+				<switch name="isPublic" bindchange="publicChange" color="#4169E1" style="line-height: 60rpx;" />
 			</view>
 			<view style="display: flex;border-bottom: 1px solid #DDDDDD;margin: 20rpx 18rpx;">
 				<view style="font-size: 24rpx;display: flex;line-height: 70rpx;height: 70rpx;">
@@ -23,7 +23,7 @@
 					<view style="width: 132rpx;">作品作者</view>
 				</view>
 				<input name="pictureAuthor" style="font-size: 24rpx;line-height: 70rpx;height: 70rpx;width: 100%;" placeholder="请输入作品作者" />
-				<switch name="isAnonymous" bindchange="anonymousChange" style="line-height: 60rpx;" />
+				<switch name="isAnonymous" color="#4169E1" bindchange="anonymousChange" style="line-height: 60rpx;" />
 			</view>
 			<view style="display: flex;border-bottom: 1px solid #DDDDDD;margin: 20rpx 18rpx;">
 				<view style="font-size: 24rpx;display: flex;line-height: 70rpx;height: 70rpx;">
@@ -43,7 +43,14 @@
 					<input style="font-size: 24rpx;line-height: 70rpx;height: 70rpx;width: 100%;" disabled="true" placeholder="请选择作品年代" value="{{array[pictureType]}}" />
 				</picker>
 			</view>
-			<view style="display: flex;border-bottom: 1px solid #DDDDDD;margin: 20rpx 18rpx;">
+			<view style="display: flex;margin: 20rpx 18rpx;height: 200rpx;border-bottom: 1px solid #DDDDDD;">
+				<view style="font-size: 24rpx;display: flex;line-height: 70rpx;height: 70rpx;">
+					<view style="color: #A91919;">*</view>
+					<view style="width: 132rpx;">作品描述</view>
+				</view>
+				<textarea name="pictureDescription" style="font-size: 24rpx;padding-top: 20rpx;" maxlength="200" auto-height placeholder="请输入你的作品描述" />
+			</view>
+			<view style="display: flex;margin: 20rpx 18rpx;">
 				<view style="font-size: 24rpx;display: flex;line-height: 70rpx;height: 70rpx;">
 					<view style="color: #A91919;">*</view>
 					<view style="width: 132rpx;">我的作品</view>
@@ -58,13 +65,6 @@
 					</view>
 				</view>
 			</view>
-			<view style="display: flex;margin: 20rpx 18rpx;height: 200rpx;">
-				<view style="font-size: 24rpx;display: flex;line-height: 70rpx;height: 70rpx;">
-					<view style="color: #A91919;">*</view>
-					<view style="width: 132rpx;">作品描述</view>
-				</view>
-				<textarea name="pictureDescription" style="font-size: 24rpx;padding-top: 20rpx;" maxlength="200" auto-height placeholder="请输入你的作品描述" />
-			</view>
 		</view>
 		<button formType="submit" style="margin-top: 77rpx;width: 676rpx;height: 80rpx;background: #004A93;border-radius: 10rpx;color: #FFFFFF;font-size: 24rpx;line-height: 80rpx;">确认提交</button>
 	</form>

+ 4 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/albumEdit/albumEdit.wxss

@@ -1 +1,4 @@
-/* pages/albumEdit/albumEdit.wxss */
+/* pages/albumEdit/albumEdit.wxss */
+.wx-switch-input {
+    zoom: .6;
+}