Pārlūkot izejas kodu

登录页面,订票页面调整

gcz 1 gadu atpakaļ
vecāks
revīzija
7a39c6c20d
8 mainītis faili ar 272 papildinājumiem un 194 dzēšanām
  1. 12 11
      center/center.vue
  2. 21 0
      common/apiurl.js
  3. 1 1
      common/config.js
  4. 59 15
      pages/bookticket.vue
  5. 1 1
      pages/index/index.vue
  6. 170 158
      pages/login/login.vue
  7. 4 4
      pages/searchpage.vue
  8. 4 4
      pages/ticketlist.vue

+ 12 - 11
center/center.vue

@@ -8,11 +8,12 @@
 			<view class="home_top">
 				<view class="base-info block-wrap u-flex u-row-between" @click="$u.route('/center/memberinfo',{type:'redirectTo'})" v-if="vuex_member_info.name">
 					<view class="left u-flex">
-						<u-avatar :src="avatar||staticUrl+'/img/avatar.png'" size="140rpx"></u-avatar>
+						<!-- <u-avatar :src="avatar||staticUrl+'/img/avatar.png'" size="140rpx"></u-avatar> -->
 						<view class="info">
-							<view class="name ellipsis-1">{{vuex_member_info.name||vuex_member_info.nickName}}</view>
+							<view class="name ellipsis-1">{{vuex_member_info.contact||vuex_member_info.name}}</view>
 							<view class="mobile u-flex">
-								<text class="mobile">{{vuex_member_info.mobile|hidePhoneNumber}}</text>
+								<text class="mobile">{{vuex_member_info.name}}</text>
+								<!-- <text class="mobile">{{vuex_member_info.mobile|hidePhoneNumber}}</text> -->
 							</view>
 						</view>
 					</view>
@@ -78,16 +79,16 @@
 					// {name:'观看记录',url:'/center/viewrecord',ico:this.$commonConfig.staticUrl+'/img/center-record.png',checkauth:true},
 					// {name:'领券中心',url:'/center/mycoupon',ico:this.$commonConfig.staticUrl+'/img/center-coupon.png',checkauth:true},
 					// {name:'开具发票',url:'center/invoice',ico:this.$commonConfig.staticUrl+'/img/center-ticket.png',checkauth:true},
