Commit 05b68135 by LJM

保存品牌

parent 276575ec
......@@ -112,10 +112,10 @@
}
.layer-box {
padding: 0 24rpx 30rpx 24rpx;
background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 88rpx);
border-radius: 10rpx 10rpx 0px 0px;
.title {
padding: 0 24rpx;
height: 88rpx;
margin-bottom: 13rpx;
.left {
......@@ -131,6 +131,7 @@
}
}
.search {
margin: 0 24rpx;
height: 72rpx;
background: #f5f5f7;
border-radius: 10rpx;
......@@ -145,7 +146,7 @@
}
}
.info {
padding: 16rpx 0 16rpx 24rpx;
padding: 16rpx 24rpx 16rpx 24rpx;
.t1 {
font-size: 22rpx;
color: #484b59;
......@@ -158,6 +159,8 @@
.list {
background: #f5f5f7;
padding: 24rpx;
max-height: 500rpx;
overflow-y: auto;
margin-bottom: 24rpx;
.box {
padding-left: 24rpx;
......@@ -172,6 +175,10 @@
background-size: cover;
}
.tt {
max-width: 80%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
margin-left: 24rpx;
font-size: 24rpx;
color: #484b59;
......
<template>
<view class="page-setting">
<navElement title="账户设置"></navElement>
<view class="list">
<view class="list" v-if="userInfo.user_info">
<navigator class="box row bothSide verCenter" url="/forget" hover-class="none">
<view class="text">
<text class="t1">手机号</text>
<text class="t2">18589050841</text>
<text class="t2">{{ userInfo.user_info.mobile }}</text>
</view>
<view class="right">
<text class="t1">修改密码</text>
<text class="iconfont icon-jt"></text>
</view>
</navigator>
<navigator class="box row bothSide verCenter curr" url="/user/bindMail" hover-class="none">
<view class="text"><text class="t1">邮箱</text></view>
<navigator class="box row bothSide verCenter" url="/user/bindMail" hover-class="none">
<view class="text">
<text class="t1">邮箱</text>
<text class="t2">{{ userInfo.user_info.email }}</text>
</view>
<view class="right">
<text class="t1">绑定</text>
<text class="iconfont icon-jt"></text>
......@@ -44,35 +47,35 @@
<view class="show-info">
<view class="label-box">
<text class="t1">公司名称:</text>
<text class="t2">深圳市猎芯科技有限公司</text>
<text class="t2">{{ userInfo.company_info.com_name }}</text>
</view>
<view class="label-box">
<text class="t1">公司机:</text>
<text class="t2">0755-12345678</text>
<text class="t1">公司机:</text>
<text class="t2">{{ userInfo.company_info.com_telphone }}</text>
</view>
<view class="label-box">
<text class="t1">移动电话:</text>
<text class="t2">13800138000</text>
<text class="t2">{{ userInfo.company_info.com_mobile }}</text>
</view>
<view class="label-box">
<text class="t1">公司类型:</text>
<text class="t2">个人</text>
<text class="t2">{{ userInfo.company_info.type_name }}</text>
</view>
<view class="label-box">
<text class="t1">传真号码:</text>
<text class="t2">0755-12345678</text>
<text class="t2">{{ userInfo.company_info.com_fax }}</text>
</view>
<view class="label-box row">
<text class="t1">公司地址:</text>
<text class="t2">深圳市龙岗区坂田街道岗头社区清湖工业区宝能科技园(南区)一期B区B3栋1101</text>
<text class="t2">{{ userInfo.company_info.province_name }}{{ userInfo.company_info.city_name }}{{ userInfo.company_info.area_name }}{{ userInfo.company_info.com_address }}</text>
</view>
<view class="label-box row">
<text class="t1">主营品牌:</text>
<text class="t2" style="color: #1969F9;">SAMWIN(西安芯派)</text>
<text class="t2" style="color: #1969F9;">--</text>
</view>
<view class="label-box row">
<text class="t1">公司简介:</text>
<text class="t2">深圳市龙岗区坂田街道岗头社区清湖工业区宝能科技园(南区)一期B区B3栋1101</text>
<text class="t2">{{ userInfo.company_info.com_desc }}</text>
</view>
</view>
</view>
......@@ -90,10 +93,25 @@ export default {
navElement
},
data() {
return {};
return {
userInfo: {}
};
},
onShow() {
this.getData();
},
onShow() {},
methods: {
getData() {
this.request(Api_Url + '/user/getUserType', 'POST', {}, true, true).then(res => {
if (res.err_code === 0) {
this.userInfo = res.data;
} else if (res.err_code === 11012) {
uni.navigateTo({
url: '/login'
});
}
});
},
exit() {
uni.showModal({
title: '',
......
......@@ -156,11 +156,20 @@ const startCountdown = (options) => {
};
}
/**
* 来创建指定长度且所有元素都被初始化为 false 的数组
*/
const createArray = (length, value) => {
return Array(length).fill(value);
}
module.exports = {
request,
getPlatform,
setCookie,
getCookie,
delCookie,
startCountdown
startCountdown,
createArray
}
\ No newline at end of file
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 sign in to comment