@@ -18,7 +18,7 @@
</view>
<!-- 退出 -->
<view class="user-btn">
- <u-button type="error" shape="circle">退出登录</u-button>
+ <u-button type="error" @click="quitSys" shape="circle">退出登录</u-button>
</template>
@@ -31,11 +31,16 @@
};
},
methods:{
+ // 打开对应的页面
toPage(index){
let pageUrl=['/pages/coupon/index/index','/pages/order/order']
uni.navigateTo({
url: pageUrl[index]
})
+ },
+ // 退出登录
+ quitSys(){
+
}