11
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="common">
|
||||
<view class="title">常用功能</view>
|
||||
<!-- <view class="title">常用功能</view> -->
|
||||
<view class="type-bc">
|
||||
<view class="type-item type-item-gc" @tap="toPages('/pages/receive/index')">
|
||||
<view class="type-item-text">采购收料</view>
|
||||
@@ -35,34 +35,44 @@
|
||||
<view class="item-title">扫描记录</view>
|
||||
<up-icon name="play-right-fill" size="8"></up-icon>
|
||||
</view>
|
||||
<view class="input-item u-flex" style="justify-content: space-between;align-items: center">
|
||||
<!-- <view class="input-item u-flex" style="justify-content: space-between;align-items: center">
|
||||
<view class="item-title">离线记录</view>
|
||||
<up-icon name="play-right-fill" size="8"></up-icon>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="input-item u-flex" style="justify-content: space-between;align-items: center">
|
||||
<view class="item-title">语言切换</view>
|
||||
<up-icon name="play-right-fill" size="8"></up-icon>
|
||||
</view>
|
||||
<view class="input-item u-flex" style="justify-content: space-between;align-items: center">
|
||||
<!-- <view class="input-item u-flex" style="justify-content: space-between;align-items: center">
|
||||
<view class="item-title">语音播报</view>
|
||||
<up-icon name="play-right-fill" size="8"></up-icon>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view class="outLogin">退出登录</view>
|
||||
<view class="outLogin" @click="outLoginFun">退出登录</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { reactive, ref } from 'vue';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app'
|
||||
import { } from "../../common/request/api/api";
|
||||
import { logout } from "../../common/request/api/api";
|
||||
const toPages = (url : string, data : any = {}) => {
|
||||
uni.$u.route({
|
||||
url: url,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
const outLoginFun = () => {
|
||||
// uni.clearStorageSync()
|
||||
logout({}).then((res:any) => {
|
||||
uni.removeStorageSync('userInfo')
|
||||
uni.removeStorageSync('TOKEN')
|
||||
uni.reLaunch({
|
||||
url: '/pages/client/account/login'
|
||||
});
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.multi-line-omit {
|
||||
@@ -102,12 +112,12 @@
|
||||
}
|
||||
|
||||
.common {
|
||||
margin-top: 70rpx;
|
||||
margin-top: 110rpx;
|
||||
min-height: 262rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 24rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 0 28rpx;
|
||||
padding:28rpx 28rpx 0 28rpx;
|
||||
|
||||
.title {
|
||||
padding: 26rpx 0 23rpx 0;
|
||||
|
||||
Reference in New Issue
Block a user