| | |
| | | |
| | | Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/' |
| | | // Vue.prototype.$baseUrl = 'https://test.doumee.cn/jinkuai_web/' |
| | | |
| | | const app = new Vue({ |
| | | store, |
| | | ...App |
| | |
| | | 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) { |
| | |
| | | } |
| | | }, |
| | | onReachBottom() { |
| | | if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}' && this.userInfo.useIdentity === 1) { |
| | | this.getOrderList() |
| | | } |
| | | }, |
| | | methods: { |
| | | getDictInfo(){ |
| | |
| | | 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; |
| | | } |
| | |
| | | align-items: center; |
| | | justify-content: flex-end; |
| | | margin-top: 42rpx; |
| | | margin-bottom: 34rpx; |
| | | text { |
| | | font-weight: 400; |
| | | font-size: 30rpx; |
| | |
| | | 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 }); |
| | | } |
| | | }) |