MrShi
8 天以前 3845c70bd7ce578b65522ad020a8dc524316b4d4
优化
已添加1个文件
已修改8个文件
已重命名1个文件
50 ■■■■■ 文件已修改
admin/.env.development 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/package-lock.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/public/template/cases.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
mini-program/App.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mini-program/main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
mini-program/manifest.json 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mini-program/pages/details/details.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
mini-program/pages/index/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
mini-program/unpackage/dist/build/.automator/h5/.automator.json 补丁 | 查看 | 原始文档 | blame | 历史
mini-program/utils/http.interceptor.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/.env.development
@@ -1,3 +1,3 @@
# 开发环境配置
NODE_ENV = 'development'
VUE_APP_API_URL = 'http://localhost:11010'
VUE_APP_API_URL = 'http://192.168.0.7/dianjiang_admin_api/'
admin/package-lock.json
@@ -1,5 +1,5 @@
{
  "name": "jinkuai",
  "name": "zbom_dianjiang",
  "version": "1.0.0",
  "lockfileVersion": 1,
  "requires": true,
admin/public/template/cases.xlsx
Binary files differ
mini-program/App.vue
@@ -2,24 +2,30 @@
    export default {
        onLaunch: function() {
            var that = this
            console.log('App Launch')
            console.log(this.$dd)
            console.log(this.$dd.env.platform)
            if (this.$dd.env.platform !== 'notInDingTalk') {
                let href = window.location.href;
            if (this.$dd.env.platform !== 'notInDingTalk') {
                let corpId = href.substring(href.lastIndexOf('?corpid=') + 8, href.length)
                this.$dd.requestAuthCode({
                    corpId: 'dingulzemj5bynjciapg',
                    clientId: 'dingulzemj5bynjciapg',
                    onSuccess: function(result) {
                        that.$u.api.ddLogin({
                            code: '',
                            corpId: ''
                            code: result.code,
                            corpId: corpId
                        }).then(res => {
                            if (res.code === 200) {
                                that.$store.commit('setToken', res.data.token)
                                this.$isResolve()
                            }
                        })
                    },
                    onFail: function(err) {
                        console.log(err)
                    }
                });
            } else if (href.indexOf('?token') !== -1) {
                let token = href.substring(href.lastIndexOf('?token=') + 7, href.length)
                that.$store.commit('setToken', token)
                this.$isResolve()
            } else {
                this.$isResolve()
            }
        },
        onShow: function() {
mini-program/main.js
@@ -12,7 +12,7 @@
    Vue.prototype.$isResolve = resolve
})
Vue.prototype.$dd = dd
Vue.prototype.$baseUrl = 'http://192.168.1.40:10011/'
Vue.prototype.$baseUrl = 'http://192.168.0.7/dianjiang_web_api/'
initDingH5RemoteDebug();
mini-program/manifest.json
@@ -68,5 +68,11 @@
    "uniStatistics" : {
        "enable" : false
    },
    "vueVersion" : "2"
    "vueVersion" : "2",
    "h5" : {
        "router" : {
            "mode" : "hash",
            "base" : "/h5/"
        }
    }
}
mini-program/pages/details/details.vue
@@ -36,7 +36,7 @@
                <view class="item-info-d" v-else>
                    {{item.content}}
                </view>
                <view class="item-info-price">
                <view class="item-info-price" v-if="item.fee">
                    <text>标准收费</text>
                    <text>{{item.fee}}</text>
                </view>
mini-program/pages/index/index.vue
@@ -92,7 +92,7 @@
                    <view class="item-info-d" v-else>
                        {{item.content}}
                    </view>
                    <view class="item-info-price">
                    <view class="item-info-price" v-if="item.fee">
                        <text>标准收费</text>
                        <text>{{item.fee}}</text>
                    </view>
mini-program/unpackage/dist/build/.automator/h5/.automator.json
mini-program/utils/http.interceptor.js
@@ -8,10 +8,10 @@
    
    // 请求拦截器
    uni.$u.http.interceptors.request.use((config) => {
        // const Headtoken = vm.$store.state.token
        // if (Headtoken) {
            config.header['token'] = 'eyJhbGciOiJIUzUxMiJ9.eyJpZCI6IjEyMyIsImV4cCI6MTc2OTczODQwNn0.WcGv4N47h6X87vVKtiXW4bSsfDIqRNAqZFdpDkbY1vJDjrn6H6ioQVhjNJDF3OAGO16tkvX4MTgXkbiyW40v1Q';
        // }
        const Headtoken = vm.$store.state.token
        if (Headtoken) {
            config.header['token'] = Headtoken;
        }
        return config
    }, config => {
        return Promise.reject(config)