Bläddra i källkod

解决消息内容转发功能相关的bug

raolu 6 år sedan
förälder
incheckning
3a0f5beb17
3 ändrade filer med 31 tillägg och 23 borttagningar
  1. 2 5
      html/message/html/zhuanfa.html
  2. 12 1
      html/message/js/sousuojuming.js
  3. 17 17
      html/message/js/zhuanfa.js

+ 2 - 5
html/message/html/zhuanfa.html

@ -34,14 +34,14 @@
				<h1>转发给</h1>
			</div>
		</div>
		<div id="query_tab" class="sign-comonhd plr10 pt10 bgc-fff c-border-tb ">
		<!--<div id="query_tab" class="sign-comonhd plr10 pt10 bgc-fff c-border-tb ">
			<div class="sanp-flex tab-item curr" data-type="jm_view" id="div-juming">
				<p class="c-f16 ">居民</p>
			</div>
			<div class="sanp-flex tab-item" data-type="ys_view" id="div-yisheng">
				<p class="c-f16">医生</p>
			</div>
		</div>
		</div>-->
		<ul class="c-list c-loper bgc-f2f4f6">
			<li class="c-list-text c-list-cover ewmli">
				<div class="div-title" style="color: #909090;font-size: 12px;">最近联系(仅咨询中居民)</div>
@ -101,9 +101,6 @@
						<div class="n-list-info ml10">
							<h4 class="c-333 c-f16">
								<span class="patient-name">{{it.name}}</span>
								{{if it.is_invite && it.type!=2}} <!--健康咨询-->
									<span class="span-invite">已邀请全科</span>
								{{/if}}
								<!--<em class="c-909090 c-f14 ml10">({{it.sex | setSex}} {{it.birthday | setAge}}岁)</em>--> 
							</h4>
						</div>

+ 12 - 1
html/message/js/sousuojuming.js

@ -217,7 +217,18 @@ bindEvents = function () {
						})
					})
				})).then(function() {
					openWebview("../../message/html/p2p.html",{otherCode: code,otherName: name,otherPhoto: photo,otherSex: sex});
//					openWebview("../../message/html/p2p.html",{otherCode: code,otherName: name,otherPhoto: photo,otherSex: sex});
				    var time = new Date().getTime();
				    mui.openWindow({
				        url:"../../message/html/p2p.html",
				        id: "p2p"+time+".html",
				        extras: {
				            otherCode: code,
				            otherName: name,
				            otherPhoto: photo,
				            otherSex: sex
				        }
				    })
				});
				
			}

+ 17 - 17
html/message/js/zhuanfa.js

@ -127,13 +127,13 @@ bindEvents = function() {
	 * 搜索按钮点击
	 */
	$('.lin-search').on('tap', function() {
		if($("#query_tab").find(".tab-item.curr").attr("data-type")=="jm_view"){//搜索居民
//		if($("#query_tab").find(".tab-item.curr").attr("data-type")=="jm_view"){//搜索居民
			mui.fire($searchPage_jm, "initSearch", {imMessages:baseInfo.imMessages});
			$searchPage_jm.show();
		}else{
			mui.fire($searchPage_ys, "initSearch", {imMessages:baseInfo.imMessages});
			$searchPage_ys.show();
		}
//		}else{
//			mui.fire($searchPage_ys, "initSearch", {imMessages:baseInfo.imMessages});
//			$searchPage_ys.show();
//		}
	})
},
@ -288,15 +288,15 @@ new Promise(function(resolve, reject) {
	 /**
	 * 【搜索医生】预加载查询页面
	 */
	$searchPage_ys = plus.webview.getWebviewById('zfsousuoyisheng');
	if($searchPage_ys){
		$searchPage_ys.hide();
	}else{
		$searchPage_ys = mui.preload({
			id:"zfsousuoyisheng",
		    url: '../../home/html/sousuoyisheng.html'
		});
	}
//	$searchPage_ys = plus.webview.getWebviewById('zfsousuoyisheng');
//	if($searchPage_ys){
//		$searchPage_ys.hide();
//	}else{
//		$searchPage_ys = mui.preload({
//			id:"zfsousuoyisheng",
//		    url: '../../home/html/sousuoyisheng.html'
//		});
//	}
	
	bindEvents();
//	$queryTab.find('.tab-item').eq(0).trigger('click');
@ -319,9 +319,9 @@ new Promise(function(resolve, reject) {
					})
				})).then(function() {
					mui.toast('发送成功');
					var self = plus.webview.currentWebview();
					mui.fire(self.opener(), "revertZf");
					self.close();
//					var self = plus.webview.currentWebview();
//					mui.fire(self.opener(), "revertZf");
//					self.close();
				})
			}
		})