优惠shopId

This commit is contained in:
魏啾
2024-05-30 11:00:49 +08:00
parent 086f203d70
commit 5ce56b7030
2 changed files with 17 additions and 18 deletions

View File

@@ -385,7 +385,7 @@
this.seighT = data.windowHeight;
this.$u.getRect('.fourcontent').then(res => {
console.log(res.top)
this.Topdistance = res.top - res.height //滚动距离
this.Topdistance = res.top - res.height - 20 //滚动距离
})
}
})

View File

@@ -22,22 +22,24 @@
<script>
import card from './components/card.vue'
export default {
components:{card},
components: {
card
},
data() {
return {
inputshow: 0,
memberlist: {},
listdata: [],
amount: '',
shopUser: {},
userInfo: {}
userInfo: {},
shopId: ''
}
},
onLoad(e) {
console.log(e,'调试2')
if (e.type == 'list') {//从列表进来的
console.log(e, '调试2')
this.shopId = e.shopId
if (e.type == 'list') { //从列表进来的
this.paygetShopByMember(e.shopId)
}else{
} else {
this.paygetShopByMember(e.shopId)
}
this.paygetActive(e.shopId) //列表
@@ -54,7 +56,7 @@
},
async paygetActive(shopid) {
let res = await this.api.paygetActive({
shopId:shopid,
shopId: shopid,
page: 1,
pageSize: 10
})
@@ -74,7 +76,7 @@
return false;
}
let res = await this.api.paymemeberIn({
shopId: uni.cache.get('shopUser'), // 判断显示哪家的作品,
shopId: this.shopId, // 判断显示哪家的作品,
amount: this.amount // 判断显示哪家的作品,
})
if (res) {
@@ -113,11 +115,6 @@
this.inputshow = b
this.amount = a.minNum
},
eeInfo(e) {
uni.pro.navigateTo('my/member/memberinfo', {
id: e,
})
},
}
}
</script>
@@ -209,7 +206,8 @@
font-weight: 400;
color: #422A07;
}
.towcontentitevip{
.towcontentitevip {
position: absolute;
right: 0;
top: 0;
@@ -221,10 +219,11 @@
text-align: center;
line-height: 40rpx;
color: #fff;
font-family:Source Han Sans CN-Medium;
font-family: Source Han Sans CN-Medium;
font-weight: Medium;
}
.towcontentitemthere {
margin-left: 92rpx;
font-family: Source Han Sans CN, Source Han Sans CN;