柒零 1 an în urmă
părinte
comite
f76dba5f85

+ 11 - 0
app.js

@@ -96,6 +96,17 @@ App({
   onShow() {
     wx.hideTabBar()
   },
+  handleStartupParams(options) {
+    if (options.scene === 1047 || options.scene === 1048) { // 扫码场景
+      const scene = decodeURIComponent(options.query.scene);
+      switch (scene) {
+        case 'page1':
+          wx.navigateTo({ url: '/pages/page1/page1' });
+          break;
+        // 添加更多页面
+      }
+    }
+  },
   onHide: function () {
     wx.setStorageSync('userName', '');
     wx.setStorageSync('isLogin', false);

+ 1 - 1
subpages/constitutionDiagnosis/constitutionDiagnosis.js

@@ -535,7 +535,7 @@ Page({
 								success() {
 									setTimeout(() => {
 										wx.navigateTo({
-											url: `/subpages/detectionResult/detectionResult?comScoreIndex=${comScoreIndex}`,
+											url: `/subpages/detectionResult/detectionResult?comScoreIndex=${comScoreIndex.slice(0,1)}`,
 										})
 									}, 1000);
 								}

+ 22 - 2
subpages/detectionResult/detectionResult.wxml

@@ -1,7 +1,7 @@
 <!--subpages/detectionResult.wxml-->
 <view>
     <wxs module="jstools" src="/subpages/wxs/includes.wxs"></wxs>
-    <swiper indicator-dots="{{false}}" autoplay="{{false}}" interval="{{2000}}" duration="{{500}}" class="swiper-page">
+    <!-- <swiper indicator-dots="{{false}}" autoplay="{{false}}" interval="{{2000}}" duration="{{500}}" class="swiper-page">
         <block wx:for="{{ratingResultsList}}" wx:if="{{jstools.includes(comScoreIndex,index)}}" wx:key="*this">
             <swiper-item>
                 <view class="swiper-item">
@@ -19,5 +19,25 @@
                 </view>
             </swiper-item>
         </block>
-    </swiper>
+    </swiper> -->
+
+
+    <view class="swiper-page">
+        <view wx:for="{{ratingResultsList}}" wx:if="{{jstools.includes(comScoreIndex,index)}}" wx:key="*this">
+
+            <view class="swiper-item">
+                <scroll-view scroll-y class="scroll-box">
+                    <view class="container-page">
+                        <image style="display: block;width: 100vw;position: absolute; z-index: -1;"
+                            src="/subpages/bg/ic_detection_result_bg.svg" mode="widthFix">
+                        </image>
+                        <text class="title">{{item.title}}</text>
+                        <text class="tips">{{item.tips}}</text>
+                        <text class="subTitle">{{item.subTitle}}</text>
+                        <text class="desc">{{item.desc}}</text>
+                    </view>
+                </scroll-view>
+            </view>
+        </view>
+    </view>
 </view>