| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <template>
- <el-row>
- <el-col :md="12">
- <el-card class="box-card">
- <div slot="header" class="clearfix">
- <h3>我的小会员</h3>
- </div>
- <div class="text item">
- <el-row>
- <StampBadge
- style="position: absolute; top: 0; right: 0"
- size="middle"
- color="success"
- content="已支付"
- :rotate="45"
- />
- <el-button
- size="medium"
- type="success"
- @click="handleVip"
- >开通 VIP</el-button>
- </el-row>
- </div>
- </el-card>
- </el-col>
- <el-col>
- <div style="width: 500px; height: 100px; position: relative">
- <StampBadge
- size="small"
- color="warning"
- content="大会员"
- :rotate="0"
- />
- </div>
- </el-col>
- </el-row>
- </template>
- <script>
- import StampBadge from '@/components/StampBadge'
- import { vip } from '@/api/account'
- export default {
- name: 'MyVip',
- components: { StampBadge },
- data() {
- return {
- }
- },
- created() {
- document.title = '我的小会员'
- },
- mounted() {
- },
- methods: {
- handleVip() {
- vip().then(resp => {
- if (resp.code === 0) {
- this.$notify.info({
- message: 'VIP 已开通',
- duration: 3000
- })
- }
- })
- }
- }
- }
- </script>
- <style scoped>
- </style>
|