hwq vor 1 Jahr
Ursprung
Commit
dd748317f5

+ 1 - 8
pages/collection/wx.vue

@@ -107,18 +107,11 @@
 				}
 			},
 			uploads() {
-				uni.showLoading({
-					title: '上传中...',
-					mask: true
-				});
 				upload({
 					filename: ''
 				}).then(data => {
-					uni.hideLoading()
 					this.image = data[0].url;
-				}).catch(()=>{
-					uni.hideLoading();
-				});
+				})
 			},
 			confirm() {
 				let obj = this;

+ 7 - 1
pages/hall/hallpay.vue

@@ -184,6 +184,7 @@ import uniCountdowns from '@/components/uni-countdown/uni-countdowns.vue';
 import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
 import { user_auction_order, upload, up_image, edit_voucher, time } from '@/api/order.js';
 import { timeComputed } from '@/utils/rocessor.js';
+// import { json } from 'node:stream/consumers';
 export default {
 	components: {
 		uniCountdowns
@@ -222,7 +223,12 @@ export default {
 				filename: ''
 			}).then(data => {
 				this.image = data[0].url;
-				console.log(this.image);
+			}).catch((e)=>{
+				uni.showModal({
+					title: '上传失败',
+					content: JSON.stringify(e),
+					showCancel: false,
+				});
 			});
 		},
 		getpayTime() {

+ 20 - 0
pages/navigation/index.vue

@@ -36,6 +36,11 @@
 				<image class="nav-img" src="../../static/img/oldbanner.png" mode=""></image>
 			</view>
 		</view>
+		<!-- #ifdef H5 -->
+		<view class="btm">
+			<a href="https://beian.miit.gov.cn" class="a-pm">备案编号:浙ICP备2022017146号 </a>
+		</view>
+		<!-- #endif -->
 	</view>
 </template>
 
@@ -240,4 +245,19 @@
 			border-radius: 14rpx;
 		}
 	}
+	.btm {
+		position: fixed;
+		bottom: 0;
+		width: 100%;
+		height: 50rpx;
+		line-height: 50rpx;
+		text-align: center;
+		.a-pm {
+			text-decoration: none;
+			width: 100%;
+			height: 50rpx;
+			line-height: 50rpx;
+			color: navigator;
+		}
+	}
 </style>

+ 0 - 11
pages/order/evaluate.vue

@@ -103,24 +103,13 @@ export default {
 				});
 				return;
 			}
-			uni.showLoading({
-				title:'上传中...',
-				mask:true
-			})
 			upload({
 				file: ''
 			})
 				.then(e => {
-					uni.hideLoading()
-					console.log(e,'e')
 					obj.imgList = [...obj.imgList, ...e];
-					console.log(obj.imgList,'imgList')
 					obj.imgCount = 10 - obj.imgList.length;
-					console.log(obj.imgCount ,'imgCount ')
 				})
-				.catch(e => {
-					uni.hideLoading()
-				});
 		},
 		//提交评论
 		submit(e) {

+ 0 - 9
pages/set/userinfo.vue

@@ -51,19 +51,10 @@ export default {
 	methods: {
 		...mapMutations('user',['logout']),
 		imgsub() {
-			console.log('上传头像')
-			uni.showLoading({
-				title: '上传中',
-				mask: true
-			});
 			upload({
 				filename: ''
 			}).then(data => {
-				uni.hideLoading()
-				console.log("data",data);
 				this.userInfo.avatar = data[0].url;
-			}).catch(()=>{
-				uni.hideLoading()
 			})
 		},
 		confirm() {

+ 1 - 9
pages/user/approve.vue

@@ -30,20 +30,12 @@ export default {
 	onLoad(option) {},
 	methods: {
 		upImg(e) {
-			console.log('上传图片');
 			const that = this;
-			uni.showLoading({
-				title: '上传中',
-				mask: true
-			});
 			upload({
 				filename: ''
 			}).then(data => {
-				uni.hideLoading()
 				this.form.img = data[0].url;
-			}).catch(()=>{
-				uni.hideLoading()
-			});
+			})
 		},
 		ToIndex() {
 			let obj = this;

+ 5 - 29
pages/user/gzsq.vue

@@ -115,35 +115,11 @@
 				})
 			},
 			uploads(type) {
-				console.log(type);
-				if(type == 'imagezm'){
-					upload({
-						filename: ''
-					}).then(data => {
-						this.imagezm = data[0].url;
-					})
-				}
-				if(type == 'imagefm'){
-					upload({
-						filename: ''
-					}).then(data => {
-						this.imagefm = data[0].url;
-					})
-				}
-				if(type == 'yyzz'){
-					upload({
-						filename: ''
-					}).then(data => {
-						this.yyzz = data[0].url;
-					})
-				}
-				if(type == 'imageshop'){
-					upload({
-						filename: ''
-					}).then(data => {
-						this.imageshop = data[0].url;
-					})
-				}
+				upload({
+					filename: ''
+				}).then(data => {
+					this[type] = data[0].url;
+				})
 			}
 		}
 	}