用户中心接口,商品接口

This commit is contained in:
唐明明
2022-01-06 16:53:44 +08:00
parent 53a6f0b149
commit 178fdb4b46
10 changed files with 132 additions and 179 deletions

View File

@@ -5,7 +5,7 @@
<view class="tool-flex-item" @click="$Router.back()">
<uni-icons type="closeempty" size="22" color="#666"></uni-icons>
</view>
<view class="tool-flex-item" @click="onKeyAuth()" v-if="$Route.query.keyPhone === '1'">一键登录</view>
<view class="tool-flex-item" @click="onKeyAuth()" v-if="$Route.query.keyPhone == 1">一键登录</view>
</view>
<!-- 欢迎使用 -->
<view class="header">
@@ -52,11 +52,7 @@
code : this.code
}).then(res => {
this.$store.commit('setToken', res.token_type + ' ' + res.access_token)
if(this.$Route.toName){
this.$Router.back()
}else{
this.$Router.replaceAll({name: 'Index'})
}
this.$Router.back()
}).catch(err => {
uni.showToast({
title: err.message,