-					{name:'我的订单',url:'center/order',ico:this.$commonConfig.staticUrl+'/img/center-order.png',checkauth:true},
-					{name:'客服热线',url:'',ico:this.$commonConfig.staticUrl+'/img/center-call.png',checkauth:true,phone:''},
+					{name:'报名记录',url:'center/order',ico:this.$commonConfig.staticUrl+'/img/center-order.png',checkauth:true},
+					// {name:'客服热线',url:'',ico:this.$commonConfig.staticUrl+'/img/center-call.png',checkauth:true,phone:''},
 					// {name:'在线客服',chat:'1',ico:this.$commonConfig.staticUrl+'/img/center-call.png'},
 				]
 			}
 		},
 		onShow() {	
-			if(this.vuex_member_info.name){
+			// if(this.vuex_member_info.name){
 				this.getMemberInfo();
-			}
+			// }
 			
 		},
 		onLoad() {
@@ -95,15 +96,15 @@
 		},
 		methods: {
 			getMemberInfo(){
-				this.$u.api.personalIndex({userid:this.vuex_member_info.id}).then(res=>{
-					this.memberInfo = res.data.memberInfo;
-					this.avatar =  res.data.avatar;
+				this.$u.api.getInfo({userid:this.vuex_member_info.id}).then(res=>{
+					this.memberInfo = res.data;
+					this.avatar =  res.data.contractImg;
 					this.tools.forEach(item => {
 					  if (item.name === '客服热线') {
 					    item.phone = res.data.customerMobile;
 					  }
 					});
-					this.$u.vuex('vuex_member_info', res.data.memberInfo);
+					this.$u.vuex('vuex_member_info', res.data);
 					const isExist = this.tools.some(item => item.name === '实名认证');
 					if(!res.data.memberInfo.isAuth&&!isExist){
 						this.tools.push({name:'实名认证',url:'center/factorauth',ico:this.$commonConfig.staticUrl+'/img/center-ticket.png',checkauth:true})

+ 21 - 0
common/apiurl.js

@@ -167,6 +167,27 @@ const apiurl = {
 		url: '/system/wxTemplateInfo/templateList',
 		type: 'get'
 	},
+	// 团队接口开始
+	// 团队账号登录
+	teamLogin: {
+		url: '/member/auth/teamLogin',
+		type: 'post'
+	},
+	// 首页数据
+	teamIndex: {
+		url: '/system/client/teamIndex',
+		type: 'get'
+	},
+	// 用户信息
+	getInfo: {
+		url: '/member/marketTeam/getInfo',
+		type: 'get'
+	},
+	// 二要素认证
+	authID: {
+		url: '/thirdapi/identity/factorAuth',
+		type: 'post'
+	},
 	
 	
 	/**

+ 1 - 1
common/config.js

@@ -28,7 +28,7 @@ let staticUrl= null // 静态文件地址
 	baseUrl='/api/serviceapi';
 	upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
 	// staticUrl='http://res.hw.hongweisoft.com/xushuo/';
-	staticUrl='https://miniores.hw.hongweisoft.com/greattransition/staticfile';
+	staticUrl='https://minio.wdzzgs.com/greattransition/staticfile';
 // #endif
 
 //正式

+ 59 - 15
pages/bookticket.vue

@@ -8,7 +8,7 @@
 		<view class="page-wrap">
 			<view class="base-info">
 				<view class="up u-flex">
-					<image class="img" :src="pageContent.performImg" alt="">
+					<image class="img" :src="pageContent.performImg" mode="aspectFill" alt="">
 						<view class="text">
 							<view class="name text-item">{{pageContent.performName}}-{{pageContent.goodsName}}</view>
 							<view class="time text-item">日期 {{pageContent.timeDate}}({{pageContent.timeWeek}})</view>
@@ -30,10 +30,9 @@
 					</view>
 				</view>
 			</view>
-			<view class="block-wrap purchaser">
+		<!-- 	<view class="block-wrap purchaser">
 				<view class="block-title u-flex">
 					<view class="name">购票人信息</view>
-					<!-- <text>用于入园身份验证</text> -->
 				</view>
 				<view class="" v-if="vuex_member_info.isAuth">
 					<view class="item">姓名:{{pageContent.purchaser.name}}</view>
@@ -43,19 +42,23 @@
 				<view class="un-auth" v-else @click="$u.route('center/factorauth',{from:'bookticket'})">
 					请先<text style="color: #ED0000;">实名认证</text>
 				</view>
-			</view>
+			</view> -->
 			<view class="block-wrap visitors">
 				<view class="block-title u-flex">
 					<view class="name">观影人信息</view>
 					<!-- <text>用于入园身份验证</text> -->
 				</view>
-				<view class="people-list u-flex u-flex-wrap">
-					<view class="people btn" v-if="visitors.length>0" v-for="(visitor,index) in visitors" :key="index">
+				<view class="people-list">
+					<!-- <view class="people btn" v-if="visitors.length>0" v-for="(visitor,index) in visitors" :key="index">
 						{{visitor.name}}
+					</view> -->
+					<view class="add-wrap">
+						 <u--input placeholder="请输入观影人姓名" border="surround" v-model="newVisitor.name"></u--input>
+						 <u--input placeholder="请输入观影人身份证" border="surround" v-model="newVisitor.idcard"></u--input>
 					</view>
-					<view class="btn u-flex u-row-center" @click="visitorShow = true">
+					<view class="btn u-flex u-row-center" @click="addVisitor">
 						<u-icon name="plus-circle" color="#2D2D2D" size="32rpx"></u-icon>
-						<text class="text">新增/更换</text>
+						<text class="text">新增观影人</text>
 					</view>
 				</view>
 				<!-- <view class="no-people u-flex" v-if="!visitors.length>0">
@@ -71,11 +74,11 @@
 							<text class="name">{{visitor.name}}</text>
 							<!-- <text class="people-id">{{ visitor.idcard | maskID }}</text> -->
 						</view>
-						<view class="right" @click="editVisitor(visitor)">编辑</view>
+						<!-- <view class="right" @click="editVisitor(visitor)">编辑</view> -->
 					</view>
 				</view>
 			</view>
-			<view class="coupon">
+		<!-- 	<view class="coupon">
 				<view class="title u-flex u-row-between u-border-bottom">
 					<text>本单可享优惠</text>
 				</view>
@@ -89,7 +92,7 @@
 				<view class="no-coupon">
 					您暂无可使用优惠券~
 				</view>
-			</view>
+			</view> -->
 			<view class="notice">
 				<view class="title u-flex u-row-between u-border-bottom">
 					<text>购票须知</text>
@@ -140,7 +143,7 @@
 					</view>
 				</view>
 				<view class="right">
-					<view class="btn active" v-if="totalPrice>0&&cansubmit&&vuex_member_info.isAuth"
+					<view class="btn active" v-if="totalPrice>0&&cansubmit"
 						@click="submitorder">提交报名</view>
 					<view class="btn" v-else>提交报名</view>
 				</view>
@@ -191,6 +194,10 @@
 				payResult: {}, //gotoPay结果
 				paysuccess: false, //支付结果
 				templateIdList: [], //微信小程序订阅消息
+				newVisitor:{
+					name:'',
+					idcard:''
+				},
 
 			}
 		},
@@ -213,7 +220,6 @@
 			},
 		},
 		onShow() {
-			this.getMemberAll();
 			this.getSettlement();
 		},
 		onLoad(page) {
@@ -225,7 +231,7 @@
 			this.getSystemInfo();
 			this.getSettlement();
 
-			this.getTemplateIdList(); //获取模板列表
+			// this.getTemplateIdList(); //获取微信订阅模板列表
 
 		},
 		methods: {
@@ -241,6 +247,7 @@
 				this.$u.api.getSettlement(this.pageData).then(res => {
 					// console.log('getSettlement',res.data);
 					this.pageContent = res.data;
+					// this.getMemberAll();
 				}).catch(err => {
 					console.log('getSettlement', err);
 				})
@@ -507,7 +514,7 @@
 							} else if (payStatus === 0 || payStatus === 2) {
 								this.payQuery()
 							} else if (payStatus === 3) {
-								uni.toast('支付失败')
+								uni.$u.toast('支付失败')
 							}
 							clearInterval(timer);
 						}).catch(err => {
@@ -518,6 +525,37 @@
 					}
 				}, interval);
 			},
+			addVisitor(){
+				if(!this.newVisitor.name){
+					uni.$u.toast('请填写观影人姓名')
+					return
+				}
+				if(!uni.$u.test.idCard(this.newVisitor.idcard)){
+					uni.$u.toast('请正确填写观影人身份证')
+					return
+				}
+				// console.log('this.newVisitor.idcard',this.newVisitor.idcard);
+				// console.log('visitors',this.visitors);
+				// 检查是否存在相同身份证号的观影人
+				if(this.visitors.some(visitor => visitor.idcard === this.newVisitor.idcard)){
+					uni.$u.toast('相同身份证号的观影人已存在')
+					return
+				}
+				console.log('this.newVisitor',this.newVisitor);
+				this.$u.api.authID(this.newVisitor).then(res=>{
+					if(res.data.status===1){
+						this.visitors.push(this.newVisitor);
+						this.newVisitor = {name:'',idcard:''};
+					}else{
+						uni.$u.toast(res.data.errReason)
+					}
+					// console.log('res',res.data);
+				}).catch(err=>{
+					uni.$u.toast('认证失败')
+					console.log('login',err);
+				})
+				
+			},
 
 			/**
 			 * 公众号微信支付
@@ -742,6 +780,12 @@
 				border-color: #ED0303;
 			}
 		}
+		.add-wrap{
+			margin-bottom: 24rpx;
+			.u-input{
+				margin-bottom: 24rpx;
+			}
+		}
 	}
 
 	.visitors {

+ 1 - 1
pages/index/index.vue

@@ -102,7 +102,7 @@
 				})
 			},
 			getClientIndex(){
-				this.$u.api.clientIndex(this.params).then(res=>{
+				this.$u.api.teamIndex(this.params).then(res=>{
 					// console.log('res',res);
 					this.theatreList = res.data.performList;
 				}).catch(err=>{

+ 170 - 158
pages/login/login.vue

@@ -1,45 +1,54 @@
 <template>
-	<view class="body" :style="{height:screenHeight}">
-		<view class="header">
-			<view class="circle circle1"></view>
-			<view class="circle circle2"></view>
-			<view class="circle circle3"></view>
-			<view class="text">
-				<view class="en-text">hello</view>
-				<view class="cn-text">欢迎登录!</view>
+	<view class="login-content">
+		<view class="login-content-info">
+			<view class="login-bgm":style="{backgroundImage:`url(${staticUrl}/img/tuan-index-bg.png)`}">
+				<image class="login-logo" :src="staticUrl+'/img/logo.png'" mode="scaleToFill"></image>
+				<text>{{ title }}</text>
+			</view>
+			<view class="login-info">
+				<view class="login-info-box">
+					<text class="login-info-title">账号密码登陆</text>
+					<view class="login-info-form">
+						<u--form 
+						labelWidth="0" 
+						:borderBottom="false"
+						:model="form" 
+						:rules="rules" 
+						ref="uForm">
+							<u-form-item prop="mobile">
+								<u--input 
+								v-model="form.mobile" 
+								placeholder="请输入账号"
+								border="surround"
+								shape="circle"
+								prefixIcon="account-fill"
+								prefixIconStyle="font-size: 22px;color: #909399"
+								></u--input>
+							</u-form-item>
+							<u-form-item prop="password">
+								<u--input
+								v-model="form.password" 
+								placeholder="请输入账密码"
+								border="surround"
+								shape="circle"
+								prefixIcon="lock-fill"
+								:password="true"
+								prefixIconStyle="font-size: 22px;color: #909399"
+								></u--input>
+							</u-form-item>
+						</u--form>
+					</view>
+					<view class="login-info-submit">
+						<u-button 
+						class="login-info-submit-but"
+						@click="submit()"
+						:loading="loading"
+						loadingText="登录中..."
+						>登录</u-button>
+					</view>
+					<view class="login-info-tip">暂不支持自行注册</view>
+				</view>
 			</view>
-		</view>
-		<view class="login-box">
-			<u--form labelPosition="left" :model="form" :rules="rules" ref="uForm" >
-				<u-form-item label="" prop="account" ref="account" >
-					<u--input
-						v-model="form.account"
-						border="surround"
-						placeholder="输入账号"
-						:customStyle="inputCustomStyle"
-					></u--input>
-				</u-form-item>
-				<u-form-item label="" prop="password" ref="password" >
-					<u--input
-						v-model="form.password"
-						border="surround"
-						:password="true"
-						placeholder="输入密码"
-						:customStyle="inputCustomStyle"
-					></u--input>
-				</u-form-item>
-			</u--form>
-			<u-button 
-				@click="submit"
-				text="登录" 
-				type="primary" 
-				shape="circle" 
-				:customStyle="{'margin-top':'60rpx',height:'98rpx','box-sizing':'border-box'}"
-				color="linear-gradient(90deg, #00D17D 0%, #00A447 100%)">
-			</u-button>
-		</view>
-		<view class="tip">
-			提示:初始账号和密码由管理员设置,请与管理人员联系
 		</view>
 	</view>
 </template>
@@ -48,52 +57,46 @@
 	export default {
 		data() {
 			return {
-				bname:'旭烁集团',
-				//屏幕高度
-				screenHeight: "",
+				staticUrl:this.$commonConfig.staticUrl,
+				title: '《伟大转折》剧目团购系统',
+				logoUrl: this.$commonConfig.staticUrl + "login/logo.png",
+				loading: false,
 				backUrl:null,
-				form:{
-					account:'',
-					password:''
+				form: {
+					mobile: '',
+					password: '',
 				},
 				rules: {
-					account: {
+					'mobile': {
 						type: 'string',
 						required: true,
 						message: '请填写账号',
 						trigger: ['blur', 'change']
 					},
-					password: {
+					'password': {
 						type: 'string',
 						required: true,
 						message: '请填写密码',
 						trigger: ['blur', 'change']
 					},
 				},
-				inputCustomStyle:{
-					height:'98rpx',
-					'border-color':'#eee',
-					'padding-left':'30rpx',
-					'box-sizing':'border-box',
-				}
-			};
+			}
+		},
+		onReady() {
+			//如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则。
+		    this.$refs.uForm.setRules(this.rules)
 		},
 		onLoad() {
+			let that = this;
 			// 测试环境填充用户名密码
 			if(process.env.NODE_ENV=='development'){
-				this.form.account = 'dls1234';
-				this.form.password = '654321';
+				this.form.mobile = '13682277062';
+				this.form.password = '123456';
 			}
-			let that = this;
-			uni.getSystemInfo({
-				success: (res) => {
-					this.screenHeight = res.windowHeight + "px"
-				}
-			});
 			uni.getStorage({
 				key: 'backUrl',
 				success: function (res) {
-					console.log('getStorage',res);
+					// console.log('getStorage',res);
 				},
 				complete(res) {
 					if(res.data){
@@ -104,123 +107,132 @@
 					console.log('backUrl',that.backUrl);
 				}
 			});
-		},
-		onReady() {
-			//onReady 为uni-app支持的生命周期之一
-			this.$refs.uForm.setRules(this.rules)
+
 		},
 		onShow() {
+
 		},
 		methods: {
-			submit(){
-				console.log('form',this.form);
+			/**
+			 * 
+			 * 提交登录
+			 * 
+			 */
+			submit() {
+				this.loading = true
 				this.$refs.uForm.validate().then(res => {
-					// uni.$u.toast('校验通过')
-					this.$u.api.login(this.form).then(res=>{
+					this.$u.toast('校验通过')
+					this.$u.api.teamLogin(this.form).then(res=>{
+						this.loading = false
 						// console.log('res',res.data);
 						this.$u.vuex('vuex_user_info', res.data);
 						uni.reLaunch({url: this.backUrl});
 					}).catch(err=>{
 						console.log('login',err);
+						this.loading = false
 					})
 				}).catch(errors => {
-					uni.$u.toast('请正确填写表单')
+					this.$u.toast('校验失败')
+					this.loading = false
 				})
 			}
-			
 		}
 	}
 </script>
-
 <style lang="scss" scoped>
-.body {
-	background-color: #fff;
-	box-sizing: border-box;
-}
-.header{
-	position: relative;
-	height: 368rpx;
-	overflow: hidden;
-	background: linear-gradient(325deg, #FCFFFD 0%, #ECFFF4 100%);
-	.circle{
-		position: absolute;
-		border-radius: 50%;
-		&.circle1{
-			width: 201rpx;
-			height: 149rpx;
-			background: linear-gradient(230deg, #E5FFEC 0%, #C0FFD7 100%);
-			left:-20rpx;
-			bottom: -50rpx;
-		}
-		&.circle2{
-			width: 148rpx;
-			height: 148rpx;
-			background: linear-gradient(215deg, #E7FFEE 0%, #BFFFDB 100%);
-			opacity: 0.6;
-			right:158rpx;
-			top: 80rpx;
+	.login-content {
+		width: 100%;
+		height: 100vh;
+		position: relative;
+		box-sizing: border-box;
+		--bgm-height: 630rpx;
+	}
+
+	/**  背景  */
+	.login-content-box {
+		width: 100%;
+		height: 100%;
+		box-sizing: border-box;
+	}
+
+	.login-bgm {
+		width: 100%;
+		height: 630rpx;
+		// background-image: url("#{$image-beas-url}login/bgm.png");
+		background-size: 100% auto;
+		background-repeat: no-repeat;
+		box-sizing: border-box;
+		display: flex;
+		flex-direction: column;
+		justify-content: center;
+		align-items: center;
+
+		.login-logo {
+			width: 240rpx;
+			height: 172rpx;
+			padding: 50rpx 0;
 		}
-		&.circle3{
-			width: 232rpx;
-			height: 237rpx;
-			background: linear-gradient(215deg, #F1FFF8 0%, #C3FFD3 100%);
-			right:-32rpx;
-			top: -65rpx;
+
+		>text {
+			font-size: 32rpx;
+			font-family: SourceHanSansCN, SourceHanSansCN;
+			font-weight: bold;
+			color: #FFFFFF;
 		}
 	}
-	.text{
+
+	.login-info {
+		width: 100%;
+		height: calc(100% - var(--bgm-height) + 40rpx);
+		background-color: #fff;
+		border-radius: 28rpx 28rpx 0rpx 0rpx;
 		position: absolute;
-		left: 40rpx;
-		bottom: 80rpx;
-		.en-text{
-			position: relative;
-			text-transform: uppercase;
-			font-size: 58rpx;
-			font-family: AlibabaPuHuiTi_2_115_Black;
-			color: #333333;
-			line-height: 81rpx;
-			font-weight: bold;
-			width: fit-content;
-			z-index: 5;
-			&::before{
-				content: '';
-				display: block;
-				width: 104%;
-				height: 10rpx;
-				background-color: #FFB100;
-				position: absolute;
-				left: -2%;
-				bottom: 10rpx;
-				z-index: -1;
+		bottom: 0;
+		left: 0;
+		z-index: 22;
+		box-sizing: border-box;
+		padding: 80rpx;
+		.login-info-box {
+			width: 100%;
+			height: 100%;
+			display: flex;
+			flex-direction: column;
+			box-sizing: border-box;
+			.login-info-title {
+				font-size: 32rpx;
+				font-family: SourceHanSansCN, SourceHanSansCN;
+				font-weight: bold;
+				color: #2D2D2D;
+				padding-bottom: 40rpx;
+			}
+			.login-info-form {
+				
+			}
+			.login-info-submit {
+				width: 100%;
+				height: 80rpx;
+				padding: 40rpx 0 20rpx;
+				flex-shrink: 0;
+				.login-info-submit-but {
+					display: flex;
+					justify-content: center;
+					align-items: center;
+					border-radius: 40rpx;
+					width: 100% !important;
+					height: 100% !important;
+					background-color: #ed0000;
+					color: #fff;
+				}
+			}
+			.login-info-tip {
+				width: 100%;
+				text-align: center;
+				font-size: 24rpx;
+				font-family: SourceHanSansCN, SourceHanSansCN;
+				font-weight: 400;
+				color: #C2C2C2;
 			}
-		}
-		.cn-text{
-			font-size: 50rpx;
-			font-family: PingFangSC-Regular, PingFang SC;
-			font-weight: 400;
-			color: #333333;
-			line-height: 70rpx;
 		}
 	}
-}
-.login-box{
-	position: relative;
-	top: -24rpx;
-	padding: 60rpx 40rpx;
-	border-top-left-radius: 24rpx;
-	border-top-right-radius: 24rpx;
-	background-color: #fff;
-	// box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(0,28,12,0.06);
-}
-.tip{
-	position: fixed;
-	bottom: 108rpx;
-	width: 100vw;
-	box-sizing: border-box;
-	text-align: center;
-	font-size: 24rpx;
-	font-weight: 400;
-	color: #999999;
-}
-</style>
 
+</style>

+ 4 - 4
pages/searchpage.vue

@@ -76,7 +76,7 @@
 				},
 				title:'搜索',
 				params:{
-					goodsName:'',
+					name:'',
 					// isExplode:0,//是否爆款 0不是,1是
 				},
 				// 列表数据
@@ -86,7 +86,7 @@
 		},
 		onLoad(page) {
 			let that = this;
-			this.params.goodsName = page.goodsName;
+			this.params.name = page.keyword;
 			uni.getStorage({
 				key:'searchgoodshistory',
 				 success: function(storagedata) {
@@ -121,10 +121,10 @@
 				let pageSize = page.size; // 页长, 默认每页10条
 				this.params = Object.assign(this.params,{pageNum:pageNum,pageSize:pageSize});
 				console.log('this.params',this.params);
-				this.$u.api.clientIndex(this.params).then(data => {
+				this.$u.api.teamIndex(this.params).then(data => {
 					console.log('data',JSON.parse(JSON.stringify(data)));
 					// 接口返回的当前页数据列表 (数组)
-					let curPageData = data.data.performList;
+					let curPageData = data.data.performList||[];
 					console.log('curPageData',JSON.parse(JSON.stringify(curPageData)));
 					// 接口返回的当前页数据长度 (如列表有26个数据,当前页返回8个,则curPageLen=8)
 					let curPageLen = curPageData.length; 

+ 4 - 4
pages/ticketlist.vue

@@ -17,7 +17,7 @@
 				circular
 			></u-swiper>
 			<view class="content">
-				<view class="share" @click="openShare(item)">
+				<view class="share" @click="openShare()">
 					<image class="icon" :src="staticUrl+'/img/share-ico.png'" ></image>
 				</view>
 			</view>
@@ -198,7 +198,7 @@
 				</view>
 			</view>
 		</u-popup>
-		<canvas canvas-id="canvas" class="canvas" style="width: 670px; height: 900px;"></canvas>
+		<canvas canvas-id="canvas" class="canvas" style="width: 574px; height: 1042px;"></canvas>
 	</view>
 </template>
 
@@ -506,10 +506,10 @@
 						const img2 = res2.path;
 							
 						// 绘制海报背景图
-						ctx.drawImage(img1, 0, 0, 670, 900);
+						ctx.drawImage(img1, 0, 0, 574, 1042);
 							
 						// 绘制海报二维码
-						ctx.drawImage(img2, 468, 724, 188, 166);
+						ctx.drawImage(img2, 398, 868, 114, 114);
 							
 						// 绘制完成后导出图片并显示
 						ctx.draw(false, () => {