1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template name="history">
- <view>
- <!-- 其他页面内容 -->
- <Historymodel :showColum="showColum"></Historymodel>
- </view>
- </template>
- <script>
- import Historymodel from "../history/Historymodel.vue";
- import api from "@/api/api";
- export default {
- components: {
- Historymodel,
- },
- name: "history",
- watch: {},
- data() {
- return {
- showColum: {},
- };
- },
- methods: {
- getShowColum() {
- new Promise((resolve, reject) => {
- api
- .getShowColum({})
- .then((response) => {
- if (response.data.code == 200) {
- var showlist = response.data.result;
- this.$store.commit("SET_SHOWCOLUM", showlist);
- this.showColum = showlist;
- } else {
- resolve(response);
- }
- })
- .catch((error) => {
- console.log("catch===>response", response);
- reject(error);
- });
- });
- },
- },
- created() {
- this.getShowColum();
- },
- onLoad() {},
- };
- </script>
- <style scoped>
- .cu-list.grid > .cu-item {
- padding: 0px 0px;
- }
- .line2-icon {
- width: 60px;
- height: 60px;
- }
- .tab-bar {
- display: flex;
- justify-content: space-around;
- padding: 10px;
- background-color: #eee;
- }
- .tab-bar view {
- flex: 1;
- text-align: center;
- padding: 10px;
- border-radius: 5px;
- cursor: pointer;
- }
- .tab-bar view.active {
- background-color: #007bff;
- color: #fff;
- }
- </style>
|