|
@@ -1,7 +1,37 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
<view class="one">
|
|
|
- 办证须知
|
|
|
+ <u-swiper :list="config.file" height="240px" indicator indicatorMode="line" circular></u-swiper>
|
|
|
+ </view>
|
|
|
+ <view class="two">
|
|
|
+ <view class="value">
|
|
|
+ <view class="title">公司地址</view>
|
|
|
+ <view class="label">{{config.address||'暂无'}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ <view class="title">联系电话</view>
|
|
|
+ <view class="label">{{config.phone||'暂无'}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ <view class="title">邮箱</view>
|
|
|
+ <view class="label">{{config.email||'暂无'}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ <view class="title">工作时间</view>
|
|
|
+ <view class="label">{{config.time||'暂无'}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ <view class="title">办证须知</view>
|
|
|
+ <view class="other">
|
|
|
+ <rich-text :nodes="config.notice"></rich-text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ <view class="title">简介</view>
|
|
|
+ <view class="other">
|
|
|
+ <rich-text :nodes="config.brief"></rich-text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -12,48 +42,41 @@
|
|
|
import { onShow, onPullDownRefresh } from "@dcloudio/uni-app";
|
|
|
// 请求接口
|
|
|
const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
|
|
|
- const $config = getCurrentInstance()?.appContext.config.globalProperties.$config;
|
|
|
// 基本信息
|
|
|
const config = ref({ logo: [], file: [] });
|
|
|
- const list = ref([]);
|
|
|
- const total = ref(0);
|
|
|
- const menuList = ref([]);
|
|
|
onShow(async () => {
|
|
|
await searchConfig();
|
|
|
- await searchOther();
|
|
|
- await search();
|
|
|
})
|
|
|
// config信息
|
|
|
const searchConfig = async () => {
|
|
|
config.value = uni.getStorageSync('config');
|
|
|
};
|
|
|
- // 其他查询信息
|
|
|
- const searchOther = async () => {
|
|
|
-
|
|
|
- };
|
|
|
- // 查询
|
|
|
- const search = async () => {
|
|
|
- const info = {
|
|
|
- skip: 0,
|
|
|
- limit: 2,
|
|
|
- status: '0'
|
|
|
- }
|
|
|
- // const res = await $api('car', 'GET', info);
|
|
|
- // if (res.errcode === 0) {
|
|
|
- // list.value = list.value.concat(res.data)
|
|
|
- // total.value = res.total
|
|
|
- // } else {
|
|
|
- // uni.showToast({
|
|
|
- // title: res.errmsg || '',
|
|
|
- // icon: 'error',
|
|
|
- // });
|
|
|
- // }
|
|
|
- };
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.content {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- background-color: var(--f1Color);
|
|
|
+
|
|
|
+ .two {
|
|
|
+ margin: 2vw;
|
|
|
+
|
|
|
+ .value {
|
|
|
+ padding: 2vw;
|
|
|
+ margin: 2vw 0;
|
|
|
+ border-bottom: 1px solid var(--f5Color);
|
|
|
+
|
|
|
+ .title {
|
|
|
+ font-size: var(--font16Size);
|
|
|
+ font-weight: bold;
|
|
|
+ margin: 2vw 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .label {
|
|
|
+ padding: 1vw;
|
|
|
+ font-size: var(--font12Size);
|
|
|
+ color: var(--f85Color);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|