MrShi
2025-08-22 5c4235dfbabbea9ed55e5a876844527bed490d5c
优化
已修改3个文件
21 ■■■■■ 文件已修改
small-program/main.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/index/index.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/login/login.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/main.js
@@ -16,6 +16,7 @@
Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/'
// Vue.prototype.$baseUrl = 'https://test.doumee.cn/jinkuai_web/'
const app = new Vue({
    store,
    ...App
small-program/pages/index/index.vue
@@ -447,6 +447,16 @@
                this.form.estimatedAccount = ''
                this.form.price = ''
                this.form.address = ''
                this.orderFood = []
            })
            // 刷新首页数据
            uni.$on('refresh', () => {
                this.getCategoryLists()
                this.getDictInfo()
                if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}') {
                    this.form.linkPhone = this.userInfo.telephone
                }
            })
        },
        onShow(options) {
@@ -520,7 +530,9 @@
            }
        },
        onReachBottom() {
            if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}' && this.userInfo.useIdentity === 1) {
            this.getOrderList() 
            }
        },
        methods: {
            getDictInfo(){
@@ -1254,12 +1266,16 @@
                            padding: 30rpx 0;
                            box-sizing: border-box;
                            flex-direction: column;
                            border-bottom: 1rpx solid #E5E5E5;
                            // border-bottom: 1rpx solid #E5E5E5;
                            .radio-item {
                                width: 100%;
                                display: flex;
                                align-items: self-end;
                                margin-bottom: 30rpx;
                                border-bottom: 1rpx solid #E5E5E5;
                                &:last-child {
                                    border: none;
                                }
                                &:last-child {
                                    margin: 0 !important;
                                }
@@ -1312,6 +1328,7 @@
                                        align-items: center;
                                        justify-content: flex-end;
                                        margin-top: 42rpx;
                                        margin-bottom: 34rpx;
                                        text {
                                            font-weight: 400;
                                            font-size: 30rpx;
small-program/pages/login/login.vue
@@ -53,6 +53,7 @@
                    if (result.code === 200) {
                        that.$store.commit('setUserInfo', result.data.member)
                        that.$store.commit('setToken', result.data.token)
                        uni.$emit('refresh')
                        uni.navigateBack({ delta: 1 });
                    }
                })