Commit 00fc81ed authored by leiqingsong's avatar leiqingsong

Merge branch 'master' of http://111.203.232.171:8888/Song/xitiansenmall into dev_lqs

parents f4e958f3 c774d244
export function getUserId() { export function getUserId() {
<<<<<<< HEAD
let userInfo = localStorage.getItem('user')
if(userInfo){
return JSON.parse(userInfo).userId || '';
}else{
return ''
}
=======
if (localStorage.getItem("user")) { if (localStorage.getItem("user")) {
return JSON.parse(localStorage.getItem('user')).userId; return JSON.parse(localStorage.getItem('user')).userId;
} else { } else {
return ""; return "";
} }
>>>>>>> fda7ecc8c9d2dc436d2ae853fbd549faf9b8cb85
} }
\ No newline at end of file
...@@ -3,19 +3,19 @@ ...@@ -3,19 +3,19 @@
<div class="content"> <div class="content">
<img class="balance-img" src="@/assets/images/余额.png" alt /> <img class="balance-img" src="@/assets/images/余额.png" alt />
<p <p
style="position:absolute;top:136px;width:100%;font-size:18px;color:#333333" class="currentprofitlabel"
> >
当月收益 当月收益
</p> </p>
<div <div
style="position:absolute;top:178px;width:100%" class="currentprofit"
@click="jumpToIncomeDetail" @click="jumpToIncomeDetail"
> >
<span class="month-income">{{ walletInfo.moneyIncome }}</span> <span class="month-income">{{ walletInfo.moneyIncome }}</span>
<img <img
src="@/assets/images/右箭头.png" src="@/assets/images/右箭头.png"
alt alt
style="width:11px;height:18px" class="month-income-arrow"
/> />
</div> </div>
<div class="bottom-box"> <div class="bottom-box">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<img <img
src="@/assets/images/右箭头.png" src="@/assets/images/右箭头.png"
alt alt
style="width:8px;height:15px" class="arrow"
/> />
</div> </div>
</div> </div>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<img <img
src="@/assets/images/右箭头.png" src="@/assets/images/右箭头.png"
alt alt
style="width:8px;height:15px" class="arrow"
/> />
</div> </div>
</div> </div>
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
<script> <script>
import { getMoneyPackage } from "@/api/wallet"; import { getMoneyPackage } from "@/api/wallet";
export default { export default {
name: "Wallet", name: "Wallet",
data() { data() {
...@@ -114,17 +113,31 @@ export default { ...@@ -114,17 +113,31 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.wallet { .wallet {
box-sizing: border-box; box-sizing: border-box;
height: 100vh; height: calc(100vh - 48px);
padding: 10px 16px; overflow: hidden;
padding:15px;
box-sizing: border-box;
p { p {
margin: 0; margin: 0;
} }
.content { .content {
position: relative; position: relative;
width: 345px; width: 345px;
height: 90%; height: 100%;
text-align: center; text-align: center;
background-color: #ffffff; background-color: #ffffff;
.currentprofitlabel{
position:absolute;
top:136px;
width:100%;
font-size:18px;
color:#333333
}
.currentprofit{
position: absolute;
width: 100%;
top: 178px;
}
.balance-img { .balance-img {
position: absolute; position: absolute;
top: 72px; top: 72px;
...@@ -138,6 +151,10 @@ export default { ...@@ -138,6 +151,10 @@ export default {
font-size: 28px; font-size: 28px;
color: #333333; color: #333333;
} }
.month-income-arrow{
width: 11px;
height: 18px;
}
.bottom-box { .bottom-box {
position: absolute; position: absolute;
...@@ -151,6 +168,10 @@ export default { ...@@ -151,6 +168,10 @@ export default {
img { img {
width: 30px; width: 30px;
height: 29px; height: 29px;
&.arrow{
width: 12px;
height: 18px;
}
} }
.income-item { .income-item {
display: flex; display: flex;
......
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
<div class="modefy-avatar"> <div class="modefy-avatar">
<img class="avatar" :src="avatar" alt /> <img class="avatar" :src="avatar" alt />
<div class="btn"> <div class="btn">
<van-button type="primary" plain style="height:44px" @click="checkBtn"
>确定</van-button
>
<van-uploader <van-uploader
:max-count="1" :max-count="1"
:before-delete="onDeleteAvatar" :before-delete="onDeleteAvatar"
...@@ -12,6 +9,9 @@ ...@@ -12,6 +9,9 @@
> >
<van-button type="primary">上传新头像</van-button> <van-button type="primary">上传新头像</van-button>
</van-uploader> </van-uploader>
<van-button type="primary" plain @click="checkBtn"
>确定</van-button
>
</div> </div>
</div> </div>
</template> </template>
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
.modefy-avatar { .modefy-avatar {
box-sizing: border-box; box-sizing: border-box;
text-align: center; text-align: center;
padding-top: 115px; padding-top: 25px;
} }
.avatar { .avatar {
width: 345px; width: 345px;
...@@ -92,6 +92,9 @@ export default { ...@@ -92,6 +92,9 @@ export default {
margin-bottom: 52px; margin-bottom: 52px;
border-radius: 4px; border-radius: 4px;
} }
.van-uploader{
font-size: 0;
}
.btn { .btn {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment