|
@@ -163,18 +163,61 @@ $(function(){
|
|
|
});
|
|
|
})
|
|
|
|
|
|
- $("#project-photo-row").on("click",".imgoptionspan",function(){
|
|
|
- var code1="rgb(209, 211, 213)"
|
|
|
- var code2="#e04460"
|
|
|
- var value=$(this).css("background-color");
|
|
|
- console.log(value)
|
|
|
- if(code1==value){
|
|
|
- $(this).css("background-color",code2)
|
|
|
+ $("#project-photo-row").on("click",".imgoptionspan.like",function(){
|
|
|
+ var value=$(this).attr("islike");
|
|
|
+ if("1"==value){
|
|
|
+ $(this).css("background-image","url(../../assets/img/unlike_heart.png )")
|
|
|
+ $(this).attr("islike","0");
|
|
|
}else{
|
|
|
- $(this).css("background-color",code1)
|
|
|
+ $(this).css("background-image","url(../../assets/img/like_heart.png )")
|
|
|
+ $(this).attr("islike","1");
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ $("#project-photo-row").on("click",".imgoptionspan.edit",function(){
|
|
|
+ window.location.href=("../company/postproject.html?1=1");
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ $("#project-photo-row").on("click",".imgoptionspan.del",function(){
|
|
|
+
|
|
|
+ var submitlogo = $("#uploadButtonInput").val();
|
|
|
+
|
|
|
+ var successTitle = $(".head_success").val();
|
|
|
+ var cancelTitle = $(".head_cancel").val();
|
|
|
+
|
|
|
+ var warning = $(".head_tips").val();
|
|
|
+ var warning1 = $(".signin_warning").val()
|
|
|
+ var _this=this;
|
|
|
+
|
|
|
+ zeroModal.alert({
|
|
|
+ unique: '1',
|
|
|
+ opacity: 0.8,
|
|
|
+ content: warning,
|
|
|
+ contentDetail: warning1,
|
|
|
+ width: '300px',
|
|
|
+ height: '280px',
|
|
|
+ cancel:true,
|
|
|
+ ok: true,
|
|
|
+ cancelTitle:cancelTitle,
|
|
|
+ okTitle:successTitle,
|
|
|
+ okFn: function() {
|
|
|
+ $(_this).parent() .parent().parent().remove()
|
|
|
+ },
|
|
|
+ onClosed: function() {
|
|
|
+ ; //location.href='../signin/signin.html'
|
|
|
+ },
|
|
|
+ onComplete: function(evn) {
|
|
|
+ console.log('onComplete')
|
|
|
+ // setTimeout(function() {
|
|
|
+
|
|
|
+ // zeroModal.close('1');
|
|
|
+ // }, 3000);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
$(".contact-btn").on("click",function(){
|
|
|
window.open("../company/company_contact.html");
|
|
|
});
|