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