Commit 9c8bbe12 by zujiaozhang

'论坛修改为测试环境'

parent 36ea4d3c
......@@ -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: {
......@@ -149,7 +149,7 @@ define(['zepto', 'medtap'], function($, medtap) {
wx.onMenuShareAppMessage({
title: '肺癌靶向家园',
desc: desc+'...', // 分享描述
link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId,
// link: window.location.href,
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
......@@ -165,7 +165,7 @@ define(['zepto', 'medtap'], function($, medtap) {
//分享到朋友圈
wx.onMenuShareTimeline({
title: '肺癌靶向家园', // 分享标题
link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId,
// link: window.location.href,
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
......@@ -197,7 +197,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: {
......@@ -250,7 +250,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: {
......@@ -419,7 +419,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',
......@@ -440,7 +440,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',
......@@ -461,7 +461,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',
......@@ -488,7 +488,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',
......@@ -518,7 +518,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,
......
......@@ -101,7 +101,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
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',
......@@ -127,7 +127,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
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:{
......@@ -202,7 +202,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
},
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: {
......@@ -234,7 +234,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
wx.onMenuShareAppMessage({
title: '肺癌靶向家园社区',
desc: desc+'...', // 分享描述
link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId,
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
type: 'link', // 分享类型,music、video或link,不填默认为link
......@@ -249,7 +249,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
//分享到朋友圈
wx.onMenuShareTimeline({
title: '肺癌靶向家园社区', // 分享标题
link: 'https://gateway.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
link: 'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId=' + card.cardId +
'&agencyId=' + card.shareId,
imgUrl: 'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg', // 分享图标
success: function() {
......@@ -280,7 +280,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
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: {
......@@ -330,7 +330,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
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: {
......@@ -507,7 +507,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
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',
......@@ -528,7 +528,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
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',
......@@ -549,7 +549,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
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',
......@@ -576,7 +576,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
} 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',
......
......@@ -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',
......@@ -132,7 +132,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: {},
......@@ -148,7 +148,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',
......@@ -174,7 +174,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',
......@@ -203,7 +203,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: {
......@@ -567,7 +567,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',
......@@ -587,7 +587,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',
......
......@@ -101,7 +101,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: {
......@@ -141,7 +141,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: {
......@@ -364,7 +364,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',
......@@ -611,7 +611,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: {
......@@ -796,7 +796,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',
......@@ -825,7 +825,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',
......@@ -857,7 +857,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',
......@@ -886,7 +886,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: {
......@@ -905,7 +905,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',
......
......@@ -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: {
......@@ -164,7 +164,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',
......@@ -219,7 +219,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',
......@@ -250,7 +250,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',
......
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