Commit 7c6e1f30 by zujiaozhang

'聊天优化和帖子分享测试'

parent 32d6e577
......@@ -120,7 +120,7 @@ define(['zepto', 'https://review-formal.iplusmed.com/Common/javaScript/medtap-co
)
);
$.ajax({
url: 'https://gateway.medtap.cn/wechat/user/getWechatUser',
url: 'https://testdevgw.medtap.cn/wechat/user/getWechatUser',
headers: {
'apptype': 'wechat_lung',
'user-os':'wechat',
......
......@@ -117,7 +117,7 @@ define(['zepto', 'medtap'], function($, medtap) {
},
getWechatTicket: function() {
medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET',
async: false,
data: {
......@@ -142,35 +142,44 @@ define(['zepto', 'medtap'], function($, medtap) {
})
},
share: function() {
var desc = $('.cardDetail').text().substring(0,25)
//微信分享
wx.ready(function() {
//分享给朋友
wx.onMenuShareAppMessage({
title: productDetail.name,
desc: '', // 分享描述
link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
title: '肺癌靶向家园社区',
desc: desc+'...', // 分享描述
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId,
imgUrl: '', // 分享图标
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
type: 'link', // 分享类型,music、video或link,不填默认为link
dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
success: function() {
if(!(/iphone|ipad/gi).test(navigator.userAgent)) {
medtap.winPop('分享成功');
}
},
cancel: function() {
if(!(/iphone|ipad/gi).test(navigator.userAgent)) {
medtap.winPop('取消分享');
}
}
});
//分享到朋友圈
wx.onMenuShareTimeline({
title: productDetail.name, // 分享标题
link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
title: '肺癌靶向家园社区', // 分享标题
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId,
imgUrl: '', // 分享图标
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
success: function() {
if(!(/iphone|ipad/gi).test(navigator.userAgent)) {
medtap.winPop('分享成功');
}
},
cancel: function() {
if(!(/iphone|ipad/gi).test(navigator.userAgent)) {
medtap.winPop('取消分享');
}
}
});
});
......@@ -194,7 +203,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getCardDetail: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publish/' + card.cardId,
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/' + card.cardId,
type: 'GET',
async: false,
data: {
......@@ -247,7 +256,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getCommentList: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment',
type: 'GET',
async: false,
data: {
......@@ -416,7 +425,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var status;
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publish/up',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/up',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -437,7 +446,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var result;
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/up',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/up',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -458,7 +467,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var collectResult;
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publishCollect',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishCollect',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -485,7 +494,7 @@ define(['zepto', 'medtap'], function($, medtap) {
} else {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -515,7 +524,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getShareInfoByToken: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/common/share/getSharerByToken',
url: 'https://testdevgw.medtap.cn/common/share/getSharerByToken',
type: 'post',
contentType: "application/json",
async: false,
......@@ -539,5 +548,4 @@ define(['zepto', 'medtap'], function($, medtap) {
}
card.isShow();
card.init();
})
......@@ -106,7 +106,7 @@ define(
localStorage.wxLungToken = '';
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/auth/token',
url: 'https://testdevgw.medtap.cn/user/auth/token',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -133,7 +133,7 @@ define(
getUserInfo: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/getUserDetail',
url: 'https://testdevgw.medtap.cn/user/getUserDetail',
type: 'GET',
async: false,
data: {},
......@@ -149,7 +149,7 @@ define(
upDateUserInfo: function(name) {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/saveUserInfo',
url: 'https://testdevgw.medtap.cn/user/saveUserInfo',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -175,7 +175,7 @@ define(
getForumInfo: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/getGruop',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/getGruop',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -204,7 +204,7 @@ define(
getForumList: function(listType) {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publish',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish',
type: 'GET',
async: false,
data: {
......@@ -568,7 +568,7 @@ define(
var status;
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publish/up',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/up',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -588,7 +588,7 @@ define(
joinPublish: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/groupUser',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/groupUser',
type: 'POST',
async: false,
contentType: 'application/json',
......
......@@ -97,7 +97,7 @@ define(['zepto', 'medtap'], function($, medtap) {
},
getWechatTicket:function(){
medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET',
async: false,
data: {
......@@ -137,7 +137,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyCard: function() {
medtap.loading(1);
medtap.submitAjax({
url: "https://gateway.medtap.cn/operation/pubbbs/publish/mine",
url: "https://testdevgw.medtap.cn/operation/pubbbs/publish/mine",
type: 'get',
async: false,
data: {
......@@ -360,7 +360,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyReply: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/mine',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/mine',
type: 'POST',
async: true,
contentType: 'application/json',
......@@ -607,7 +607,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyCollect: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publishCollect',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishCollect',
type: 'get',
async: false,
data: {
......@@ -792,7 +792,7 @@ define(['zepto', 'medtap'], function($, medtap) {
deleteMine: function(id) {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publish/mineDelete',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/mineDelete',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -821,7 +821,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var collectResult;
medtap.loading(1);
medtap.submitAjax({
url:'https://gateway.medtap.cn/operation/pubbbs/publishCollect',
url:'https://testdevgw.medtap.cn/operation/pubbbs/publishCollect',
type:'POST',
async: false,
contentType: 'application/json',
......@@ -853,7 +853,7 @@ define(['zepto', 'medtap'], function($, medtap) {
updateNickname:function(name){
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/updateNickname',
url: 'https://testdevgw.medtap.cn/user/updateNickname',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -882,7 +882,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getUserInfo:function(){
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/getUserDetail',
url: 'https://testdevgw.medtap.cn/user/getUserDetail',
type: 'GET',
async: false,
data: {
......
......@@ -35,7 +35,7 @@ define(['zepto', 'medtap'], function($, medtap) {
},
getWechatTicket: function() {
medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET',
async: false,
data: {
......@@ -117,7 +117,7 @@ define(['zepto', 'medtap'], function($, medtap) {
//上传图片
upLoadImg: function(serverId, localId) {
$.ajax({
url: 'https://gateway.medtap.cn/common/uploadWechatFile',
url: 'https://testdevgw.medtap.cn/common/uploadWechatFile',
type: 'POST',
async: false,
data: {
......@@ -156,7 +156,7 @@ define(['zepto', 'medtap'], function($, medtap) {
// console.log('新建的图片数据',picUrl)
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publish',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish',
type: "POST",
asynv: false,
contentType: 'application/json',
......@@ -196,7 +196,7 @@ define(['zepto', 'medtap'], function($, medtap) {
// console.log('更新的图片数据',picUrl)
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publish/mineUpdate',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/mineUpdate',
type: "POST",
asynv: false,
contentType: 'application/json',
......@@ -227,7 +227,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getEditById:function(){
medtap.loading(1);
medtap.submitAjax({
url:'https://gateway.medtap.cn/operation/pubbbs/publish/' + newCard.cardId,
url:'https://testdevgw.medtap.cn/operation/pubbbs/publish/' + newCard.cardId,
type:'GET',
async: false,
data:{
......
......@@ -14,7 +14,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getDetail: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/' + reply.commentId,
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/' + reply.commentId,
type: 'GET',
async: false,
data: {
......@@ -77,7 +77,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var result;
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/up',
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/up',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -104,7 +104,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}else{
medtap.loading(1);
medtap.submitAjax({
url:'https://gateway.medtap.cn/operation/pubbbs/publishComment',
url:'https://testdevgw.medtap.cn/operation/pubbbs/publishComment',
type:'POST',
async: false,
contentType: 'application/json',
......
......@@ -7,7 +7,7 @@ define(['zepto','medtap'],function($,medtap){
checkUser:function(){
medtap.loading(1);
medtap.submitAjax({
url:'https://gateway.medtap.cn/wechat/user/getWechatUser',
url:'https://testdevgw.medtap.cn/wechat/user/getWechatUser',
type:'GET',
async: false,
data:{
......@@ -29,7 +29,7 @@ define(['zepto','medtap'],function($,medtap){
localStorage.wxLungToken = '';
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/auth/token',
url: 'https://testdevgw.medtap.cn/user/auth/token',
type: 'POST',
async: false,
contentType: 'application/json',
......
......@@ -138,6 +138,6 @@
</div>
</body>
<script type="text/javascript">
//require(['../javaScript/cardDetailForShare.js'])
require(['../javaScript/cardDetailForShare.js'])
</script>
</html>
......@@ -2,11 +2,15 @@ body {
background: #F6F6FC;
font-size: 0.32rem;
}
* { touch-action: pan-y; }
/* .mui-icon-pulldown:before{
display: none;
} */
.chat_top_header {
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.chat_info {
......@@ -113,6 +117,7 @@ body {
margin-top: 3.8rem;
padding: 0 0.32rem;
padding-bottom: 1rem;
position: relative;
}
.chat_list .chat_item {
......
......@@ -9,6 +9,7 @@
<meta content="email=no" name="format-detection">
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/wechat_Reset.min.css" />
<link rel="stylesheet" type="text/css" href="../css/freeChat.css"/>
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/mui.min.css" />
<script src="https://review-formal.iplusmed.com/Common/javaScript/calRem.js" type="text/javascript" charset="utf-8"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<title></title>
......@@ -19,6 +20,7 @@
paths: {
"zepto": "https://review-formal.iplusmed.com/Common/javaScript/zepto.min",
"medtap": "https://review-formal.iplusmed.com/Common/javaScript/medtap_core_wx",
"mui": "https://review-formal.iplusmed.com/Common/javaScript/mui.min",
"md5": "https://review-formal.iplusmed.com/Common/javaScript/md5.min"
},
shim: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment