H5-ThreeDoorder/pages/pages-recharge/vipEquity/index.vue

73 lines
1.2 KiB
Vue

<template>
<view class="vip_notice" >
<view class="big-777" > 权益介绍 </view>
<view class="rich-text">
<image :src="file" mode="widthFix"></image>
</view>
</view>
</template>
<script>
import {
getVipInfoAPI,
} from "@/request/recharge/index.js";
export default {
data() {
return {
file:""
};
},
methods: {
//充值说明
getRule() {
console.log("呼呼")
// console.log(,"父组件22")
getVipInfoAPI().then((res) => {
if (res) {
const {
code,
data
} = res
if (code == 200) {
this.file = res?.data?.file
this.$parent.$parent.nickname =res["data"]?. ["nickname"];
this.$parent.$parent.inventory_num =res["data"]?. ["inventory_num"];
}
}
}).catch((error) => {
})
},
},
mounted() {
console.log("呼呼1")
this.getRule()
},
}
</script>
<style lang="scss" scoped>
.vip_notice {
margin-top: 46rpx;
min-height: 200rpx;
.big-777 {
font-size: 24rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #666666;
margin-bottom: 30rpx;
}
}
</style>