zhengjinyi 4 лет назад
Родитель
Сommit
da23469ad5
1 измененных файлов с 11 добавлено и 8 удалено
  1. 11 8
      components/cm-module/modelAlert/order-alert.vue

+ 11 - 8
components/cm-module/modelAlert/order-alert.vue

@@ -1,18 +1,15 @@
 <template name="sharealert">
 	<view class="alert spec" :class="specClass">
 		<view class="model-warp">
-			<view class="content">
+			<view class="content" v-if="modelType == 1">
 				<view class="content-title"></view>
 				<view class="text-content">
-					<view class="title">分享订单</view>
 					<view class="share">您的分享码:<text class="txt">{{shareCode}}</text></view>
 					<view class="text">
 						<text>有效期为24小时。订单分享后若对方无法直接登录小程序查看订单,请提供该分享码给对方,通过输入分享码查看</text>
 					</view>
 				</view>				
-				<view class="alert-btn">
-
-				</view>
+				<view class="alert-btn"></view>
 			</view>
 		</view>
 	</view>
@@ -23,6 +20,10 @@
 	export default{
 		name:'sharealert',
 		props:{
+			modelType:{
+				type:Number,
+				default:1
+			},
 			orderID:{
 				type:Number
 			}
@@ -85,10 +86,12 @@
 				background-size: contain;
 			}
 			.text-content{
-				width: 448rpx;
-				height: auto;
-				padding: 20rpx 35rpx;
+				width: 100%;
+				min-height: 208rpx;
+				box-sizing: border-box;
+				padding:24rpx;
 				float: left;
+				background-color: #FFFFFF;
 				.title{
 					line-height: 40rpx;
 					font-size: $font-size-28;