Browse Source

feat: 订单bug

2912631854@qq.com 1 year ago
parent
commit
16a5210d5d
4 changed files with 21 additions and 23 deletions
  1. 1 2
      pages/my/houseList.vue
  2. 15 12
      pages/my/index.vue
  3. 4 8
      pages/statistics/index.vue
  4. 1 1
      pagesHouse/home/tj.vue

+ 1 - 2
pages/my/houseList.vue

@@ -40,7 +40,7 @@
 				<view class="pic">
 					<!-- 图片 -->
 					<u-upload :fileList="fileList" multiple :maxCount="1" :maxSize="1 * 1024 * 1024"
-						@afterRead="afterRead" @oversize="overSize" width="120" height="120">
+						@afterRead="afterRead" @oversize="overSize" width="120" height="120" @delete="deletePic">
 					</u-upload>
 
 				</view>
@@ -157,7 +157,6 @@
 						<view style="display: flex; margin-top: 10rpx;">
 							<text style="font-size: 30rpx;">¥</text> <input v-model="form.sundayPrice" type="text"
 								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;
-								
 								 " />
 						</view>
 					</view>

+ 15 - 12
pages/my/index.vue

@@ -3,7 +3,7 @@
 		<c-nav-bar title="我的" bgColor="transparent" :titleStyle="titleStyle" :showIcon="false"></c-nav-bar>
 		<view class="bg" :style="{'padding-top':(mt+30)+'px'}">
 			<view class="account">
-				<image :src="avatar"></image>
+				<image :src="avatar" mode="aspectFill"></image>
 				<text>{{name}}</text>
 				<u-icon name="arrow-right" color="#ffffff" size="28"></u-icon>
 			</view>
@@ -27,9 +27,9 @@
 			<text>酒店民宿信息</text>
 			<u-icon name="arrow-right" color="#999999" size="28"></u-icon>
 		</view>
-		
+
 		<navigator url="/pages/my/roomType">
-			
+
 			<view class="menu box">
 				<text>房型管理</text>
 				<u-icon name="arrow-right" color="#999999" size="28"></u-icon>
@@ -78,19 +78,21 @@
 			}
 		},
 		mounted() {
-			if(uni.getStorageSync('userInfo')){
-				this.name = JSON.parse(uni.getStorageSync('userInfo')).realName;
-				this.avatar = JSON.parse(uni.getStorageSync('userInfo')).headUrl;
+			if (uni.getStorageSync('userInfo')) {
+				this.name = uni.getStorageSync('userInfo').realName;
+				this.avatar = uni.getStorageSync('userInfo').headUrl;
 			}
 		},
 		methods: {
 			specifiedOrder(index) {
 				uni.navigateTo({
-					url: '/pagesMy/orderList/orderList?Type='+index
+					url: '/pagesMy/orderList/orderList?Type=' + index
 				})
 			},
-			toTurn(url){
-				uni.navigateTo({ url })
+			toTurn(url) {
+				uni.navigateTo({
+					url
+				})
 			}
 		}
 	}
@@ -120,6 +122,7 @@
 				image {
 					width: 96rpx;
 					height: 96rpx;
+					border-radius: 50rpx;
 				}
 
 				text {
@@ -217,8 +220,8 @@
 			}
 		}
 	}
-	
-	::v-deep .bottomBg{
+
+	::v-deep .bottomBg {
 		background: transparent !important;
-	} 
+	}
 </style>

+ 4 - 8
pages/statistics/index.vue

@@ -76,10 +76,8 @@
 				单位:元
 			</view>
 			<view class="line_charts_one">
-				<cover-view class="line_charts_one">
-					<qiun-data-charts :canvas2d='true' :ontouch="true" type="line" :opts="revenueOptsone"
-						:chartData="revenueChartDataOne" />
-				</cover-view>
+				<qiun-data-charts :ontouch="true" canvas2d='true' type="line" :opts="revenueOptsone"
+					:chartData="revenueChartDataOne" />
 			</view>
 		</view>
 		<view class="echarts-three">
@@ -93,10 +91,8 @@
 				</view>
 			</view>
 			<view class="line_charts_two">
-				<cover-view class="line_charts_two">
-					<qiun-data-charts type="line" :canvas2d='true' :ontouch="true" :opts="revenueOptstwo"
-						:chartData="revenueChartDataTwo" />
-				</cover-view>
+				<qiun-data-charts type="line" canvas2d='true' :ontouch="true" :opts="revenueOptstwo"
+					:chartData="revenueChartDataTwo" />
 			</view>
 		</view>
 		<Tabbar :tabbarIndex="2"></Tabbar>

+ 1 - 1
pagesHouse/home/tj.vue

@@ -32,7 +32,7 @@
 				<view class="t2">总退款<text>{{total2}}</text></view>
 			</view>
 			<view class="line_charts_two">
-				<qiun-data-charts type="line" :canvas2d='true' style="z-index: 1;" :opts="gameOpts"
+				<qiun-data-charts type="line" canvas2d='true' style="z-index: 1;" :opts="gameOpts"
 					:chartData="gameChartData" :ontouch="true" />
 			</view>
 		</view>