12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- // import '../../css/bootstrap.less';
- import 'bootstrap/dist/js/bootstrap.js';
- import '../../css/public.css';
- import '../../css/main_banner.css';
- import '../../js/public.js';
- import '../../js/main_banner.js';
- import '../../css/technologyTrading/achievementOrder.css';
- (function(){
- $(".order_button div").click(function(){
- var theId = $("#id_").attr('val');
- $.ajax({
- method: "post",
- dataType: "json",
- url: globalConfig.context + "/api/user/portal/order/orderAchievement",
- data: {
- achievementId:theId
- },
- success: function (data) {
- if (data.error && data.error.length) {
- msg(data.error[0].message);
- }else if(data.error==""){
- window.open(globalConfig.context+ '/user/account/index.html#techList');
- }else{
- return;
- }
- }
- });
- })
- //��ʾ��������
- //提示框渐隐函数
- function msg(txt) {
- if($('.smg').hasClass('active')){
- return ;
- }
- $('.smg').addClass('active');
- var lit = $('#msg').val(txt);
- setTimeout(function () {
- $('.smg').removeClass('active')
- $('#msg').val('');
- }, 2000)
- }
- $(".main_introduce ul").on("click","li",function(){
- var theId = $(this).children("div").children("p.likeId").html();
- var thetype=$(this).children("div").children("p.likeType").html();
- window.open(globalConfig.context + '/portal/technologyTrading/achievementDetail?id=' + theId+'&type='+thetype );
- });
- })();
|