谢杰标 2 years ago
parent
commit
2a8a9ea072
3 changed files with 10 additions and 4 deletions
  1. 2 2
      common/request.js
  2. 1 1
      manifest.json
  3. 7 1
      pages3/course/detail.vue

+ 2 - 2
common/request.js

@@ -22,9 +22,9 @@ export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
 // export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release-祥粤云学堂
 // export const WEBVIEW_URL = 'https://cm.xyyxt.net/'  //release-祥粤学堂
 // export const WEBVIEW_URL = 'https://zstcm.xyyxt.net/'  //release-中建云学堂
-export const WEBVIEW_URL = 'https://live.gdzzkj.net/'  //release-中正学堂
+// export const WEBVIEW_URL = 'https://live.gdzzkj.net/'  //release-中正学堂
 // export const WEBVIEW_URL = 'https://testm.xyyxt.net/'  //预发布
-// export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境-祥粤云学堂
+export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境-祥粤云学堂
 // export const WEBVIEW_URL = 'http://120.79.166.78:18011/' // 测试环境-祥粤学堂  
 // export const WEBVIEW_URL = 'http://api.xyyxt.net:6066/'  //预发布(弃用了)
 

+ 1 - 1
manifest.json

@@ -75,7 +75,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wx5872ef563d13dabf", // 祥粤云学堂:wxd3c8ae80cf43a305, 祥粤学堂-wx871153afc95f55f4 , 中正学堂-wx5872ef563d13dabf
+        "appid" : "wxd3c8ae80cf43a305", // 祥粤云学堂:wxd3c8ae80cf43a305, 祥粤学堂-wx871153afc95f55f4 , 中正学堂-wx5872ef563d13dabf
         "setting" : {
             "urlCheck" : false,
             "postcss" : true,

+ 7 - 1
pages3/course/detail.vue

@@ -360,7 +360,9 @@
                         <view class="check_box_item_titme">{{
                           spec.name
                         }}</view>
-                        <view class="price">¥{{ spec.standPrice }}</view>
+                        <view class="price" v-if="spec.goodsId"
+                          >¥{{ spec.standPrice }}</view
+                        >
                       </view>
                     </u-checkbox>
                   </view>
@@ -581,6 +583,7 @@ export default {
     },
     // 修改用户活动邀请码
     editShareActivityCode() {
+      goodsIds;
       console.log("修改用户活动邀请码");
       this.$http({
         url: "/app/user/edit/shareActivityCode",
@@ -1173,6 +1176,9 @@ export default {
       });
     },
     rightNowBuy() {
+      if (!this.goodsIds.some((e) => e)) {
+        return this.$u.toast("无法购买,请先配置商品");
+      }
       let goodsIds = [...new Set(this.goodsIds)];
       this.$api.checkGoodsStatus({ goodsIds }).then((res) => {
         if (res.data.code == 500) {