diff --git a/common/config.js b/common/config.js
index 3dc586d..2946bc5 100644
--- a/common/config.js
+++ b/common/config.js
@@ -6,8 +6,9 @@
* loginTimeoutPage = "/pages/login/index", // 登录超时或失效的情况下,跳转到的登录页面
*/
module.exports = {
- baseUrl: 'http://192.168.2.106:7211', // 本地
+ // baseUrl: 'http://192.168.2.110:7211', // 本地
// baseUrl: 'https://lpk.yyundong.com/lpkapi', // 测试服务器
+ baseUrl: 'https://lpk.yyundong.com/mallapi', // 测试服务器
// baseUrl: 'https://supervise.yxtsoft.com/lpkapi', // 正式服务器
tokenName: "Authorization", // 请求头中token的名字,与服务器端对应
loginTimeoutCode: "5001", // 登录超时或失效的情况下,服务器端返回的错误码
diff --git a/common/request.api.js b/common/request.api.js
index f1ba878..71917c3 100644
--- a/common/request.api.js
+++ b/common/request.api.js
@@ -88,4 +88,22 @@ export default {
changeNick: (params = {}) => request.formpost("/lpkcustomer/modifyUserNickName", params),
// 获取手机号
getPhone: (params = {}) => request.formpost("/lpkcustomer/getPhoneNumber", params),
+
+
+ // 2024-1-15 新需求
+ // 获取补充菜窖 商品分类列表
+ getAllGoodsType: (params = {}) => request.get("/lpkgiftcard/getAllGoodsType/" + params, params),
+ // 获取补充菜窖 商品分类列表
+ getGoodsByType: (params = {}) => request.post("/lpkgiftcard/getGoodsByType", params),
+ // 获取当前购物车总价及总斤数
+ getGoodsWeight: (params = {}) => request.post("/shoppingcart/getGoodsWeight", params),
+ // 加入购物车
+ addShoppingCart: (params = {}) => request.post("/shoppingcart/addShoppingCart", params),
+ // 购物车列表
+ shoppingCartList: (params = {}) => request.post("/shoppingcart/shoppingCartList", params, {}, {}, true),
+
+ // 我的菜窖 类型列表
+ vegeCellarTypeList: (params = {}) => request.post("/lpkgoods/vegeCellarTypeList", params),
+ // 我的菜窖 商品列表
+ vegeCellarList: (params = {}) => request.post("/lpkgoods/vegeCellarList", params),
}
\ No newline at end of file
diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js
index 74ea968..7cbe4d5 100644
--- a/custom-tab-bar/index.js
+++ b/custom-tab-bar/index.js
@@ -5,32 +5,45 @@ Component({
"selectedColor": "#FFFFFF",
"backgroundColor": "#F69448",
list: [
+ // {
+ // "pagePath": "/pages/home/cloudCard",
+ // "text": "补充菜窖",
+ // "iconPath": "/static/bomicon/bom_notCloudCard.png",
+ // "selectedIconPath": "/static/bomicon/bom_cloudCard.png"
+ // },
{
- "pagePath": "/pages/home/cloudCard",
+ "pagePath": "/pages/home/cloudCard2",
"text": "补充菜窖",
"iconPath": "/static/bomicon/bom_notCloudCard.png",
"selectedIconPath": "/static/bomicon/bom_cloudCard.png"
},
+ // {
+ // "pagePath": "/pages/home/pickUpCard",
+ // "text": "选菜窖",
+ // "iconPath": "/static/bomicon/bom_notPickUp.png",
+ // "selectedIconPath": "/static/bomicon/bom_pickUp.png"
+ // },
{
- "pagePath": "/pages/home/pickUpCard",
- "text": "选菜窖",
+ "pagePath": "/pages/home/myCellar",
+ "text": "我的菜窖",
"iconPath": "/static/bomicon/bom_notPickUp.png",
"selectedIconPath": "/static/bomicon/bom_pickUp.png"
},
- {
- "pagePath": "/pages/home/recordList2",
- "text": "预约记录",
- "iconPath": "/static/bomicon/bom_notRecordNew.png",
- "selectedIconPath": "/static/bomicon/bom_recordNew.png"
- }
- ,
// {
- // "pagePath": "/pages/home/myHome",
- // "text": "我的",
- // "iconPath": "/static/bomicon/bom_NotMy.png",
- // "selectedIconPath": "/static/bomicon/bom_my.png"
+ // "pagePath": "/pages/home/recordList2",
+ // "text": "预约记录",
+ // "iconPath": "/static/bomicon/bom_notRecordNew.png",
+ // "selectedIconPath": "/static/bomicon/bom_recordNew.png"
// }
+ // ,
+
+ {
+ "pagePath": "/pages/home/myHome",
+ "text": "我的",
+ "iconPath": "/static/bomicon/bom_NotMy.png",
+ "selectedIconPath": "/static/bomicon/bom_my.png"
+ }
]
},
diff --git a/pages.json b/pages.json
index c35037c..efde03f 100644
--- a/pages.json
+++ b/pages.json
@@ -13,6 +13,12 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/home/cloudCard2",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/card/card_detail",
"style": {
@@ -50,6 +56,9 @@
}
},
+
+
+
{
"path": "pages/bind/bind_pickUpCard",
"style": {
@@ -116,6 +125,8 @@
}
}
},
+
+
{
"path": "pages/home/recordList",
"style": {
@@ -244,6 +255,18 @@
}
},
{
+ "path": "pages/good/shoppCart",
+ "style": {
+ "navigationBarTitleText": "购物车",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/home/myCellar",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ }, {
"path": "pages/me/base_info",
"style": {
"navigationStyle": "custom",
@@ -264,30 +287,43 @@
"selectedColor": "#191919",
"borderStyle": "white",
"backgroundColor": "#F69448",
- "list": [{
- "pagePath": "pages/home/cloudCard",
+ "list": [
+ // {
+ // "pagePath": "pages/home/cloudCard",
+ // "text": "补充菜窖",
+ // "iconPath": "static/bomicon/bom_notCloudCard.png",
+ // "selectedIconPath": "static/bomicon/bom_cloudCard.png"
+ // },
+ {
+ "pagePath": "pages/home/cloudCard2",
"text": "补充菜窖",
"iconPath": "static/bomicon/bom_notCloudCard.png",
"selectedIconPath": "static/bomicon/bom_cloudCard.png"
},
+ // {
+ // "pagePath": "pages/home/pickUpCard",
+ // "text": "选菜窖",
+ // "iconPath": "static/bomicon/bom_notPickUp.png",
+ // "selectedIconPath": "static/bomicon/bom_pickUp.png"
+ // },
{
- "pagePath": "pages/home/pickUpCard",
- "text": "选菜窖",
+ "pagePath": "pages/home/myCellar",
+ "text": "我的菜窖",
"iconPath": "static/bomicon/bom_notPickUp.png",
"selectedIconPath": "static/bomicon/bom_pickUp.png"
},
- {
- "pagePath": "pages/home/recordList2",
- "text": "预约记录",
- "iconPath": "static/bomicon/bom_notRecordNew.png",
- "selectedIconPath": "static/bomicon/bom_recordNew.png"
- }
// {
- // "pagePath": "pages/home/myHome",
- // "text": "我的",
- // "iconPath": "static/bomicon/bom_NotMy.png",
- // "selectedIconPath": "static/bomicon/bom_my.png"
+ // "pagePath": "pages/home/recordList2",
+ // "text": "预约记录",
+ // "iconPath": "static/bomicon/bom_notRecordNew.png",
+ // "selectedIconPath": "static/bomicon/bom_recordNew.png"
// }
+ {
+ "pagePath": "pages/home/myHome",
+ "text": "我的",
+ "iconPath": "static/bomicon/bom_NotMy.png",
+ "selectedIconPath": "static/bomicon/bom_my.png"
+ }
]
},
diff --git a/pages/good/shoppCart.vue b/pages/good/shoppCart.vue
new file mode 100644
index 0000000..81a25d2
--- /dev/null
+++ b/pages/good/shoppCart.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.goodsName}}
+
+ {{item.remarks}}
+
+
+ {{item.jprice}}元/{{item.specificationUnit}}
+ {{item.weight}}{{item.specificationUnit}}/{{item.unitName}}
+
+
+
+
+ ¥{{item.price}}
+
+
+
+
+
+ {{item.goodsNumber}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 温馨提示:已定制了
+ {{page.weight}}斤
+ ,满200斤可定制云菜窖
+
+
+
+
+
+
+
+
+ ¥{{page.price}}
+ 共减:¥{{page.reduce}}
+
+ 结算
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/home/cloudCard2.vue b/pages/home/cloudCard2.vue
new file mode 100644
index 0000000..8c6596d
--- /dev/null
+++ b/pages/home/cloudCard2.vue
@@ -0,0 +1,637 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 百姓菜窖
+
+
+
+
+
+
+
+ 精品菜窖
+
+
+
+
+
+
+
+ 企业菜窖
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+ {{item.remark}}
+
+
+ {{item.jprice}}元/{{item.specificationUnit}}
+ {{item.weight}}{{item.specificationUnit}}/{{item.unitName}}
+
+
+
+
+ ¥{{item.mefenPrice}}
+
+
+
+
+
+
+ {{item.goodsNumber}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{page.count}}
+
+
+
+
+ 温馨提示:已定制了
+ {{page.weight}}斤
+
+
+ ,满200斤可定制云菜窖
+
+
+
+
+
+ 分享新人有礼
+
+
+
+ ¥{{page.price}}
+ 共减:¥{{page.reduce}}
+
+
+ 结算
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/home/myCellar.vue b/pages/home/myCellar.vue
new file mode 100644
index 0000000..e18f452
--- /dev/null
+++ b/pages/home/myCellar.vue
@@ -0,0 +1,584 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 菜窖分类
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+ {{item.count}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+ {{item.remark}}
+
+
+ {{item.weight}}{{item.specificationUnit}}/{{item.unitName}}
+
+ 百姓菜!
+ 精品菜!
+ 企业菜!
+
+
+
+
+
+
+
+ 存量:
+ {{item.goodsNumber}}{{item.unitName}}
+
+
+
+
+
+
+
+
+ {{item.count}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 您的菜窖为空,请
+ 补充菜窖
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 转赠亲友
+
+
+
+ 共选
+ {{page.count}}
+ 份蔬菜
+
+ 预约提菜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提菜点信息
+
+
+ {{pickingUp.type}}
+ {{pickingUp.name}}
+
+
+
+
+
+
+
+
+
+ 营业时间:{{pickingUp.date}}
+
+
+
+
+
+ {{pickingUp.address}}
+
+
+
+
+
+
+
+
+ 提菜人信息
+
+
+ {{userInfo.type}}
+ {{userInfo.name}}
+ {{userInfo.phone}}
+
+
+
+
+
+
+
+
+ 所提蔬菜列表
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+ {{item.remark}}
+
+
+ {{item.weight}}{{item.specificationUnit}}/{{item.unitName}}
+
+ 百姓菜!
+ 精品菜!
+ 企业菜!
+
+
+
+
+
+
+
+ 剩余:
+ {{item.goodsNumber}}{{item.unitName}}
+
+
+
+
+
+
+
+
+
+ {{item.count}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认提菜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/home/myHome.vue b/pages/home/myHome.vue
index f84f73d..5a4cd8d 100644
--- a/pages/home/myHome.vue
+++ b/pages/home/myHome.vue
@@ -21,7 +21,7 @@
- 绑定用户
+ 完善信息
@@ -328,7 +328,10 @@
})
},
showDiaLog() {
- this.showModal = true
+ // this.showModal = true
+ uni.navigateTo({
+ url: '/pages/me/base_info'
+ })
},
colseDialog() {
this.showModal = false
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 0eb5c1c..a673717 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -127,8 +127,9 @@
} else {
uni.switchTab({
- url: '/pages/home/pickUpCard',
+ // url: '/pages/home/pickUpCard',
// url: '/pages/home/myHome',
+ url: '/pages/home/myCellar',
})
}
diff --git a/pages/me/base_info.vue b/pages/me/base_info.vue
index 13e5dc0..4e7f1cf 100644
--- a/pages/me/base_info.vue
+++ b/pages/me/base_info.vue
@@ -2,7 +2,7 @@
-
+
diff --git a/static/basket_icon.png b/static/basket_icon.png
new file mode 100644
index 0000000..f5a5395
Binary files /dev/null and b/static/basket_icon.png differ
diff --git a/static/inCart.png b/static/inCart.png
new file mode 100644
index 0000000..4755c84
Binary files /dev/null and b/static/inCart.png differ
diff --git a/static/jia_icon.png b/static/jia_icon.png
new file mode 100644
index 0000000..2f63bcc
Binary files /dev/null and b/static/jia_icon.png differ
diff --git a/static/jian_icon.png b/static/jian_icon.png
new file mode 100644
index 0000000..0bad543
Binary files /dev/null and b/static/jian_icon.png differ
diff --git a/static/search_icon.png b/static/search_icon.png
new file mode 100644
index 0000000..17dac53
Binary files /dev/null and b/static/search_icon.png differ
diff --git a/static/shoppCart_icon.png b/static/shoppCart_icon.png
new file mode 100644
index 0000000..3adf708
Binary files /dev/null and b/static/shoppCart_icon.png differ
diff --git a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
index b5eee79..57e3fed 100644
--- a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
+++ b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
@@ -244,7 +244,7 @@
}
.uni-button-color {
- color: #007aff;
+ color: #F4934B;
}
.uni-dialog-input {