347617796@qq.com 4 yıl önce
ebeveyn
işleme
3c70cefb2f

+ 20 - 2
app.js

@@ -1,8 +1,8 @@
 import { showToast } from './utils/feedback'
 import { formatTime, arrRemoveObj,getTypeItem } from './utils/util'
 
-// const baseUrl = "https://test-ding.g107.com/";//测试
-const baseUrl = "https://ding.insys.g107.com/";//正式
+const baseUrl = "https://test-ding.g107.com/";//测试
+// const baseUrl = "https://ding.insys.g107.com/";//正式
 var that;
 var yearArr=[];
 var year=formatTime(new Date()).year;
@@ -62,6 +62,15 @@ App({
           }
         },
         fail: function (res) {
+          if(res.errorMessage=='NETWORK ERROR'){
+           dd.alert({
+              title: '网络异常',
+              content: '网络异常,请检查网络是否畅通,再重新进入应用',
+              buttonText: '我知道了',
+              success: () => {},
+            });
+            return;
+          }
           reject(res);
         },
         complete:function(){
@@ -96,6 +105,15 @@ App({
           }
         },
         fail: function (res) {
+         if(res.errorMessage=='NETWORK ERROR'){
+           dd.alert({
+              title: '网络异常',
+              content: '网络异常,请检查网络是否畅通,再重新进入应用',
+              buttonText: '我知道了',
+              success: () => {},
+            });
+            return;
+          }
           reject(res);
         }
       });

+ 2 - 1
app.json

@@ -31,7 +31,8 @@
     "pages/workbench/approve/approve",
     "pages/statistics/C_ranking/C_ranking",
     "pages/workbench/noJurisdiction/noJurisdiction",
-    "pages/init/init"
+    "pages/init/init",
+    "pages/deploy/sku/sku"
   ],
   "window": {
     "defaultTitle": "功道云",

+ 1 - 1
pages/deploy/addMoney/addMoney.axml

@@ -3,7 +3,7 @@
   <view style="height:100rpx">
     
   </view>
-  <view class="footer">
+  <view class="footer" onTap="openUrl">
     <view>续费升级</view>
   </view>
 </view>

+ 5 - 0
pages/deploy/addMoney/addMoney.js

@@ -6,6 +6,11 @@ Page({
     that = this;
     dd.setNavigationBar({ title: "续费升级" });
   },
+  openUrl(){
+     dd.navigateTo({
+          url: '../sku/sku?src'
+    })
+  },
   //跳转
   openView() {
     dd.navigateTo({

+ 3 - 0
pages/deploy/index/index.acss

@@ -4,6 +4,9 @@
   background-color: #26A2FF;
   margin-bottom: 94rpx;
 }
+.xusj{
+  opacity: 0
+}
 .head{
   position: absolute;
   top: 0;

+ 1 - 1
pages/deploy/index/index.axml

@@ -18,7 +18,7 @@
             <view>当前为共创版本</view>
             <!-- <view class="date">还有<text class="red">15天</text>到期</view> -->
           </view>
-          <!-- <view class="xusj" data-index="1" onTap="openView">续费升级</view> -->
+          <view class="xusj" data-index="1" onTap="openView">续费升级</view>
         </view>
       </view>
       <view class="flex-box flex-v-ce li margin-bottom" data-index="2" onTap="openView">

+ 0 - 0
pages/deploy/sku/sku.acss


+ 3 - 0
pages/deploy/sku/sku.axml

@@ -0,0 +1,3 @@
+<view>
+  <web-view id="web-view-1" src="{{src}}" onMessage="test"></web-view>
+</view>

+ 19 - 0
pages/deploy/sku/sku.js

@@ -0,0 +1,19 @@
+var app = getApp();
+var that;
+Page({
+  data: {
+    src: '',
+  },
+  onLoad(e) {
+    app.$get("api/order/goods/sku", { callback: "page/deploy/sku/sku", goods_code: 'DD_GOODS-610003' }).then((res) => {
+    //        dd.navigateTo({
+    //       url: '../sku/sku?src'
+    // })
+      this.setData({
+        src: res.data.data.url
+      })
+    }, (err) => {
+
+    })
+  },
+});

+ 1 - 0
pages/deploy/sku/sku.json

@@ -0,0 +1 @@
+{}