Browse Source

feat: 样式修复

2912631854@qq.com 4 months ago
parent
commit
d2686700d8
2 changed files with 10 additions and 128 deletions
  1. 10 6
      pages/HotelMerchandise/addCommodity.vue
  2. 0 122
      pages/my/houseList.vue

+ 10 - 6
pages/HotelMerchandise/addCommodity.vue

@@ -5,12 +5,12 @@
 
 			<view class="typeInfo">
 				<view class="cellBox">
-					<text style="font-size: 32rpx; font-weight: 700;">商品名称</text>
+					<text style="font-size: 32rpx; font-weight: 700;"><text class="req">*</text>商品名称</text>
 					<input v-model="fromData.comboName" type="text" placeholder="请输入商品名称"
 						style="width: 210rpx;height: 42rpx; font-size: 30rpx;flex:1" />
 				</view>
 				<view class="cellBox">
-					<text style="font-size: 32rpx; font-weight: 700;">价格</text>
+					<text style="font-size: 32rpx; font-weight: 700;"><text class="req">*</text>价格</text>
 					<input v-model="fromData.price" type="text" placeholder="请输入价格"
 						style="width: 210rpx;height: 42rpx; font-size: 30rpx;flex:1" />
 				</view>
@@ -20,7 +20,7 @@
 						style="width: 210rpx;height: 42rpx; font-size: 30rpx;flex:1" />
 				</view> -->
 				<view class="cellBox">
-					<text style="font-size: 32rpx; font-weight: 700;">类型</text>
+					<text style="font-size: 32rpx; font-weight: 700;"><text class="req">*</text>类型</text>
 					<!-- 	<u-radio-group v-model="radiovalue1" placement="column" @change="groupChange">
 						<u-radio :customStyle="{marginBottom: '10px'}" v-for="(item, index) in radiolist1" :key="index"
 							:label="item.name" :name="item.name" @change="radioChange">
@@ -35,7 +35,7 @@
 				</view>
 				<view class="uploadPic">
 					<view style=" margin-left: 16rpx; margin-bottom: 22rpx;">
-						<text style="font-size: 32rpx; font-weight: 700; ">套餐内容</text>
+						<text style="font-size: 32rpx; font-weight: 700; "><text class="req">*</text>套餐内容</text>
 					</view>
 					<view class="textarea">
 						<u--textarea v-model="fromData.comboExplain" height='310' placeholder="最多输入60个汉字"
@@ -44,7 +44,7 @@
 				</view>
 				<view class="uploadPic">
 					<view style=" margin-left: 16rpx;">
-						<text style="font-size: 32rpx; font-weight: 700; "> 主图/封面</text>
+						<text style="font-size: 32rpx; font-weight: 700; "><text class="req">*</text> 主图/封面</text>
 					</view>
 					<view class="pic">
 						<!-- 图片 -->
@@ -57,7 +57,7 @@
 				</view>
 				<view class="uploadPic">
 					<view style=" margin-left: 16rpx;">
-						<text style="font-size: 32rpx; font-weight: 700; ">套餐照片</text>
+						<text style="font-size: 32rpx; font-weight: 700; "><text class="req">*</text>套餐照片</text>
 					</view>
 					<view class="pic">
 						<!-- 图片 -->
@@ -257,6 +257,10 @@
 </script>
 
 <style lang="scss">
+	.req {
+		color: #f44;
+	}
+
 	.u-radio__icon-wrap--circle {
 		margin-top: 10rpx !important;
 	}

+ 0 - 122
pages/my/houseList.vue

@@ -46,123 +46,7 @@
 				</view>
 
 			</view>
