落日与鲸
2025-02-24 78867c5b9ad89b5478fa404815df0c6608e90ee4
对接口
5个文件已修改
54 ■■■■■ 已修改文件
H5/pages/components/certificate/certificate.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/pages/components/certificate/service.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/pages/index/index.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/pages/location/location.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/utils/request.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/pages/components/certificate/certificate.vue
@@ -13,9 +13,9 @@
                                <text>所在党组织:</text>
                            </view>
                            <view class="flex flex-column a-end lh-48">
                                <text>李雷</text>
                                <text>500000000000000000</text>
                                <text>成都市锦江区XXXXX部门</text>
                                <text>{{info.name}}</text>
                                <text>{{info.idCard}}</text>
                                <text>{{info.partyOrganization}}</text>
                            </view>
                        </view>
@@ -25,7 +25,7 @@
                        <view class="btn_left" @click="onclose">
                            关闭
                        </view>
                        <view class="btn_right">
                        <view class="btn_right" @click="onclose">
                            编辑
                        </view>
                    </view>
@@ -37,22 +37,31 @@
</template>
<script>
    import {
        getInfo
    } from './service.js'
    export default {
        props: {
            show: Boolean
        },
        data() {
            return {
info:{},
            };
        },
        methods: {
            open() {
                getInfo().then(resp => {
                    console.log(resp, '党员信息');
                    if(resp.code==200){
                        this.info =resp.data
                    }
                })
            },
            onclose() {
                this.$emit('onCancel',false)
                this.$emit('onCancel', false)
            },
        },
        created() {},
H5/pages/components/certificate/service.js
@@ -1,8 +1,6 @@
import request from '@/utils/request.js'
export const getBanner =(params)=>{
    return request.get(`/api/huacheng-sangeshenbian/applet/home/banner-list`,params)
export const getInfo =(params)=>{
    return request.get(`/api/huacheng-sangeshenbian/applet/home/party-card-info`,params)
export const getMessagelist =(params)=>{
    return request.post(`/api/huacheng-sangeshenbian/applet/home/message`,params)
}
H5/pages/index/index.vue
@@ -115,15 +115,26 @@
                list1: [],
                showData: false,
                isClick: false,
                pageNum:1,
            }
        },
        onLoad() {
this.getBanner()
            this.getBanner()
            this.getMessagelist()
        },
        methods: {
            getBanner(){
                getBanner().then(resp=>{
                    console.log(resp,'获取banner');
            getBanner() {
                getBanner().then(resp => {
                    console.log(resp, '获取banner');
                })
            },
            getMessagelist() {
                const data = {
                    pageNum: this.pageNum,
                    pageSize: 10
                }
                getMessagelist(data).then(resp => {
                    console.log(resp, '获取消息列表');
                })
            },
            change() {
H5/pages/location/location.vue
@@ -5,7 +5,7 @@
                <image src="/static/location/back.png" class="w-19 h-35" mode=""></image>
            </view>
        </u-navbar>
    <web-view src="https://api.map.baidu.com/api?v=3.0&ak=W3x8DhCWKc2UFIwYgclpRBdL6BeGLLQt"></wwb-view>
    <!-- <web-view src="https://api.map.baidu.com/api?v=3.0&ak=W3x8DhCWKc2UFIwYgclpRBdL6BeGLLQt"></wwb-view> -->
        <view class="">
            <view class="searchMain mb-35">
H5/utils/request.js
@@ -19,7 +19,7 @@
    return new Promise(function(resolve, reject) {
        let token = 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOjE2MTc3LCJ0eXBlIjoxLCJleHAiOjE3NDE2NjExMDYsImNyZWF0ZWQiOjE3NDAzNjUxMDY1MTh9.XRkMgKjEhRo6_BQK5fEVQ_Pv5bM-xeT36s4ju4Oh1F7ZmkIQOJUrdDnefub13JO6rZs3GT6dKnHZgCSyyQpsjg'
        let token = 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOjE2MTc3LCJ0eXBlIjoxLCJleHAiOjE3NDE2NjExMDYsImNyZWF0ZWQiOjE3NDAzNjUxMDY1MTh9.XRkMgKjEhRo6_BQK5fEVQ_Pv5bM-xeT36s4ju4Oh1F7ZmkIQOJUrdDnefub13JO6rZs3GT6dKnHZgCSyyQpsjg'
        let header = {
            'content-type': type ? 'application/x-www-form-urlencoded;charset=UTF-8' : 'application/json',
            'Authorization': token,