wangming 1 місяць тому
батько
коміт
2f227a00d1

+ 1 - 1
src/components/js_sdk/index.js

@@ -7,7 +7,7 @@ http.setConfig(config => {
         if (!selectedService || selectedService == 'aloneServe') {
             config.baseUrl = "https://api.radar-power.asia:4443/portal-service-server/";
         }
-        config.baseUrl = "https://radar-power.cn/portal-service-server/";
+        // config.baseUrl = "https://radar-power.cn/portal-service-server/";
     }
     if (__wxConfig.envVersion == 'trial') {
         let selectedService = uni.getStorageSync("sercviceChoice")

+ 9 - 0
src/pages.json

@@ -195,6 +195,15 @@
                         "navigationBarBackgroundColor": "#faede2",
                         "navigationBarTextStyle": "black"
                     }
+                },
+                {
+                    "path": "survey/survey",
+                    "style": {
+                        "enablePullDownRefresh": true,
+                        "navigationBarTitleText": "问卷调查",
+                        "navigationBarBackgroundColor": "#faede2",
+                        "navigationBarTextStyle": "black"
+                    }
                 }
             ]
         }

+ 7 - 1
src/pages/home/home.vue

@@ -70,8 +70,9 @@
             </view>
         </view>
 
-        <view class="bottom">
+        <view class="bottom" @click="gotoSurvey('/pagesA/survey/survey')">
             <image src="../../static/linkService.png" mode="" />
+            <!-- <button>联系客服</button> -->
             <button open-type="contact">联系客服</button>
         </view>
         <view class="bot_version"> v3.0.7 </view>
@@ -294,6 +295,11 @@ export default {
                     ?.itemName || "未知"
             );
         },
+        gotoSurvey(path) {
+            uni.navigateTo({
+                url: path,
+            });
+        },
     },
     onLoad() {},
     onShow() {

+ 28 - 0
src/pagesA/survey/survey.vue

@@ -0,0 +1,28 @@
+<template>
+    <view class="container">
+        <!-- 使用绝对路径引用本地文件 -->
+        <web-view
+            src="https://radar-power.cn/device/detail?devId=1945297099374182401&clientId=806599CDE77C"
+        />
+    </view>
+</template>
+
+<script>
+export default {
+    data() {
+        return {
+            // 使用绝对路径引用 static 文件夹中的文件
+            surveyUrl: "",
+        };
+    },
+    onShow() {
+        console.log("surveyUrl:", this.surveyUrl); // 确保路径正确
+    },
+};
+</script>
+
+<style>
+.container {
+    height: 100%;
+}
+</style>