update api

This commit is contained in:
2020-06-29 17:24:57 +08:00
parent 905022e6e4
commit dce6d3a1b8
19 changed files with 280 additions and 87 deletions

View File

@@ -3,19 +3,20 @@
<view class="history-box">
<view v-for="(item, index) in historyList" :key="index" class="history-item">
<view class="item-title">
<img src="../static/mine/23.png" />
<image src="../static/mine/23.png"></image>
<view>小米店铺</view>
</view>
<!-- <view class="item-image">
<img src="../static/mine/23.png" />
</view> -->
<img src="../static/mine/23.png" class="item-image" />
<image src="../static/mine/23.png" class="item-image"></image>
<view class="item-info">
<view class="info-name">{{ item }}</view>
<img src="../static/mine/22.png" />
<image src="../static/mine/22.png"></image>
</view>
</view>
</view>
<u-empty text="暂无足迹" mode="list" color="#000" margin-top="240" v-if="!historyList.length"></u-empty>
</view>
</template>
@@ -26,8 +27,18 @@ export default {
historyList: [1, 2, 3, 6]
};
},
onLoad() {},
methods: {}
onLoad() {
this.getBrowseList();
},
methods: {
getBrowseList () {
this.$u.api.getBrowseList().then(res => {
if(res.errCode == 0) {
this.historyList = res.data.storeInfo;
}
})
}
}
};
</script>
<style lang="scss" scoped>
@@ -48,7 +59,7 @@ export default {
.item-title {
display: flex;
align-items: center;
> img {
> image {
width: 50rpx;
height: 50rpx;
border-radius: 50%;
@@ -73,7 +84,7 @@ export default {
font-size: 22rpx;
color: rgba(51,51,51,1);
}
> img {
> image {
width: 37rpx;
height: 8rpx;
}