Browse Source

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

liuboyan 4 years ago
parent
commit
635d6687ce
2 changed files with 7 additions and 7 deletions
  1. 2 2
      pagesGood/orderPay.vue
  2. 5 5
      pagesGood/videoDetail.vue

+ 2 - 2
pagesGood/orderPay.vue

@@ -55,7 +55,7 @@
 					 v-if="orderType == 1">
 						<view>
 							<text class="order-text-left">{{coupon.couponName}}</text>
-							<text class="order-text-right">-¥{{coupon.discountAmount.toFixed(2)}}</text>
+							<text class="order-text-right">-¥{{coupon.discountAmount}}</text>
 						</view>
 					</u-cell-item>
 					<u-field label="备注" v-model="notes" placeholder="请输入备注" :border-bottom="false" label-align="right" label-width="170"
@@ -235,7 +235,7 @@
 				this.coupon = {
 					couponId: item.couponId,
 					couponName: item.couponName,
-					discountAmount: item.discountAmount,
+					discountAmount: parseFloat(item.discountAmount).toFixed(2),
 					couponType: item.couponType,
 				}
 				this.$refs.popup.close()

+ 5 - 5
pagesGood/videoDetail.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="container">
-		<view class="video-box" @click="popupShow = true">
+		<view class="video-box">
 			<video id="myVideo" class="my-video" :src="videoUrl" @error="videoErrorCallback" controls></video>
 		</view>
 		<view class="popup-open" @click="showGoods()">
@@ -43,7 +43,7 @@
 			}
 		},
 		onLoad(options) {
-			this.videoUrl = uni.getStorageSync("videoUrl")
+			this.videoUrl = uni.getStorageSync("videoUrl").replace("http://","https://")
 			NET.request(API.getShortGoodsDetail + options.videoId, {}, 'GET').then(res => {
 				this.goodsList = res.data
 			}).catch(res => {
@@ -62,7 +62,7 @@
 			closeGoods() {
 				this.$refs.popup.close()
 			},
-			goToGoodDetails() {
+			goToGoodDetails(item) {
 				uni.navigateTo({
 					url: '/pagesGood/goodDetails?goodId=' + item.productId
 				});
@@ -79,9 +79,9 @@
 
 	.container {
 		width: 100%;
-		height: 100;
+		height: 100%;
 		float: left;
-		position: relative;
+		
 
 		.video-box {
 			width: 100%;