Commit 96148249 by zujiaozhang

'修改论坛帖子重复发送评论的问题'

parent f3149746
...@@ -352,4 +352,6 @@ div.fabulous.clearfix{ ...@@ -352,4 +352,6 @@ div.fabulous.clearfix{
margin-top:1.14rem; margin-top:1.14rem;
margin-left:3.22rem; margin-left:3.22rem;
} }
.disabled { pointer-events: none; } button{
\ No newline at end of file border:none;
}
\ No newline at end of file
...@@ -27,7 +27,7 @@ define(['zepto', 'https://review-formal.iplusmed.com/Common/javaScript/medtap-co ...@@ -27,7 +27,7 @@ define(['zepto', 'https://review-formal.iplusmed.com/Common/javaScript/medtap-co
/*需要校验的值*/ /*需要校验的值*/
valueForCheck: {}, valueForCheck: {},
/*跳转的链接*/ /*跳转的链接*/
url: 'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/formLogin.html', url: 'https://review-formal.iplusmed.com/wechatForLungCancer/prd/wechat_lung_login/formLogin.html',
success: function() { success: function() {
console.log('子页面success'); console.log('子页面success');
}, },
...@@ -120,7 +120,7 @@ define(['zepto', 'https://review-formal.iplusmed.com/Common/javaScript/medtap-co ...@@ -120,7 +120,7 @@ define(['zepto', 'https://review-formal.iplusmed.com/Common/javaScript/medtap-co
) )
); );
$.ajax({ $.ajax({
url: 'https://testdevgw.medtap.cn/wechat/user/getWechatUser', url: 'https://gateway.medtap.cn/wechat/user/getWechatUser',
headers: { headers: {
'apptype': 'wechat_lung', 'apptype': 'wechat_lung',
'user-os':'wechat', 'user-os':'wechat',
......
...@@ -117,7 +117,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -117,7 +117,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}, },
getWechatTicket: function() { getWechatTicket: function() {
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket', url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -149,7 +149,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -149,7 +149,7 @@ define(['zepto', 'medtap'], function($, medtap) {
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
title: '肺癌靶向家园', title: '肺癌靶向家园',
desc: desc+'...', // 分享描述 desc: desc+'...', // 分享描述
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId + link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId, '&agencyId=' + card.shareId,
// link: window.location.href, // link: window.location.href,
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标 imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
...@@ -165,7 +165,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -165,7 +165,7 @@ define(['zepto', 'medtap'], function($, medtap) {
//分享到朋友圈 //分享到朋友圈
wx.onMenuShareTimeline({ wx.onMenuShareTimeline({
title: '肺癌靶向家园', // 分享标题 title: '肺癌靶向家园', // 分享标题
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId + link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId, '&agencyId=' + card.shareId,
// link: window.location.href, // link: window.location.href,
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标 imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
...@@ -197,7 +197,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -197,7 +197,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getCardDetail: function() { getCardDetail: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/' + card.cardId, url: 'https://gateway.medtap.cn/operation/pubbbs/publish/' + card.cardId,
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -250,7 +250,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -250,7 +250,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getCommentList: function() { getCommentList: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment', url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -419,7 +419,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -419,7 +419,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var status; var status;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/up', url: 'https://gateway.medtap.cn/operation/pubbbs/publish/up',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -440,7 +440,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -440,7 +440,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var result; var result;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/up', url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/up',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -461,7 +461,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -461,7 +461,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var collectResult; var collectResult;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishCollect', url: 'https://gateway.medtap.cn/operation/pubbbs/publishCollect',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -486,9 +486,10 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -486,9 +486,10 @@ define(['zepto', 'medtap'], function($, medtap) {
}) })
return return
} else { } else {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment', url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -497,6 +498,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -497,6 +498,7 @@ define(['zepto', 'medtap'], function($, medtap) {
publishId: card.cardId publishId: card.cardId
}, },
success: function(res) { success: function(res) {
$('.reply_btn').attr('disabled',true)
medtap.loading(0); medtap.loading(0);
if (res.success == true) { if (res.success == true) {
setTimeout(function() { setTimeout(function() {
...@@ -518,7 +520,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -518,7 +520,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getShareInfoByToken: function() { getShareInfoByToken: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/common/share/getSharerByToken', url: 'https://gateway.medtap.cn/common/share/getSharerByToken',
type: 'post', type: 'post',
contentType: "application/json", contentType: "application/json",
async: false, async: false,
......
...@@ -73,16 +73,16 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -73,16 +73,16 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
// 点击加入社区 // 点击加入社区
$('.join_now').on('click',function(){ $('.join_now').on('click',function(){
if(card.userId){ if(card.userId){
medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/dev/medtap_bbs_lung/index.html?wechatId=' + card.wechatId) medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/prd/medtap_bbs_lung/index.html?wechatId=' + card.wechatId)
}else{ }else{
medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + card.wechatId +'&toBBS=1') medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/prd/wechat_lung_login/login.html?wechatId=' + card.wechatId +'&toBBS=1')
} }
}) })
$('.top_tip_blue').on('click',function(){ $('.top_tip_blue').on('click',function(){
if(card.userId){ if(card.userId){
medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/dev/medtap_bbs_lung/index.html?wechatId=' + card.wechatId) medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/prd/medtap_bbs_lung/index.html?wechatId=' + card.wechatId)
}else{ }else{
medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + card.wechatId +'&toBBS=1') medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/prd/wechat_lung_login/login.html?wechatId=' + card.wechatId +'&toBBS=1')
} }
}) })
}, },
...@@ -90,7 +90,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -90,7 +90,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
localStorage.wxLungToken = ''; localStorage.wxLungToken = '';
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/user/auth/token', url: 'https://gateway.medtap.cn/user/auth/token',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -116,7 +116,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -116,7 +116,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
checkUser:function(){ checkUser:function(){
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url:'https://testdevgw.medtap.cn/wechat/user/getWechatUser', url:'https://gateway.medtap.cn/wechat/user/getWechatUser',
type:'GET', type:'GET',
async: false, async: false,
data:{ data:{
...@@ -137,7 +137,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -137,7 +137,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
}) })
$('.dialog-btn-confirm').on('click',function(){ $('.dialog-btn-confirm').on('click',function(){
$('#showDialog').hide() $('#showDialog').hide()
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + card.wechatId +'&cardId='+ card.cardId window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/prd/wechat_lung_login/login.html?wechatId=' + card.wechatId +'&cardId='+ card.cardId
}) })
//为TA加油 //为TA加油
$('.fabulous').on('click', function() { $('.fabulous').on('click', function() {
...@@ -191,7 +191,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -191,7 +191,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
}, },
getWechatTicket: function() { getWechatTicket: function() {
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket', url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -223,7 +223,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -223,7 +223,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
title: '肺癌靶向家园社区', title: '肺癌靶向家园社区',
desc: desc+'...', // 分享描述 desc: desc+'...', // 分享描述
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId + link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId, '&agencyId=' + card.shareId,
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标 imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
type: 'link', // 分享类型,music、video或link,不填默认为link type: 'link', // 分享类型,music、video或link,不填默认为link
...@@ -238,7 +238,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -238,7 +238,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
//分享到朋友圈 //分享到朋友圈
wx.onMenuShareTimeline({ wx.onMenuShareTimeline({
title: '肺癌靶向家园社区', // 分享标题 title: '肺癌靶向家园社区', // 分享标题
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId + link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId, '&agencyId=' + card.shareId,
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标 imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
success: function() { success: function() {
...@@ -269,7 +269,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -269,7 +269,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
getCardDetail: function() { getCardDetail: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/' + card.cardId, url: 'https://gateway.medtap.cn/operation/pubbbs/publish/' + card.cardId,
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -319,7 +319,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -319,7 +319,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
getCommentList: function() { getCommentList: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment', url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -483,7 +483,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -483,7 +483,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
var id = $(this).attr('data-id'); var id = $(this).attr('data-id');
medtap.pushWindow('replyDetail.html?commentId=' + id); medtap.pushWindow('replyDetail.html?commentId=' + id);
} else { } else {
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html' window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/prd/wechat_lung_login/login.html'
} }
}) })
} }
...@@ -496,7 +496,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -496,7 +496,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
var status; var status;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/up', url: 'https://gateway.medtap.cn/operation/pubbbs/publish/up',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -517,7 +517,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -517,7 +517,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
var result; var result;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/up', url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/up',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -538,7 +538,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -538,7 +538,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
var collectResult; var collectResult;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishCollect', url: 'https://gateway.medtap.cn/operation/pubbbs/publishCollect',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -565,7 +565,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -565,7 +565,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
} else { } else {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment', url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -574,6 +574,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m ...@@ -574,6 +574,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
publishId: card.cardId publishId: card.cardId
}, },
success: function(res) { success: function(res) {
$('.reply_btn').attr('disabled',true)
medtap.loading(0); medtap.loading(0);
if (res.success == true) { if (res.success == true) {
setTimeout(function() { setTimeout(function() {
......
...@@ -106,7 +106,7 @@ define( ...@@ -106,7 +106,7 @@ define(
localStorage.wxLungToken = ''; localStorage.wxLungToken = '';
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/user/auth/token', url: 'https://gateway.medtap.cn/user/auth/token',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -132,7 +132,7 @@ define( ...@@ -132,7 +132,7 @@ define(
getUserInfo: function() { getUserInfo: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/user/getUserDetail', url: 'https://gateway.medtap.cn/user/getUserDetail',
type: 'GET', type: 'GET',
async: false, async: false,
data: {}, data: {},
...@@ -148,7 +148,7 @@ define( ...@@ -148,7 +148,7 @@ define(
upDateUserInfo: function(name) { upDateUserInfo: function(name) {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/user/saveUserInfo', url: 'https://gateway.medtap.cn/user/saveUserInfo',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -174,7 +174,7 @@ define( ...@@ -174,7 +174,7 @@ define(
getForumInfo: function() { getForumInfo: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/getGruop', url: 'https://gateway.medtap.cn/operation/pubbbs/getGruop',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -203,7 +203,7 @@ define( ...@@ -203,7 +203,7 @@ define(
getForumList: function(listType) { getForumList: function(listType) {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish', url: 'https://gateway.medtap.cn/operation/pubbbs/publish',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -567,7 +567,7 @@ define( ...@@ -567,7 +567,7 @@ define(
var status; var status;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/up', url: 'https://gateway.medtap.cn/operation/pubbbs/publish/up',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -587,7 +587,7 @@ define( ...@@ -587,7 +587,7 @@ define(
joinPublish: function() { joinPublish: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/groupUser', url: 'https://gateway.medtap.cn/operation/pubbbs/groupUser',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -101,7 +101,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -101,7 +101,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}, },
getWechatTicket:function(){ getWechatTicket:function(){
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket', url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -141,7 +141,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -141,7 +141,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyCard: function() { getMyCard: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/pubbbs/publish/mine", url: "https://gateway.medtap.cn/operation/pubbbs/publish/mine",
type: 'get', type: 'get',
async: false, async: false,
data: { data: {
...@@ -364,7 +364,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -364,7 +364,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyReply: function() { getMyReply: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/mine', url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/mine',
type: 'POST', type: 'POST',
async: true, async: true,
contentType: 'application/json', contentType: 'application/json',
...@@ -611,7 +611,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -611,7 +611,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyCollect: function() { getMyCollect: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishCollect', url: 'https://gateway.medtap.cn/operation/pubbbs/publishCollect',
type: 'get', type: 'get',
async: false, async: false,
data: { data: {
...@@ -796,7 +796,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -796,7 +796,7 @@ define(['zepto', 'medtap'], function($, medtap) {
deleteMine: function(id) { deleteMine: function(id) {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/mineDelete', url: 'https://gateway.medtap.cn/operation/pubbbs/publish/mineDelete',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -825,7 +825,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -825,7 +825,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var collectResult; var collectResult;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url:'https://testdevgw.medtap.cn/operation/pubbbs/publishCollect', url:'https://gateway.medtap.cn/operation/pubbbs/publishCollect',
type:'POST', type:'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -857,7 +857,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -857,7 +857,7 @@ define(['zepto', 'medtap'], function($, medtap) {
updateNickname:function(name){ updateNickname:function(name){
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/user/updateNickname', url: 'https://gateway.medtap.cn/user/updateNickname',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -886,7 +886,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -886,7 +886,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getUserInfo:function(){ getUserInfo:function(){
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/user/getUserDetail', url: 'https://gateway.medtap.cn/user/getUserDetail',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -905,7 +905,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -905,7 +905,7 @@ define(['zepto', 'medtap'], function($, medtap) {
localStorage.wxLungToken = ''; localStorage.wxLungToken = '';
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/user/auth/token', url: 'https://gateway.medtap.cn/user/auth/token',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -35,7 +35,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -35,7 +35,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}, },
getWechatTicket: function() { getWechatTicket: function() {
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket', url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -117,7 +117,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -117,7 +117,7 @@ define(['zepto', 'medtap'], function($, medtap) {
//上传图片 //上传图片
upLoadImg: function(serverId, localId) { upLoadImg: function(serverId, localId) {
$.ajax({ $.ajax({
url: 'https://testdevgw.medtap.cn/common/uploadWechatFile', url: 'https://gateway.medtap.cn/common/uploadWechatFile',
type: 'POST', type: 'POST',
async: false, async: false,
data: { data: {
...@@ -164,7 +164,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -164,7 +164,7 @@ define(['zepto', 'medtap'], function($, medtap) {
// console.log('新建的图片数据',picUrl) // console.log('新建的图片数据',picUrl)
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish', url: 'https://gateway.medtap.cn/operation/pubbbs/publish',
type: "POST", type: "POST",
asynv: false, asynv: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -219,7 +219,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -219,7 +219,7 @@ define(['zepto', 'medtap'], function($, medtap) {
// console.log('更新的图片数据',picUrl) // console.log('更新的图片数据',picUrl)
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/mineUpdate', url: 'https://gateway.medtap.cn/operation/pubbbs/publish/mineUpdate',
type: "POST", type: "POST",
asynv: false, asynv: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -250,7 +250,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -250,7 +250,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getEditById: function() { getEditById: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publish/' + newCard.cardId, url: 'https://gateway.medtap.cn/operation/pubbbs/publish/' + newCard.cardId,
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
......
...@@ -14,7 +14,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -14,7 +14,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getDetail: function() { getDetail: function() {
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/' + reply.commentId, url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/' + reply.commentId,
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -77,7 +77,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -77,7 +77,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var result; var result;
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/operation/pubbbs/publishComment/up', url: 'https://gateway.medtap.cn/operation/pubbbs/publishComment/up',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -104,7 +104,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -104,7 +104,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}else{ }else{
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url:'https://testdevgw.medtap.cn/operation/pubbbs/publishComment', url:'https://gateway.medtap.cn/operation/pubbbs/publishComment',
type:'POST', type:'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -7,7 +7,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -7,7 +7,7 @@ define(['zepto','medtap'],function($,medtap){
checkUser:function(){ checkUser:function(){
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url:'https://testdevgw.medtap.cn/wechat/user/getWechatUser', url:'https://gateway.medtap.cn/wechat/user/getWechatUser',
type:'GET', type:'GET',
async: false, async: false,
data:{ data:{
...@@ -20,7 +20,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -20,7 +20,7 @@ define(['zepto','medtap'],function($,medtap){
//medtap.pushWindow('index.html?wechatId=' + rukou.wechatId) //medtap.pushWindow('index.html?wechatId=' + rukou.wechatId)
window.location.replace('index.html?wechatId=' + rukou.wechatId) window.location.replace('index.html?wechatId=' + rukou.wechatId)
}else{ }else{
window.location.replace('https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + rukou.wechatId) window.location.replace('https://review-formal.iplusmed.com/wechatForLungCancer/prd/wechat_lung_login/login.html?wechatId=' + rukou.wechatId)
} }
} }
}) })
...@@ -29,7 +29,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -29,7 +29,7 @@ define(['zepto','medtap'],function($,medtap){
localStorage.wxLungToken = ''; localStorage.wxLungToken = '';
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://testdevgw.medtap.cn/user/auth/token', url: 'https://gateway.medtap.cn/user/auth/token',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -93,9 +93,9 @@ ...@@ -93,9 +93,9 @@
</div> </div>
<div class="comment_btn clearfix"> <div class="comment_btn clearfix">
<input type="text" name="" id="" value="" class="reply_input"/> <input type="text" name="" id="" value="" class="reply_input"/>
<div class="reply_btn"> <button class="reply_btn">
发布 发布
</div> </button>
</div> </div>
<div class="share_function"> <div class="share_function">
<img src="../images/post_guide_png@2x.png" class="share_bg"> <img src="../images/post_guide_png@2x.png" class="share_bg">
......
...@@ -130,9 +130,9 @@ ...@@ -130,9 +130,9 @@
</div> </div>
<div class="comment_btn clearfix"> <div class="comment_btn clearfix">
<input type="text" name="" id="" value="" class="reply_input"/> <input type="text" name="" id="" value="" class="reply_input"/>
<div class="reply_btn"> <button class="reply_btn">
发布 发布
</div> </button>
</div> </div>
<div class="share_function"> <div class="share_function">
<img src="../images/post_guide_png@2x.png" class="share_bg"> <img src="../images/post_guide_png@2x.png" class="share_bg">
......
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