名片部分页面。地图定位。国家下拉搜索 回收站
This commit is contained in:
+36
-55
@@ -7,25 +7,9 @@
|
||||
</template>
|
||||
<view class="contents" >
|
||||
<view class="colls" v-for="(item, index) in datalist" :key="index" >
|
||||
<view class="" @click="detileClick(item)">
|
||||
<view class="top">
|
||||
<view class="name">{{item.contacts}}</view>
|
||||
<view class="right">
|
||||
<text class="medal" :style="{color:(item.magnitude == 0 ?'#F5AB00' : item.magnitude == 1 ?'#8495B8': '#9B7200')}">{{item.magnitude_txt}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<u-line margin="20rpx 0px" color="#fff" :hairline="false"></u-line>
|
||||
<view class="cont">
|
||||
<view class="title">
|
||||
<view class=""><text class="name">{{item.phone}}</text></view>
|
||||
<view class="ststus">{{item.grade_txt}}</view>
|
||||
</view>
|
||||
<view class="info"><text class="sex">{{item.sex_txt}}</text> | <text class="addr">{{item.country_name}}</text><text class="type">{{item.car_type_name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="edt">
|
||||
<view class="btn" @click="editFn"><text> {{$t('mine.restore')}}</text></view>
|
||||
<view class="cont">
|
||||
<view class=""><text class="name">{{item.contacts}}</text><text>{{item.phone}}</text></view>
|
||||
<view class="btn" @click="restoreFn(item)"><text> {{$t('mine.restore')}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -51,6 +35,7 @@
|
||||
data: {
|
||||
page:pageNo,
|
||||
per_page:10,
|
||||
recycle:'recycle'
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res.data)
|
||||
@@ -58,15 +43,38 @@
|
||||
var datas = res.data.data.list;
|
||||
this.$refs.paging.complete(datas);
|
||||
}else{
|
||||
// this.$refs.paging.complete(null);
|
||||
// that.listlength=0
|
||||
}
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
},
|
||||
detileClick(item){
|
||||
uni.navigateTo({
|
||||
url: '/pages/mine/recyclebindetil?id='+item.id
|
||||
restoreFn(item){
|
||||
var that=this
|
||||
uni.showModal({
|
||||
title: this.$t('prompt'),
|
||||
content: this.$t('restoremsg'),
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
request({
|
||||
url:'customer/restore',
|
||||
method:'post',
|
||||
data: {
|
||||
id:item.id,
|
||||
}
|
||||
}).then(res => {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
icon: 'none'
|
||||
});
|
||||
if(res.data.code ==0){
|
||||
setTimeout(() => {
|
||||
that.queryList(1, 10)
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
})
|
||||
} else if (res.cancel) {
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -95,39 +103,12 @@
|
||||
margin-right: 10px;
|
||||
}
|
||||
.cont{
|
||||
padding: 0px 15px 10px;
|
||||
font-size: 24rpx;
|
||||
.title{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
color: #222222;
|
||||
}
|
||||
.ststus{
|
||||
color: #666666;
|
||||
}
|
||||
.info,.desc{
|
||||
color: #78758E;
|
||||
line-height: 26px;
|
||||
}
|
||||
.sex{
|
||||
margin-right: 5px;
|
||||
}
|
||||
.addr{
|
||||
margin-left: 5px;
|
||||
}
|
||||
.type{
|
||||
margin-left: 5px;
|
||||
color: #3471FF;
|
||||
}
|
||||
}
|
||||
.edt{
|
||||
padding: 15px 12px;
|
||||
font-size: 28rpx;
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
padding-bottom: 10px;
|
||||
padding-right: 15px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.btn{
|
||||
background: linear-gradient(to right, #3471FF, #6776FF);
|
||||
color: white;
|
||||
|
||||
Reference in New Issue
Block a user