|
@@ -30,23 +30,24 @@
|
|
|
|
|
|
<!-- uni 的 SDK -->
|
|
|
<script src="./wvIP.js"></script>
|
|
|
-
|
|
|
+
|
|
|
<script type="text/javascript" src="../luckysheet/dist/plugins/js/uni-webview-js0.0.3_index.js"></script>
|
|
|
<script>
|
|
|
document.addEventListener('UniAppJSBridgeReady', function() {
|
|
|
uni.getEnv(function(res) {
|
|
|
console.log('当前环境:' + JSON.stringify(res));
|
|
|
const id = window.location.search.split('?id=')[1]
|
|
|
-
|
|
|
+
|
|
|
$.ajax({
|
|
|
url: "/reportTable/getReportTableById/" + id,
|
|
|
type: 'GET',
|
|
|
beforeSend: function() {
|
|
|
- getUserIP(function(ip) {
|
|
|
- console.log("得到的本地IP :" + ip);
|
|
|
- this.url = "http://" + ip +
|
|
|
- ":8081/reportTable/getReportTableById/" + this.id
|
|
|
- });
|
|
|
+ // getUserIP(function(ip) {
|
|
|
+ // console.log("得到的本地IP :" + ip);
|
|
|
+ // this.url = "http://" + ip +
|
|
|
+ // ":8081/reportTable/getReportTableById/" + this.id
|
|
|
+ // });
|
|
|
+ this.url = window.location.origin
|
|
|
},
|
|
|
success: function(res) {
|
|
|
if (res.code === 200) {
|