|
@@ -81,25 +81,26 @@
|
|
}
|
|
}
|
|
|
|
|
|
function getInfos() {
|
|
function getInfos() {
|
|
- console.log('getInfos')
|
|
|
|
|
|
+
|
|
var weixin = isWeiXin();
|
|
var weixin = isWeiXin();
|
|
// var res={
|
|
// var res={
|
|
- // "code": 200,
|
|
|
|
- // "msg": "success",
|
|
|
|
- // "result": {
|
|
|
|
- // "openlink": "weixin:\/\/dl\/business\/?t=B7IYjoq9ZPq"
|
|
|
|
- // }
|
|
|
|
|
|
+ // "code": 200,
|
|
|
|
+ // "msg": "success",
|
|
|
|
+ // "result": {
|
|
|
|
+ // "openlink": "weixin:\/\/dl\/business\/?t=Dyq5kn9Vfyf"
|
|
|
|
+ // }
|
|
// };
|
|
// };
|
|
|
|
|
|
- // if (res.status === 200) {
|
|
|
|
|
|
+ // if (res.code === 200) {
|
|
// if (!weixin) {
|
|
// if (!weixin) {
|
|
// $("#dianjiimg_links").attr('href', res.result.openlink)
|
|
// $("#dianjiimg_links").attr('href', res.result.openlink)
|
|
// // $("#public-web-jump-button").attr("href", res.result.openlink)
|
|
// // $("#public-web-jump-button").attr("href", res.result.openlink)
|
|
// jsUpdate(res)
|
|
// jsUpdate(res)
|
|
// }
|
|
// }
|
|
- // } else {
|
|
|
|
- // $(".public-container").html('<p class="error-msg">'+res.msg+'</p>');
|
|
|
|
- // }
|
|
|
|
|
|
+ // } else {
|
|
|
|
+ // $(".public-container").html('<p class="error-msg">'+res.msg+'</p>');
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
@@ -108,7 +109,8 @@
|
|
//dataType: "jsonp",
|
|
//dataType: "jsonp",
|
|
//jsonp: "callback",//传递给请求处理程序或页面的,标识jsonp回调函数名(一般为:callback)
|
|
//jsonp: "callback",//传递给请求处理程序或页面的,标识jsonp回调函数名(一般为:callback)
|
|
//jsonpCallback: "GetData",//callback的function名称
|
|
//jsonpCallback: "GetData",//callback的function名称
|
|
- url: "http://139.186.77.83:7015/app/user/getAppletScheme",
|
|
|
|
|
|
+ url: "http://127.0.0.1:7015/app/user/getAppletScheme",
|
|
|
|
+ //url: "http://139.186.77.83:7015/app/user/getAppletScheme",
|
|
data: {
|
|
data: {
|
|
"cardId":cid,
|
|
"cardId":cid,
|
|
// "domain": "eturl.cn",
|
|
// "domain": "eturl.cn",
|