diff --git a/src/manifest.json b/src/manifest.json
index d16125a..6e56dcf 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -97,17 +97,10 @@
},
/* 小程序特有相关 */
"mp-weixin" : {
-<<<<<<< HEAD
"appid" : "wx630bc4f43990c80c",
"setting" : {
"minified" : true,
"urlCheck" : true,
-=======
- "appid" : "wxf82bcc798891a29d",
- "setting" : {
- "minified" : true,
- "urlCheck" : false,
->>>>>>> b43f705aac2540e8c44120068fa0efd8a2e163f1
"es6" : true,
"postcss" : true
},
@@ -119,13 +112,7 @@
"desc" : "你的位置信息将用于小程序位置接口的效果展示"
}
},
-<<<<<<< HEAD
"requiredPrivateInfos" : [ "getLocation" ],
-=======
- "requiredPrivateInfos": [
- "getLocation"
- ],
->>>>>>> b43f705aac2540e8c44120068fa0efd8a2e163f1
"uniStatistics" : {
"enable" : true
}
diff --git a/src/pages.json b/src/pages.json
index 5ffa97e..d151b35 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -12,30 +12,31 @@
}
},
"pages": [
+ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
- "path": "pages/login/login",
+ "path": "pages/index/index",
"style": {
- "navigationBarTitleText": "登录"
+ "navigationStyle": "custom",
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "首页"
}
},
- //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
- "path": "pages/index/index",
+ "path": "pages/serviceSite/serviceSite",
"style": {
- "navigationBarTitleText": "首页",
- "navigationStyle": "custom"
+ "navigationBarTitleText": "服务站列表"
}
},
{
- "path": "pages/orerdList/orerdList",
+ "path": "pages/siteDetail/siteDetail",
"style": {
- "navigationBarTitleText": "订单列表"
+ "navigationBarTitleText": "服务站详情"
}
},
{
- "path": "pages/orderDetail/orderDetail",
+ "path": "pages/booking/booking",
"style": {
- "navigationBarTitleText": "订单详情"
+ "navigationBarTitleText": "一键预约"
}
},
{
@@ -45,16 +46,21 @@
}
},
{
- "path": "pages/newsList/newsList",
+ "path": "pages/orerdList/orerdList",
"style": {
- "navigationBarTitleText": "消息列表",
- "navigationStyle": "custom"
+ "navigationBarTitleText": "订单列表"
}
},
{
- "path": "pages/orderAuto/orderAuto",
+ "path": "pages/cart/cart",
"style": {
- "navigationBarTitleText": "自动接单"
+ "navigationBarTitleText": "购物车"
+ }
+ },
+ {
+ "path": "pages/cart/cart2",
+ "style": {
+ "navigationBarTitleText": "购物车"
}
},
{
@@ -65,12 +71,12 @@
"navigationBarTitleText": "我的"
}
},
- // {
- // "path": "pages/login/login",
- // "style": {
- // "navigationBarTitleText": "登录"
- // }
- // },
+ {
+ "path": "pages/login/login",
+ "style": {
+ "navigationBarTitleText": "登录"
+ }
+ },
{
"path": "pages/login/protocal",
"style": {
@@ -91,21 +97,39 @@
}
],
"globalStyle": {
- "navigationBarTextStyle": "white",
+ "navigationBarTextStyle": "black",
"navigationBarTitleText": "",
- "navigationBarBackgroundColor": "#3775F6",
- "backgroundColor": "#3775F6"
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8"
},
// 设置 TabBar
"tabBar": {
- "color": "#999A9F",
- "selectedColor": "#3775F6",
+ "color": "#333",
+ "selectedColor": "#27ba9b",
"backgroundColor": "#fff",
"borderStyle": "white",
"list": [
{
- "text": "订单",
+ "text": "首页",
"pagePath": "pages/index/index",
+ "iconPath": "static/tabs/home_default.png",
+ "selectedIconPath": "static/tabs/home_selected.png"
+ },
+ {
+ "text": "服务站",
+ "pagePath": "pages/serviceSite/serviceSite",
+ "iconPath": "static/tabs/category_default.png",
+ "selectedIconPath": "static/tabs/category_selected.png"
+ },
+ {
+ "text": "一键预约",
+ "pagePath": "pages/booking/booking",
+ "iconPath": "static/tabs/cart_default.png",
+ "selectedIconPath": "static/tabs/cart_selected.png"
+ },
+ {
+ "text": "订单",
+ "pagePath": "pages/orerdList/orerdList",
"iconPath": "static/tabs/cart_default.png",
"selectedIconPath": "static/tabs/cart_selected.png"
},
@@ -119,31 +143,6 @@
},
// 分包加载规则
"subPackages": [
- {
- // 子包的根目录
- "root": "payment",
- // 页面路径和窗口表现
- "pages": [
- {
- "path": "detail/detail",
- "style": {
- "navigationBarTitleText": "结算详情"
- }
- },
- {
- "path": "success/success",
- "style": {
- "navigationBarTitleText": "结算成功"
- }
- },
- {
- "path": "fail/fail",
- "style": {
- "navigationBarTitleText": "结算失败"
- }
- }
- ]
- },
{
// 子包的根目录
"root": "pagesMember",
@@ -189,7 +188,8 @@
{
"path": "detail/detail",
"style": {
- "navigationBarTitleText": "订单详情"
+ "navigationBarTitleText": "订单详情",
+ "navigationStyle": "custom"
}
},
{
diff --git a/src/pages/index/components/CategoryPanel.vue b/src/pages/index/components/CategoryPanel.vue
new file mode 100644
index 0000000..de4a7b3
--- /dev/null
+++ b/src/pages/index/components/CategoryPanel.vue
@@ -0,0 +1,36 @@
+
+
+
+
+ 预约上门回收
+
+
+
+
+ {{ item.name }}
+ {{ item.desc }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/index/components/DataList.vue b/src/pages/index/components/DataList.vue
deleted file mode 100644
index 40bf511..0000000
--- a/src/pages/index/components/DataList.vue
+++ /dev/null
@@ -1,412 +0,0 @@
-
-
-
-
-
-
-
- 距离:{{ item.locationNum }}
-
-
-
-
-
-
- {{ item.recycleAddress }}
-
-
-
- 上门时间起止:{{ item.time }}
-
-
-
- {{ item.clientName }} {{ item.clientMobile }}
-
-
-
-
-
-
- 剩余接单时间:
-
-
- 接单
-
-
-
- 剩余接单时间:
-
-
- 结算
-
-
-
- {{ isFinish ? '没有更多数据~' : '正在加载...' }}
-
-
-
-
-
diff --git a/src/pages/index/components/NeighborhoodSite.vue b/src/pages/index/components/NeighborhoodSite.vue
new file mode 100644
index 0000000..eebcee8
--- /dev/null
+++ b/src/pages/index/components/NeighborhoodSite.vue
@@ -0,0 +1,44 @@
+
+
+
+ 附近回收站
+
+
+
+ 最近 上海市松江区佘山镇
+ 营业时间:09-18:00
+ 上海市松江区新松江路92弄开元地中海园区
+
+
+ 1.03km
+
+
+
+ 回收品类旧衣·纸品·金属·家电·塑料·玻璃
+
+
+
+
+
diff --git a/src/pages/index/components/PageSkeleton.vue b/src/pages/index/components/PageSkeleton.vue
new file mode 100644
index 0000000..d941671
--- /dev/null
+++ b/src/pages/index/components/PageSkeleton.vue
@@ -0,0 +1,376 @@
+
+
+
+
+
+
+
+
+
+ 搜索商品
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 预约上门回收
+
+
+
+
+ 旧衣服
+ 旧衣服回收不浪费
+
+
+
+
+
+
+
+ 家用电器
+ 旧衣服回收不浪费
+
+
+
+
+
+
+
+ 废纸废书
+ 旧衣服回收不浪费
+
+
+
+
+
+
+
+ 废金属
+ 旧衣服回收不浪费
+
+
+
+
+
+
+
+ 废玻璃
+ 旧衣服回收不浪费
+
+
+
+
+
+
+
+ 废塑料
+ 旧衣服回收不浪费
+
+
+
+
+
+
+
+
+
+
+ 电话预约回收
+ 400-123-000
+
+
+
+
+
+
+
+
diff --git a/src/pages/index/components/PhoneContact.vue b/src/pages/index/components/PhoneContact.vue
new file mode 100644
index 0000000..b9a6f75
--- /dev/null
+++ b/src/pages/index/components/PhoneContact.vue
@@ -0,0 +1,17 @@
+
+
+
+ 电话预约回收
+ 400-123-000
+
+
+
+
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 830dcee..68cdea3 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -1,5 +1,4 @@
-<<<<<<< HEAD
@@ -241,57 +180,6 @@ const handleIndexChange = (index: any) => {
-=======
-
-
-
- {{ item.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 未登录
- 您目前还未登录账号,无法加载任何信息,请先去登录账号!
- 登录账号
-
->>>>>>> b43f705aac2540e8c44120068fa0efd8a2e163f1
diff --git a/src/pages/index/styles/category.scss b/src/pages/index/styles/category.scss
new file mode 100644
index 0000000..6b8e80b
--- /dev/null
+++ b/src/pages/index/styles/category.scss
@@ -0,0 +1,49 @@
+/* 前台类目 */
+
+.category {
+ padding: 32rpx 20rpx;
+ margin: 16rpx;
+ background-color: #fff;
+ border-radius: 4rpx;
+ .module-title {
+ font-size: 30rpx;
+ color: #0D0D26;
+ padding-bottom: 20rpx;
+ border-bottom: 2rpx solid #F2F2F2;
+ }
+ .cont {
+ // margin: 20rpx 0 0;
+ padding: 10rpx 0;
+ display: flex;
+ justify-content: center;
+ flex-wrap: wrap;
+ min-height: 328rpx;
+ .category-item {
+ width: 46%;
+ border-radius: 16rpx;
+ margin: 8rpx;
+ padding: 16rpx 0;
+ display: flex;
+ justify-content: center; // flex-direction: row;
+ align-items: center;
+ box-sizing: border-box;
+ background: #FCF4FB;
+ .left {
+ .title {
+ font-size: 26rpx;
+ color: #666;
+ }
+ .desc {
+ font-size: 24rpx;
+ color: #7BAFBD;
+ }
+ }
+ .right {
+ .icon {
+ width: 100rpx;
+ height: 100rpx;
+ }
+ }
+ }
+ }
+}
diff --git a/src/pages/index/styles/neighborhoodSite.scss b/src/pages/index/styles/neighborhoodSite.scss
new file mode 100644
index 0000000..d7984dd
--- /dev/null
+++ b/src/pages/index/styles/neighborhoodSite.scss
@@ -0,0 +1,82 @@
+.neighborhood-site {
+ padding: 32rpx 20rpx;
+ margin: 16rpx;
+ background-color: #fff;
+ border-radius: 4rpx;
+ .module-title {
+ font-size: 30rpx;
+ color: #0D0D26;
+ padding-bottom: 20rpx;
+ border-bottom: 2rpx solid #F2F2F2;
+ }
+ .module-cont {
+ padding: 20rpx 0;
+ display: flex;
+ flex-direction: row;
+ .left {
+ width: 140rpx;
+ height: 140rpx;
+ border-radius: 12rpx;
+ }
+ .md {
+ flex: 1;
+ margin: 0 10rpx;
+ font-size: 24rpx;
+ color: #0D0D26;
+ .name {
+ font-size: 30rpx;
+ .zuijin {
+ font-size: 24rpx;
+ color: #FF7D00;
+ background: #FFF7E8;
+ padding: 4rpx 4rpx;
+ margin-right: 6rpx;
+ border-radius: 4rpx;
+ }
+ }
+ .time {
+ color: #95969D;
+ margin: 8rpx 0;
+ }
+ .loction {
+ color: #0D0D26;
+ }
+ }
+ .right {
+ .num {
+ font-size: 28rpx;
+ color: #95969D
+ }
+ .img {
+ width: 72rpx;
+ height: 72rpx;
+ margin-top: 20rpx;
+ border-radius: 10rpx;
+ }
+ }
+ }
+ .md-tag {
+ background: #E8FFFB;
+ color: #0FC6C2;
+ margin: 10rpx 0;
+ font-weight: 400;
+ font-size: 24rpx;
+ padding: 6rpx 0rpx;
+ .tag-before {
+ background: #0FC6C2;
+ color: #fff;
+ font-size: 24rpx;
+ font-weight: 500;
+ padding: 4rpx 8rpx;
+ border-radius: 4rpx;
+ margin-right: 10rpx;
+ }
+ }
+ .foot-desc {
+ .item {
+ font-size: 24rpx;
+ color: #95969D;
+ margin: 10rpx 0;
+ }
+ }
+}
diff --git a/src/pages/index/styles/phoneContact.scss b/src/pages/index/styles/phoneContact.scss
new file mode 100644
index 0000000..fe682b7
--- /dev/null
+++ b/src/pages/index/styles/phoneContact.scss
@@ -0,0 +1,26 @@
+/* 热门推荐 */
+
+.phone-contact {
+ padding: 32rpx 20rpx;
+ margin: 16rpx;
+ background-color: #fff;
+ border-radius: 4rpx;
+ .module-title {
+ font-size: 30rpx;
+ color: #0D0D26;
+ padding-bottom: 20rpx;
+ border-bottom: 2rpx solid #F2F2F2;
+ }
+ .module-action {
+ width: 486rpx;
+ margin: 40rpx auto 0;
+ border-radius: 50px;
+ background: #5386E4;
+ color: #fff;
+ display: flex;
+ font-size: 32rpx;
+ justify-content: center;
+ align-items: center;
+ padding: 20rpx 100rpx;
+ }
+}
diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue
index a199549..97e9c8a 100644
--- a/src/pages/login/login.vue
+++ b/src/pages/login/login.vue
@@ -18,7 +18,6 @@ const onGetphonenumber: UniHelper.ButtonOnGetphonenumber = async (ev) => {
const { encryptedData, iv } = ev.detail
if (encryptedData) {
-<<<<<<< HEAD
const params = {
code,
encryptedData,
@@ -31,20 +30,12 @@ const onGetphonenumber: UniHelper.ButtonOnGetphonenumber = async (ev) => {
uni.showToast({ icon: 'none', title: '请授权手机号' })
}
}
-// #endif
// 模拟手机号码快捷登录(开发练习)
const onGetphonenumberSimple = async () => {
await checkedAgreePrivacy()
const res = await postLoginWxMinSimpleAPI('13123456789')
loginSuccess(res.result)
-=======
- const res = await postLoginWxMinAPI({ code, encryptedData, iv })
- loginSuccess(res.data)
- } else {
- uni.showToast({ icon: 'none', title: '请授权手机号' })
- }
->>>>>>> b43f705aac2540e8c44120068fa0efd8a2e163f1
}
const loginSuccess = (profile: LoginResult) => {
@@ -56,21 +47,13 @@ const loginSuccess = (profile: LoginResult) => {
setTimeout(() => {
// 页面跳转
uni.switchTab({ url: '/pages/index/index' })
-<<<<<<< HEAD
// uni.navigateBack()
-=======
- uni.navigateBack()
->>>>>>> b43f705aac2540e8c44120068fa0efd8a2e163f1
}, 500)
}
// 请先阅读并勾选协议
const isAgreePrivacy = ref(true)
-<<<<<<< HEAD
const isAgreePrivacyShakeY = ref(true)
-=======
-const isAgreePrivacyShakeY = ref(false)
->>>>>>> b43f705aac2540e8c44120068fa0efd8a2e163f1
const checkedAgreePrivacy = async () => {
if (!isAgreePrivacy.value) {
uni.showToast({
@@ -89,12 +72,6 @@ const checkedAgreePrivacy = async () => {
const onOpenPrivacyContract = () => {
// 跳转至隐私协议页面
wx.openPrivacyContract({})
-<<<<<<< HEAD
-
-
- // #endif
-=======
->>>>>>> b43f705aac2540e8c44120068fa0efd8a2e163f1
}
@@ -116,20 +93,6 @@ const onOpenPrivacyContract = () => {
手机号快捷登录
-<<<<<<< HEAD
-
-
-=======
->>>>>>> b43f705aac2540e8c44120068fa0efd8a2e163f1