非正式
This commit is contained in:
parent
d35aa5f450
commit
6e2f78c7e3
@ -2,14 +2,14 @@
|
||||
"name" : "无终街",
|
||||
"appid" : "__UNI__6DB512D",
|
||||
"description" : "admin",
|
||||
"versionName": "4.0.1",
|
||||
"versionName" : "4.0.2",
|
||||
"versionCode" : 406,
|
||||
"transformPx" : false,
|
||||
"sassImplementationName" : "node-sass",
|
||||
"app-plus" : {
|
||||
"android" : {
|
||||
"versionCode" : 406, // Android 版本号
|
||||
"versionName": "4.0.1" // 用户看到的版本号
|
||||
"versionName" : "4.0.2" // 用户看到的版本号
|
||||
},
|
||||
"compatible" : {
|
||||
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
||||
|
@ -16,7 +16,10 @@
|
||||
@onAnimationEnd="animationfinish"
|
||||
>
|
||||
<swiper-item>
|
||||
<video-local ref="videoLocal" @isno="isno"></video-local>
|
||||
<video-local
|
||||
ref="videoLocal"
|
||||
@isno="isno"
|
||||
></video-local>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<!-- <view
|
||||
@ -69,12 +72,13 @@
|
||||
>
|
||||
{{ tab.name }}
|
||||
</text>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- 二级 tab -->
|
||||
<view v-if="handleIsnoEvent && tabList[tabIndex] && tabList[tabIndex].child" style="flex-direction: row; flex: 1; justify-content: space-around">
|
||||
<view
|
||||
v-if="handleIsnoEvent && tabList[tabIndex] && tabList[tabIndex].child"
|
||||
style="flex-direction: row; flex: 1; justify-content: space-around"
|
||||
>
|
||||
<view
|
||||
class="uni-tab-item"
|
||||
v-for="(childTab, childIndex) in tabList[tabIndex].child"
|
||||
@ -84,9 +88,7 @@
|
||||
:data-child-index="childIndex"
|
||||
@click="onChildTabTap(tabIndex, childIndex, childTab)"
|
||||
>
|
||||
<text
|
||||
class="uni-tab-item-title scroll-view-animation"
|
||||
>
|
||||
<text class="uni-tab-item-title scroll-view-animation">
|
||||
{{ childTab.name }}
|
||||
</text>
|
||||
</view>
|
||||
@ -185,8 +187,7 @@ export default {
|
||||
{ id: 'tabs' + 3, name: '教育', pageid: 11 },
|
||||
{ id: 'tabs' + 4, name: '商贸', pageid: 12 },
|
||||
{ id: 'tabs' + 5, name: '商超', pageid: 13 },
|
||||
{id: 'tabs' + 6,name: '特色',pageid: 14},
|
||||
|
||||
{ id: 'tabs' + 6, name: '特色', pageid: 14 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -309,11 +310,11 @@ export default {
|
||||
// },
|
||||
methods: {
|
||||
isno(e) {
|
||||
console.log(e,'---')
|
||||
this.handleIsnoEvent=e
|
||||
console.log(e, '---');
|
||||
this.handleIsnoEvent = e;
|
||||
},
|
||||
onChildTabTap(i, o, item) {
|
||||
this.childTabIndex=o
|
||||
this.childTabIndex = o;
|
||||
uni.navigateTo({ url: `/pages/tabbar/vlog/vlindex?name=${item.name}` });
|
||||
},
|
||||
handleHuaWei() {
|
||||
@ -464,7 +465,9 @@ export default {
|
||||
},
|
||||
animationfinish(e) {
|
||||
let index = e.detail.current;
|
||||
if (index != this._lastTabIndex) {
|
||||
console.log('当前索引' + index);
|
||||
console.log('之前的索引' + this._lastTabIndex);
|
||||
if (index != this._lastTabIndex && index <= 2) {
|
||||
// 成功切换
|
||||
var beforeProp = this.pageList[this._lastTabIndex];
|
||||
var indexProp = this.pageList[index];
|
||||
@ -701,7 +704,7 @@ export default {
|
||||
background: red;
|
||||
width: 100rpx;
|
||||
text-align: center;
|
||||
border-radius:50%
|
||||
border-radius: 50%;
|
||||
}
|
||||
.scroll-view-indicator {
|
||||
position: relative;
|
||||
|
Loading…
x
Reference in New Issue
Block a user