刘远航 4 gadi atpakaļ
vecāks
revīzija
9c1e367f27

+ 6 - 1
pages/conversation/conversationWindow.vue

xqd xqd xqd
@@ -35,7 +35,7 @@
 				</view>
 			</view>
 		</view>
-		<view :class="InputBottom!=0?'cu-bar foot tab input cur':'cu-bar foot input'" :style="'bottom:'+InputBottom+'px'">
+		<view :class="InputBottom!=0?'cu-bar foot tab input cur':'cu-bar foot input'" :style="'bottom:'+InputBottom+'px'" v-show="sures">
 			<view class="action" @click="sendvoice">
 				<text class="cuIcon-sound text-grey"></text>
 			</view>
@@ -62,6 +62,10 @@
 			GoEasyAudioPlayer
 		},
 		onLoad(op) {
+			if(op.type==2){
+				this.sures=false;
+			}
+			
 			this.imService = getApp().globalData.imService;
 			this.doctorInfo = JSON.parse(op.patient)
 			//对话数据
@@ -95,6 +99,7 @@
 		},
 		data() {
 			return {
+				sures:true,
 				keyword: "",
 				InputBottom: 0,
 				isvoice: false,

+ 15 - 0
pages/login/login.vue

xqd xqd
@@ -357,7 +357,9 @@
 						})
 						console.log(res.data);
 						if (typeof res.data.token != 'undefined') {
+							 
 							console.log('我登录来 !');
+							console.log(res.data)
 							getApp().globalData.imService = new IMService();
 							let loginResult = getApp().globalData.imService.login({
 								uuid: res.data.data.flag,
@@ -412,6 +414,19 @@
 							icon: "none",
 							duration: 2000
 						})
+						
+						console.log('我登录来 !');
+						console.log(res.data)
+						getApp().globalData.imService = new IMService();
+						let loginResult = getApp().globalData.imService.login({
+							uuid: res.data.data.flag,
+							name: res.data.data.name,
+							avatar: res.data.data.avatar
+						});
+						if (loginResult) {
+							//连接IM
+							getApp().globalData.imService.connectIM();
+						}
 						// 写一个跳转到首页
 						setTimeout(function() {
 							uni.navigateBack({

+ 9 - 25
pages/me_evaluate.vue

xqd xqd
@@ -69,26 +69,8 @@
 	export default {
 		data() {
 			return {
-				tcTeam: [{
-					user: '张三',
-					lv: 2,
-					evaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
-					order_id: 123456789,
-					time: '2020-11-16'
-				}, {
-					user: '张三',
-					lv: 3,
-					evaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
-					order_id: 123456789,
-					time: '2020-11-16'
-				}, {
-					user: '张三',
-					lv: 4,
-					evaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
-					order_id: 123456789,
-					time: '2020-11-16'
-				}],
-				pageindex: 1,
+				tcTeam: [],
+				pageindex: 0,
 				count: 5,
 				show: false
 			}
@@ -101,18 +83,20 @@
 		},
 		methods: {
 			getevaluateList: async function() {
-				// let res = await this.$request.post("/api/v1/evaluate/evaluateList", {
-				// 	page: this.pageindex
-				// })
+				let res = await this.$request.post("doctor/evaluate", {
+					curPage: this.pageindex,
+					pageSize: 15
+				})
 				console.log(res)
 				if (res.status == 0) {
-					if (this.pageindex > res.data.last_page) {
+					if (res.data.length==0) {
 						uni.showToast({
 							title: "没有更多了",
 							icon: "none"
 						})
+						return false;
 					} else {
-						this.tcTeam = this.tcTeam.concat(res.data.data)
+						this.tcTeam = this.tcTeam.concat(res.data)
 						this.pageindex++
 					}
 				}

+ 19 - 2
pages/opinion/opiniondetails.vue

xqd
@@ -171,10 +171,27 @@
 			jlblur(e){
 				this.jl = e.detail.value
 			},
-			qr(e){
+			qr:async function(e){
 				if(this.yy!=''){
 						if(this.jl!=''){
-							this.formshow = false
+							let res = await this.$request.post("suggest/addSuggestDetail",{'suggest_id':this.sugg_id,'supplement_reason':this.yy,'supplement_content':this.jl});
+							if(res.status==0){
+								uni.showToast({
+									title:'补充成功',
+									icon:'none'
+								})
+								this.formshow = false
+								setTimeout(function() {
+									this.getDetaile(this.sugg_id);
+								}, 2000)
+								
+							}else{
+								uni.showToast({
+									title:res.message,
+									icon:'none'
+								})
+							}
+						
 						}else{
 							uni.showToast({
 								title:'请填写补充内容',

+ 7 - 1
pages/zixun/xiangqing.vue

xqd
@@ -314,7 +314,13 @@
 			huihu(e){
 				console.log("1111")
 				uni.navigateTo({
-					url:"../conversation/conversationWindow?patient="+JSON.stringify(this.info)
+					url:"../conversation/conversationWindow?patient="+JSON.stringify(this.info)+"&type=1"
+				})
+			},
+			huihua(e){
+				console.log("222")
+				uni.navigateTo({
+					url:"../conversation/conversationWindow?patient="+JSON.stringify(this.info)+"&type=2"
 				})
 			},
 			//查看意见