oil-station/gasStation-uni/pagesHome/Pointsdetail/Pointsdetail.vue
2023-11-30 18:11:49 +08:00

101 lines
1.6 KiB
Vue

<template>
<view class="content">
<view class="container">
<view class="my-header">
<view class="my-icons" @click="goback"> <uni-icons type="left" size="16"></uni-icons> </view>
<view class="my-text">积分规则</view>
<view class="my-icons"></view>
</view>
<!-- 顶部区域 -->
<view class="centen-siez">
<view v-html="setting.pointsRules"></view>
</view>
</view>
</view>
</template>
<script>
import config from '@/config'
import request from '../../utils/request'
export default {
data() {
return {
title: '',
setting: {},
pointsRules: '',
}
},
components: {
},
async onLoad() {
await this.getSettings();
},
methods: {
// 根据店铺查询积分设置
// business/integral/integralSettings/getSettings
getSettings() {
request({
url: '/business/integral/integralSettings/getByStoreId',
method: 'get',
// params:data
}).then((res) => {
if (res.code == 200) {
this.setting = res.data
}
})
},
goback() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.content {
width: 100%;
background: #f4f5f6;
}
.container {
width: 100%;
height: 100vh;
box-sizing: border-box;
padding-top: 88px;
}
.my-header {
width: 100%;
height: 88px;
background: #ffffff;
display: flex;
align-items: center;
justify-content: space-between;
color: #000;
box-sizing: border-box;
padding: 0px 15px;
padding-top: 40px;
.my-icons {
width: 20px;
}
position: fixed;
top: 0px;
}
.centen-siez {
width: 100%;
margin: 10px auto;
box-sizing: border-box;
padding: 10px;
}
</style>