app验收反馈
This commit is contained in:
@@ -1,23 +1,33 @@
|
||||
<template>
|
||||
<Cn-page :loading='loading'>
|
||||
<view slot='body'>
|
||||
<view class='index'>
|
||||
<view class="mine-nav" @click="jump('head')" style=" box-shadow: 0 4rpx 8rpx #e7e7e74c;">
|
||||
<Cn-page :loading="loading">
|
||||
<view slot="body">
|
||||
<view class="index">
|
||||
<view class="mine-nav" @click="jump('head')" style="box-shadow: 0 4rpx 8rpx #e7e7e74c">
|
||||
<view class="mine-nav-label">头像</view>
|
||||
<image style="height: 120rpx;width: 120rpx;border-radius:12rpx" src="/static/head.png"
|
||||
mode="scaleToFill" />
|
||||
<image
|
||||
style="height: 120rpx; width: 120rpx; border-radius: 12rpx"
|
||||
:src="userInfo.avatar"
|
||||
mode="scaleToFill"
|
||||
v-if="userInfo.avatar"
|
||||
/>
|
||||
<image
|
||||
style="height: 120rpx; width: 120rpx; border-radius: 12rpx"
|
||||
src="/static/head.png"
|
||||
mode="scaleToFill"
|
||||
v-else
|
||||
/>
|
||||
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
||||
</view>
|
||||
<view class="mine-nav" @click="jump('changeName')" >
|
||||
<view class="mine-nav" @click="jump('changeName')">
|
||||
<view class="mine-nav-label">名字</view>
|
||||
<view class="mine-nav-des">灿能电力</view>
|
||||
<view class="mine-nav-des">{{ userInfo.nickname }}</view>
|
||||
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
||||
</view>
|
||||
<view class="mine-nav" @click="jump('erweima')" style="border-bottom: none; ">
|
||||
<view class="mine-nav" @click="jump('erweima')" style="border-bottom: none">
|
||||
<view class="mine-nav-label">我的二维码</view>
|
||||
<image
|
||||
src="/static/erweima.png"
|
||||
style="height: 50rpx;width: 50rpx;border-radius:12rpx"
|
||||
style="height: 50rpx; width: 50rpx; border-radius: 12rpx"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
||||
@@ -28,30 +38,34 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
loading: false
|
||||
loading: false,
|
||||
userInfo: {},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
jump(type){
|
||||
console.log(type);
|
||||
jump(type) {
|
||||
console.log(type)
|
||||
uni.navigateTo({
|
||||
url: `/pages/user/${type}`,
|
||||
fail: (err) => {
|
||||
console.log(err);
|
||||
}
|
||||
console.log(err)
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
onShow() {
|
||||
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
<style lang="scss">
|
||||
.index {
|
||||
padding: 20rpx;
|
||||
|
||||
.mine-nav {
|
||||
padding: 34rpx;
|
||||
padding: 34rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: $uni-theme-white;
|
||||
|
||||
Reference in New Issue
Block a user