-			<!-- 价格信息 -->
-			<!-- <view class="priceInfo"> -->
-			<!-- 标题 -->
-			<!-- <view class="titleInfo">
-					<text style="font-size: 32rpx; font-weight: 700; margin-left: 10rpx;">价格信息</text>
-				</view> -->
-			<!-- 周末周日区分 -->
-			<!-- <view class="week">
-					<view class="weekend">
-						<view>
-							<text style="font-size: 30rpx; ">区分平日周末</text>
-						</view>
-						<view>
-							<u-switch v-model="weekedChecked" size="50" active-color="#07C160"></u-switch>
-						</view>
-					</view>
-				</view> -->
-			<!-- 平日价格 -->
-			<!-- <view class="priceBoxWeek" v-if="!weekedChecked">
-					<view class="weekendBox" @scroll="scroll">
-						<view>
-							<text style="font-size: 30rpx; margin-right: 90rpx; ">固定房价</text>
-						</view>
-						<view style="display: flex; align-items: center; height: 50rpx;">
-							<text style="font-size: 30rpx;">¥</text>
-							<input v-model="form.price" placeholder="请输入价格"
-								style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
-						</view>
-					</view>
-				</view> -->
-
-			<!-- 每日价格 -->
-			<!-- <view class="priceBoxWeek" v-if="weekedChecked">
-					<view class="weekendBox">
-						<view>
-							<text style="font-size: 30rpx; margin-right: 90rpx; ">周一</text>
-						</view>
-						<view style="display: flex; align-items: center;">
-							<text style="font-size: 30rpx;">¥</text> <input v-model="form.mondayPrice" type="text"
-								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
-						</view>
-					</view>
-				</view> -->
-
-			<!-- <view class="priceBoxWeek" v-if="weekedChecked">
-					<view class="weekendBox">
-						<view>
-							<text style="font-size: 30rpx; margin-right: 90rpx; ">周二</text>
-						</view>
-						<view style="display: flex; align-items: center;">
-							<text style="font-size: 30rpx;">¥</text> <input v-model="form.tuesdayPrice" type="text"
-								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
-						</view>
-					</view>
-				</view> -->
-
-			<!-- <view class="priceBoxWeek" v-if="weekedChecked">
-					<view class="weekendBox">
-						<view>
-							<text style="font-size: 30rpx; margin-right: 90rpx; ">周三</text>
-						</view>
-						<view style="display: flex; align-items: center;">
-							<text style="font-size: 30rpx;">¥</text> <input v-model="form.wednesdayPrice" type="text"
-								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
-						</view>
-					</view>
-				</view> -->
 
-			<!-- 	<view class="priceBoxWeek" v-if="weekedChecked">
-					<view class="weekendBox">
-						<view>
-							<text style="font-size: 30rpx; margin-right: 90rpx; ">周四</text>
-						</view>
-						<view style="display: flex; align-items: center;">
-							<text style="font-size: 30rpx;">¥</text> <input v-model="form.thursdayPrice" type="text"
-								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
-						</view>
-					</view>
-				</view> -->
-
-			<!-- <view class="priceBoxWeek" v-if="weekedChecked">
-					<view class="weekendBox">
-						<view>
-							<text style="font-size: 30rpx; margin-right: 90rpx; ">周五</text>
-						</view>
-						<view style="display: flex; align-items: center;">
-							<text style="font-size: 30rpx;">¥</text> <input v-model="form.fridayPrice" type="text"
-								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
-						</view>
-					</view>
-				</view> -->
-
-			<!-- <view class="priceBoxWeek" v-if="weekedChecked">
-					<view class="weekendBox">
-						<view>
-							<text style="font-size: 30rpx; margin-right: 90rpx; ">周六</text>
-						</view>
-						<view style="display: flex; align-items: center;">
-							<text style="font-size: 30rpx;">¥</text> <input v-model="form.saturdayPrice" type="text"
-								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
-						</view>
-					</view>
-				</view> -->
-
-			<!-- <view class="priceBoxWeek" v-if="weekedChecked">
-					<view class="weekendBox" style=" border-bottom: 1rpx solid #fff;">
-						<view style="margin-top: 10rpx;">
-							<text style="font-size: 30rpx; margin-right: 90rpx; ">周日</text>
-						</view>
-						<view style="display: flex; margin-top: 10rpx; align-items: center;">
-							<text style="font-size: 30rpx;">¥</text> <input v-model="form.sundayPrice" type="text"
-								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;
-								 " />
-						</view>
-					</view>
-				</view> -->
-			<!-- </view> -->
 			<!-- 房间列表 -->
 			<view class="everyHouseList" style="padding-top: 20rpx;">
 				<view class="HouseListTitleInfo">
@@ -192,12 +76,6 @@
 				<u-icon name="plus-circle" color=" #1372FF"></u-icon>
 				<text style="color: #1372FF; font-size: 30rpx;">添加房间</text>
 			</view>
-			<!-- 新增按钮 -->
-			<!-- 	<view class="btn-btn" @click="addNewRoom()">
-				<view class="btn">
-					确定
-				</view>
-			</view> -->
 		</view>
 		<!-- 新增按钮 -->
 		<view class="btn-btn" @click="addNewRoom()">