测试 See merge request quanshu/mp-ui-user!51
@@ -12,7 +12,7 @@
</view>
<view v-else>
<u-navbar leftIconSize="0" :placeholder="true" bgColor="#fff" :border="true" title="关于我们">
- <view class="nav-left flex" slot="left" @click="$toIndex()">
+ <view class="nav-left flex" slot="left" @click="toIndex()">
<u-icon name="arrow-left" size="20" color="#333"></u-icon>
</u-navbar>
@@ -42,8 +42,14 @@
export default {
data() {
return {
-
};
+ },
+ methods: {
+ toIndex() {
+ uni.switchTab({
+ url: `/pages/index/index`
+ })
+ }
}
</script>