Browse Source

bugfix: live

able99 4 years ago
parent
commit
4fcf0a64d5
4 changed files with 239 additions and 33 deletions
  1. 2 2
      jhim/jhim.js
  2. 0 2
      jhlive/jhlive.nvue
  3. 228 20
      pages.json
  4. 9 9
      pagesGood/liveDetail.nvue

+ 2 - 2
jhim/jhim.js

@@ -108,8 +108,8 @@ class JhImGroup {
 	}
 	offReady(cb) {
 		if(!cb) return this;
-		this.tim.off(TIM.EVENT.SDK_READY, cb.jhimcbready);
-		this.tim.off(TIM.EVENT.SDK_NOT_READY, cb.jhimcbnotready);
+		this.jhim.tim.off(TIM.EVENT.SDK_READY, cb.jhimcbready);
+		this.jhim.tim.off(TIM.EVENT.SDK_NOT_READY, cb.jhimcbnotready);
 		return this;
 	}
 	sendText(text) {

+ 0 - 2
jhlive/jhlive.nvue

@@ -45,12 +45,10 @@
 					<!-- <view class="" v-if="isAuthor && showBeauty" @click="btnBeautify"> -->
 					<view v-if="isAuthor&&showBeauty" class="bottom-box-btns-arr" @click="btnBeautify">
 						<image class="btns-icon" :src="imgs.beauty"/>
-						<text class="btns-text">美颜</text>
 					</view>
 					<!-- <view class="" v-if="isAuthor && showSwitch" @click="btnChangeCamera"> -->
 					<view v-if="isAuthor&&showSwitch" class="bottom-box-btns-arr" @click="btnChangeCamera">
 						<image class="btns-icon" :src="imgs.switch"/>
-						<text class="btns-text">切换</text>
 					</view>
 					<view class="bottom-box-btns-arr" v-for="(item,index) in btns" :key="index" @click="clickBtns(index, item)">
 						<image class="btns-icon" :src="item.picture"/>

+ 228 - 20
pages.json

@@ -1,20 +1,228 @@
-{
-	"easycom": {
-		"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
-	},
-	"pages": [
-		{
-			"path": "pagesGood/liveDetail",
-			"style": {
-				"navigationBarTitleText": "直播详情"
-			}
-		}
-	],
-	"globalStyle": {
-		"navigationStyle": "default",
-		"navigationBarTextStyle": "black",
-		"navigationBarTitleText": "千家地",
-		"navigationBarBackgroundColor": "#ffffff",
-		"backgroundColor": "#F8F8F8"
-	}
-}
+{
+	"easycom": {
+		"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
+	},
+	"pages": [{
+			"path": "pages/index/index",
+			"style": {
+				"navigationBarTitleText": "首页",
+				"enablePullDownRefresh": true
+			}
+		}, {
+			"path": "pages/index/login",
+			"style": {
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/shop/index",
+			"style": {
+				"navigationBarTitleText": "商城",
+				"enablePullDownRefresh": true
+			}
+		},
+		{
+			"path": "pages/cart/cart",
+			"style": {
+				"navigationBarTitleText": "购物车",
+				"enablePullDownRefresh": true
+			}
+		},
+		{
+			"path": "pages/user/index",
+			"style": {
+				"navigationBarTitleText": "个人",
+				"enablePullDownRefresh": true
+			}
+		}
+	],
+	"subPackages": [{
+		"root": "pagesGood",
+		"pages": [{
+			"path": "goodDetails",
+			"style": {
+				"navigationBarTitleText": "商品详情"
+			}
+		}, {
+			"path": "goodList",
+			"style": {
+				"navigationBarTitleText": "商品列表",
+				"enablePullDownRefresh": true,
+				"backgroundColor": "#f7f7f7"
+			}
+		}, {
+			"path": "shopDetails",
+			"style": {
+				"navigationBarTitleText": "商铺详情"
+			}
+		}, {
+			"path": "auctionDetail",
+			"style": {
+				"navigationBarTitleText": "拍卖详情"
+			}
+		}, {
+			"path": "orderPay",
+			"style": {
+				"navigationBarTitleText": "填写订单"
+			}
+		}, {
+			"path": "evaluateList",
+			"style": {
+				"navigationBarTitleText": "评价列表",
+				"enablePullDownRefresh": true
+			}
+		}, {
+			"path": "videoList",
+			"style": {
+				"navigationBarTitleText": "直播大厅",
+				"enablePullDownRefresh": true
+			}
+		}, {
+			"path": "liveDetail",
+			"style": {
+				"navigationBarTitleText": "直播详情"
+			}
+		}, {
+			"path": "videoDetail",
+			"style": {
+				"navigationBarTitleText": "短视频详情"
+			}
+		}, {
+			"path": "plantVideo",
+			"style": {
+				"navigationBarTitleText": "共享种植直播"
+			}
+		}, {
+			"path": "pickVideo",
+			"style": {
+				"navigationBarTitleText": "自助采摘直播"
+			}
+		}]
+	}, {
+		"root": "pagesMain",
+		"pages": [{
+			"path": "plantList",
+			"style": {
+				"navigationBarTitleText": "我的种植",
+				"enablePullDownRefresh": true,
+				"backgroundColor": "#f7f7f7"
+			}
+		}, {
+			"path": "entrustList",
+			"style": {
+				"navigationBarTitleText": "委托列表",
+				"enablePullDownRefresh": true,
+				"backgroundColor": "#f7f7f7"
+			}
+		}, {
+			"path": "entrustForm",
+			"style": {
+				"navigationBarTitleText": "发布委托",
+				"backgroundColor": "#f7f7f7"
+			}
+		}, {
+			"path": "addressList",
+			"style": {
+				"navigationBarTitleText": "我的地址",
+				"enablePullDownRefresh": true
+			}
+		}, {
+			"path": "addressForm",
+			"style": {
+				"navigationBarTitleText": "新增地址",
+				"backgroundColor": "#f7f7f7"
+			}
+		}, {
+			"path": "couponList",
+			"style": {
+				"navigationBarTitleText": "我的优惠券",
+				"enablePullDownRefresh": true,
+				"backgroundColor": "#f7f7f7"
+			}
+		}, {
+			"path": "integralList",
+			"style": {
+				"navigationBarTitleText": "我的积分",
+				"enablePullDownRefresh": true
+			}
+		}, {
+			"path": "orderList",
+			"style": {
+				"navigationBarTitleText": "订单中心",
+				"backgroundColor": "#f7f7f7",
+				"enablePullDownRefresh": true
+			}
+		}, {
+			"path": "orderDetail",
+			"style": {
+				"navigationBarTitleText": "订单详情",
+				"backgroundColor": "#f7f7f7"
+			}
+		}, {
+			"path": "logisticsDeatil",
+			"style": {
+				"navigationBarTitleText": "物流追踪"
+			}
+		}, {
+			"path": "evaluateForm",
+			"style": {
+				"navigationBarTitleText": "评价订单"
+			}
+		}, {
+			"path": "messageList",
+			"style": {
+				"navigationBarTitleText": "留言列表",
+				"enablePullDownRefresh": true
+			}
+		}, {
+			"path": "messageForm",
+			"style": {
+				"navigationBarTitleText": "发布留言"
+			}
+		}, {
+			"path": "paySuccess",
+			"style": {
+				"navigationBarTitleText": "支付结果"
+			}
+		}, {
+			"path": "aboutUs",
+			"style": {
+				"navigationBarTitleText": "关于我们"
+			}
+		}]
+	}],
+	"globalStyle": {
+		"navigationStyle": "default",
+		"navigationBarTextStyle": "black",
+		"navigationBarTitleText": "千家地",
+		"navigationBarBackgroundColor": "#ffffff",
+		"backgroundColor": "#F8F8F8"
+	},
+	"tabBar": {
+		"borderStyle": "black",
+		"backgroundColor": "#fff",
+		"color": "#9A9A9A",
+		"selectedColor": "#52A63A",
+		"list": [{
+			"pagePath": "pages/index/index",
+			"iconPath": "static/images/icon-index.png",
+			"selectedIconPath": "static/images/icon-index-active.png",
+			"text": "首页"
+		}, {
+			"pagePath": "pages/shop/index",
+			"iconPath": "static/images/icon-shop.png",
+			"selectedIconPath": "static/images/icon-shop-active.png",
+			"text": "商城"
+		}, {
+			"pagePath": "pages/cart/cart",
+			"iconPath": "static/images/icon-cart.png",
+			"selectedIconPath": "static/images/icon-cart-active.png",
+			"text": "购物车"
+		}, {
+			"pagePath": "pages/user/index",
+			"iconPath": "static/images/icon-mine.png",
+			"selectedIconPath": "static/images/icon-mine-active.png",
+			"text": "个人"
+		}]
+	}
+}

+ 9 - 9
pagesGood/liveDetail.nvue

@@ -95,14 +95,14 @@
 			this.windowHeight = info.windowHeight;
 		},
 		onReady() {
-			this.isAuthor = false;
-			this.linkMic = true;
-			this.userId = "22";
-			this.userName = "ss";
-			this.title = 'test';
-			this.roomId = '11';
-			this.$nextTick(() => this.enterRoom());
-			return;
+			// this.isAuthor = false;
+			// this.linkMic = true;
+			// this.userId = "22";
+			// this.userName = "ss";
+			// this.title = 'test';
+			// this.roomId = '11';
+			// this.$nextTick(() => this.enterRoom());
+			// return;
 
 			this.init();
 		},
@@ -111,7 +111,7 @@
 		},
 		methods: {
 			init() {
-				NET.request(API.getLiveGoodsDetail + options.liveId, {}, 'GET').then(res => {
+				NET.request(API.getLiveGoodsDetail + this.liveId, {}, 'GET').then(res => {
 					this.goodsList = res.data
 				}).catch(res => {
 					uni.showToast({