Browse Source

Signed-off-by: liuboyan <632697560@qq.com>
商品

liuboyan 4 years ago
parent
commit
b675afcf3b
2 changed files with 65 additions and 58 deletions
  1. 59 56
      iconFont/iconfont.css
  2. 6 2
      pagesMedia/liveDetail.vue

+ 59 - 56
iconFont/iconfont.css

@@ -1,186 +1,189 @@
 @font-face {
-	font-family: 'iconfont';
-	/* project id 2119167 */
-	src: url('http://at.alicdn.com/t/font_2119167_u21b8ogkchd.eot');
-	src: url('http://at.alicdn.com/t/font_2119167_u21b8ogkchd.eot?#iefix') format('embedded-opentype'),
-		url('http://at.alicdn.com/t/font_2119167_u21b8ogkchd.woff2') format('woff2'),
-		url('http://at.alicdn.com/t/font_2119167_u21b8ogkchd.woff') format('woff'),
-		url('http://at.alicdn.com/t/font_2119167_u21b8ogkchd.ttf') format('truetype'),
-		url('http://at.alicdn.com/t/font_2119167_u21b8ogkchd.svg#iconfont') format('svg');
+  font-family: 'iconfont';  /* project id 2119167 */
+  src: url('https://at.alicdn.com/t/font_2119167_ibmg2t1o6u.eot');
+  src: url('https://at.alicdn.com/t/font_2119167_ibmg2t1o6u.eot?#iefix') format('embedded-opentype'),
+  url('https://at.alicdn.com/t/font_2119167_ibmg2t1o6u.woff2') format('woff2'),
+  url('https://at.alicdn.com/t/font_2119167_ibmg2t1o6u.woff') format('woff'),
+  url('https://at.alicdn.com/t/font_2119167_ibmg2t1o6u.ttf') format('truetype'),
+  url('https://at.alicdn.com/t/font_2119167_ibmg2t1o6u.svg#iconfont') format('svg');
 }
