diff --git a/env/.env b/env/.env
index 631bc28..dd83a91 100644
--- a/env/.env
+++ b/env/.env
@@ -6,6 +6,7 @@ VITE_APP_ENV=development
# 接口地址
VITE_API_BASE_URL=http://www.caipu.com:8545
+# VITE_API_BASE_URL=http://ceshi-recipeapi.lihaink.cn/
# 端口号
VITE_APP_PORT=9527
@@ -13,8 +14,9 @@ VITE_APP_PORT=9527
# h5是否需要配置代理
VITE_APP_PROXY=true
-# API代理前缀
+# API代理前缀
VITE_API_PREFIX= http://www.caipu.com:8545
+# VITE_API_PREFIX= http://ceshi-recipeapi.lihaink.cn/
# 删除console
VITE_DROP_CONSOLE=false
diff --git a/env/.env.development b/env/.env.development
index 91fce12..13c983b 100644
--- a/env/.env.development
+++ b/env/.env.development
@@ -2,7 +2,7 @@
VITE_APP_ENV=development
# 接口地址
-VITE_API_BASE_URL=http://www.caipu.com:8545
+VITE_API_BASE_URL=http://ceshi-recipeapi.lihaink.cn
# 删除console
VITE_DROP_CONSOLE=false
diff --git a/env/.env.production b/env/.env.production
index 3d21578..3c64c30 100644
--- a/env/.env.production
+++ b/env/.env.production
@@ -2,7 +2,7 @@
VITE_APP_ENV=production
# 接口地址
-VITE_API_BASE_URL=http://www.caipu.com:8545
+VITE_API_BASE_URL=http://ceshi-recipeapi.lihaink.cn
# 删除console
VITE_DROP_CONSOLE=true
diff --git a/src/manifest.json b/src/manifest.json
index 48244f2..9de1ca7 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -81,7 +81,7 @@
"h5" : {
"router" : {
"mode" : "hash",
- "base" : "/uniapp-vue3-template/"
+ "base" : "/caipu_uni/"
},
"sdkConfigs" : {
"maps" : {
diff --git a/src/pages.json b/src/pages.json
index 71ab23d..b36de7b 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -62,28 +62,32 @@
"style": {
"navigationBarTitleText": "菜谱详情",
"navigationStyle": "custom"
- }
+ },
+ "needLogin": true
},
{
"path": "goods/pay_order",
"style": {
"navigationBarTitleText": "订单详情",
"navigationStyle": "custom"
- }
+ },
+ "needLogin": true
},
{
"path": "goods/order",
"style": {
"navigationBarTitleText": "订单详情",
"navigationStyle": "custom"
- }
+ },
+ "needLogin": true
},
{
"path": "goods/order_detail",
"style": {
"navigationBarTitleText": "订单详情",
"navigationStyle": "custom"
- }
+ },
+ "needLogin": true
}
@@ -102,20 +106,20 @@
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{
- "iconPath": "static/images/tabbar/icon_home.png",
- "selectedIconPath": "static/images/tabbar/icon_home_selected.png",
+ "iconPath": "static/images/tabbar/shouye.png",
+ "selectedIconPath": "static/images/tabbar/shouye_selected.png",
"pagePath": "pages/tab/home/index",
"text": "菜单分类"
},
{
- "iconPath": "static/images/tabbar/icon_list.png",
- "selectedIconPath": "static/images/tabbar/icon_list_selected.png",
+ "iconPath": "static/images/tabbar/bofang.png",
+ "selectedIconPath": "static/images/tabbar/bofang_selected.png",
"pagePath": "pages/tab/list/index",
"text": "食谱清单"
},
{
- "iconPath": "static/images/tabbar/icon_me.png",
- "selectedIconPath": "static/images/tabbar/icon_me_selected.png",
+ "iconPath": "static/images/tabbar/wode.png",
+ "selectedIconPath": "static/images/tabbar/wode_selected.png",
"pagePath": "pages/tab/user/index",
"text": "我的"
}]
diff --git a/src/pages/common/goods/address.vue b/src/pages/common/goods/address.vue
deleted file mode 100644
index 57719a7..0000000
--- a/src/pages/common/goods/address.vue
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-
- 选择地址
-
-
-
-
- {{item.real_name}}{{item.phone}}
- {{item.province}}{{item.city}}{{item.district}}{{item.street || ''}}{{item.detail}}
-
-
-
-
-
-
-
- 暂无地址
-
- 添加新地址
-
-
-
-
-
-
-
diff --git a/src/pages/common/goods/detail.vue b/src/pages/common/goods/detail.vue
index 69c0aa4..c9d8c11 100644
--- a/src/pages/common/goods/detail.vue
+++ b/src/pages/common/goods/detail.vue
@@ -58,16 +58,19 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/pages/common/goods/order.vue b/src/pages/common/goods/order.vue
index 099f22f..6ce8410 100644
--- a/src/pages/common/goods/order.vue
+++ b/src/pages/common/goods/order.vue
@@ -19,14 +19,14 @@
height="80rpx" leftIconSize="38rpx" leftIconColor="#303133" :safeAreaInsetTop="true" :placeholder="true"
:fixed="true">
+ v-model="matchedItems_sp" @query="changeSP" class="fv-page flex-col ">
@@ -54,9 +54,9 @@
iconStyle="font-size:32rpx;color:#59CB56;margin-right:10rpx;" lines="1"
decoration="none">
-
+
@@ -128,7 +128,11 @@ export default defineComponent({
this.$refs.pagingRefSP?.reload();
},
//列表分页
- changeSP () {
+ changeSP (pageNo: number) {
+
+ console.log('列表分页',pageNo);
+ this.search_sp.page = pageNo;
+ console.log('列表分页',this.search_sp);
CommonApi.commonGet('/api/order/list', this.search_sp).catch((res) => {
if (res.code === 1) {
this.$refs.pagingRefSP?.complete(res.data);
@@ -139,7 +143,7 @@ export default defineComponent({
// this.createOrderData.cart_ids.push(item.id);
// }
// });
-
+
} else {
uni.$u.toast(res.msg);
}
diff --git a/src/pages/common/goods/order_detail.vue b/src/pages/common/goods/order_detail.vue
index 24d726b..2e18142 100644
--- a/src/pages/common/goods/order_detail.vue
+++ b/src/pages/common/goods/order_detail.vue
@@ -24,33 +24,41 @@
leftIconColor="#303133" :safeAreaInsetTop="true" :placeholder="true" :fixed="true">
-
+
-
-
+ -->
+
-
-
+
+
+
+
+
@@ -59,8 +67,8 @@
iconStyle="font-size:32rpx;color:#59CB56;margin-right:10rpx;" lines="1"
decoration="none">
-->
-
-
+
+
@@ -69,8 +77,8 @@
iconStyle="font-size:32rpx;color:#59CB56;margin-right:10rpx;" lines="1"
decoration="none">
-->
-
-
+
+
-
-
+
+
-
-
+
+
@@ -92,7 +100,7 @@
-
@@ -100,40 +108,68 @@
line-color="#18C936" line-width="40rpx" line-height="6rpx" line-bg-size="cover"
:scrollable="true" />
-
+
+
+
+
+
+
+
+
+
-
+
+
-
+
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
选择地址
-
+
+
+
@@ -118,8 +123,8 @@
:iconStyle="item.id === createOrderData.address_id ? 'color:#59CB56;font-size:32rpx;margin-right:10rpx;' : '' + 'font-size:32rpx;margin-right:10rpx;'"
lines="1" decoration="none">
-
+
@@ -229,12 +239,15 @@
-
-
+
+
+
+
+
+ custom-style="width:200rpx;float:right;margin-right:0rpx;" @click="handleSubmit">
@@ -464,7 +477,7 @@ export default defineComponent({
that.addFrom.city = res.data.address_component.city
that.addFrom.district = res.data.address_component.district
that.addFrom.latitude = res.data.location.lat
- that.addFrom.longitude = res.data.location.long
+ that.addFrom.longitude = res.data.location.lng
// that.addFrom.detail = res.data.address_component.street
} else {
uni.$u.toast(res.msg);
@@ -527,14 +540,31 @@ export default defineComponent({
},
deleteAddress (id) {
- CommonApi.commonPost('/api/user/deleteAddress',{id:id}).catch((res) => {
- if (res.code === 1) {
- // this.propShowAddress = false;
- this.getAddressInfoListData();
- } else {
- uni.$u.toast(res.msg);
- }
+
+ useModal().showModal('success', {
+ title: '删除提示',
+ content: '确定删除当前地址吗?',
+ showCancel: true,
+ confirmText: '确定',
+ cancelText: '取消',
+ success: (res) => {
+ if (res.confirm) {
+ CommonApi.commonPost('/api/user/deleteAddress', { id: id }).catch((res) => {
+ if (res.code === 1) {
+ // this.propShowAddress = false;
+ this.getAddressInfoListData();
+ } else {
+ uni.$u.toast(res.msg);
+ }
+ });
+ }
+ else if (res.cancel) {
+ // console.log('用户点击取消');
+ }
+ },
});
+
+
},
//修改地址
editAddress (itme) {
diff --git a/src/pages/common/login/index.vue b/src/pages/common/login/index.vue
index 916183e..7e51671 100644
--- a/src/pages/common/login/index.vue
+++ b/src/pages/common/login/index.vue
@@ -2,40 +2,42 @@
- 欢迎登录
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-