yuanyiming 1 年間 前
コミット
3037a8d74d

+ 2 - 1
App.vue

@@ -111,7 +111,8 @@
 				this.$request('/selectAllMessage', "POST", {
 					oid: this.$store.state.user.openid
 				}).then(res => {
-					console.log('获取未读信息',res[0][0].msg);
+					
+					console.log('获取未读信息',res[0][0]);
 					let num = res[0][0].msg
 		
 					if (num == 0) {

+ 2 - 1
components/listBlock1/listBlock1.vue

@@ -27,8 +27,9 @@
 
 				<view class="introduce">
 					<view class="bri">
-						{{ i.brief }}
+						<!-- {{ i.brief }} -->
 						<!-- {{ i.address }} -->
+						深圳职业技术大学
 					</view>
 					<view class="tim">
 						{{ i.create_at }}

+ 12 - 12
components/teaching-case/teaching-case.vue

@@ -2,11 +2,11 @@
 	<view class="teaching_case">
 
 		<view class="cont" @click="gotoWeb" v-for="(item, index) in acList" :key="index" :data-kid="item.href">
-			
-			<view class="starView"  @click.stop="coll" :data-e="item">
+
+			<view class="starView" @click.stop="coll" :data-e="item">
 				<image class="star" :src="collArr.includes(item.cid) ? pic_coll2 : pic_coll " mode="aspectFill"></image>
 			</view>
-			
+
 			<image class="img" :src="item.img" mode="aspectFill" />
 			<view class="tit btn-font">{{ item.ctit }}</view>
 			<!-- <view class="teacher fz-font">{{ item.school }}</view> -->
@@ -66,10 +66,10 @@
 					title: '点击过快'
 				})
 				this.stopTimer = 1
-				
-				setTimeout(()=>{
-					this.stopTimer=0
-				},500)
+
+				setTimeout(() => {
+					this.stopTimer = 0
+				}, 500)
 
 				// return	console.log(event);
 				let cId = event.currentTarget.dataset.e.cid
@@ -196,16 +196,16 @@
 		// background-color: #000;
 		.cont {
 			background-color: #ffffff;
-			width: 332rpx;
+			width: calc(50% - 8px);
 			padding: 20rpx 15rpx;
 			border-radius: 10px;
-			margin-bottom: 20rpx;
+			margin-bottom: 16px;
 			position: relative;
 
 			.starView {
 				width: 40rpx;
 				height: 40rpx;
-			
+
 				box-sizing: content-box;
 				padding-bottom: 10rpx;
 				padding-left: 10rpx;
@@ -216,7 +216,7 @@
 				justify-content: center;
 				align-items: center;
 			}
-			
+
 			.star {
 				// position: absolute;
 				// right: 30rpx;
@@ -226,7 +226,7 @@
 			}
 
 			.img {
-				width: 300rpx;
+				width: 100%;
 				height: 170rpx;
 				border-radius: 10rpx;
 			}

+ 22 - 10
pages/activityDetailNew/activityDetailNew.vue

@@ -26,10 +26,16 @@
 			</view>
 			<view class="avaList">
 				<view class="ava" @click="gotoMorePer">
-					<u-avatar-group :urls="applyUserlist" maxCount='6' showMore size="35"
-						:extraValue='applyUserlist.length' gap="0.4"></u-avatar-group>
-					<text
-						style="font-size: 24rpx;font-weight: 400;color:rgba(0, 0, 0, 0.6);margin-left: 20rpx;">{{!applyUserlist.length?'暂无报名':'已报名'}}</text>
+					<u-avatar-group :urls="applyUserlist" maxCount='6' showMore size="35" :extraValue='stuNum'
+						gap="0.4"></u-avatar-group>
+					<view
+						style="font-size: 24rpx;
+						font-weight: 400;
+						width: 200rpx;
+						color:rgba(0, 0, 0, 0.6);
+						margin-left: 20rpx;">
+						{{!applyUserlist.length?'暂无报名':'已报名'}}
+					</view>
 				</view>
 				<view class="cost">
 					<!-- ¥<text style="font-size: 48rpx;">{{actItemList.cost}}</text> -->
@@ -68,7 +74,7 @@
 				<!-- <br /> -->
 				<view class="bricon">
 					<!-- <rich-text :nodes="">{{actItemList.brief}}</rich-text> -->
-					<rich-text :nodes="actItemList.brief"></rich-text>
+					<rich-text style="white-space:pre-wrap;" :nodes="actItemList.brief"></rich-text>
 					<!-- <view style="color: blue;display: inline-block;" :data-link="actItemList.link"  @click="gotoLink">
 						<u-icon name="arrow-right" labelSize='14' size='14' labelColor='blue' space='2' color='blue' labelPos='left' label='查看更多'></u-icon>
 					</view> -->
@@ -162,6 +168,7 @@
 				oid: '',
 				// 活动id
 				acId: '',
+				stuNum: 0,
 				// 页面数据
 				actItemList: {},
 
@@ -172,7 +179,7 @@
 
 				// 用户订阅列表
 				// subArr: [],
-				uLoading:false,
+				uLoading: false,
 
 				// 收藏按钮节流
 				stopTimer: 0,
@@ -244,15 +251,17 @@
 			},
 			// 获取页面数据
 			getdata() {
-				this.uLoading=true
+				this.uLoading = true
 				let data = {
 					oid: this.$store.state.user.openid,
 					acId: this.acId,
 				}
 				this.$request('/selectActivityID', "POST", data).then(res => {
 					// console.log('页面数据', res[0][0]);
-					this.uLoading=false
+					this.uLoading = false
 					this.actItemList = res[0][0]
+					this.actItemList.brief = this.actItemList.brief.replace(/<img/gi,
+						'<img style="max-width:100%;height:auto;margin:0 auto;display:block"')
 				})
 
 			},
@@ -473,8 +482,11 @@
 				}
 				this.$request('/selectApplyUser', 'POST', data).then(res => {
 					console.log('获取报名用户列表', res[0]);
+					this.stuNum = res[0].length
 					this.applyUserlist = []
-					res[0].forEach(e => {
+					let arr=res[0]
+					arr=arr.slice(0,6)
+					arr.forEach(e => {
 						this.applyUserlist.push(e.avatar)
 					})
 					// this.applyUserlist = res[0]
@@ -657,7 +669,7 @@
 				margin-bottom: 20rpx;
 
 				.ava {
-					width: 353rpx;
+					// width: 353rpx;
 					display: flex;
 					align-items: center;
 				}

+ 15 - 6
pages/activityPageNew/activityPageNew.vue

@@ -35,11 +35,12 @@
 			</view> -->
 		</view>
 
-		<swiper class="scroll-view-height" @change="swipeIndex" :current="current" :duration="300">
+		<swiper class="scroll-view-height" @change="swipeIndex" @transition='cutS' @animationfinish='ani'
+			:current="current" :duration="300">
 
 			<!-- 常规教研 -->
 			<swiper-item>
-				<scroll-view scroll-y="true" refresher-enabled='true' :refresher-triggered="putrigger"
+				<scroll-view scroll-y="true" :refresher-enabled='refevent' :refresher-triggered="putrigger"
 					@refresherrefresh='purepulling' @scrolltolower="pulower" style="height: 100%;">
 					<view class="searchPagedata" v-if="!pulist.length">暂无数据</view>
 					<view>
@@ -55,7 +56,7 @@
 
 			<!-- 专题教研 -->
 			<swiper-item>
-				<scroll-view scroll-y="true" refresher-enabled='true' :refresher-triggered="trigger"
+				<scroll-view scroll-y="true" :refresher-enabled='refevent' :refresher-triggered="trigger"
 					@refresherrefresh='repulling' @scrolltolower="aclower" style="height: 100%;">
 
 					<view class="searchPagedata" v-if="!teclist.length">暂无数据</view>
@@ -95,6 +96,7 @@
 					title: "活动",
 					btn: 0,
 				},
+				refevent: true,
 				indexId: 1,
 				current: 0, //控制展示哪一个
 				info1: "info1", //类名
@@ -152,6 +154,13 @@
 		// 	this.$store.dispatch('asyncDelAll')
 		// },
 		methods: {
+			ani() {
+				this.refevent = true
+			},
+			cutS(event) {
+				// console.log(event.detail);
+				this.refevent = false
+			},
 			// 搜索
 			selectSearchdata() {
 				if (this.current === 2) return
@@ -324,11 +333,11 @@
 			}
 		},
 		onLoad() {
-			
+
 		},
 		onShow() {
-			this.pulist=[]
-			this.teclist=[]
+			this.pulist = []
+			this.teclist = []
 			this.getpuData() //获取常规列表
 			this.getTecData() //获取专题列表
 			this.getAllMessage() // 调用app.js中的方法

+ 20 - 18
pages/dy/dy.vue

@@ -17,10 +17,10 @@
 			</view>
 		</view>
 		
-		<view class="loading">
+	<!-- 	<view class="loading">
 			<view v-if="newsLoading==1">数据加载中...</view>
 			<view v-if="newsLoading==2">没有更多了~~</view>
-		</view>
+		</view> -->
 	</view>
 </template>
 
@@ -59,29 +59,31 @@ export default {
 				lim: 20 //一次获取多少数据
 			}
 			this.$request('/selectApplyUser', 'POST', data).then(res => {
-				console.log('获取报名用户列表', res[0]);
-				if (!res[0].length) {
-					this.newsLoading = 2
-				} else {
-					this.newsLoading = 0
-				}
-				this.applyUserlist=[...this.applyUserlist,...res[0]]
+				this.applyUserlist=res[0]
+				
+				// console.log('获取报名用户列表', res[0]);
+				// if (!res[0].length) {
+				// 	this.newsLoading = 2
+				// } else {
+				// 	this.newsLoading = 0
+				// }
+				// this.applyUserlist=[...this.applyUserlist,...res[0]]
 			})
 		}
 	
 	},
 	// 触底加载更多
-	onReachBottom() {
-		if (this.newsLoading == 2) {
-			return
-		}
-		this.newsLoading = 1
-		this.currentPage++
-		setTimeout(this.getUsers(),1500)
+	// onReachBottom() {
+	// 	if (this.newsLoading == 2) {
+	// 		return
+	// 	}
+	// 	this.newsLoading = 1
+	// 	this.currentPage++
+	// 	setTimeout(this.getUsers(),1500)
 		
-	},
+	// },
 	onLoad(e) {
-		console.log('接受参数',e);
+		// console.log('接受参数',e);
 		this.acId=e.acId
 		this.getUsers()
 	}

+ 85 - 52
pages/mine/mine.vue

@@ -2,10 +2,10 @@
 	<view>
 		<statusBar :item="navBarData"></statusBar>
 		<!-- 消息提示 -->
-		
+
 		<msgPop></msgPop>
 		<view class="mineBox">
-			<view class="userInformation" >
+			<view class="userInformation">
 				<view class="userAvatar" @click="gotoMineEdit">
 					<image
 						:src="userAvatar!=='' ? userAvatar : 'https://teacherapi.cocorobo.cn/teaching-file/static//mine/Avatar_default.png'"
@@ -23,7 +23,7 @@
 						<!-- <text style="font-size: 26rpx;font-weight: 400;line-height: 42rpx;color: #999999;"></text> -->
 					</view>
 				</view>
-			<!-- 	<view class="msgInfo">
+				<!-- 	<view class="msgInfo">
 					<view class="msgImg" @click="goMsg">
 						消息
 					</view>
@@ -35,7 +35,8 @@
 					<view class="optionItem" @click="goMsg">
 						<view class="option_left">
 							<view class="option_icon" style="display: flex;justify-content: center;">
-								<image style="width: 80%;height: 80%;" src="../../static/Vectorldang.png" mode="aspectFill">
+								<image style="width: 80%;height: 80%;" src="../../static/Vectorldang.png"
+									mode="aspectFill">
 								</image>
 							</view>
 							<text class="option_text fwb-font">我的消息</text>
@@ -44,37 +45,42 @@
 							<view class="msgq" v-if="msgn>0">
 								{{msgn}}
 							</view>
-							<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png" mode="aspectFill">
+							<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
+								mode="aspectFill">
 							</image>
 						</view>
 					</view>
 					<view class="optionItem" @click="gotoMineCollect">
 						<view class="option_left">
 							<span class="option_icon">
-								<image src="https://teacherapi.cocorobo.cn/teaching-file/static/mine/Collect.png" mode="aspectFill">
+								<image src="https://teacherapi.cocorobo.cn/teaching-file/static/mine/Collect.png"
+									mode="aspectFill">
 								</image>
 							</span>
 							<text class="option_text fwb-font">我的收藏</text>
 						</view>
 						<view class="option_right">
-							<image src="https://teacherapi.cocorobo.cn/teaching-file/static/mine/arrow-right.png" mode="aspectFill">
+							<image src="https://teacherapi.cocorobo.cn/teaching-file/static/mine/arrow-right.png"
+								mode="aspectFill">
 							</image>
 						</view>
 					</view>
 					<view class="optionItem" @click="gotoMineActive">
 						<view class="option_left">
 							<span class="option_icon">
-								<image src="https://teacherapi.cocorobo.cn/teaching-file/static/mine/active.png" mode="aspectFill">
+								<image src="https://teacherapi.cocorobo.cn/teaching-file/static/mine/active.png"
+									mode="aspectFill">
 								</image>
 							</span>
 							<text class="option_text fwb-font">我的活动</text>
 						</view>
 						<view class="option_right">
-							<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png" mode="aspectFill">
+							<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
+								mode="aspectFill">
 							</image>
 						</view>
 					</view>
-<!-- 					<view class="optionItem" @click="gotoMineClass">
+					<!-- 					<view class="optionItem" @click="gotoMineClass">
 						<view class="option_left">
 							<span class="option_icon">
 								<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/myClass.png" mode="aspectFill">
@@ -87,7 +93,7 @@
 							</image>
 						</view>
 					</view> -->
-<!-- 					<view class="optionItem" @click="gotomyRelease">
+					<!-- 					<view class="optionItem" @click="gotomyRelease">
 						<view class="option_left">
 							<span class="option_icon">
 								<image src="https://teacherapi.cocorobo.cn/teaching-file/static//fabu.png" mode="aspectFill">
@@ -105,33 +111,37 @@
 					<view class="optionItem">
 						<view class="option_left">
 							<span class="option_icon">
-								<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/help.png" mode="aspectFill">
+								<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/help.png"
+									mode="aspectFill">
 								</image>
 							</span>
 							<text class="option_text fwb-font">反馈帮助</text>
 						</view>
 						<view class="option_right">
-							<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png" mode="aspectFill">
+							<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
+								mode="aspectFill">
 							</image>
 						</view>
 					</view>
 					<view class="optionItem" @click="gotoMineEdit">
 						<view class="option_left">
 							<span class="option_icon">
-								<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/setting.png" mode="aspectFill">
+								<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/setting.png"
+									mode="aspectFill">
 								</image>
 							</span>
 							<text class="option_text fwb-font">我的设置</text>
 						</view>
 						<view class="option_right">
-							<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png" mode="aspectFill">
+							<image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
+								mode="aspectFill">
 							</image>
 						</view>
 					</view>
 				</view>
 			</view>
 		</view>
-		
+
 	</view>
 </template>
 
@@ -144,37 +154,43 @@
 					title: '我的',
 					btn: 0
 				},
-				msgn:0,
+				msgn: 0,
 				// 用户名
 				username: '',
 				// 头像
 				userAvatar: 'https://teacherapi.cocorobo.cn/teaching-file/static/mine/Avatar.png',
 				// 学校
-				signature:'',
-				
+				signature: '',
+
 			};
 		},
 		methods: {
-			
+
 			// 我的收藏
 			gotoMineCollect() {
 				const value = this.$store.state.user.openid;
-				if(!value){
-					uni.showToast({title: '未登录,请登录',icon: 'none'})
-					setTimeout(this.goLog,1000)
+				if (!value) {
+					uni.showToast({
+						title: '未登录,请登录',
+						icon: 'none'
+					})
+					setTimeout(this.goLog, 1000)
 					return
 				}
 				uni.navigateTo({
 					// url: '/pages/mineCollect/mineCollect'
-					url:'/pages/mineCollNew/mineCollNew'
+					url: '/pages/mineCollNew/mineCollNew'
 				})
 			},
 			// 我的设置
 			gotoMineEdit() {
 				const value = this.$store.state.user.openid;
-				if(!value){
-					uni.showToast({title: '未登录,请登录',icon: 'none'})
-					setTimeout(this.goLog,1000)
+				if (!value) {
+					uni.showToast({
+						title: '未登录,请登录',
+						icon: 'none'
+					})
+					setTimeout(this.goLog, 1000)
 					return
 				}
 				uni.navigateTo({
@@ -184,9 +200,12 @@
 			// 我的活动
 			gotoMineActive() {
 				const value = this.$store.state.user.openid;
-				if(!value){
-					uni.showToast({title: '未登录,请登录',icon: 'none'})
-					setTimeout(this.goLog,1000)
+				if (!value) {
+					uni.showToast({
+						title: '未登录,请登录',
+						icon: 'none'
+					})
+					setTimeout(this.goLog, 1000)
 					return
 				}
 				uni.navigateTo({
@@ -194,11 +213,14 @@
 				})
 			},
 			// 信息
-			goMsg(){
+			goMsg() {
 				const value = this.$store.state.user.openid;
-				if(!value){
-					uni.showToast({title: '未登录,请登录',icon: 'none'})
-					setTimeout(this.goLog,1000)
+				if (!value) {
+					uni.showToast({
+						title: '未登录,请登录',
+						icon: 'none'
+					})
+					setTimeout(this.goLog, 1000)
 					return
 				}
 				uni.navigateTo({
@@ -210,15 +232,15 @@
 				this.$request('/selectAllMessage', "POST", {
 					oid: this.$store.state.user.openid
 				}).then(res => {
-					console.log('获取未读信息',res[0][0].msg);
+					console.log('获取未读信息', res[0][0].msg);
 					let num = res[0][0].msg
-					this.msgn=num
+					this.msgn = num
 					if (num == 0) {
 						uni.hideTabBarRedDot({
 							index: 3
 						})
 					} else {
-						
+
 						uni.setTabBarBadge({
 							index: 3,
 							text: num.toString()
@@ -234,16 +256,18 @@
 
 		},
 		onShow() {
-			this.getMag()    // 调用app.js中的方法
-			
-			console.log(this.$store.state);
-			
+			// if (!this.$store.state.user.openid) {
+			this.getMag() // 调用app.js中的方法
+			// }
+
+			// console.log(this.$store.state);
+
 			this.userAvatar = this.$store.state.user.avatar;
-			
+
 			this.username = this.$store.state.user.username;
-			
+
 			// 学校
-			this.signature=this.$store.state.user.stuName==null?'':this.$store.state.user.stuName;
+			this.signature = this.$store.state.user.stuName == null ? '' : this.$store.state.user.stuName;
 			// this.isManage = this.$store.state.user.openid;
 			// console.log(this.isManage == "");
 		}
@@ -319,15 +343,17 @@
 					}
 				}
 			}
-			.msgInfo{
+
+			.msgInfo {
 				width: 70rpx;
 				position: relative;
 				height: 80%;
-				.msgImg{
+
+				.msgImg {
 					position: absolute;
 					top: 0;
 					right: 0;
-					
+
 					width: 64rpx;
 					height: 64rpx;
 				}
@@ -360,7 +386,7 @@
 						.option_icon {
 							height: 100%;
 							width: 40rpx;
-							
+
 							image {
 								width: 100%;
 								height: 100%;
@@ -377,12 +403,19 @@
 						height: 40rpx;
 						display: flex;
 						align-items: center;
-						.msgq{
-							width: 32rpx;height: 32rpx;background-color:rgba(213, 73, 65, 1);border-radius: 50rpx;
+
+						.msgq {
+							width: 32rpx;
+							height: 32rpx;
+							background-color: rgba(213, 73, 65, 1);
+							border-radius: 50rpx;
 							color: #fff;
 							font-size: 20rpx;
-							display: flex;justify-content: center;align-items: center;
+							display: flex;
+							justify-content: center;
+							align-items: center;
 						}
+
 						image {
 							height: 34rpx;
 							width: 30rpx;
@@ -392,6 +425,6 @@
 				}
 			}
 		}
-		
+
 	}
 </style>

+ 2 - 2
pages/mineCollNew/mineCollNew.vue

@@ -35,7 +35,6 @@
 
 							<view class="right">
 								<view class="title">
-									<!-- <view class="tag bqZ-font">{{i.acshape}}</view> -->
 									<view class="bqZ-font" style="font-size: 20rpx;" :class="i.acshape=='线下活动'?'tag':'tag1'"> {{i.acshape}}</view>
 									<view class="titTxt btn-font " style="font-size:34rpx ;">
 										{{i.acName}}
@@ -44,7 +43,8 @@
 
 								<view class="introduce">
 									<view class="bri">
-										{{ i.brief }}
+										深圳职业技术大学
+										<!-- {{ i.address }} -->
 									</view>
 									<view class="tim">
 										{{ i.create_at }}

+ 1 - 1
pages/mineEdit/mineEdit.vue

@@ -542,7 +542,7 @@
 					this.$request('/selectUser', 'POST', {
 						oId: this.$store.state.user.openid
 					}).then(res => {
-						// console.log('获取caozuo', res[0][0]);
+						console.log('获取caozuo', res[0][0]);
 						this.$store.dispatch('asyncUpdateUser', res[0][0])
 					})
 					setTimeout(() => {

+ 12 - 8
pages/resource/resource.vue

@@ -32,9 +32,10 @@
 			</view> -->
 		</view>
 
-		<swiper class="scroll-view-height" @change="swipeIndex" :current="current" :duration="300">
+		<swiper class="scroll-view-height" @change="swipeIndex" @transition='cutS' @animationfinish='ani'
+			:current="current" :duration="300">
 			<swiper-item>
-				<scroll-view scroll-y="true" refresher-enabled='true' :refresher-triggered="trigger"
+				<scroll-view scroll-y="true" :refresher-enabled='refevent' :refresher-triggered="trigger"
 					@refresherrefresh='repulling' @scrolltolower="relower" style="height: 100%;">
 					<view class="searchPagedata" v-if="!classList.length">暂无数据</view>
 					<view class="">
@@ -48,7 +49,7 @@
 			</swiper-item>
 
 			<swiper-item>
-				<scroll-view scroll-y="true" refresher-enabled='true' :refresher-triggered="putrigger"
+				<scroll-view scroll-y="true" :refresher-enabled='refevent' :refresher-triggered="putrigger"
 					@refresherrefresh='purepulling' @scrolltolower="tealower" style="height: 100%;">
 					<view class="searchPagedata" v-if="!classList2.length">暂无数据</view>
 					<view class="">
@@ -97,7 +98,7 @@
 
 				// 精品课程
 				classList2: [],
-
+				refevent: true,
 				reLoading: 0, //0默认值  1加载中 2没有更多了
 				recurrentPage: 1, //页数
 
@@ -145,10 +146,14 @@
 			}
 		},
 
-		// onUnload() {
-		// 	this.$store.dispatch('asyncDelAll')
-		// },
 		methods: {
+			ani() {
+				this.refevent = true
+			},
+			cutS(event) {
+				// console.log(event.detail);
+				this.refevent = false
+			},
 			selectSearchdata() {
 
 				if (this.current === 2) return
@@ -279,7 +284,6 @@
 			},
 
 			swipeIndex(index) {
-
 				this.current = index.detail.current;
 				if (this.searchText !== '') {
 					this.selectSearchdata()

+ 3 - 21
pages/skipone/skipone.vue

@@ -1,42 +1,24 @@
 <template>
 	<view class="">
-		<!-- <statusBar :item="navBarData"></statusBar> -->
-		<web-view v-if="url1" @message="onMessage" :src="url1"></web-view>
+		<web-view v-if="url1" :src="url1"></web-view>
 		<!-- <iframe :src="url1"></iframe> -->
 		<!-- <iframe :src="url" frameborder="0" style="width: 100%; height: 100vh;"></iframe> -->
 	</view>
 </template>
 
 <script>
+	var wv; //计划创建的webview
 	export default {
 		data() {
 			return {
 				url1: '',
-				navBarData: {
-					title: '详情',
-					btn: 1
-				},
-				startX: 0, // 触屏起始点x  
-				startY: 0, // 触屏起始点y  
-
+				canBack: false,
 
 			};
 		},
 		onLoad(options) {
 			// console.log(options);
 			this.url1 = decodeURIComponent(options.url);
-
-		},
-		methods: {
-			onMessage(e) {
-				console.log(e);
-				const data = e.detail.data;
-				if (data && data.action === 'back') {
-					// 执行返回操作,比如调用 uni.navigateBack()
-					uni.navigateBack();
-				}
-			}
-
 		}
 	}
 </script>