Sorry, you are not login!
VIP members can check the contents after login.
Click to login

  • TOP
  • Moblie
    All Prompt Messages

    Tradesns Foreign Trade Community
    Current page location:Home Page > Trade community
    Write essays
    Publish articles
    Ask questions
    You have entered.0character
    picture
    Expression
    Drafts
    Release
    Up to 6 pictures can be uploaded. Please control the size of the picture within 10MB. You can upload JPEG, JPG, GIF, PNG and other formats!
    author:WuKrise
    Reply:0 | Release time:2018-10-24 15:50:30
    author:XuBowl
    Reply:1 | Release time:2019-12-04 14:48:26
    Article
    How to grasp business opportunities in Q4 peak season
    author
    .comTradesns
    :2022-10-10 17:20:50
    Article
    How to shorten the distance with customers?
    author
    .comTradesns
    :2022-10-09 17:27:00
    Article
    Facebook's Foreign Trade Clearance Cheats
    author
    leeLeonardo
    :2020-12-18 14:31:48
    Article
    How to develop customers efficiently
    author
    leeLeonardo
    :2020-12-17 15:15:11
    Article
    Mask-made in china
    author
    XuBowl
    :2020-03-17 08:26:13
    Training
    Tips for releasing Products
    author
    .comTradesns
    :2018-06-07 11:17:19
    Training
    How to do business with Americans?
    author
    .comTradesns
    :2018-06-06 16:03:40
    Training
    Major port cities in India
    author
    .comTradesns
    :2018-06-08 13:22:02
    ' } $('.PublishPanel-tags').html(h); } $('.PublishPanel-popover').show(); } }); } function retag(e){ $(e).parent().parent().remove() } $('#add_tags').on('click',function(){ var add_tags_title = $('#add_tags_title').val(); var lengs = $('.PublishPanel-tags li').length; if(lengs>=5){ zhiyouAlertBox("You can only add up to five"); return false; } if(add_tags_title.length>20){ zhiyouAlertBox("No more than 20 words"); return false; } if(add_tags_title.replace(/\s*/g,'')!=''){ var h = '
  • '+add_tags_title+'
  • ' $('.PublishPanel-tags').append(h); $('#add_tags_title').val(''); }else{ zhiyouAlertBox("Content cannot be empty"); } }) //发布动态 function add_topic(flag,s){ var content = $('.editor_text').html(); if(content==""){ zhiyouAlertBox("Content cannot be empty"); return false; } if($('.editor_text').html().replace(/<\/?[^>]*>/g,'').replace(/ /g,'').replace(/ /g,'').length>2000){ zhiyouAlertBox("Essay length cannot exceed 2000"); return false; } var picture =[]; for(var i=0; i<$('#img_boxs .add_picutres img').length;i++ ){ picture.push($('#img_boxs .add_picutres img').eq(i).attr('src')) } if(s!=1){ get_tag(flag,s) return false; } var result = []; var lis = $('.PublishPanel-tags li'); // 或者其他查询方式 for (var i = 0; i < lis.length; i++) { result.push(lis.eq(i).find('a').text()); //UPDATE: 兼容 Firefox 并将字符串转为数字 } result = result.join('|');result = '|'+result+'|'; $.ajax({ type:"post", url:"/publish/add_topic", data:{ flag:flag, type:'2', picture:picture.join(','), content:content, draft_id:drafts_id, tag:result, lang:$('#lang').val() }, success:function(e){ var e =JSON.parse(e); $('.PublishPanel-popover').hide() if(e.msg=="success"||e== 200){ if(flag == 'drafts'){ zhiyouAlertBox("Save successfully"); }else{ zhiyouAlertBox("Released successfully"); } return false; }else{ zhiyouAlertBox("Please try again later"); return false; } } }); } //监听输入的字数 $('.editor_text').keyup(function(){ var munlist = $('.editor_text').html().replace(/<\/?[^>]*>/g,'').replace(/ /g,'').replace(/ /g,''); var thisLength = munlist; var en = 0; var cn = 0; var n = 0; var lengths = 0; for(var i=0;i=6){ $('#myCenterTopic').hide() } /*if(elements.length > 1){ myCenterTopicBox.insertBefore(li,elements[0]); }else{ myCenterTopicBox.insertBefore(li,myCenterTopic); }*/ } function removePictures(myself){ var csrftokens = document.getElementsByName("csrf-token")[0]; var tokens = csrftokens.content; var thisSrc = $(myself).next().attr("src"); ajax({ method: 'POST', url: '/publish/upload_topic', data: { "url" : thisSrc, "_token" : tokens, "type":'topic' }, success: function (response) { if(response.trim() == "-1"){ $(myself).parent().remove(); $('#myCenterTopic').show() } } }); }; $('.box').on('click',function(e){ e.stopPropagation(); $('.PublishPanel-popover').hide() }) $('.PublishPanel-popover').on('click',function(){ return false; })
    Baidu
    map