Browse Source

feat: 初始化

dev
jiannibang 3 years ago
parent
commit
fb27326da2
  1. 15
      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

15
app.js

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

2
app.json

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

15
getMapData.js

@ -1,8 +1,8 @@
import { get } from "./pages/map2d/util"; import { get } from "./pages/map2d/util";
import dataHelper from "./data-helper"; 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) => export const post = (url, data) =>
new Promise((resolve) => { new Promise((resolve) => {
wx.request({ wx.request({
@ -25,8 +25,15 @@ export const mall = {
cdnUrl, cdnUrl,
code, code,
floors: [ floors: [
[true, "B2"],
[true, "B1"],
[true, "B1M"],
[true, "L1"], [true, "L1"],
[true, "L2"], [true, "L2"],
[true, "L3"],
[true, "L4"],
[true, "L5"],
[true, "L6"],
], ],
}; };
const config = { const config = {
@ -89,7 +96,7 @@ export const getMapData = async () => {
floor_id, floor_id,
transform_matrix, transform_matrix,
scale, scale,
case_id,
...(case_id ? { case_id } : {}),
is_park, 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 { createScopedThreejs } from "threejs-miniprogram";
import { registerGLTFLoader } from "../../loader/gltfLoader"; import { registerGLTFLoader } from "../../loader/gltfLoader";
var THREE; var THREE;

3
project.config.json

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

2
project.private.config.json

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