tangzy
2022-02-24 8f7b295fe5af5e602a1fc985ef46f5821a666d71
电子保安员证
3 files modified
45 ■■■■ changed files
pages.json 10 ●●●●● patch | view | raw | blame | history
pages/business/business.vue 32 ●●●● patch | view | raw | blame | history
store/state.js 3 ●●●● patch | view | raw | blame | history
pages.json
@@ -535,6 +535,16 @@
               "navigationBarTextStyle": "white"
            }
            
        },
        {
            "path" : "pages/voting/information",
            "style" :
            {
                "navigationBarTitleText": "电子证件",
                "navigationBarBackgroundColor": "#103289",
                "navigationBarTextStyle": "white"
            }
        }
    ],
    "globalStyle": { //将组件安装在项目的components目录下,并符合components/组件名称/组件名称.vue目录结构。可以不用引用、注册,直接在页面中使用。
pages/business/business.vue
@@ -89,14 +89,16 @@
        },
        onLoad() {
            
        },mounted(){
        },
        mounted() {
            if(this.$store.state.UserData.stype != "1"){
                this.$refs.uToast.show({
                    title: '功能暂未开放',
                    type: 'warning',
                });
            }
        },methods: {
        },
        methods: {
            //页面跳转
            goOnePage(url,index){
                if(this.$store.state.UserData.stype != "1"){
@@ -105,17 +107,38 @@
                        type: 'warning',
                    });
                    return;
                }else if(index == "0" || index == "3" || index == "4" || index == "5"){
                } else if (index == "0" || index == "3" || index == "4") {
                    this.$refs.uToast.show({
                        title: '功能研发中',
                        type: 'warning',
                    });
                    return;
                } else if (index == 5) {
                    this.getUser();
                }else{
                    uni.navigateTo({
                        url:url
                    })
                }
            },
            //获取用户信息
            getUser() {
                var that = this;
                uni.request({
                    url: that.$store.state.BaopiAPI + '/blade-user/detail',
                    method: 'GET',
                    data: {
                        cardid: that.$store.state.UserData.cardid,
                        isDeleted:0,
                        status : 1,
                    },
                    success: (res) => {
                        var urls="http://223.82.109.183:2080/securityInfo.html?securityNumber="+res.data.data.securitynumber;
                        uni.navigateTo({
                            url: '../voting/information?url=' + urls
                        });
                    }
                });
            },
            goTwoPage(url,index){
                if(this.$store.state.UserData.stype != "1"){
@@ -247,8 +270,7 @@
            color: #000000;
            &::before {
                content
                : "";
                content: "";
                display: block;
                width: 5rpx;
                height: 36rpx;
store/state.js
@@ -9,7 +9,8 @@
    logPath: '',
    piAPI: apis.api,
    // piAPI: 'http://223.82.109.183:2082/api/',
    // piAPI: 'http://192.168.0.108:83/',
     piAPI: 'http://192.168.0.110:83/',
     BaopiAPI: 'http://223.82.109.183:2080/api/',
    puserName: '',
    puserID: '',
    puserIphone: '',