This commit is contained in:
parent
2674ba0c85
commit
165c4d3422
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 19deb18037a42af4b92717a49e599824
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,33 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 991162668e5266047a657c7b70da419d
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -197,7 +197,7 @@ MonoBehaviour:
|
|||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 16
|
||||
m_FontStyle: 3
|
||||
m_FontStyle: 2
|
||||
m_BestFit: 0
|
||||
m_MinSize: 1
|
||||
m_MaxSize: 40
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,12 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CityPanel : MonoBehaviour
|
||||
{
|
||||
public void Init(string custCode)
|
||||
{
|
||||
//获取关区下所有企业信息
|
||||
string url = "";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bf97c2a6b127df849ac084408d12c579
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -6,17 +6,29 @@ using UnityEngine.UI;
|
|||
|
||||
public class CustomItem : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 海关编码
|
||||
/// </summary>
|
||||
public string Custom_Code;
|
||||
public Image icon;
|
||||
public Button btn;
|
||||
public Text text;
|
||||
public Sprite nochoseSprite;
|
||||
public Sprite choseSprite;
|
||||
|
||||
public void Init(Vector2 point)
|
||||
/// <summary>
|
||||
/// 市级
|
||||
/// </summary>
|
||||
public CityPanel shi_Panel;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
btn.onClick.AddListener(() =>
|
||||
btn.onClick.AddListener(() =>
|
||||
{
|
||||
//进入市一级
|
||||
shi_Panel.gameObject.SetActive(true);
|
||||
shi_Panel.Init(Custom_Code);
|
||||
FirstPanel.instance.sheng_Panel.SetActive(false);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.UI;
|
||||
using LitJson;
|
||||
using Competition.Mysql.Model;
|
||||
using UnityEditor.PackageManager.Requests;
|
||||
|
||||
public class FirstPanel : MonoBehaviour
|
||||
{
|
||||
public static FirstPanel instance;
|
||||
/// <summary>
|
||||
/// 检测的图片
|
||||
/// </summary>
|
||||
|
@ -14,12 +19,28 @@ public class FirstPanel : MonoBehaviour
|
|||
/// 选中的图片
|
||||
/// </summary>
|
||||
public List<GameObject> showImages;
|
||||
/// <summary>
|
||||
/// 省级
|
||||
/// </summary>
|
||||
public GameObject sheng_Panel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 服务器IP
|
||||
/// </summary>
|
||||
public string serverIP;
|
||||
private string serverIP;
|
||||
|
||||
|
||||
|
||||
void Awake()
|
||||
{
|
||||
instance = this;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
serverIP = "172.16.1.164";
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 前端调用初始化传IP
|
||||
/// </summary>
|
||||
|
@ -27,7 +48,6 @@ public class FirstPanel : MonoBehaviour
|
|||
public void InitUnity(string serverIP)
|
||||
{
|
||||
this.serverIP= serverIP;
|
||||
//CallGet(""/*)*/
|
||||
}
|
||||
|
||||
|
||||
|
@ -98,9 +118,13 @@ public class FirstPanel : MonoBehaviour
|
|||
}
|
||||
|
||||
|
||||
public void CallGet(string url)
|
||||
public IEnumerator CallGet(string url,Action<string> back)
|
||||
{
|
||||
UnityWebRequest request = UnityWebRequest.Get(url);
|
||||
|
||||
yield return request.SendWebRequest();
|
||||
if(!request.isHttpError && !request.isNetworkError)
|
||||
{
|
||||
back(request.downloadHandler.text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 32076ea205e01ed49b38b7ac4f329209
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,60 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* T_BAS_CUSTOMS.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: T_BAS_CUSTOMS
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/6/12 16:53:47 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace Competition.Mysql.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// T_BAS_CUSTOMS:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class T_BAS_CUSTOMS
|
||||
{
|
||||
public T_BAS_CUSTOMS()
|
||||
{}
|
||||
#region Model
|
||||
private string _customs_code;
|
||||
private string _customs_name;
|
||||
private string _abbr_cust;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CUSTOMS_CODE
|
||||
{
|
||||
set{ _customs_code=value;}
|
||||
get{return _customs_code;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CUSTOMS_NAME
|
||||
{
|
||||
set{ _customs_name=value;}
|
||||
get{return _customs_name;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ABBR_CUST
|
||||
{
|
||||
set{ _abbr_cust=value;}
|
||||
get{return _abbr_cust;}
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 179aacb132b2d604abf3445a12dc4697
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue