浏览代码

feat:药师小程序落地页

钱新宇 1 天之前
父节点
当前提交
00bcd9cc88
共有 3 个文件被更改,包括 57 次插入6 次删除
  1. 7 1
      pages.json
  2. 45 0
      pages/doctor/index.vue
  3. 5 5
      uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.vue

+ 7 - 1
pages.json

@@ -248,7 +248,7 @@
     {
       "path": "pages/article/index",
       "style": {
-        "navigationBarTitleText": "资讯列表"
+        "navigationBarTitleText": "文章列表"
       }
     },
     {
@@ -292,6 +292,12 @@
       "style": {
         "navigationBarTitleText": "确认支付"
       }
+    },
+    {
+      "path": "pages/doctor/index",
+      "style": {
+        "navigationBarTitleText": "执药考试"
+      }
     }
   ],
   "globalStyle": {

+ 45 - 0
pages/doctor/index.vue

@@ -0,0 +1,45 @@
+<template>
+  <view class="index" @click="_handleClick">
+    <image src="https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/index/doctor_bg.png" mode="widthFix" />
+  </view>
+</template>
+
+<script>
+export default {
+  onLoad() {
+    // #ifdef MP-WEIXIN
+    //分享按钮
+    uni.showShareMenu({
+      withShareTicket: true,
+      menus: ['shareAppMessage', 'shareTimeline'],
+    });
+    // #endif
+  },
+  onShareAppMessage(obj) {
+    // 返回分享信息
+    return {
+      title: '999智控终端平台\n执业药师要上岸,免费题库来相伴!',
+      path: '/pages/doctor/index',
+      imageUrl: 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/index/doctor_share.png',
+    };
+  },
+  methods: {
+    _handleClick() {
+      uni.navigateToMiniProgram({
+        appId: 'wx37802f7af7be337e',
+      });
+    },
+  },
+};
+</script>
+
+<style scoped lang="less">
+.index {
+  height: 100vh;
+  overflow: hidden;
+  background-color: #f43022;
+  image {
+    width: 100vw;
+  }
+}
+</style>

+ 5 - 5
uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.vue

@@ -98,12 +98,12 @@ export default {
           });
           break;
         case 1:
-          //   uni.switchTab({
-          //     url: '/pages/shop/shop',
-          //   });
-          uni.navigateToMiniProgram({
-            appId: 'wx37802f7af7be337e',
+          uni.navigateTo({
+            url: '/pages/doctor/index',
           });
+          // uni.navigateToMiniProgram({
+          //   appId: 'wx37802f7af7be337e',
+          // });
           break;
         case 2:
           uni.switchTab({