|
@@ -17,6 +17,11 @@
|
|
|
<link href="../../../static/css/toast.style.css" rel="stylesheet">
|
|
<link href="../../../static/css/toast.style.css" rel="stylesheet">
|
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
$(document).ready(function(){
|
|
$(document).ready(function(){
|
|
|
|
|
+ var hostname = window.location.hostname;
|
|
|
|
|
+ var api = 'https://saas-api.usoftchina.com'
|
|
|
|
|
+ if(hostname.indexOf('saas-dev')>-1){
|
|
|
|
|
+ api = 'https://saas-api-dev.usoftchina.com:5443'
|
|
|
|
|
+ }
|
|
|
$( "#dialog-message" ).dialog({
|
|
$( "#dialog-message" ).dialog({
|
|
|
autoOpen : false,
|
|
autoOpen : false,
|
|
|
modal: true,
|
|
modal: true,
|
|
@@ -31,7 +36,7 @@
|
|
|
var param = getUrlParam('param');
|
|
var param = getUrlParam('param');
|
|
|
var companyId = 0;
|
|
var companyId = 0;
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
- url:"https://saas-api.usoftchina.com/api/commons/share/valid/param",
|
|
|
|
|
|
|
+ url:api+"/api/commons/share/valid/param",
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
data: "param="+param,
|
|
data: "param="+param,
|
|
|
async:false,
|
|
async:false,
|
|
@@ -44,7 +49,7 @@
|
|
|
$("#sendmsg").text(data.companyName);
|
|
$("#sendmsg").text(data.companyName);
|
|
|
document.getElementsByClassName('x-join-center')[0].hidden = false;
|
|
document.getElementsByClassName('x-join-center')[0].hidden = false;
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
- url:"https://saas-api.usoftchina.com/api/account/role/list/"+data.companyId,
|
|
|
|
|
|
|
+ url:api+"/api/account/role/list/"+data.companyId,
|
|
|
type: "GET",
|
|
type: "GET",
|
|
|
async:false,
|
|
async:false,
|
|
|
success: function(data){
|
|
success: function(data){
|
|
@@ -101,7 +106,7 @@
|
|
|
};
|
|
};
|
|
|
if($('#myMobile').attr('valid')=="true"){
|
|
if($('#myMobile').attr('valid')=="true"){
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
- url:"https://saas-api.usoftchina.com/api/commons/share/submit",
|
|
|
|
|
|
|
+ url:api+"/api/commons/share/submit",
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
async:false,
|
|
async:false,
|
|
|
data:JSON.stringify(params),
|
|
data:JSON.stringify(params),
|
|
@@ -128,7 +133,7 @@
|
|
|
var mobile = $('#myMobile').val();
|
|
var mobile = $('#myMobile').val();
|
|
|
if(mobile.trim()!=""&&$('#myMobile').attr('valid')=="true"){
|
|
if(mobile.trim()!=""&&$('#myMobile').attr('valid')=="true"){
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
- url:"https://saas-api.usoftchina.com/api/commons/share/getSmsCode",
|
|
|
|
|
|
|
+ url:api+"/api/commons/share/getSmsCode",
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
data:"mobile="+mobile,
|
|
data:"mobile="+mobile,
|
|
|
async:false,
|
|
async:false,
|