CMCCZJ

浙江中国移动

当前为 2020-03-07 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CMCCZJ
  3. // @namespace warden
  4. // @version 0.0.1
  5. // @description 浙江中国移动
  6. // @author Warden
  7. // @match ccs.chnl.zj.chinamobile.com/*
  8. // @grant unsafeWindow
  9. // @run-at context-menu
  10. // ==/UserScript==
  11. (function() {
  12. 'use strict';
  13. console.log('Hooked!');
  14. var btn = document.getElementById('searchCustInfo');
  15. var showMes = function() {
  16. setTimeout(function(){
  17. Rose.ajax.getJson(unsafeWindow.dataArray.loadCustOffers,{BUSINESS_ID:"1",BUSI_TYPE:"0"}, function(json,status){
  18. if(status){
  19. art.dialog.data('json', json);
  20. }else{
  21. console.log('错误!');
  22. }
  23. $("#personal-recomm").after('<div class="ui-grid-line fn-hide" style="display: block;"><div class="ui-box"><div class="ui-box-head"><div class="ui-box-head-border"><i class="ui-box-head-icon ui-box-icon-01"></i><h3 class="ui-box-head-title">已订业务</h3></div></div><div class="ui-box-container"><div class="ui-box-content" style="padding: 0px;"><div class="ui-list-icon ui-list-float-recom fn-clear" id="slides" style="padding: 0px;"><iframe scrolling="yes" frameborder="0" marginheight="0" allowtransparency="true" marginwidth="0" border="0" src="https://ccs.chnl.zj.chinamobile.com/business?service=page/ydyw" style="width: 786px; height: 380px;"></iframe></div></div></div></div></div>');
  24. })
  25. }, 500);
  26. };
  27. btn.addEventListener('click', showMes);
  28. })();