Administrator
2022-05-09 11f43d013771ace3849172796505c51b0f8042ba
保安员模拟考试修改
7 files modified
30 ■■■■■ changed files
pages/clockSignIn/clockSignIn.vue 4 ●●● patch | view | raw | blame | history
pages/exam/examResultPage.vue 2 ●●● patch | view | raw | blame | history
pages/exam/examTextPage.vue 11 ●●●●● patch | view | raw | blame | history
pages/loging/loging.vue 1 ●●●● patch | view | raw | blame | history
store/actions.js 1 ●●●● patch | view | raw | blame | history
store/state.js 7 ●●●●● patch | view | raw | blame | history
vue.config.js 4 ●●●● patch | view | raw | blame | history
pages/clockSignIn/clockSignIn.vue
@@ -93,6 +93,8 @@
                    geocode:'true',
                    success: function (res) {
                        console.log('当前位置:' + res);
                        console.log('当前位置longitude:' + res.longitude);
                        console.log('当前位置latitude:' + res.latitude);
                        //114.921652006005 25.8457176283118
                        // that.jd =  '114.921652006005';
                        // that.wd =  '25.8457176283118';
@@ -167,7 +169,7 @@
            goClock() {
                var that = this;
                uni.request({
                    url: this.$store.state.piAPI + `/attendance/AppSave`,
                    url: this.$store.state.BaopiAPI + `/attendance/AppSave`,
                    method: "POST",
                    data:{
                        number: this.code,
pages/exam/examResultPage.vue
@@ -1,7 +1,7 @@
<template>
    <view class="content">
        <u-navbar height="44" back-icon-color="#fff" title="考试结果" :is-back="false" title-color="#fff"
        <u-navbar height="48" back-icon-color="#fff" title="考试结果" :is-back="false" title-color="#fff"
            :background="{background: '#103289'}">
        </u-navbar>
pages/exam/examTextPage.vue
@@ -20,6 +20,9 @@
    export default {
        data() {
            return {
                // baseUrl: "http://223.82.109.183:2080/api",
                baseUrl: "http://localhost:81",
                baseUrl: this.$store.state.BaopiAPI,
                show: false,
                content: '是否确认交卷',
                questionList: [],
@@ -31,11 +34,11 @@
            var that = this
            // 理论考试
            uni.request({
                url: "http://223.82.109.183:2080/api/simulateExamRecord/beginExam",
                // url: "http://localhost:81/simulateExamRecord/beginExam",
                url: this.baseUrl + "/simulateExamRecord/beginExam",
                method: 'POST',
                data: {
                    idCardNo: this.$store.state.UserData.cardid
                    // idCardNo: this.$store.state.UserData.cardid
                    idCardNo: this.$store.state.UserData.securityId
                },
                success: (res) => {
                    var examObj = res.data.data.simulateExamRecord
@@ -129,7 +132,7 @@
                uni.request({
                    url: "http://223.82.109.183:2080/api/simulateExamRecord/saveSimulateExam",
                    url: this.baseUrl +  "/simulateExamRecord/saveSimulateExam",
                    method: 'POST',
                    data: sendData,
                    success: (res) => {
pages/loging/loging.vue
@@ -89,6 +89,7 @@
                        userName: name,
                        userID: userID
                    }
                    // console.log(data,123)
                    this.$store.commit('getUse', data)
                    // wx.reLaunch({
                    //     url: '/pages/alarm_list/alarm_list?login=' + data.userName
store/actions.js
@@ -58,6 +58,7 @@
                        })
                        return
                    }
                    console.log(res.data,456);
                    store.commit('getUserData', res.data)
                    console.log(res.data, 123542);
                    data.isit = true
store/state.js
@@ -17,12 +17,13 @@
    roleid: '', //角色id
    Jurisdiction: '', //角色辖区
    logPath: '',
    piAPI: apis.api,
    // piAPI: apis.api,
    // piAPI: 'http://223.82.109.183:2082/api/',
    //piAPI: 'http://192.168.0.110:83/',
    piAPI: 'http://192.168.0.114:83/',
    // piAPI: 'http://192.168.0.222:83/',
    //piAPI: 'http://223.82.109.183:2082/api/',
    BaopiAPI: 'http://223.82.109.183:2080/api/',
    // BaopiAPI: 'http://223.82.109.183:2080/api/',
    BaopiAPI: 'http://192.168.0.114:81',
    firstlogin: null,
    puserName: '',
    puserID: '',
vue.config.js
@@ -23,9 +23,9 @@
            '/api': {
                // 本地服务接口地址
                // target: 'http://localhost:81',
                // target: 'http://192.168.0.114:81', //钟日健W
                target: 'http://192.168.0.114:81', //钟日健W
                // target: 'http://192.168.0.107:85', //唐
                target: 'http://192.168.0.108:83',//曾W
                // target: 'http://192.168.0.108:83',//曾W
                // target: 'http://192.168.0.107:81',//唐N
                // target: 'http://223.82.109.183:81', //唐N
                //远程演示服务地址,可用于直接启动项目