修改小程序bug
This commit is contained in:
@@ -141,7 +141,6 @@
|
||||
getBanner() {
|
||||
this.$apiServe.getBanner().then(res => {
|
||||
let banner = res.data.data
|
||||
console.log('轮播图', res.data);
|
||||
if (banner) {
|
||||
for (const item of banner) {
|
||||
item.img = this.imgUrl + item.img
|
||||
@@ -172,9 +171,7 @@
|
||||
//获取图片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
|
||||
|
||||
Reference in New Issue
Block a user