oil-station/gasStation-uni/pagesHome/Pointsdetail/Pointsdetail.vue

101 lines
1.6 KiB
Vue
Raw Normal View History

2023-11-27 09:24:16 +08:00
<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">
2023-11-30 18:11:49 +08:00
<view v-html="setting.pointsRules"></view>
</view>
2023-11-27 09:24:16 +08:00
</view>
</view>
</template>
<script>
2023-11-30 09:06:08 +08:00
import config from '@/config'
import request from '../../utils/request'
2023-11-27 09:24:16 +08:00
export default {
data() {
return {
title: '',
2023-11-30 18:11:49 +08:00
setting: {},
pointsRules: '',
2023-11-27 09:24:16 +08:00
}
},
components: {
2023-11-30 09:06:08 +08:00
},
2023-11-30 18:11:49 +08:00
async onLoad() {
await this.getSettings();
2023-11-27 09:24:16 +08:00
},
methods: {
2023-11-30 18:11:49 +08:00
2023-11-28 18:10:16 +08:00
// 根据店铺查询积分设置
// business/integral/integralSettings/getSettings
getSettings() {
request({
url: '/business/integral/integralSettings/getByStoreId',
method: 'get',
2023-11-30 09:06:08 +08:00
// params:data
2023-11-30 18:11:49 +08:00
}).then((res) => {
if (res.code == 200) {
2023-11-30 09:06:08 +08:00
this.setting = res.data
2023-11-28 18:10:16 +08:00
}
})
},
2023-11-27 09:24:16 +08:00
goback() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.content {
2023-11-30 18:11:49 +08:00
width: 100%;
2023-11-27 09:24:16 +08:00
background: #f4f5f6;
}
2023-11-30 18:11:49 +08:00
2023-11-27 09:24:16 +08:00
.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>