-
 .iconfont {
-	font-family: "iconfont" !important;
-	font-size: 16px;
-	font-style: normal;
-	-webkit-font-smoothing: antialiased;
-	-moz-osx-font-smoothing: grayscale;
+  font-family: "iconfont" !important;
+  font-size: 16px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+
+.iconFill:before {
+  content: "\e64d";
 }
 
 .iconshangchuan1:before {
-	content: "\e64c";
+  content: "\e64c";
 }
 
 .iconzuo:before {
-	content: "\e633";
+  content: "\e633";
 }
 
 .iconyou:before {
-	content: "\e64b";
+  content: "\e64b";
 }
 
 .iconguanbi1:before {
-	content: "\e649";
+  content: "\e649";
 }
 
 .icongouwuche-gouwuche2:before {
-	content: "\e64a";
+  content: "\e64a";
 }
 
 .iconshangjia-shanghu:before {
-	content: "\e648";
+  content: "\e648";
 }
 
 .iconguanyu:before {
-	content: "\e647";
+  content: "\e647";
 }
 
 .iconfeigouxuan:before {
-	content: "\e646";
+  content: "\e646";
 }
 
 .iconfangxiang:before {
-	content: "\e622";
+  content: "\e622";
 }
 
 .icongengduo:before {
-	content: "\e623";
+  content: "\e623";
 }
 
 .icondaifahuo:before {
-	content: "\e624";
+  content: "\e624";
 }
 
 .iconqueding:before {
-	content: "\e626";
+  content: "\e626";
 }
 
 .icondizhiguanli:before {
-	content: "\e627";
+  content: "\e627";
 }
 
 .iconfenxiangshanchu:before {
-	content: "\e628";
+  content: "\e628";
 }
 
 .icondizhi:before {
-	content: "\e629";
+  content: "\e629";
 }
 
 .icondaishouhuo:before {
-	content: "\e62a";
+  content: "\e62a";
 }
 
 .iconguanbi-guanbi:before {
-	content: "\e62b";
+  content: "\e62b";
 }
 
 .icondaifukuan:before {
-	content: "\e62c";
+  content: "\e62c";
 }
 
 .icondianpu:before {
-	content: "\e62d";
+  content: "\e62d";
 }
 
 .iconshangcheng-shangcheng:before {
-	content: "\e62e";
+  content: "\e62e";
 }
 
 .iconjifen:before {
-	content: "\e62f";
+  content: "\e62f";
 }
 
 .iconcaizhai:before {
-	content: "\e630";
+  content: "\e630";
 }
 
 .iconshouye-shouye:before {
-	content: "\e631";
+  content: "\e631";
 }
 
 .icondaipingjia:before {
-	content: "\e632";
+  content: "\e632";
 }
 
 .iconwode-wode:before {
-	content: "\e634";
+  content: "\e634";
 }
 
 .iconVIP:before {
-	content: "\e635";
+  content: "\e635";
 }
 
 .iconpaimai:before {
-	content: "\e636";
+  content: "\e636";
 }
 
 .iconshangjia:before {
-	content: "\e637";
+  content: "\e637";
 }
 
 .iconyishouhuo:before {
-	content: "\e638";
+  content: "\e638";
 }
 
 .iconquanxian:before {
-	content: "\e639";
+  content: "\e639";
 }
 
 .icongouwuche:before {
-	content: "\e63a";
+  content: "\e63a";
 }
 
 .iconshangcheng:before {
-	content: "\e63b";
+  content: "\e63b";
 }
 
 .iconshouye:before {
-	content: "\e63c";
+  content: "\e63c";
 }
 
 .iconzhibo-zhibo:before {
-	content: "\e63d";
+  content: "\e63d";
 }
 
 .iconshangchuan:before {
-	content: "\e63e";
+  content: "\e63e";
 }
 
 .iconzhibo-shangpin:before {
-	content: "\e63f";
+  content: "\e63f";
 }
 
 .iconyouhuiquan:before {
-	content: "\e640";
+  content: "\e640";
 }
 
 .iconshezhi:before {
-	content: "\e641";
+  content: "\e641";
 }
 
 .iconwode:before {
-	content: "\e642";
+  content: "\e642";
 }
 
 .iconzhibo:before {
-	content: "\e643";
+  content: "\e643";
 }
 
 .iconzhongzhi:before {
-	content: "\e644";
+  content: "\e644";
 }
 
 .iconshijian:before {
-	content: "\e645";
+  content: "\e645";
 }
+

+ 6 - 2
pagesMedia/liveDetail.vue

@@ -14,7 +14,7 @@
 				<scroll-view scroll-y="true" class="good-select-box">
 					<view class="select-good-row" v-for="(item, index) in goodList" :key="index">
 						<view class="good-check">
-							<view class="iconfont" :class="item.check ? 'iconqueding' : 'iconfeigouxuan'" @click="item.check = !item.check"></view>
+							<view class="iconfont" :class="item.check ? 'iconqueding' : 'iconfeigouxuan'" @click="checkGoods(item)"></view>
 						</view>
 						<view class="good-card" style="width: calc(100% - 60px);">
 							<cover-image class="goods-img" :src="item.imgPath"></cover-image>
@@ -99,7 +99,6 @@
 			this.options.localAudio = true; //开启麦克风
 			this.options.localVideo = true; //开启视频
 			NET.request(API.getLiveData + this.liveId, {}, 'POST').then(res => {
-				debugger
 				this.enterRoom({
 					roomID: Number(res.data.roomId),
 					userID: uni.getStorageSync("userData").userId,
@@ -113,6 +112,11 @@
 			})
 		},
 		methods: {
+			//  勾选商品
+			checkGoods(site){
+					debugger
+				site.check = !site.check
+			},
 			//  获取可绑定商品
 			getAllGoods(goodsIds) {
 				NET.request(API.getVideoGoods, {}, 'GET').then(res => {