6.24
This commit is contained in:
@@ -58,13 +58,13 @@ export default {
|
||||
this.getAreaData();
|
||||
},
|
||||
created() {
|
||||
// console.log(this.info);
|
||||
console.log(typeof this.info);
|
||||
this.initAddressInfo();
|
||||
},
|
||||
methods: {
|
||||
// 判断是不是编辑页面 数据初始化
|
||||
initAddressInfo() {
|
||||
if(JSON.stringify(this.info) != '{}') {
|
||||
if(this.info) {
|
||||
[this.name, this.phone, this.address, this.area, this.area_id, this.city_id] = [
|
||||
this.info.address_realname,
|
||||
this.info.address_mob_phone,
|
||||
@@ -78,7 +78,7 @@ export default {
|
||||
},
|
||||
// 判断是不是编辑页面 调用接口
|
||||
confirmBtn() {
|
||||
JSON.stringify(this.info) != '{}' ? this.editAddress() : this.addAddress();
|
||||
this.info ? this.editAddress() : this.addAddress();
|
||||
},
|
||||
// 验证
|
||||
validateValue() {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view class="article-list">
|
||||
<u-empty text="数据为空" mode="data" color="#000000" img-width="240" margin-top="300" v-if="!articleList.length"></u-empty>
|
||||
<view v-for="(item, index) in articleList" :key="index" class="list-item" @click="toDetailsPage(item)">
|
||||
<view>{{ item.help_title }}</view>
|
||||
<image src="@/pageE/static/mine/21.png"></image>
|
||||
@@ -20,7 +21,6 @@ export default {
|
||||
type: 'navigateTo',
|
||||
url: '/pageE/mine/ArticleDetails',
|
||||
params: {
|
||||
title: item.help_title,
|
||||
id: item.help_id
|
||||
}
|
||||
})
|
||||
@@ -32,6 +32,7 @@ export default {
|
||||
.article-list {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background-color: #ECECEC;
|
||||
overflow: hidden;
|
||||
.list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view class="collection-item">
|
||||
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="300"></u-empty>
|
||||
<u-swipe-action
|
||||
v-for="(item, index) in list" :key="index"
|
||||
:index='index'
|
||||
@@ -43,7 +44,6 @@ export default {
|
||||
show: false,
|
||||
}
|
||||
],
|
||||
btnWidth: 152,
|
||||
show: false,
|
||||
options: [
|
||||
{
|
||||
@@ -55,7 +55,18 @@ export default {
|
||||
]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getGoodsFavoritesList();
|
||||
},
|
||||
methods: {
|
||||
getGoodsFavoritesList() {
|
||||
this.$u.api.getGoodsFavoritesList().then(res => {
|
||||
if(res.errCode == 0) {
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
click(index) {
|
||||
this.list.splice(index, 1);
|
||||
this.$u.toast(`删除了第${index+1}个cell`);
|
||||
|
||||
Reference in New Issue
Block a user