Переглянути джерело

ltb2020年11月13日16:30:55

老狐\25396 4 роки тому
батько
коміт
c5e3d07e20

+ 2 - 1
pages.json

xqd
@@ -104,7 +104,8 @@
 		{
 			"path": "pages/opinion/opinion",
 			"style": {
-				"navigationBarTitleText": "意见管理"
+				"navigationBarTitleText": "意见管理",
+				"onReachBottomDistance":20
 			}
 		},
 		//意见详情opiniondetails

+ 2 - 1
pages/index/index.vue

xqd
@@ -290,7 +290,8 @@
 
 
 				// this.docterMessageList = res.data
-				// console.log('我是',this.docterMessageList);
+				console.log('我是docterMessageList',this.docterMessageList);
+				console.log('我是接口数据',res);
 			},
 			//全部已读
 			allread: async function() {

+ 12 - 20
pages/information/information.vue

xqd xqd xqd xqd
@@ -1,10 +1,11 @@
 <template>
- <view style="width: 100%;height: 100%;background-color: #FFFFFF;">
+	<view style="width: 100%;height: 100%;background-color: #FFFFFF;">
 		<!-- 头像 -->
 		<view style="padding: 36rpx 28rpx;" class="flex align-center justify-around">
 			<view style="width: 80%;font-size: 28rpx;background-color: ;">头像</view>
 			<view class="flex align-center">
-				<image style="border-radius: 50%;margin-right:20rpx;width: 88rpx;height: 88rpx;"  @click="ChooseImage" :src='imgList[0]' mode='aspectFill'></image>
+				<image style="border-radius: 50%;margin-right:20rpx;width: 88rpx;height: 88rpx;" @click="ChooseImage" :src='imgList[0]'
+				 mode='aspectFill'></image>
 				<u-icon name="arrow-right" color="#C0C0C0"></u-icon>
 			</view>
 		</view>
@@ -12,8 +13,8 @@
 		<view style="margin: 36rpx 28rpx;" class="flex align-center justify-around">
 			<view style="width: 40%;font-size: 28rpx;">个人签名</view>
 			<view class="flex align-center" style="width: 60%;">
-				<u-input v-model="value" @input="inputTextAreaBlur" type="text" :placeholder="placeholder1" input-align="right" :clearable="false"
-				 :customStyle="inputStyle" />
+				<u-input v-model="value" @input="inputTextAreaBlur" type="text" :placeholder="placeholder1" input-align="right"
+				 :clearable="false" :customStyle="inputStyle" />
 			</view>
 		</view>
 		<!-- 服务简介和输入域 -->
@@ -112,30 +113,21 @@
 					return false;
 				},
 				ChooseImage() {
-					let that=this;
 				    uni.chooseImage({
 				     count: 1, //默认9
 				     sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
 				     sourceType: ['album', 'camera'], //从相册选择
 				     success: (res) => {
-						 let tempFilePaths = res.tempFilePaths;		 
-							const uploadTask = wx.uploadFile({
-								 url: 'http://182.92.112.142/api/v2/Common/uploadFile',
-								 filePath: tempFilePaths[0],
-								 name: 'file',
-								 success: function (uploadFileRes) { 
-									 let arr=[];
-									 arr.push(imglocal+JSON.parse(uploadFileRes.data).data.url);
-									 that.imgList = arr
-									 that.src = JSON.parse(uploadFileRes.data).data.url
-								 }
-							})
-				 
+				      this.imgList = res.tempFilePaths
+					  this.$request.upload("Common/uploadFile",this.imgList[0],{}).then(res=>{
+						  console.log(res)
+					  })
 				     }
 				    });
 				   },
+				
 			}
-		}
+	}
 </script>
 
 <style>
@@ -154,7 +146,7 @@
 			background-color: #0B73B9;
 			color: #FFFFFF;
 			font-size: 32rpx;
-			z-index: 1;	
+			z-index: 99;	
 		
 	}
 

+ 1 - 1
pages/login/login.vue

xqd
@@ -90,7 +90,7 @@
 	} from 'vuex';
 	import store from '@/store'
 	import auth from '../../common/authorize.js'
-	// import IMService from "../../common/goeasyimutil.js"
+	import IMService from "../../common/goeasyimutil.js"
 	export default {
 		computed: {
 			...mapGetters({

+ 20 - 3
pages/opinion/opinion.vue

xqd xqd xqd
@@ -4,12 +4,12 @@
 		
 		<view class="topbut">
 			<!-- 正序 -->
-			<view v-if="sort" @click="sort = false">
+			<view v-if="sort" @click="timeSort">
 				<text style="margin-right: 20rpx;">时间正序</text>
 				<u-icon name="arrow-down-fill" color="#3b9bff"></u-icon>
 			</view>
 			<!-- 倒序 -->
-			<view v-else @click="sort = true">
+			<view v-else @click="timeSort">
 				<text style="margin-right: 20rpx;">时间倒序</text>
 				<u-icon name="arrow-up-fill" color="#3b9bff"></u-icon>
 			</view>
@@ -64,13 +64,22 @@
 				sort: true,
 				//列表
 				list: [],
-				
+				num:1
 			}
 		},
 		onLoad() {
 			this.getList();
 		},
 		methods: {
+			timeSort(e){
+				this.sort = !this.sort
+				if(this.sort){//正序
+					
+				}else{//倒序
+					
+				}
+				
+			},
 			next(e){
 				console.log()
 				uni.navigateTo({
@@ -90,6 +99,14 @@
 				}
 			},
 			
+		},
+		onReachBottom() {
+			this.num++
+			console.log('到底', this.num);//到底次数
+			setTimeout(function() {
+				uni.stopPullDownRefresh();
+			}, 1000);
+			
 		}
 	};
 </script>

+ 1 - 7
pages/service/more.vue

xqd xqd
@@ -675,12 +675,6 @@
 				if(this.form.is_appoint.hospitals[1].service_time.startsWith(",")){
 					this.form.is_appoint.hospitals[1].service_time= this.form.is_appoint.hospitals[1].service_time.substr(1);
 				}
-				
-				
-				
-				
-				
-				
 				console.log(this.form)
 				uni.navigateBack({
 					delta: 1
@@ -1038,6 +1032,6 @@
 		justify-content: center;
 		background-color: #0B73B9;
 		color: #FFFFFF;
-		z-index: 1;
+		z-index: 99;
 	}
 </style>