1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <div class="bottom-wrap">© <span id="footbottom"></span> 中储粮-单仓档案管理系统 版权所有</div>
- <!-- <div id="fangxiang">
- <img src="img/fangxiang.png"/>
- </div> -->
- <script type="text/javascript">
- $(function(){
- var path=window.location.pathname;
- var patharr=path.split("/");
- var grainFile=patharr[3];
- var grainName=grainFile.split(".");
- var grain=grainName[0];
- localStorage.grainPitctureName = grain;
- console.log(grain);
- $("#Map area").click(function(){
- var number=$(this).data("num");
- $.ajax({
- type: "get",
- dataType: 'json',
- url: config.baseUrl + config.organization.getHouseByGrainNameAndHnum+"?gename="+grain+"&number="+number,
- success: function(data) {
- if(data.code==0){
- localStorage.warehouseID=data.houseId;
- Cookies.set('warehouseID', data.houseId);
- window.location.href="/pages/base.html";
- }else{
- alert(data.msg);
- }
- },
- error: function(e) {
- console.log(e);
- }
- });
- });
- $.ajax({
- type: "get",
- dataType: 'json',
- url: config.baseUrl + config.organization.getGrainByEnName+"?enname="+grain,
- success: function(data) {
- if(data.code==0){
- var content="<h4>"+data.obj.name+"介绍信息</h4>";
- if(data.obj.grainDescribe){
- content=content+data.obj.grainDescribe;
- }else{
- content=content+"暂未添加";
- }
- $("#grain-info").html(content);
- }
- },
- error: function(e) {
- console.log(e);
- }
- });
- });
- </script>
- <script>
- $.ajax({
- type: "get",
- dataType: 'json',
- contentType: 'application/json;charset=utf-8',
- url: config.baseUrl + '/sys/sync/serverTime',
- success: function(e) {
- $('#footbottom').text(e.data)
- },
- error: function(e) {
- console.log(e);
- }
- });
- </script>
|