Commit aa7013a1 authored by 高宇's avatar 高宇

会员码只差对二维码的接口

parent 2f4190ce
...@@ -34,18 +34,27 @@ ...@@ -34,18 +34,27 @@
}, },
methods:{ methods:{
getList(){ getList(){
const that = this
const baseApi = this.baseApi const baseApi = this.baseApi
this.$u.get('/mobile/memberBenefits/queryMemberBenefits').then(res => { uni.getStorage({
let list = res key: 'business',
for(const index in list) { success:function(Lres){
console.log('index',index) console.log('商圈信息',Lres.data)
const item = list[index] const text = Lres.data.id
item.image = baseApi + '/file/getImgStream?idFile=' + item.membershipCard that.$u.get('/mobile/memberBenefits/queryMemberBenefits?tenantId='+ text).then(res => {
item.rankCard = baseApi + '/file/getImgStream?idFile=' + item.rankCard let list = res
} for(const index in list) {
this.list2 = list console.log('index',index)
this.src = this.list2[0].rankCard const item = list[index]
item.image = baseApi + '/file/getImgStream?idFile=' + item.membershipCard
item.rankCard = baseApi + '/file/getImgStream?idFile=' + item.rankCard
}
that.list2 = list
that.src = that.list2[0].rankCard
})
}
}) })
}, },
handleChange(e){ handleChange(e){
console.log('e',e) console.log('e',e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment