Browse Source

联调接口

master
邓宏 2 years ago
parent
commit
c333678e79
  1. 2
      pages.js
  2. 2
      pages/home/index.vue
  3. 6
      pages/massif/mana/index.vue
  4. 6
      store/index.js

2
pages.js

@ -37,7 +37,7 @@ module.exports = hot((pagesJson)=>{
current: 0, current: 0,
list: [ list: [
// {name:"测试页面",path:"pages/demo"}, // {name:"测试页面",path:"pages/demo"},
{name: "地块管理",path: "pages/massif/mana/index","query": ""}, // {name: "地块管理",path: "pages/massif/mana/index","query": ""},
{name: "登录",path: "pages/home/login","query": ""}, {name: "登录",path: "pages/home/login","query": ""},
{name: "首页",path: "pages/home/index","query": ""}, {name: "首页",path: "pages/home/index","query": ""},
{name: "仓库管理",path: "pages/warehouse/mana","query": ""}, {name: "仓库管理",path: "pages/warehouse/mana","query": ""},

2
pages/home/index.vue

@ -236,7 +236,7 @@
padding-top:90px; padding-top:90px;
background-image:url(@/static/home_picker_head.png); background-image:url(@/static/home_picker_head.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:auto 90px; background-size:100% 90px;
} }
} }
} }

6
pages/massif/mana/index.vue

@ -78,6 +78,12 @@ export default {
polygon.setFillColor("#10C176") polygon.setFillColor("#10C176")
polygon.setFillOpacity(0.3) polygon.setFillOpacity(0.3)
maps.addOverlay(polygon) maps.addOverlay(polygon)
var marker=new plus.maps.Marker(new plus.maps.Point(116.396137,39.924055));
marker.setIcon("/static/tab_home.png");
marker.bringToTop()
marker.setDraggable(true)
maps.addOverlay(marker);
/* #endif */ /* #endif */
}, },
methods:{ methods:{

6
store/index.js

@ -22,9 +22,9 @@ export default new Vuex.Store({
outLogin(state){ outLogin(state){
state.userInfo={} state.userInfo={}
state.token='' state.token=''
// uni.reLaunch({ uni.reLaunch({
// url:"/pages/home/login", url:"/pages/home/login",
// }) })
}, },
setHeadImg(state,val){ setHeadImg(state,val){
state.userInfo.avatar=val state.userInfo.avatar=val

Loading…
Cancel
Save