Commit 05b68135 by LJM

保存品牌

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