yf 4 сар өмнө
parent
commit
8359ea288b

+ 0 - 2
wisdom-app/src/app/tab3/tab3.page.html

@@ -88,9 +88,7 @@
     <ion-button fill="clear" (click)="viewMore('special')">查看更多</ion-button>
   </div>
 </div>
-<div>
 
-</div>
 <!-- 商品卡片列表区域 -->
 <div class="product-container">
   <ng-container *ngFor="let product of products">

+ 97 - 3
wisdom-server/migration/data.js

@@ -1159,7 +1159,7 @@ module.exports.DrugList = [
       "function": "抗菌消炎,用于敏感菌引起的感染",
       "spec": "0.25g*10片/盒",
       "composition": "头孢克肟",
-      "taboo": "对头孢菌素过敏者禁用"
+      "taboo": "对头孢菌素过敏者禁用",
   },
   {
       "objectId": "002",
@@ -1171,7 +1171,8 @@ module.exports.DrugList = [
       "function": "解热镇痛,用于轻至中度疼痛",
       "spec": "200mg*10粒/盒",
       "composition": "布洛芬",
-      "taboo": "孕妇、哺乳期妇女慎用"
+      "taboo": "孕妇、哺乳期妇女慎用",
+      "marketing": "special" 
   },
   {
       "objectId": "003",
@@ -1183,8 +1184,101 @@ module.exports.DrugList = [
       "function": "抗过敏,用于缓解鼻炎症状",
       "spec": "10mg*10片/盒",
       "composition": "氯雷他定",
-      "taboo": "对本品成分过敏者禁用"
+      "taboo": "对本品成分过敏者禁用",
+      "marketing": "special" 
   },
+  {
+    "objectId": "004",
+    "name": "阿莫西林胶囊",
+    "price": "¥40",
+    "image": "https://img1.baidu.com/it/u=285032516,1257588176&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800",
+    "prescription": true,
+    "usage": "口服,每次1粒,每日3次",
+    "function": "抗菌消炎,用于敏感菌引起的感染",
+    "spec": "500mg*10粒/瓶",
+    "composition": "阿莫西林",
+    "taboo": "对青霉素类药物过敏者禁用",
+    "marketing": "hot"
+  },
+  {
+    "objectId": "005",
+    "name": "感冒灵颗粒",
+    "price": "¥25",
+    "image": "https://img0.baidu.com/it/u=1196302112,3635932670&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
+    "prescription": false,
+    "usage": "口服,每次1袋,每日3次",
+    "function": "缓解感冒症状,减轻头痛、咳嗽、流感症状",
+    "spec": "10g*12袋/盒",
+    "composition": "氯苯那敏、对乙酰氨基酚",
+    "taboo": "孕妇、哺乳期妇女慎用",
+    "marketing": "hot",
+
+  },
+  {
+    "objectId": "006",
+    "name": "硝呋太尔片",
+    "price": "¥60",
+    "image": "http://t14.baidu.com/it/u=804604368,3931341753&fm=224&app=112&f=JPEG?w=500&h=500",
+    "prescription": true,
+    "usage": "口服,每次1片,每日2次",
+    "function": "抗菌消炎,用于泌尿系统感染",
+    "spec": "0.2g*20片/盒",
+    "composition": "硝呋太尔",
+    "taboo": "孕妇、哺乳期妇女慎用"
+  },
+  {
+    "objectId": "007",
+    "name": "复方氯雷他定片",
+    "price": "¥35",
+    "image": "https://drug-platform.cdn.bcebos.com/drug-platform/online/drug/d1708155468458393265.jpg?x-bce-process=image/auto-orient,o_1/resize,w_1242,limit_1/quality,Q_85/format,f_auto",
+    "prescription": false,
+    "usage": "口服,每次1片,每日1次",
+    "function": "缓解过敏症状,如鼻炎、皮肤过敏",
+    "spec": "5mg+5mg*10片/盒",
+    "composition": "氯雷他定、伪麻黄碱",
+    "taboo": "对本品成分过敏者禁用"
+  },
+  {
+    "objectId": "008",
+    "name": "泮托拉唑钠肠溶片",
+    "price": "¥45",
+    "image": "http://t14.baidu.com/it/u=872318615,816279038&fm=224&app=112&f=JPEG?w=500&h=500",
+    "prescription": true,
+    "usage": "口服,每次1片,每日1次",
+    "function": "抗酸药,用于治疗胃酸过多、胃溃疡等",
+    "spec": "20mg*14片/盒",
+    "composition": "泮托拉唑钠",
+    "taboo": "孕妇、哺乳期妇女慎用"
+  },
+  {
+    "objectId": "009",
+    "name": "马来酸氯苯那敏片",
+    "price": "¥15",
+    "image": "https://img20.360buyimg.com/imgzone/jfs/t1/188854/34/12309/122345/60e6c435Ea107d0be/b065122f38867a10.jpg",
+    "prescription": false,
+    "usage": "口服,每次1片,每日2次",
+    "function": "用于缓解过敏引起的鼻塞、流鼻涕、喷嚏等症状",
+    "spec": "4mg*10片/盒",
+    "composition": "马来酸氯苯那敏",
+    "taboo": "对本品成分过敏者禁用",
+    "marketing": "hot"
+  },
+  {
+    "objectId": "010",
+    "name": "复方甘草片",
+    "price": "¥18",
+    "image": "https://img0.baidu.com/it/u=691273625,453632032&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
+    "prescription": false,
+    "usage": "口服,每次2片,每日3次",
+    "function": "用于缓解咳嗽、喉咙痛等症状",
+    "spec": "10g*20片/盒",
+    "composition": "甘草、薄荷、桔梗",
+    "taboo": "孕妇、哺乳期妇女慎用",
+    "marketing": "hot"
+  },
+
+  // parse-dashboard --appId dev --masterKey devmk --serverURL http://dev.fmode.cn:1337/parse --appName DevServer
+  // http://127.0.0.1:4040/
 ];
 
 // module.exports.AgentList = [

+ 1 - 1
wisdom-server/migration/import-data.js

@@ -12,7 +12,7 @@ DataMap = {
 };
 
 async function inportDapartAndDoctor() {
-    导入药品数据
+    // 导入药品数据
     let drugList = DrugList;
     for (let index = 0; index < drugList.length; index++) {
         let drug = drugList[index];