家具修改

master
tangyi 2022-03-10 14:19:23 +08:00
parent 50d0180714
commit 7948826a2a
8 changed files with 66 additions and 36 deletions

View File

@ -1,7 +1,10 @@
<template> <template>
<view :style="{'height':customBar}" class="head" :class="brF?'br':''"> <view :style="{'height':customBar}" class="head" >
<view :style="{'height':customBar}" class="headCom" :class="brF?'br':''"> <view :style="{'height':customBar}" class="headCom" :class="brF?'br':''">
<image @click="navigateBackFun()" class="imh" v-if="navState" src="../static/fh.png" mode=""></image> <view class="imh" @click="navigateBackFun()" v-if="navState">
<image class="imng" src="../static/fh.png" mode=""></image>
</view>
<view class="textInt"> <view class="textInt">
{{text}} {{text}}
</view> </view>
@ -67,7 +70,9 @@
this.customBar=customBar+100+"rpx" this.customBar=customBar+100+"rpx"
console.log( this.customBar) console.log( this.customBar)
uni.setStorageSync('customBar',customBar+100);
} }
}) })
@ -86,7 +91,6 @@
.head{ .head{
width: 100%; width: 100%;
background-color: #F5F5F5
} }
.headCom{ .headCom{
@ -105,9 +109,15 @@
.imh{ .imh{
width: 30rpx; width: 30rpx;
height: 30rpx; height: 30rpx;
position: absolute;
left: 40rpx;
position: absolute;
left: 10rpx;
padding: 30rpx;
padding-bottom: 0rpx;
}
.imng{
width: 30rpx;
height: 30rpx;
} }
.br{ .br{
background-color: #FFFFFF; background-color: #FFFFFF;

View File

@ -88,7 +88,9 @@
height: 390rpx; height: 390rpx;
border-radius: 25rpx; border-radius: 25rpx;
margin-top: 40rpx; margin-top: 40rpx;
-webkit-backface-visibility: hidden;-webkit-transform: translate3d(0, 0, 0);
overflow: hidden; overflow: hidden;
border: 2rpx solid #DDDDDD;
} }

View File

@ -245,7 +245,7 @@
} }
.classifyCon { .classifyCon {
width: 623rpx; flex: 1;
padding: 0 20rpx; padding: 0 20rpx;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
@ -255,7 +255,6 @@
margin: auto; margin: auto;
overflow-x: auto; overflow-x: auto;
padding-top: 30rpx; padding-top: 30rpx;
width: 100%;
z-index: 3; z-index: 3;
padding-bottom: 30rpx; padding-bottom: 30rpx;
position: absolute; position: absolute;

View File

@ -15,7 +15,7 @@
{{ commodityData.detail.name}} {{ commodityData.detail.name}}
</view> </view>
<view class="dz"> <view class="dz" v-if="item.customized==1">
可定制 可定制
</view> </view>
<view class="money"> <view class="money">
@ -80,7 +80,7 @@
</view> </view>
<view class="subscriptionButton" @click="makePhoneCallFun()"> <view class="subscriptionButton" @click="makePhoneCallFun()">
立即订阅 立即订购
</view> </view>
<view class="make" :class="popupState?'makedis':''"> <view class="make" :class="popupState?'makedis':''">
@ -90,11 +90,12 @@
<view class="popupTitle"> <view class="popupTitle">
<image class="img" @click="previewImg(commodityData.detail.cover)" :src="commodityData.detail.cover" mode="aspectFill"></image> <image class="img" @click="previewImg(commodityData.detail.cover)" :src="commodityData.detail.cover" mode="aspectFill"></image>
<view class="money" v-if="money"> <view class="money" v-if="money">
{{money}} <text ></text> {{money}}
</view> </view>
<view class="money" v-else> <view class="money textmoney" v-else>
暂无报价
</view> </view>
<view class="text"> <view class="text">
点击上方封面可查看大图 点击上方封面可查看大图
</view> </view>
@ -166,7 +167,7 @@
this.commodityData.sku[i].state=false this.commodityData.sku[i].state=false
} }
this.commodityData.sku[index].state =true this.commodityData.sku[index].state =true
this.money=this.commodityData.sku[index].price this.money=this.commodityData.sku[index].price_text
this.commodityData.sku=[...this.commodityData.sku] this.commodityData.sku=[...this.commodityData.sku]
}, },
@ -353,6 +354,7 @@
font-size: 48rpx; font-size: 48rpx;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
line-height: 58rpx;
color: #D33333; color: #D33333;
} }
.popupTitle .text{ .popupTitle .text{
@ -464,4 +466,10 @@
line-height: 28rpx; line-height: 28rpx;
background-color: #D33333; background-color: #D33333;
} }
.popupTitle .textmoney{
font-size: 40rpx;
line-height: 48rpx;
line-height: 58rpx;
}
</style> </style>

