6
0
Fork 0
develop
panliang 2023-02-16 17:04:10 +08:00
parent 100a70b950
commit e902f14d23
5 changed files with 15 additions and 28 deletions

View File

@ -1,6 +1,6 @@
ENV = 'production' ENV = 'production'
# VUE_APP_BASE_API = 'https://jiqu-library.peidikeji.cn/api' VUE_APP_BASE_API = 'https://jiqu-library.peidikeji.cn/api'
VUE_APP_BASE_API = 'https://jiqu-library.abcdefg.fun/api' #VUE_APP_BASE_API = 'https://jiqu-library.abcdefg.fun/api'

View File

@ -1,19 +1,12 @@
# mall-app # 积趣-图书馆
## Project setup uniapp
```
yarn install
```
### Compiles and hot-reloads for development ## Rquire
```
yarn serve
```
### Compiles and minifies for production - nodejs
``` - npm
yarn build
```
### Customize configuration ## TODO
See [Configuration Reference](https://cli.vuejs.org/config/).
- [ ] 子商品库存不足时, 禁用商品规格

View File

@ -106,6 +106,8 @@ export default {
}, },
onLoad(e) { onLoad(e) {
this.mid = e.mid this.mid = e.mid
},
onShow() {
this.getCartList() this.getCartList()
}, },
computed: { computed: {

View File

@ -124,9 +124,6 @@
<script> <script>
let btnLoading = false; let btnLoading = false;
import {
add
} from '@/utils'
export default { export default {
data() { data() {
return { return {
@ -141,9 +138,7 @@
cuId: null cuId: null
}; };
}, },
onLoad({ onLoad({ id }) {
id
}) {
this.cuId = id this.cuId = id
}, },
@ -231,10 +226,7 @@
this.goodsList = orderInfo.products; this.goodsList = orderInfo.products;
this.orderInfo = orderInfo; this.orderInfo = orderInfo;
} catch (error) { } catch (error) {
console.log(error, '32'); this.couponId = ''
uni.switchTab({
url: '/pages/index/index'
})
console.log(error); console.log(error);
} finally { } finally {
this.isFirstLoading = false this.isFirstLoading = false

View File

@ -549,7 +549,7 @@
{ {
"path": "select_product/cart", "path": "select_product/cart",
"style": { "style": {
"navigationBarTitleText": "搜索商品", "navigationBarTitleText": "购物车",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }