Browse Source

【第一版开发】

1.修改配置
2.登录提示增加取消按钮
3.数据页面优化数据查询时机
4.完善客服联系方式
ChenYL 8 months ago
parent
commit
cb634f1624

+ 2 - 2
.vscode/launch.json

@@ -10,9 +10,9 @@
         },
         },
         {
         {
             "type": "node-terminal",
             "type": "node-terminal",
-            "name": "SIT测试环境",
+            "name": "生产环境",
             "request": "launch",
             "request": "launch",
-            "command": "npm run dev:custom wp-sit",
+            "command": "npm run dev:custom wp-prod",
             "cwd": "${workspaceFolder}"
             "cwd": "${workspaceFolder}"
         }
         }
     ]
     ]

+ 1 - 16
package.json

@@ -4,8 +4,7 @@
   "scripts": {
   "scripts": {
     "dev:custom": "uni -p",
     "dev:custom": "uni -p",
     "dev:custom wp-dev": "npm run dev:custom wp-dev",
     "dev:custom wp-dev": "npm run dev:custom wp-dev",
-    "dev:custom wp-sit": "npm run dev:custom wp-sit",
-    "dev:custom wp-uat": "npm run dev:custom wp-uat",
+    "dev:custom wp-prod": "npm run dev:custom wp-prod",
     "build:custom": "uni build -p",
     "build:custom": "uni build -p",
     "build:custom wp-uat": "npm run build:custom wp-uat",
     "build:custom wp-uat": "npm run build:custom wp-uat",
     "build:custom wp-prod": "npm run build:custom wp-prod"
     "build:custom wp-prod": "npm run build:custom wp-prod"
@@ -19,20 +18,6 @@
           "BASE_API_URL": "http://localhost:8080"
           "BASE_API_URL": "http://localhost:8080"
         }
         }
       },
       },
-      "wp-sit": {
-        "title": "微信小程序 sit-测试环境",
-        "env": {
-          "UNI_PLATFORM": "mp-weixin",
-          "BASE_API_URL": "http://192.168.123.242:8080"
-        }
-      },
-      "wp-uat": {
-        "title": "微信小程序 uat-测试环境",
-        "env": {
-          "UNI_PLATFORM": "mp-weixin",
-          "BASE_API_URL": "https://api-dataeasy.20261001.xyz"
-        }
-      },
       "wp-prod": {
       "wp-prod": {
         "title": "微信小程序 prod-生产环境",
         "title": "微信小程序 prod-生产环境",
         "env": {
         "env": {

+ 22 - 12
src/pages/aboutUs.vue

@@ -4,8 +4,10 @@
     <view class="main-content">前端:小石</view>
     <view class="main-content">前端:小石</view>
     <view class="main-content">后端:小石</view>
     <view class="main-content">后端:小石</view>
     <view class="second-content">我是后端工程师,出于个人爱好,设计并开发了本小程序,不足之处还望包涵,如有任何建议或意见,欢迎提出。</view>
     <view class="second-content">我是后端工程师,出于个人爱好,设计并开发了本小程序,不足之处还望包涵,如有任何建议或意见,欢迎提出。</view>
-    <view class="main-content">联系方式:xxx@163.com</view>
-    <button class="contact-button" open-type="contact">联系我</button>
+    <view class="main-content">
+      联系方式:<button class="concat-btn" open-type="contact">》》》点击联系客服《《《</button>
+    </view>
+
   </view>
   </view>
 </template>
 </template>
 
 
@@ -41,17 +43,25 @@
     vertical-align: top;
     vertical-align: top;
   }
   }
 
 
-  .contact-button {
-    background-color: #4a90e2;
-    color: white;
+  .concat-btn {
+    display: inline-block;
+    color: #4a90e2;
+
+    font-size: 30rpx;
+    font-weight: 400;
+    letter-spacing: 0rpx;
+    line-height: 43.44rpx;
+    text-align: left;
+    vertical-align: top;
+    padding: 0;
+    margin: 0;
+    border: none;
+    outline: none;
+    background: none;
+  }
+
+  button::after {
     border: none;
     border: none;
-    padding: 10px 20px;
-    font-size: 16px;
-    cursor: pointer;
-    border-radius: 4px;
-    margin-top: 20px;
-    width: 100%;
-    max-width: 300px;
   }
   }
 }
 }
 </style>
 </style>

+ 1 - 5
src/pages/data/daLeTou.vue

@@ -87,7 +87,7 @@
 
 
 <script setup>
 <script setup>
 import { ref } from 'vue';
 import { ref } from 'vue';
-import { onPullDownRefresh, onShow, onLoad } from "@dcloudio/uni-app";
+import { onPullDownRefresh, onLoad } from "@dcloudio/uni-app";
 import { dataApi } from '@/apis/apis.js';
 import { dataApi } from '@/apis/apis.js';
 
 
 // 属性
 // 属性
@@ -120,10 +120,6 @@ onLoad((e) => {
   }
   }
 });
 });
 
 
-onShow(() => {
-  loadData();
-});
-
 onPullDownRefresh(() => {
 onPullDownRefresh(() => {
   loadData();
   loadData();
   uni.stopPullDownRefresh();
   uni.stopPullDownRefresh();

+ 1 - 5
src/pages/data/ipoBond.vue

@@ -30,7 +30,7 @@
 
 
 <script setup>
 <script setup>
 import { ref } from 'vue';
 import { ref } from 'vue';
-import { onPullDownRefresh, onShow, onLoad } from "@dcloudio/uni-app";
+import { onPullDownRefresh, onLoad } from "@dcloudio/uni-app";
 import { dataApi } from '@/apis/apis.js';
 import { dataApi } from '@/apis/apis.js';
 
 
 // 属性
 // 属性
@@ -63,10 +63,6 @@ onLoad((e) => {
   }
   }
 });
 });
 
 
-onShow(() => {
-  loadData();
-});
-
 onPullDownRefresh(() => {
 onPullDownRefresh(() => {
   loadData();
   loadData();
   uni.stopPullDownRefresh();
   uni.stopPullDownRefresh();

+ 1 - 5
src/pages/data/ipoStock.vue

@@ -52,7 +52,7 @@
 
 
 <script setup>
 <script setup>
 import { ref } from 'vue';
 import { ref } from 'vue';
-import { onPullDownRefresh, onShow, onLoad } from "@dcloudio/uni-app";
+import { onPullDownRefresh, onLoad } from "@dcloudio/uni-app";
 import { dataApi } from '@/apis/apis.js';
 import { dataApi } from '@/apis/apis.js';
 
 
 // 属性
 // 属性
@@ -85,10 +85,6 @@ onLoad((e) => {
   }
   }
 });
 });
 
 
-onShow(() => {
-  loadData();
-});
-
 onPullDownRefresh(() => {
 onPullDownRefresh(() => {
   loadData();
   loadData();
   uni.stopPullDownRefresh();
   uni.stopPullDownRefresh();

+ 1 - 5
src/pages/data/productHunt.vue

@@ -41,7 +41,7 @@
 
 
 <script setup>
 <script setup>
 import { ref } from 'vue';
 import { ref } from 'vue';
-import { onPullDownRefresh, onShow, onLoad } from "@dcloudio/uni-app";
+import { onPullDownRefresh, onLoad } from "@dcloudio/uni-app";
 import { dataApi } from '@/apis/apis.js';
 import { dataApi } from '@/apis/apis.js';
 
 
 // 属性
 // 属性
@@ -74,10 +74,6 @@ onLoad((e) => {
   }
   }
 });
 });
 
 
-onShow(() => {
-  loadData();
-});
-
 onPullDownRefresh(() => {
 onPullDownRefresh(() => {
   loadData();
   loadData();
   uni.stopPullDownRefresh();
   uni.stopPullDownRefresh();

+ 1 - 5
src/pages/data/shuangSeQiu.vue

@@ -72,7 +72,7 @@
 
 
 <script setup>
 <script setup>
 import { ref } from 'vue';
 import { ref } from 'vue';
-import { onPullDownRefresh, onShow, onLoad } from "@dcloudio/uni-app";
+import { onPullDownRefresh, onLoad } from "@dcloudio/uni-app";
 import { dataApi } from '@/apis/apis.js';
 import { dataApi } from '@/apis/apis.js';
 
 
 // 属性
 // 属性
@@ -105,10 +105,6 @@ onLoad((e) => {
   }
   }
 });
 });
 
 
-onShow(() => {
-  loadData();
-});
-
 onPullDownRefresh(() => {
 onPullDownRefresh(() => {
   loadData();
   loadData();
   uni.stopPullDownRefresh();
   uni.stopPullDownRefresh();

+ 22 - 1
src/pages/disclaimer.vue

@@ -12,7 +12,7 @@
 
 
     <view class="term">
     <view class="term">
       <view class="title">3.联系方式</view>
       <view class="title">3.联系方式</view>
-      <view class="content">如有问题请联系poker@coder.wang</view>
+      <view><button class="concat-btn" open-type="contact">》》》点击联系客服《《《</button></view>
     </view>
     </view>
   </view>
   </view>
 </template>
 </template>
@@ -47,5 +47,26 @@
     text-align: left;
     text-align: left;
     vertical-align: top;
     vertical-align: top;
   }
   }
+
+  .concat-btn {
+    display: inline-block;
+    color: #4a90e2;
+
+    font-size: 30rpx;
+    font-weight: 400;
+    letter-spacing: 0rpx;
+    line-height: 43.44rpx;
+    text-align: left;
+    vertical-align: top;
+    padding: 0;
+    margin: 0;
+    border: none;
+    outline: none;
+    background: none;
+  }
+
+  button::after {
+    border: none;
+  }
 }
 }
 </style>
 </style>

File diff suppressed because it is too large
+ 0 - 0
src/static/logo.svg


+ 0 - 1
src/utils/request.js

@@ -51,7 +51,6 @@ export default function request(config = {}) {
 					uni.showModal({
 					uni.showModal({
 						title: "登录提示",
 						title: "登录提示",
 						content: "登录凭据已失效,请重新登录",
 						content: "登录凭据已失效,请重新登录",
-						showCancel: false,
 						success: function (res) {
 						success: function (res) {
 							if (res.confirm) {
 							if (res.confirm) {
 								uni.navigateTo({
 								uni.navigateTo({

Some files were not shown because too many files changed in this diff