function shiyang_caigou(id){//试样采购
//boxDialog.shiyan_id=id;
//upBox.start(id);
//var id=id||boxDialog.shiyan_id;
if(this.determine()=="false"){//没登陆游客身份;
sideJson.setTitle="温馨提示";
sideJson.setUrl="/trading/showdialog/shiyang_prompt.html?id="+id+"&s="+(new Date()).getTime();
boxDialog.init({iNow : 1,title:sideJson.setUrl,title_icon:"",w : 1,h : 1,dir : 'center', mask : true,Drag_Drop:true,iframeSrc:sideJson.setTitle});
}else{//登陆以会员身份;
sideJson.setTitle="普拉司网试样料采购";
sideJson.setUrl="/trading/showdialog/shiyang_caigou2.html?id="+id+"&s="+(new Date()).getTime();
boxDialog.init({iNow : 1,title:sideJson.setTitle,title_icon:"",w : 1,h : 1,dir : 'center', mask : true,Drag_Drop:true,iframeSrc:sideJson.setUrl});}
}
function addQQTalkLog(bj_com){
$.post("/price/common_QQTalk.jsp",{work_type:"addLog",bj_com:bj_com}, function(rtnValue){
},"json");
}
function ttt(){//我要修改物性
var url="/member/wxdata_edit_0.jsp?id=0&ProductList=&FactoryList=";
url+="&TypeList=&ProductList_name=&FactoryList_name=&TypeList_name=";
goTo(url);
}
function addWx(){//我要提交物性资料
var url="/member/wxdata_add.jsp?species=9&ProductList=&FactoryList=&TypeList=";
goTo(url);
}
function goTo(url){
var popA = document.createElement("a");
popA.id='gg'
popA.target='_blank';
popA.href=url;
document.body.appendChild(popA);
popA.click();
document.body.removeChild(popA);
}
function stars(str){
var reg_phone=/(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])(\d{4})(\d{4})/gi,//手机
reg_tel_a=/(\d{2})(\d{4})(\d{2})/gi,//电话一
reg_tel_b=/(\d{2})(\d{2}\s?\d{2})(\d{2})/gi;//电话二
str=str.replace(reg_phone,function(
$1,$2,$3,$4){return $2+"****"+$4
})
str=str.replace(reg_tel_a,function($1,$2,$3,$4){
return $2+"****"+$4
})
str=str.replace(reg_tel_b,function($1,$2,$3,$4){
return $2+"****"+$4
})
return str
}
function contact(userId,priceId,_this){
var url=dirname+'/user/leaguer/getMemberContactInformation',i=0,name=null;
var grandpa=_this.parentNode.parentNode;
var oSpan=grandpa.getElementsByTagName("span");
var oA=grandpa.getElementsByTagName("a");
var params={//条件
"clientSide":1,//客户端1 pc 2:app
"linkmanId": 0,
"priceId":priceId,
"type": 0,//类型 0 原料 1改性 2再生 3助剂 5呆滞料
"userId":userId
}
$.ajax({
type: 'post',
url: url,
contentType: "application/json",
data: JSON.stringify(params),
dataType: "json",
headers: {'Authorization': localStorage.getItem("plaswUser")?JSON.parse(localStorage.getItem("plaswUser")).authorization:""},
success:function(res){
for(i;i'+res.data[i].videoName+'
'
str+=''
}
$("#user_video").html(str)
$(".factoryInspection").html(' ')
if(res.data.length>=2){
new SorllPic({outsideBox:'user-video-box',//大框,外框
insideBox:'inside-box',//内框
oBtnPrev:'slide-prev',//上一页箭头翻页
oBtnNext:'slide-next',//下一页
pagination:'pagination',//按扭翻页
direction:'left',//方向上下左右
speed:1000,//滚动时间
Interval:3000,//间隔时长
autoPlay:true,//是否自动播放,true为允许,false为不充许
cyclePlay:false//是否循环播放,true为允许,false为不充许。循环播放放完后不会返回头部
}).fnAncation()
}
}
})
function complain(){
var usrStr='';
/*var url="/share/complaint.jsp";*/
var pm_name="",//品名
zz_name="",//制造商
xh_name="",//型号
id="",
pm_id="",
zz_id="",
xh_id="",
city_name="",
com_name="",//企业缩写
owner_id="",//联系人
price="0",//报价
province_id="",//国家
city_id="",//省
area_id="",//市
type=1,
price_type="1",//贸易方式
mtel='"'//手机号
/* usrStr=url+"?pm_name="+pm_name
usrStr+="&zz_name="+zz_name
usrStr+="&xh_name="+xh_name
usrStr+="&pm_id="+pm_id
usrStr+="&zz_id="+zz_id
usrStr+="&xh_id="+xh_id
usrStr+="&city_name="+city_name
usrStr+="&com_name="+com_name
usrStr+="&owner_id="+owner_id
usrStr+="&price="+price
usrStr+="&province_id="+province_id
usrStr+="&city_id="+city_id
usrStr+="&area_id="+area_id
usrStr+="&type="+type
usrStr+="&price_type="+price_type
usrStr+="&mtel="+mtel; */
usrStr="/serviceCenter/complaint?web=new"
usrStr+="&id="+id
usrStr+="&priceType="+price_type
sideJson={};
sideJson.setUrl=usrStr
if(upBox.determine()=="false"){//没登录
boxDialog.init({})
}else{//登录
var newA = document.createElement("a");
newA.target='_blank';
newA.href=usrStr;
document.body.appendChild(newA);
newA.click();
document.body.removeChild(newA);
console.log(usrStr)
}
}