Browse Source

样式修改

master
@AliceXiaoZhan 3 years ago
parent
commit
5524650a8e
  1. 1
      components/components/xuqiu.vue
  2. 5
      components/tabs/tabs.vue
  3. 2
      pages.json
  4. 1
      pages/resource_list/resource_list.vue
  5. 2
      pages/shop_street/shop_street.vue

1
components/components/xuqiu.vue

@ -69,6 +69,7 @@
}, },
// //
changeTabs(event) { changeTabs(event) {
this.current = event; this.current = event;
}, },
// //

5
components/tabs/tabs.vue

@ -314,6 +314,7 @@
query.exec( query.exec(
function(res) { function(res) {
this.tabQueryInfo = res; this.tabQueryInfo = res;
//console.log(res)
// bar // bar
this.scrollByIndex(); this.scrollByIndex();
}.bind(this) }.bind(this)
@ -322,9 +323,11 @@
// scroll-viewtab // scroll-viewtab
scrollByIndex() { scrollByIndex() {
// tabtabwidthleft() // tabtabwidthleft()
let tabInfo = this.tabQueryInfo[this.currentIndex];
console.log('tabInfo') console.log('tabInfo')
console.log(this.currentIndex)
console.log(this.tabQueryInfo) console.log(this.tabQueryInfo)
let tabInfo = this.tabQueryInfo[this.currentIndex];
if (!tabInfo) return; if (!tabInfo) return;
// tab // tab
let tabWidth = tabInfo.width; let tabWidth = tabInfo.width;

2
pages.json

@ -939,7 +939,7 @@
"pagePath": "pages/community/community", "pagePath": "pages/community/community",
"iconPath": "/static/images/tab-community.png", "iconPath": "/static/images/tab-community.png",
"selectedIconPath": "/static/images/tab-community_s.png", "selectedIconPath": "/static/images/tab-community_s.png",
"text": "任务中心" "text": "服务大厅"
}, },
{ {
"pagePath": "pages/resource_list/resource_list", "pagePath": "pages/resource_list/resource_list",

1
pages/resource_list/resource_list.vue

@ -50,6 +50,7 @@
</view> </view>
</mescroll-body> </mescroll-body>
<tabbar></tabbar>
</view> </view>
</template> </template>

2
pages/shop_street/shop_street.vue

@ -41,7 +41,7 @@
</view> </view>
</view> --> </view> -->
</view> </view>
<tabbar></tabbar>
</view> </view>
</template> </template>

Loading…
Cancel
Save