|
@@ -40,7 +40,20 @@ var qualityAuthorize = new Vue({
|
|
|
//获取商品参数对象
|
|
|
initParams:function(){
|
|
|
var _that = this;
|
|
|
- ProductApi.GetAuthProductDeatil({productId:_that.productId},function(res){
|
|
|
+ var NODE_ENV_BASE_URL = $("#coreServer").val();
|
|
|
+ var data = {productId:_that.productId}
|
|
|
+ $.ajax({
|
|
|
+ url: NODE_ENV_BASE_URL + '/wx/auth/product/details',
|
|
|
+ data: data,
|
|
|
+ xhrFields: {//此处为跨域后台保持session一致,切勿删除!!!
|
|
|
+ withCredentials: true
|
|
|
+ },
|
|
|
+ type: 'GET',
|
|
|
+ dataType: "json",
|
|
|
+ async: false,
|
|
|
+ // contentType: contentType,
|
|
|
+ contentType: 'application/json;charset=UTF-8',
|
|
|
+ }).then(res =>{
|
|
|
if(res.code === 0){
|
|
|
_that.parameters = res.data;
|
|
|
console.log(_that.parameters)
|
|
@@ -49,11 +62,21 @@ var qualityAuthorize = new Vue({
|
|
|
_that.message = res.msg;
|
|
|
_that.isLoading = true;
|
|
|
}
|
|
|
- // else{
|
|
|
- // //如果该产品不存在,跳转到404页面
|
|
|
- // window.location.href = '/404.html'
|
|
|
- // }
|
|
|
- });
|
|
|
+ })
|
|
|
+ // ProductApi.GetAuthProductDeatil({productId:_that.productId},function(res){
|
|
|
+ // if(res.code === 0){
|
|
|
+ // _that.parameters = res.data;
|
|
|
+ // console.log(_that.parameters)
|
|
|
+ // _that.isLoading = true;
|
|
|
+ // }else{
|
|
|
+ // _that.message = res.msg;
|
|
|
+ // _that.isLoading = true;
|
|
|
+ // }
|
|
|
+ // // else{
|
|
|
+ // // //如果该产品不存在,跳转到404页面
|
|
|
+ // // window.location.href = '/404.html'
|
|
|
+ // // }
|
|
|
+ // });
|
|
|
},
|
|
|
// 代理声明弹出框
|
|
|
openStatementDialog:function(flag){
|