Commit 1c6e32bb authored by jiacheng.mao's avatar jiacheng.mao

user_phone调整为大写

parent 43139e1a
......@@ -181,6 +181,7 @@ export default {
if (res.info.user_bp_status === 'APPROVED') {
vm.flag = false
}
window.localStorage.setItem('user_phone', res.info.user_phone)
vm.user_bp_status = res.info.user_bp_status
vm.user_bp_class = res.info.user_bp_class
vm.bp_id = res.info.user_bp_id
......
......@@ -29,7 +29,9 @@
<div class="functions">
<div class="title">资讯动态</div>
<ul>
<li v-for="item in newsList" :key="item.index"><img src="@/assets/homePage/inform.png" alt="">{{ item.new_title }}</li>
<li v-for="item in newsList" :key="item.index"><img src="@/assets/homePage/inform.png" alt="">{{
item.new_title }}
</li>
</ul>
<img src="@/assets/functionCenter/in@2x.png" @click="gotoNews()">
<!-- <function-item
......@@ -48,7 +50,7 @@
</div>
</div>
<div class="guessing">猜你喜欢<span><img src="@/assets/homePage/intrest.png"></span></div>
<div v-for="(list,index) in guessingList" :key="index" class="guessing-wrap" @click="goProductDetail(list)" >
<div v-for="(list,index) in guessingList" :key="index" class="guessing-wrap" @click="goProductDetail(list)">
<list-item :item-height="120">
<item>
<div slot="name" class="item-pic">
......@@ -58,9 +60,13 @@
<div slot="content" class="item-content">
<div class="top">{{ list.product_name }}</div>
<img src="@/assets/homePage/hot.png" class="hot">
<div class="center"><span class="firsts">{{ !list.office_id&&!list.agent_id?"-":(list.office_id?'办事处':'经销商') }}</span> <span class="seconds">{{ !list.office_id&&!list.agent_id?"-":(list.office_id?list.office_name:list.agent_name) }}</span></div>
<div class="center"><span class="firsts">产品型号</span> <span class="seconds">{{ list.product_code }}</span></div>
<div class="center"><span class="firsts">地址</span> <span class="seconds">{{ !list.office_id&&!list.agent_id?( list.province_id_n === list.city_id_n?(list.district_id_n?list.city_id_n + list.district_id_n:list.city_id_n):(list.district_id_n?list.province_id_n + list.city_id_n + list.district_id_n:list.province_id_n + list.city_id_n )):(list.office_id? (list.office_province === list.office_city?(list.office_district?list.office_city + list.office_district:list.office_city ):(list.office_district?list.office_province + list.office_city + list.office_district:list.office_province + list.office_city)):(list.agent_province === list.agent_city?(list.agent_district?list.agent_city + list.agent_district:list.agent_city):(list.agent_district?list.agent_province + list.agent_city + list.agent_district:list.agent_province + list.agent_city))) }}</span></div>
<div class="center"><span class="firsts">{{ !list.office_id&&!list.agent_id?'-':(list.office_id?'办事处':'经销商') }}</span>
<span class="seconds">{{ !list.office_id&&!list.agent_id?'-':(list.office_id?list.office_name:list.agent_name) }}</span>
</div>
<div class="center"><span class="firsts">产品型号</span> <span class="seconds">{{ list.product_code }}</span>
</div>
<div class="center"><span class="firsts">地址</span> <span class="seconds">{{ !list.office_id&&!list.agent_id?( list.province_id_n === list.city_id_n?(list.district_id_n?list.city_id_n + list.district_id_n:list.city_id_n):(list.district_id_n?list.province_id_n + list.city_id_n + list.district_id_n:list.province_id_n + list.city_id_n )):(list.office_id? (list.office_province === list.office_city?(list.office_district?list.office_city + list.office_district:list.office_city ):(list.office_district?list.office_province + list.office_city + list.office_district:list.office_province + list.office_city)):(list.agent_province === list.agent_city?(list.agent_district?list.agent_city + list.agent_district:list.agent_city):(list.agent_district?list.agent_province + list.agent_city + list.agent_district:list.agent_province + list.agent_city))) }}</span>
</div>
</div>
</item>
</list-item>
......@@ -72,6 +78,7 @@
<script>
import functionState from './functionState'
import noImg from '../../assets/productQuery/none.png'
export default {
name: 'HomePage',
data () {
......@@ -132,7 +139,7 @@ export default {
console.log('&&&&&&&&&&&&___ios')
// if (!$config.isMobilePlatform) {
// }
/*baidumap_location.getCurrentPosition(function (result) {
baidumap_location.getCurrentPosition(function (result) {
if (window.localStorage.getItem('province')) {
vm.city = window.localStorage.getItem('city')
vm.province = window.localStorage.getItem('province')
......@@ -143,8 +150,7 @@ export default {
vm.guessingQuery(result.city)
}
}, function (error) {
})*/
// }
})
// setTimeout(vm.guessingQuery(), 0)
},
goFunctionHome (data) {
......@@ -210,6 +216,7 @@ export default {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
window.localStorage.setItem('bp_type', res.info.user_bp_type)
window.localStorage.setItem('user_phone', res.info.user_phone)
vm.user_bp_status = res.info.user_bp_status
vm.user_bp_class = res.info.user_bp_class
vm.bp_id = res.info.user_bp_id
......@@ -271,9 +278,10 @@ export default {
@import "../../styles/vue-1px";
#homePage {
.content{
.content {
background-color: #EFEFEF;
}
.top-wrap {
width: 100%;
height: 100px;
......@@ -311,9 +319,11 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
img {
height: 15px;
}
.title {
flex-grow: 0;
flex-basis: 70px;
......@@ -322,11 +332,13 @@ export default {
font-weight: 600;
line-height: 30px;
text-align: center;
border-right: 1px solid#F1F0F5;
border-right: 1px solid #F1F0F5;
}
ul {
flex-grow: 2;
flex-basis: 2;
li {
height: 30px;
line-height: 30px;
......@@ -334,6 +346,7 @@ export default {
text-align: left;
text-indent: 15px;
font-size: 14px;
img {
vertical-align: middle;
margin-right: 15px;
......@@ -356,10 +369,12 @@ export default {
flex-direction: column;
justify-content: space-around;
align-items: center;
img{
margin: 0;
img {
margin: 0;
}
div{
div {
margin-bottom: 14px;
ont-family: PingFangSC-Regular;
font-size: 13px;
......@@ -381,19 +396,23 @@ export default {
.hls-swipe {
width: 100vw;
img {
width: 100vw;
// height: 100%;
}
.hls-swipe-indicators{
.hls-swipe-indicators {
left: 54%;
bottom: 20px;
.hls-swipe-indicators-item{
.hls-swipe-indicators-item {
width: 10px;
height: 2px;
border-radius: 0;
}
.hls-swipe-indicators-item--active{
.hls-swipe-indicators-item--active {
background-color: #FFF;
}
}
......@@ -405,6 +424,7 @@ export default {
display: flex;
flex-direction: row;
padding: 0 1% 0 1%;
.left-pic {
width: 41.6%;
margin-left: 4px;
......@@ -443,35 +463,43 @@ export default {
letter-spacing: 0.57px;
height: 40px;
padding-left: 2%;
span{
padding-top: 2px;
margin-left: 4px;
span {
padding-top: 2px;
margin-left: 4px;
}
img{
img {
width: 14px;
height: 14px;
}
}
.guessing-wrap{
.guessing-wrap {
position: relative;
width: 96%;
margin: 0 auto;
.hls-list-item{
.hls-list-item {
border-radius: 10px;
.contents{
.contents {
padding: 8px 6px 8px 0;
.add-content{
.add-content {
justify-content: flex-start;
}
}
}
}
.item-pic {
width: 110px;
height: 110px;
display: flex;
justify-content: center;
align-items: center;
img {
width: 100%;
// height: 100%;
......@@ -487,20 +515,23 @@ export default {
margin-top: 10px;
font-weight: 600;
}
.hot {
position: absolute;
top: 0;
right: 0;
width: 45px;
}
.center {
margin-top: 6px;
display: flex;
.firsts {
width: 76px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56,63,69,0.60);
color: rgba(56, 63, 69, 0.60);
letter-spacing: 0.5px;
}
......
This diff is collapsed.
......@@ -237,6 +237,7 @@ export default {
if (res.info.user_bp_status === 'APPROVED') {
vm.flag = false
}
window.localStorage.setItem('user_phone', res.info.user_phone)
vm.user_bp_status = res.info.user_bp_status
vm.user_bp_class = res.info.user_bp_class
vm.bp_id = res.info.user_bp_id
......@@ -287,10 +288,10 @@ export default {
if (res.result === 'S') {
if (res.info) {
vm.upLoadObj = process.env.filePath +
'attachment_id=' +
res.info.attachment_id +
'&access_token=' +
window.localStorage.access_token
'attachment_id=' +
res.info.attachment_id +
'&access_token=' +
window.localStorage.access_token
} else {
vm.upLoadObj = defaultImg
}
......@@ -315,7 +316,7 @@ export default {
this.popSetect = false
} else if (
(this.bp_id && this.user_bp_status === 'RETURN') ||
(this.bp_id && this.user_bp_status === 'REJECT')
(this.bp_id && this.user_bp_status === 'REJECT')
) {
this.description = '审核未通过'
this.approveBtn = false
......@@ -543,26 +544,26 @@ export default {
</script>
<style lang="less">
#setting{
.content{
margin-top:0 ;
}
.updateSign {
background: red;
color: white;
padding: 0 4px;
border-radius: 3px;
font-size: 8px;
height: 18px;
display: flex;
align-items: center;
}
.arrow_right {
display: flex;
align-items: center;
img {
height: 20px;
}
}
#setting{
.content{
margin-top:0 ;
}
.updateSign {
background: red;
color: white;
padding: 0 4px;
border-radius: 3px;
font-size: 8px;
height: 18px;
display: flex;
align-items: center;
}
.arrow_right {
display: flex;
align-items: center;
img {
height: 20px;
}
}
}
</style>
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