修改小程序bug

This commit is contained in:
邓洁
2023-02-27 00:46:01 +08:00
parent b0d3372b7c
commit fd3b8347a4
8 changed files with 45 additions and 18 deletions

View File

@@ -141,7 +141,7 @@
getBanner() {
this.$apiServe.getBanner().then(res => {
let banner = res.data.data
console.log('轮播图', banner);
console.log('轮播图', res.data);
if (banner) {
for (const item of banner) {
item.img = this.imgUrl + item.img
@@ -172,6 +172,9 @@
//获取图片url
getImgUrl() {
this.$apiServe.getImgUrl().then(res => {
console.log('图片url', res.data);
res.data.data.img_url = res.data.data.img_url + '/'
console.log('res.data.data.img_url', res.data.data.img_url);
try {
uni.setStorageSync('img_url', res.data.data.img_url);
this.initStart = true