Explorar el Código

feat: 长乐获取memberid流程改造

chenyixian hace 5 meses
padre
commit
07f467ece7

+ 5 - 2
App.vue

@@ -1,6 +1,6 @@
 <script>
 import { GLOBALDATA, frontEndConfig, menu } from './config';
-import { common } from '@kasite/uni-app-base/utils';
+import { common, LocationSearch } from '@kasite/uni-app-base';
 import {
 	useFrontEndConfigVersion,
 	useSetFrontEndConfig,
@@ -11,6 +11,7 @@ import {
 	usePreserMember,
 	useSetFrontEndForm,
 	useSetMenuList,
+	useGetMemberIdByEncryptData,
 } from './hook';
 import { nextTick } from 'vue';
 
@@ -59,7 +60,9 @@ const main = async function () {
 	if (resp) {
 		app.globalData.logSuccess = true;
 		await useGetSysAppPageList();
-		await usePreserMember();
+		// await usePreserMember();
+		const search = new LocationSearch();
+		await useGetMemberIdByEncryptData(search.obj.EncryptData);
 		// 判断前端配置信息有修改获取form表单存储为空从新获取一遍form表单
 		if (
 			uni.getStorageSync('frontEndConfigRequest') ||

+ 4 - 2
env/.env.development

@@ -8,7 +8,9 @@ NODE_ENV = "development"
 VITE_APP_API_BASE_URL = "api/"
 
 # 代理请求地址
-VITE_APP_PROXY_API_BASE_URL = "https://cs001.kasitesoft.com/"
+VITE_APP_PROXY_API_BASE_URL = "https://fzsclqyy.com/KasiteWeb/"
+# VITE_APP_PROXY_API_BASE_URL = "https://cs001.kasitesoft.com/"
+# VITE_APP_PROXY_API_BASE_URL = "http://192.168.202.112:8670/"
 
 # 图片地址
-VITE_APP_IMAGE_URL = "https://cs001.kasitesoft.com/"
+VITE_APP_IMAGE_URL = "https://fzsclqyy.com/KasiteWeb/"

+ 2 - 2
env/.env.production

@@ -4,8 +4,8 @@
 NODE_ENV = "production"
 
 # 请求地址  
-VITE_APP_API_BASE_URL = "https://cs001.kasitesoft.com/"
+VITE_APP_API_BASE_URL = "https://fzsclqyy.com/KasiteWeb/"
 # VITE_APP_API_BASE_URL = "api/"
 
 # 图片地址
-VITE_APP_IMAGE_URL = "https://cs001.kasitesoft.com/"
+VITE_APP_IMAGE_URL = "https://fzsclqyy.com/KasiteWeb/"

+ 1 - 0
hook/index.ts

@@ -4,3 +4,4 @@ export * from '@kasite/uni-app-base/hook';
 export * from './use-on-load';
 
 export * from './use-menu-click';
+export * from './use-get-memberId-by-encrypt';

+ 9 - 0
hook/use-get-memberId-by-encrypt/index.ts

@@ -0,0 +1,9 @@
+import { GetMemberIdByEncryptData } from '@/pagesCrm/service';
+
+export const useGetMemberIdByEncryptData = async (EncryptData) => {
+	if (!EncryptData) return;
+	const res = await GetMemberIdByEncryptData({
+		EncryptData,
+	});
+	console.log(res);
+};

+ 1 - 1
manifest.json

@@ -42,7 +42,7 @@
     },
     "quickapp" : {},
     "mp-weixin" : {
-        "appid" : "wxede0b125eed31b0d",
+        "appid" : "wx7ea018499c4614af",
         "setting" : {
             "urlCheck" : false,
             "es6" : false,

+ 6 - 29
pages.json

@@ -1,15 +1,16 @@
 {
 	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
 		{
-			"path": "pages/business/tabbar/homePage/homePage",
+			"path": "pagesCrm/business/home/home",
 			"style": {
-				"navigationBarTitleText": "首页"
+				"navigationBarTitleText": "我的随访",
+				"enablePullDownRefresh": true
 			}
 		},
 		{
-			"path": "pages/business/tabbar/personalCenter/personalCenter",
+			"path": "pagesCrm/business/schemeDetail/schemeDetail",
 			"style": {
-				"navigationBarTitleText": "我的"
+				"navigationBarTitleText": ""
 			}
 		},
 		{
@@ -34,20 +35,6 @@
 				}
 			}
 		]
-	}, {
-		"root": "pagesCrm",
-		"pages": [{
-			"path": "business/home/home",
-			"style": {
-				"navigationBarTitleText": "我的随访",
-				"enablePullDownRefresh": true
-			}
-		}, {
-			"path": "business/schemeDetail/schemeDetail",
-			"style": {
-				"navigationBarTitleText": ""
-			}
-		}]
 	}],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
@@ -60,17 +47,7 @@
 		"borderStyle": "black",
 		"selectedColor": "#55AA56",
 		"color": "#B8BBBF",
-		"list": [{
-			"pagePath": "pages/business/tabbar/homePage/homePage",
-			"iconPath": "static/images/tabbar/homePage.png",
-			"selectedIconPath": "static/images/tabbar/homePage_ac.png",
-			"text": "首页"
-		}, {
-			"pagePath": "pages/business/tabbar/personalCenter/personalCenter",
-			"iconPath": "static/images/tabbar/personalCenter.png",
-			"selectedIconPath": "static/images/tabbar/personalCenter_ac.png",
-			"text": "我的"
-		}]
+		"list": []
 	},
 	"uniIdRouter": {}
 }

+ 0 - 33
pages/business/tabbar/homePage/homePage.vue

@@ -1,33 +0,0 @@
-<template>
-	<view class="color-primary p-20">首页</view>
-	<view>{{ text }}</view>
-	<uni-search-bar @confirm="" @input="" />
-	<uni-badge text="1" type="primary" />
-
-	<button @click="toCRM">CRM</button>
-</template>
-
-<script lang="ts" setup>
-import { ref } from 'vue';
-import { useOnLoad } from '@/hook';
-import { common } from '@/utils';
-
-const app = getApp();
-
-const text = ref('Hello world');
-const fn = () => {
-	console.log('logSuccess');
-};
-
-const toCRM = () => {
-	common.goToUrl("/pagesCrm/business/home/home")
-};
-
-useOnLoad(fn);
-</script>
-
-<style lang="scss" scoped>
-.color-primary {
-	color: var(--uni-color-primary);
-}
-</style>

+ 0 - 9
pages/business/tabbar/personalCenter/personalCenter.vue

@@ -1,9 +0,0 @@
-<template>
-123
-</template>
-
-<script lang="ts" setup>
-</script>
-
-<style lang="scss" scoped>
-</style>

+ 15 - 0
pagesCrm/service/home/index.ts

@@ -1,6 +1,21 @@
 import { REQUEST_CONFIG } from '@/config';
 import { request, handle } from '@kasite/uni-app-base';
 
+/**
+ * 获取患者ID 通过加密串
+ * @param EncryptData String 加密串
+ */
+export const GetMemberIdByEncryptData = async (queryData: any) => {
+	let resp = handle.promistHandle(
+		await request.doPost(
+			`${REQUEST_CONFIG.BASE_URL}wsgw/crm/diyBusiness/GetMemberIdByEncryptData/callApiJSON.do`,
+			queryData
+		)
+	);
+	return handle.catchPromise(resp, () => resp);
+};
+
+
 /**
  * 查询患者执行计划科室列表
  * @param MemberId String 患者ID