From 61c9f096ca355bb7adf975c7a256a01256f435ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com>
Date: Tue, 11 Jan 2022 15:50:44 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A5=97=E9=A4=90=EF=BC=8C=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E8=9E=8D=E4=BA=91im?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apis/interfaces/store.js | 7 +++++--
manifest.json | 18 +++++++++++++++++-
package-lock.json | 5 +++++
pages.json | 35 ++++++++++++++++++++++++-----------
pages/im/index.vue | 20 ++++++++++++++++++++
pages/pay/pay.vue | 11 ++++++++++-
pages/store/meals.vue | 25 ++++++++++++++++---------
7 files changed, 97 insertions(+), 24 deletions(-)
create mode 100644 pages/im/index.vue
diff --git a/apis/interfaces/store.js b/apis/interfaces/store.js
index 846f3f1..9ba9cfb 100644
--- a/apis/interfaces/store.js
+++ b/apis/interfaces/store.js
@@ -22,9 +22,12 @@ const goods = id => {
}
// 套餐列表
-const meals = id => {
+const meals = (id, categoryId) => {
return request({
- url: 'mall/meals/' + id
+ url: 'mall/meals/' + id,
+ data: {
+ category_id: categoryId
+ }
})
}
diff --git a/manifest.json b/manifest.json
index de3afc5..5c24411 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"name" : "健康监测",
"appid" : "__UNI__C29473D",
- "description" : "",
+ "description" : "ZH健康监测,您手上的健康管理专家",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
@@ -65,6 +65,22 @@
"share" : {},
"ad" : {}
}
+ },
+ "nativePlugins" : {
+ "RongCloud-IM" : {
+ "__plugin_info__" : {
+ "name" : "RCUniIM",
+ "description" : "融云即时通讯 SDK uni 原生插件",
+ "platforms" : "Android,iOS",
+ "url" : "https://ext.dcloud.net.cn/plugin?id=6120",
+ "android_package_name" : "io.zhhealth.app",
+ "ios_bundle_id" : "io.zhhealth.app",
+ "isCloud" : true,
+ "bought" : 1,
+ "pid" : "6120",
+ "parameters" : {}
+ }
+ }
}
},
/* 快应用特有相关 */
diff --git a/package-lock.json b/package-lock.json
index c791e07..a9948bc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2,6 +2,11 @@
"requires": true,
"lockfileVersion": 1,
"dependencies": {
+ "@rongcloud/imlib-uni": {
+ "version": "5.1.3-release.3",
+ "resolved": "https://registry.npmjs.org/@rongcloud/imlib-uni/-/imlib-uni-5.1.3-release.3.tgz",
+ "integrity": "sha512-jgGNEqvfDxTv8lQoU168d+slZC0FL8CUq7vz+JekKCXL3UMWnZCRxHhUI7BO/saGtaLE+/yw3Xbv/ZORTz0hng=="
+ },
"base-x": {
"version": "3.0.9",
"resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz",
diff --git a/pages.json b/pages.json
index 34b51aa..84bdc3e 100644
--- a/pages.json
+++ b/pages.json
@@ -101,7 +101,7 @@
"path": "pages/address/edit",
"name": "AddressEdit",
"style": {
- "navigationBarTitleText": "编辑",
+ "navigationBarTitleText": "编辑",
"enablePullDownRefresh": false
}
}, {
@@ -120,13 +120,20 @@
"enablePullDownRefresh": true
}
}, {
- "path": "pages/store/meals",
+ "path": "pages/store/meals",
"name": "StoreMeals",
"style": {
- "navigationBarTitleText": "套餐",
+ "navigationBarTitleText": "套餐",
"navigationBarBackgroundColor": "#FFFFFF",
"enablePullDownRefresh": true
}
+ }, {
+ "path": "pages/im/index",
+ "name": "IM",
+ "style": {
+ "navigationBarTitleText": "im",
+ "enablePullDownRefresh": false
+ }
}],
"tabBar": {
"borderStyle": "white",
@@ -135,19 +142,25 @@
"iconPath": "static/tabBar/tabBar_00.png",
"selectedIconPath": "static/tabBar/tabBar_show_00.png",
"pagePath": "pages/index/index",
- "text": "发现"
+ "text": "健康"
},
{
"iconPath": "static/tabBar/tabBar_01.png",
"selectedIconPath": "static/tabBar/tabBar_show_01.png",
"pagePath": "pages/record/index",
- "text": "记录"
- },
- {
- "iconPath": "static/tabBar/tabBar_02.png",
- "selectedIconPath": "static/tabBar/tabBar_show_02.png",
- "pagePath": "pages/store/index",
- "text": "商城"
+ "text": "服务"
+ },
+ {
+ "iconPath": "static/tabBar/tabBar_02.png",
+ "selectedIconPath": "static/tabBar/tabBar_show_02.png",
+ "pagePath": "pages/store/index",
+ "text": "生活"
+ },
+ {
+ "iconPath": "static/tabBar/tabBar_01.png",
+ "selectedIconPath": "static/tabBar/tabBar_show_01.png",
+ "pagePath": "pages/im/index",
+ "text": "聊聊"
},
{
"iconPath": "static/tabBar/tabBar_03.png",
diff --git a/pages/im/index.vue b/pages/im/index.vue
new file mode 100644
index 0000000..c3b40ce
--- /dev/null
+++ b/pages/im/index.vue
@@ -0,0 +1,20 @@
+
+
+ im
+
+
+
+
+
+
diff --git a/pages/pay/pay.vue b/pages/pay/pay.vue
index ca6cec3..083c134 100644
--- a/pages/pay/pay.vue
+++ b/pages/pay/pay.vue
@@ -69,7 +69,16 @@
orderInfo,
success: payRes => {
console.log(payRes)
-
+ uni.showModal({
+ title: '支付成功',
+ content: '订单已支付,我们将尽快为您安排发货,可在订单管理查询订单动态',
+ showCancel:false,
+ success:onRes => {
+ if(onRes.confirm){
+ this.$Router.back()
+ }
+ }
+ })
},
fail: payErr => {
console.log(payErr)
diff --git a/pages/store/meals.vue b/pages/store/meals.vue
index b839d16..c1e9f35 100644
--- a/pages/store/meals.vue
+++ b/pages/store/meals.vue
@@ -2,8 +2,12 @@
-
+
+
+
+
+
{
+ meals(this.$Route.query.id, this.categoryId).then(res => {
uni.setNavigationBarTitle({
title: res.meal.subtitle
})
- console.log(res)
- this.banner = res.banners
- this.goodsArr = res.meal.goods
+ this.banner = res.meal.banner
+ this.goodsArr = res.goods
+ this.classify = [{ name: "全部", category_id: "" }].concat(res.categories)
uni.stopPullDownRefresh()
})
},
- click(){
- console.log('筛选')
+ onTabs(e){
+ this.categoryId = e.category_id
+ this.getMeals()
}
},
onPullDownRefresh() {