liyongli 1 年之前
父節點
當前提交
68df522391

+ 1 - 1
config/index.js

@@ -1,4 +1,4 @@
 export const config = {
-  base: "http://ssp-server.smcic.net",
+  base: "https://ssp-server.smcic.net",
   meetID: 1066
 }

+ 0 - 1
pages/detail/stroke.wxss

@@ -1,6 +1,5 @@
 /* pages/detail/stroke.wxss */
 .stroke_detail {
-  
   height: 100vh;
   box-sizing: border-box;
   color: var(--base-color);

+ 0 - 1
pages/detail/textImage.wxss

@@ -1,6 +1,5 @@
 /* pages/detail/textImage.wxss */
 .textImage {
-  
   width: 100%;
   min-height: 100vh;
   padding-bottom: 15rpx;

+ 1 - 1
pages/home/home.wxml

@@ -41,7 +41,7 @@
     </van-row>
   </view> -->
 
-  <view class="card_list">
+  <view class="card_list" wx:if="{{news && news.length}}">
     <van-row>
       <van-col span="12">
         <view class="card_list_title">资讯论坛</view>

+ 4 - 4
pages/livePhone/index.js

@@ -26,7 +26,8 @@ Page({
   size: 10,
   total: 0,
   changeMeet(e) {
-    console.log(e.detail)
+    this.page = 1;
+    this.getPhone(e.detail.name);
   },
   imageLoad(e) {
     const {
@@ -63,7 +64,6 @@ Page({
       size,
       id
     }).then(res => {
-      console.log(res)
       this.page += 1;
       this.total = res.total;
       this.setData({
@@ -79,7 +79,7 @@ Page({
     api.getStroke().then(strokeList => {
       const item = strokeList[0] || {}
       this.setData({
-        actMeet: item.id,
+        actMeet: item.id + "",
         tabs: strokeList
       })
       this.getPhone(item.id);
@@ -125,7 +125,7 @@ Page({
    * 页面上拉触底事件的处理函数
    */
   onReachBottom() {
-    if( this.total <= this.data.images.length) return
+    if (this.total <= this.data.images.length) return
     this.getPhone(this.data.actMeet);
   },
 

+ 1 - 0
pages/livePhone/index.json

@@ -1,6 +1,7 @@
 {
   "navigationBarTitleText": "直播照片",
   "usingComponents": {
+    "van-empty": "@vant/weapp/empty/index",
     "van-tab": "@vant/weapp/tab/index",
     "van-tabs": "@vant/weapp/tabs/index",
     "van-grid": "@vant/weapp/grid/index",

+ 1 - 0
pages/livePhone/index.wxml

@@ -8,4 +8,5 @@
   <view style="margin-top: 1em;text-align: center;padding-right: 5px;">
     <image wx:for="{{images}}" wx:key="index" bindtap="showImage" data-index="{{index}}" src="{{item.photo}}" style="{{'width:' + phone.width + 'px;height:160rpx;margin-left:5px'}}" mode="aspectFit" />  
   </view>
+  <van-empty wx:if="{{!images || !images.length}}" description="" />
 </view>

+ 1 - 0
pages/liveVideo/index.json

@@ -1,6 +1,7 @@
 {
   "navigationBarTitleText": "精彩视频",
   "usingComponents": {
+    "van-empty": "@vant/weapp/empty/index",
     "van-cell": "@vant/weapp/cell/index",
     "van-cell-group": "@vant/weapp/cell-group/index"
   }

+ 2 - 0
pages/liveVideo/index.wxml

@@ -5,5 +5,7 @@
       <image src="{{item.cover}}" style="width:650rpx;height: 380rpx" mode="aspectFit" />
       <view class="media-card-item-title van-multi-ellipsis--l2">{{item.title}}</view>
     </view>
+
+    <van-empty wx:if="{{!videos || !videos.length}}" description="" />
   </view>
 </view>

+ 2 - 14
project.private.config.json

@@ -3,19 +3,7 @@
   "projectname": "miniprogram-1",
   "setting": {
     "compileHotReLoad": true,
-    "urlCheck": false
+    "urlCheck": true
   },
-  "condition": {
-    "miniprogram": {
-      "list": [
-        {
-          "name": "pages/signUp/index",
-          "pathName": "pages/signUp/index",
-          "query": "",
-          "launchMode": "default",
-          "scene": null
-        }
-      ]
-    }
-  }
+  "condition": {}
 }