fuwei пре 6 година
родитељ
комит
f07ff7fa14
1 измењених фајлова са 9 додато и 4 уклоњено
  1. 9 4
      mall/src/pages/order/detail.vue

+ 9 - 4
mall/src/pages/order/detail.vue

@@ -2,7 +2,7 @@
 	<div class="app-content">
 	<div class="app-content">
 		<div class="page-top">
 		<div class="page-top">
 			<div class="page-top-img">
 			<div class="page-top-img">
-				<img :src="`${constant.imgUrl}/retail/order/bg.png`" alt />
+				<image mode="widthFix" :src="`${constant.imgUrl}/retail/order/bg.png`" alt />
 			</div>
 			</div>
 			<div class="page-top-det">
 			<div class="page-top-det">
 				<div>
 				<div>
@@ -165,11 +165,12 @@
 			init() {
 			init() {
 				this._getDet().then(()=>{
 				this._getDet().then(()=>{
 					getShopUser().then(res => {
 					getShopUser().then(res => {
-					console.log(this.$refs)
-					this.$refs.couponSel._getUserDiscount()
+					if(this.data.status == 0) {
+						this.$refs.couponSel._getUserDiscount()
 						.then(status => {
 						.then(status => {
 						this.discountArr = status
 						this.discountArr = status
-					})
+					})	
+					}
 				})
 				})
 				})
 				})
 				
 				
@@ -215,11 +216,15 @@
 </script>
 </script>
 
 
 <style lang="scss" scoped>
 <style lang="scss" scoped>
+
 	.app-content {
 	.app-content {
 		padding-bottom: 80px;
 		padding-bottom: 80px;
 	}
 	}
 	.page-top {
 	.page-top {
 		position: relative;
 		position: relative;
+		.page-top-img {
+			// height: 50px;
+		}
 		.page-top-det {
 		.page-top-det {
 			position: absolute;
 			position: absolute;
 			top: 22px;
 			top: 22px;