Browse Source

feat: 初始化

dev
jiannibang 3 years ago
parent
commit
fb27326da2
  1. 13
      app.js
  2. 2
      app.json
  3. 15
      getMapData.js
  4. 4
      pages/h5map/index.json
  5. 2
      pages/index/VPASSDK-1.2.5.js
  6. 2
      pages/index/index.js
  7. 3
      project.config.json
  8. 2
      project.private.config.json

13
app.js

@ -1,20 +1,11 @@
import { getMapData, post, code } from "./getMapData";
const floors = [
{
name: "L1",
floorOrder: 0,
url: null,
floorId: "0",
isPark: false,
},
{
name: "L2",
floorOrder: 1,
floorOrder: 3,
url: true,
floorId: "F2",
floorId: "F1",
isPark: false,
},
];

2
app.json

@ -9,7 +9,7 @@
"window": {
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#F0F0F0",
"navigationBarTitleText": "",
"navigationBarTitleText": "沈阳K11",
"navigationBarTextStyle": "black"
},
"style": "v2",

15
getMapData.js

@ -1,8 +1,8 @@
import { get } from "./pages/map2d/util";
import dataHelper from "./data-helper";
const baseUrl = "https://iot-dev.123.1000my.com";
export const cdnUrl = "https://test-598d.1000my.com";
export const code = "project-k5chc3vt0vkodjbmhl8rua";
const baseUrl = "https://iot.1000my.com";
export const cdnUrl = "https://qianmu-iot.1000my.com";
export const code = "project-dshd7pel_ogpcdect930ja";
export const post = (url, data) =>
new Promise((resolve) => {
wx.request({
@ -25,8 +25,15 @@ export const mall = {
cdnUrl,
code,
floors: [
[true, "B2"],
[true, "B1"],
[true, "B1M"],
[true, "L1"],
[true, "L2"],
[true, "L3"],
[true, "L4"],
[true, "L5"],
[true, "L6"],
],
};
const config = {
@ -89,7 +96,7 @@ export const getMapData = async () => {
floor_id,
transform_matrix,
scale,
case_id,
...(case_id ? { case_id } : {}),
is_park,
})
);

4
pages/h5map/index.json

@ -1,3 +1 @@
{
"usingComponents": {}
}
{ "navigationBarTitleText": "沈阳K11", "usingComponents": {} }

2
pages/index/VPASSDK-1.2.4.js → pages/index/VPASSDK-1.2.5.js

File diff suppressed because one or more lines are too long

2
pages/index/index.js

@ -1,4 +1,4 @@
import * as VPASSDK from "./VPASSDK-1.2.4.js";
import * as VPASSDK from "./VPASSDK-1.2.5.js";
import { createScopedThreejs } from "threejs-miniprogram";
import { registerGLTFLoader } from "../../loader/gltfLoader";
var THREE;

3
project.config.json

@ -36,7 +36,8 @@
"showES6CompileOption": false,
"useCompilerPlugins": false,
"ignoreUploadUnusedFiles": true,
"useStaticServer": true
"useStaticServer": true,
"condition": false
},
"compileType": "miniprogram",
"condition": {

2
project.private.config.json

@ -23,6 +23,6 @@
}
},
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "iot_ar_miniprogram",
"projectname": "syk11_ar_miniprogram",
"libVersion": "2.26.0"
}
Loading…
Cancel
Save