liangjin
2021-04-23 e582d72465583b0ec3d9d3efe7fbbb9946c8980a
和微分改造
5 files modified
20 ■■■■■ changed files
src/store/index.js 10 ●●●● patch | view | raw | blame | history
src/views/main/approve.vue 2 ●●●●● patch | view | raw | blame | history
src/views/main/product.vue 2 ●●● patch | view | raw | blame | history
src/views/user/loginByWx.vue 2 ●●● patch | view | raw | blame | history
webpack.common.js 4 ●●●● patch | view | raw | blame | history
src/store/index.js
@@ -294,15 +294,7 @@
                console.log(userPage)
                if (orgType == 1 || orgType == 3 || orgType == 2) {
                    footernav.unshift({
                        powerId: 100006,
                        icon: 'iconchanpin_h',
                        Aicon: 'iconchanpin',
                        label: '首页',
                        path: '/main/product'
                    })
                }
                footernav.push({
                    powerId: 200000,
                    icon: 'iconguanli_h',
src/views/main/approve.vue
@@ -7,6 +7,8 @@
 -->
<template>
    <div class="approve-box">
        <v-navbar title="审批" fixed >
        </v-navbar>
        <div class="fixed-top">
            <nav class="nav text-center-g flex-center-g" :style="{background:$store.state.lastColor}">
                <div class="child flex-start-g">
src/views/main/product.vue
@@ -101,7 +101,7 @@
            alert("codeId:"+codeId);
            if(codeId == undefined) {
                var strUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + "wx594ab33e0466eccf" +
                    "&redirect_uri=" + "https%3a%2f%2fsie.jycash.cn%2fsib_wx_scored%2f%23%2f" + "&response_type=code&scope=snsapi_userinfo" + "#wechat_redirect";
                    "&redirect_uri=" + "https%3a%2f%2fsie.jycash.cn%2fsib_wx_scoree%2f%23%2f" + "&response_type=code&scope=snsapi_userinfo" + "#wechat_redirect";
                window.location.href = strUrl;
            }else if(openId ==  undefined){
                this.$api.getWeChatUserInfo({"code":codeId}).then(
src/views/user/loginByWx.vue
@@ -96,7 +96,7 @@
        console.log(111);
        let url = location.host;
        // url = "t.finlean.com";
        var str = encodeURIComponent(`https://${url}/sib_wx_scored/#/loginByWx`);
        var str = encodeURIComponent(`https://${url}/sib_wx_scoree/#/loginByWx`);
        var fn = new GoWeChat("wx594ab33e0466eccf", str);
        fn.gocontract();
      } else {
webpack.common.js
@@ -15,7 +15,7 @@
let env = process.env.NODE_ENV;
//打包地址
let srcUrl = '/sib_wx_scored/'
let srcUrl = '/sib_wx_scoree/'
module.exports = {
    entry: {
        index: "./src/index.js",
@@ -23,7 +23,7 @@
    output: {
        filename: 'js/[name].js',
        path: path.resolve(__dirname, 'dist'),
        publicPath: env ? '/sib_wx_scored/' : '/' //根据线上项目路径更改 /projectpath
        publicPath: env ? '/sib_wx_scoree/' : '/' //根据线上项目路径更改 /projectpath
    },
    /**防止将某些 import 的包(package)打包到 bundle 中,而是在运行时(runtime)再去从外部获取这些扩展依赖,
     * 简而言之:就是使用cdn~不打包这些变量引用的文件,生成环境时需要在index.html中手动引入cdn