View File

@ -67,7 +67,7 @@
width: 200rpx; width: 200rpx;
margin: auto; margin: auto;
height: 200rpx; height: 200rpx;
margin-top: 150rpx; margin-top: 350rpx;
border-radius: 50rpx; border-radius: 50rpx;
box-shadow: 2rpx 2rpx 10rpx rgba(0, 0, 0, 0.5); box-shadow: 2rpx 2rpx 10rpx rgba(0, 0, 0, 0.5);
@ -91,7 +91,7 @@
width: 630rpx; width: 630rpx;
background-color: #1aad19 !important; background-color: #1aad19 !important;
margin: auto; margin: auto;
margin-top: 30vh; margin-top: 10vh;
} }
.text { .text {

View File

@ -21,68 +21,68 @@
</view> </view>
<view class="hint"> <view class="hint">
<view class="text"> <view class="text">
Anita Rose {{userData.nickname}}
</view> </view>
<view class="arrows"> <view class="arrows">
</view> </view>
</view> </view>
</view> </view>
<view class="con"> <view class="con" @click="modification()">
<view class="listName"> <view class="listName">
<view class="text"> <view class="text">
真实姓名 真实姓名
</view> </view>
</view> </view>
<view class="hint" @click="modification()"> <view class="hint">
<view class="text"> <view class="text">
{{userData.real_name}} {{userData.real_name}}
</view> </view>
<image class="arrows" src="../../static/jt.png" mode=""></image> <image class="arrows" src="../../static/jt.png" mode=""></image>
</view> </view>
</view> </view>
<view class="con"> <button class="con hintBUTTON" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
<view class="listName"> <view class="listName">
<view class="text"> <view class="text">
联系电话 联系电话
</view> </view>
</view> </view>
<button class="hint hintBUTTON" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber"> <view class="hint" >
<view class="text"> <view class="text">
{{userData.mobile}} {{userData.mobile}}
</view> </view>
<image class="arrows" src="../../static/jt.png" mode=""></image> <image class="arrows" src="../../static/jt.png" mode=""></image>
</button> </view>
</view> </button>
<view class="con"> <view class="con" @tap="popup_bottom()">
<view class="listName"> <view class="listName">
<view class="text"> <view class="text">
联系地址 联系地址
</view> </view>
</view> </view>
<view class="hint" @tap="popup_bottom()"> <view class="hint" >
<view class="text"> <view class="text">
{{userData.address}} {{userData.address}}
</view> </view>
<image class="arrows" src="../../static/jt.png" mode=""></image> <image class="arrows" src="../../static/jt.png" mode=""></image>
</view> </view>
</view> </view>
<view class="con"> <view class="con" @click="modificationA()">
<view class="listName"> <view class="listName">
<view class="text"> <view class="text">
详细地址 详细地址
</view> </view>
</view> </view>
<view class="hint" @click="modificationA()"> <view class="hint" >
<view class="text"> <view class="text">
{{userData.address_detail}} {{userData.address_detail}}
</view> </view>
<image class="arrows" src="../../static/jt.png" mode=""></image> <image class="arrows" src="../../static/jt.png" mode=""></image>
</view> </view>
</view> </view>
<view class="con"> <view class="con" @click="vipAooly()">
<view class="listName"> <view class="listName">
<view class="text" v-if="!userData.vip_code" > <view class="text" v-if="!userData.vip_code" >
会员码输入 会员码输入
@ -91,7 +91,7 @@
会员码 会员码
</view> </view>
</view> </view>
<view class="hint" v-if="!userData.vip_code" @click="vipAoolyState()"> <view class="hint" v-if="!userData.vip_code" >
<view class="text"> <view class="text">
输入会员码成为会员 输入会员码成为会员
</view> </view>
@ -190,10 +190,15 @@
this.getUserData() this.getUserData()
}, },
methods: { methods: {
vipAoolyState() {
this.memberState = true
},
canceVipState() { canceVipState() {
this.memberStateApply = false this.memberStateApply = false
}, },
SubmitValidation(){ SubmitValidation(){
if(this.invitee_vip_code){ if(this.invitee_vip_code){
this.memberStateApply = false this.memberStateApply = false
this.changeInformation("vip_code",this.invitee_vip_code) this.changeInformation("vip_code",this.invitee_vip_code)
@ -208,7 +213,7 @@
}, },
getPhoneNumber(e) { getPhoneNumber(e) {
console.log()
this.requestToken({ this.requestToken({
url: this.host + "/api/user/bind-phone", url: this.host + "/api/user/bind-phone",
@ -225,6 +230,9 @@
}) })
}, },
vipAooly() { vipAooly() {
if(this.userData.vip_code){
return
}
this.memberStateApply = true this.memberStateApply = true
}, },
changeInformationAddress_detail(){ changeInformationAddress_detail(){
@ -253,7 +261,7 @@
}, },
changeInformation(key, value) { changeInformation(key, value) {
this.makeState = false this.makeState = false
console.log(key, value)
this.requestToken({ this.requestToken({
url: this.host + "/api/user/editInfo", url: this.host + "/api/user/editInfo",
type: "post", type: "post",

View File

@ -8,8 +8,8 @@
<view class="name"> <view class="name">
{{userInfo.nickname}} {{userInfo.nickname}}
</view> </view>
<view class="Id" v-if="userInfo.is_active==1"> <view class="Id" v-if="userInfo.vip_code">
尊贵会员{{userInfo}} 尊贵会员{{userInfo.vip_code}}
</view> </view>
</view> </view>
@ -189,7 +189,7 @@
success: (res) => { success: (res) => {
this.userInfo = res.data.data this.userInfo = res.data.data
console.log(this.userInfo)
} }
}) })

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="content pt"> <view class="content pt">
<page-head text="搜索" navState="true" ></page-head> <page-head text="搜索" navState="true" ></page-head>
<view class="top"> <view class="top" :style="{'top':customBar}">
<view class="int"> <view class="int">
<image class="intImg" src="../../static/ss.png" mode=""></image> <image class="intImg" src="../../static/ss.png" mode=""></image>
<input placeholder="搜索" v-model="inputVal" @input="inputFun()" placeholder-class="InputC" class="input" type="text" value="" /> <input placeholder="搜索" v-model="inputVal" @input="inputFun()" placeholder-class="InputC" class="input" type="text" value="" />
@ -45,6 +45,7 @@
loadStateIf:false, loadStateIf:false,
num:10, num:10,
record:"", record:"",
customBar:"190rpx",
loadState:"more", loadState:"more",
arr: { arr: {
page: 1, page: 1,
@ -52,6 +53,9 @@
} }
} }
}, },
created() {
this.customBar=uni.getStorageSync('customBar')+20+"rpx"
},
onReachBottom() { onReachBottom() {
this.arr.size= this.arr.size+this.num this.arr.size= this.arr.size+this.num
@ -116,8 +120,7 @@
position: fixed; position: fixed;
width: 100%; width: 100%;
left: 0rpx; left: 0rpx;
padding-top: 170rpx; top: 170rpx;
top: 0rpx;
background-color: #f6f6f6; background-color: #f6f6f6;
padding-right: 40rpx; padding-right: 40rpx;
padding-left: 40rpx; padding-left: 40rpx;