zhengkaixin 1 vuosi sitten
vanhempi
commit
aa9f4ba8f1

+ 20 - 1
pages/packages/mine/otherServices/authentication.vue

@@ -151,6 +151,16 @@
 								<input v-model="enterpriseForm.contactsPersonId" type="text" placeholder="请填写企业联系人">
 							</view>
 						</view>
+						
+						<view class="item">
+							<view class="title">
+								联系方式
+							</view>
+							<view class="input">
+								<input v-model="enterpriseForm.contactsPhone" type="text" placeholder="请填写联系方式">
+							</view>
+						</view>
+						
 					</view>
 					<!-- 营业执照 -->
 					<view class="business-license">
@@ -217,6 +227,14 @@
 							{{enterpriseForm.contactsPersonId?enterpriseForm.contactsPersonId:'' }}
 						</view>
 					</view>
+					<view class="item">
+						<view class="title">
+							联系方式
+						</view>
+						<view class="value">
+							{{enterpriseForm.contactsPhone?enterpriseForm.contactsPhone:'' }}
+						</view>
+					</view>
 					<view class="item">
 						<view class="title">
 							营业执照
@@ -289,7 +307,7 @@
 					licenseUrl: '',
 					type: '1',
 					address: '',
-				
+					contactsPhone:"",
 					contactsPersonId: '',
 					
 				},
@@ -417,6 +435,7 @@
 					enterpriseName: this.enterpriseForm.name,
 					licenseUrl: this.enterpriseForm.licenseUrl,
 					contactsPersonId: this.enterpriseForm.contactsPersonId,
+					contactsPhone: this.enterpriseForm.contactsPhone,
 					address: this.enterpriseForm.address,
 					type: this.enterpriseForm.type
 				}).then((res) => {

+ 16 - 2
pages/packages/news/articleDetail.vue

@@ -43,7 +43,21 @@
 			return {
 				id: '',
 				share: 0,
-				newsDetail: {},
+				newsDetail: {
+				  "id": "",
+				  "title": "",
+				  "category": "",
+				   "content":"",
+				  "browseNumber": 0,
+				  "thumbnailImage": "",
+				  "createBy": "",
+				  "createTime": "",
+				  "updateBy": "",
+				  "updateTime": "",
+				  "status": "1",
+				  "codeImage": "",
+				  "categoryN": ""
+				},
 			}
 		},
 		onShareTimeline(){
@@ -128,7 +142,7 @@
 		}
 		image{
 			 border: 1px dashed;
-			width: 600rpx;
+			width: 700rpx;
 			
 		}
 	}

+ 73 - 5
pages/packages/skillTraining/trainingRegistration.vue

@@ -18,7 +18,12 @@
 			<view class="details" v-html="info.content">
 				
 			</view>
-
+			<view  v-if="info.codeImage" class="codeImage">
+				<image  mode="aspectFit"
+				
+				v-if="info.codeImage" :src="info.codeImage" :show-menu-by-longpress="true" ></image>
+				<view  class="codeImageView" ><u-icon name="arrow-upward"></u-icon><u-icon name="arrow-upward"></u-icon><u-icon name="arrow-upward"></u-icon> 长按图片<u-icon name="arrow-upward"></u-icon><u-icon name="arrow-upward"></u-icon><u-icon name="arrow-upward"></u-icon></view>
+			</view>
 		</view>
 
 		<!-- 资料 -->
@@ -45,11 +50,24 @@
 
 		<!-- 报名按钮 -->
 		<view class="bottom">
+		
+			
 			<button class="sign-up"   v-if="getStatus()"  :class="{
 					isJoin:isJoin
 				}" @click="isJoinBtn" >{{isJoin?'取消报名':'我要报名'}}</button>
 			<button class="sign-up isEnd"  v-else style="background: #999999;">已结束</button>
-				
+			
+			<button class="btncontact" @click="showPhone=true" >
+				<view class="icon">
+					<img src="@/assets/img/riLine-customer-service-line@1x.png" alt="">	
+				</view>
+				<view class="grid-text">咨询</view>
+			</button>
+			
+			<u-modal v-model="showPhone" @confirm="confirmPhone" confirm-text="拨打电话" confirm-color="#606266"
+				:show-cancel-button="true" ref="uModal" :asyncClose="true" title="咨询电话" :content="content"
+				:content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
+			
 		</view>
 	</view>
 </template>
@@ -61,6 +79,8 @@
 			return {
 				id: "",
 				isJoin: false,
+				content: "",
+					showPhone: false,
 				info: {
 
 				},
@@ -89,6 +109,12 @@
 			this.getInfo()
 		},
 		methods: {
+			confirmPhone() {
+				this.showPhone = false;
+				uni.makePhoneCall({
+					phoneNumber: this.content //仅为示例
+				});
+			},
 			getStatus(){
 				if(this.info&&this.info.endTime){
 					return new Date()<new Date(this.info.endTime)
@@ -235,6 +261,8 @@
 					}
 					this.info=newsDetail
 					
+					this.content=this.info.phone
+					
 				}).catch(error => {
 					uni.showToast({icon: 'none',
 						title: error,
@@ -252,6 +280,20 @@
 	}
 </style>
 <style lang="scss" scoped>
+	.codeImage{
+		background-color: #fff;
+		 text-align: center;
+		.codeImageView{
+			padding: 20rpx 0px 40rpx;
+			font-size: 32rpx;
+			 
+		}
+		image{
+			 border: 1px dashed;
+			width: 700rpx;
+			
+		}
+	}
 	.background {
 		width: 100%;
 		height: 376rpx;
@@ -347,10 +389,36 @@
 		bottom: 0;
 		left: 0;
 		right: 0;
-		
-		
+		display: flex;
+		.btncontact{
+			width: 19%;
+			font-size: 36rpx;
+			height: 96rpx;
+			//line-height: 96rpx;
+			padding: 0px;
+			border-radius: 8px;
+			    display: flex;
+			    flex-wrap: wrap;
+			    justify-content: center;
+			.grid-text {
+				color: rgba(51, 51, 51, 1);
+				margin-top: 8rpx;
+				 line-height: 10px;
+				     width: 100%;
+			}
+			
+			.icon {
+				width: 56rpx;
+				height: 56rpx;
+			
+				img {
+					width: 100%;
+					height: 100%;
+				}
+			}
+		}
 		.sign-up {
-
+			width: 79%;
 			height: 96rpx;
 			line-height: 96rpx;
 			border-radius: 8px;