twt 2 years ago
parent
commit
95298581be

+ 113 - 24
pages/activity/jkDetail.vue

@@ -86,14 +86,14 @@
 			  <view class="timeviewTxt" > 分</view>
 			</view>
 			<view class="bottomBtnBox">
-				<!-- <view class="bottomBtnBoxLeft">
+				<view class="bottomBtnBoxLeft" @click="shareShowzs">
 					<img src="../../static/timg/share.png" alt="" class="shareIcon">
 					<view class="shareTxt">分享</view>
-				</view> -->
-				<button open-type="share" class="bottomBtnBoxLeft shareBtn" >
+				</view>
+				<!-- <button open-type="share" class="bottomBtnBoxLeft shareBtn" >
 					<image src="../../static/timg/share.png" mode="" class="shareIcon"></image>
 					<view class="shareTxt">分享</view>
-				</button>
+				</button> -->
 				<!-- 状态1未开始 2进行中3已结束 -->
 				<view class="bottomBtn" v-if="info.state==2" @click="signUp">
 				  <span v-if="info.money">¥{{info.money}} &nbsp; 立即抢购</span>
@@ -209,6 +209,21 @@
 		</view>
 		<img src="../../static/timg/mp3.png" class="mp3Img" @click="play()" v-if="!payshow&mp3Url!=''">
 		<img src=".../../static/timg/mp31.png" class="mp3Img" @click="play2()" id="bofang" v-if="payshow&mp3Url!=''">
+		
+		<view class="shareBox" v-if="shareShow" @click="shareShowyc">
+			   <img :src="shareQrCode" alt=""style="width: 300rpx;height:300rpx">
+			 <view class="shareCont" @click.stop="">
+				 <button open-type="share" class=" shareBtn" >
+				 	<image src="../../static/timg/icon_wxhy.png" mode="" class="shareBimg"></image>
+				 	<view class="bottomTxtshare">分享</view>
+				 </button>
+				 <view @click="gowp">
+					 <img src="../../static/timg/icon_haibao.png" alt="" class="shareBimg">
+					 <view class="bottomTxtshare">生成海报</view> 
+				 </view>
+			 </view>
+		</view>
+		
 	</view>
 </template>
 
@@ -249,7 +264,10 @@
 				 focusState2:false,
 				 focusState3:false,
 				 focusState4:false,
+				 shareShow:false,
+				 ext:'',
 				 shareId:'',
+				 scene:'',
 			}
 		},
 		onLoad(opt) {
@@ -258,31 +276,37 @@
 			   this.shareId=opt.shareId
 		   }
 		   this.userInfo=this.$store.state.userInfo;
+		  // opt.scene='10002'
 		   if(this.userInfo){
-		   	this.collectingID=opt.id;
-		   	//this.getInfo();
-		   	this.queryActivityInfo();
 			this.queryGoodsLook()
+			if(opt.scene&&opt.scene!='undefined'){
+				this.scene=opt.scene;
+				this.getShareParams()
+			}else{
+				this.collectingID=opt.id;
+				//this.getInfo();
+				this.queryActivityInfo();
+				
+			}
+		   	
 		   }else{
 		   	this.$common.automaticlogin().then(val => {
 		   		this.userInfo=this.$store.state.userInfo;
 		   		
-		   		this.collectingID=opt.id;
-		   		//this.getInfo();
-		   		this.queryActivityInfo();
+		   		if(opt.scene&&opt.scene!='undefined'){
+		   			this.scene=opt.scene;
+		   			this.getShareParams()
+		   		}else{
+		   			this.collectingID=opt.id;
+		   			//this.getInfo();
+		   			this.queryActivityInfo();
+		   			
+		   		}
+		   		//this.queryActivityInfo();
 				this.queryGoodsLook()
 		   	})
 		   }
 		  
-		   uni.onKeyboardHeightChange((obj)=>{
-		        // 获取系统信息
-		    	let _sysInfo = uni.getSystemInfoSync();
-		   // 	let _heightDiff = _sysInfo.screenHeight - _sysInfo.windowHeight
-		   // 	let _diff = obj.height - _heightDiff
-		   // 	// 键盘高度
-		   // 	this.jpHeight = (_diff > 0 ? _diff : 0) - 2 + "px";
-		    })
-		   
 		   this.shopckList= uni.getStorageSync("shopckList");
 		   //this.ckmusic=uni.getStorageSync("ckmusic");
 		  
@@ -304,6 +328,40 @@
 			this.bgmMusic.stop()
 		},
 		methods: {
+			getShareParams(){
+				this.$http('openMall/getShareParams', {
+				  scene:this.scene,
+				 },'GET').then(res => {
+					 this.collectingID=res.data.goodsID;
+					 this.shareId=res.data.operatorID
+					 this.queryActivityInfo();
+				 })
+			},
+			gowp(){
+				
+				var time=''
+				if(this.info.startTime){
+					var time = this.info.startTime.slice(0,10) + '~' +this.info.endTime.slice(0,10)
+				}else{
+					
+				}
+				var sellingPoint='';
+				
+				if(this.info.activityContent){
+					sellingPoint=this.info.activityContent
+				}
+				this.shareShow=false;
+				uni.navigateTo({
+					url:'../shop/wp?img='+this.mainImg+'&name='+this.info.activityName+'&time='+time+'&sellingPoint'+sellingPoint+'&id='+this.collectingID+'&type=2'
+				})
+			},
+			shareShowyc(){
+				this.shareShow=false;
+			},
+			shareShowzs(){
+				this.shareShow=true;
+			},
+			
 			focusState1cl(){
 				this.focusState1=true;
 			},
@@ -416,7 +474,8 @@
 					shopId:this.ckshopdata.id,
 					comment:this.comment,
 					sheetDetail:JSON.stringify(arr),
-					payType:this.info.payType
+					payType:this.info.payType,
+					shareId:this.shareId,
 				}
 				uni.showLoading({
 					title: '加载中'
@@ -755,6 +814,39 @@
 </script>
 
 <style scoped>
+	.shareBtn{
+			/* width: 100rpx; */
+			background: #F4F5F7;
+		}
+	.shareBimg{
+		width: 102rpx;
+		height: 102rpx;
+	}
+	.bottomTxtshare{
+		color: #333333;
+		font-size: 22rpx;
+		padding-top: 20rpx;
+	}
+	.shareBox{
+		width: 100%;
+		height: 100vh;
+		background: rgba(0, 0, 0, 0.5);
+		position: fixed;
+		left: 0;
+		bottom: 0;
+		z-index: 11;
+	}
+	.shareCont{
+		width: 100%;
+		background: #F4F5F7;
+		position: absolute;
+		left: 0;
+		bottom: 0;
+		display: flex;
+		justify-content: space-around;
+		padding: 50rpx 0;
+		border-radius: 40rpx 40rpx 0px 0px;
+	}
 	.mp3Img{
 	 /* transform: translate(-1584.4%, 121.5%) scale(1); */
 	  position: fixed;
@@ -1254,8 +1346,5 @@
 		
 		height: 100%;
 		}
-		.shareBtn{
-			/* width: 100rpx; */
-			background: #FFFFFF;
-		}
+		
 </style>

+ 1 - 1
pages/index/paintSure.vue

@@ -406,7 +406,7 @@
 				this.itemList.forEach((item)=>{
 					money += item.money
 				})
-				this.totalMoney = money;
+				this.totalMoney = money.toFixed(2);
 				
 				
 			}

+ 7 - 4
pages/integral/integral.vue

@@ -36,8 +36,8 @@
 			<view class="exchangeCont">
 				<scroll-view scroll-x="true" >
 					<view class="exchange">
-						<view class="exchangeLine" v-for="(item,index) in hotlist" @click="goDetail()">
-							<img class="exchangeLineImg" v-if="item.img" src="" alt="">
+						<view class="exchangeLine" v-for="(item,index) in hotlist" @click="goDetail(item.id)">
+							<img class="exchangeLineImg" v-if="item.img" :src="item.img" alt="">
 						    <image v-else src="../../static/timg/noimg.png" mode="" class="exchangeLineImg"></image>
 							<view class="exchangeName">{{item.name}}</view>
 							<view> <span class="jfspan1">{{item.integral}}</span> <span class="jfspan2">积分</span></view>
@@ -220,10 +220,12 @@
 	height: 439rpx;
 	border-radius: 16rpx;
 	border: 1px solid #EEEEEE;
+	overflow: hidden;
 }
 .classificationBox{
 	display: flex;
 	padding-bottom: 12rpx;
+	border-bottom: 1px solid #EEEEEE;
 }
 .classificationName{
 	white-space: nowrap;
@@ -293,6 +295,7 @@
 	height: 375rpx;
 	border-radius: 16rpx;
 	border: 1px solid #EEEEEE;
+	overflow: hidden;
 }
 .exchangeLineImg{
 	width: 270rpx;
@@ -323,7 +326,7 @@
 	display: flex;
 	width: 150rpx;
 	height: 48rpx;
-	background: #FFF9F1 linear-gradient(90deg, #FCF0D9 0%, #FFFBF3 49%, #FFE5D3 100%);
+	background: rgba(255,229,211,0.3);
 	border-radius: 0px 2rpx 0px 26rpx;
 	font-size: 24rpx;
 	line-height: 48rpx;
@@ -400,7 +403,7 @@
 	color: #333333;font-size: 24rpx;ppadding-top: 14rpx;
 }
 .topBottomSx{
-	width: 2rpx;
+	width: 1px;
 	height: 94rpx;
 	background-color:#EEEEEE;
 	margin-top:42rpx;

+ 15 - 6
pages/integral/integralgoodsDetail.vue

@@ -7,14 +7,19 @@
 					<img mode="aspectFit" :src="item.img" alt="" class="swiper-itemImg" v-if="item.imgType==1">
 					<video :src="item.url" v-if="item.imgType==2" show-fullscreen-btn controls style="width: 100%;height: 100%;"></video>
 				</view>
+			</swiper-item>
+			<swiper-item v-for="(item,index) in info.detailImgList">
+				<view class="swiper-item">
+					<img mode="aspectFit" :src="item.img" alt="" class="swiper-itemImg" >
+				</view>
 			</swiper-item>
 			
 		</swiper>
 	</view>
 	<view class="shopCont">
 		<view class="goodsName">{{info.name}}</view>
-		<view class="jfNumBox" style="padding-left: 24rpx;">
-			<span class="jfspan1">{{info.integral}}</span> <span class="jfspan2">积分</span>
+		<view class="jfNumBox" style="padding-left: 24rpx;padding-bottom: 20rpx;">
+			<span class="jfspan1 jfspan11">{{info.integral}}</span> <span class="jfspan2">积分</span>
 			<span class="marketvalue">市场价 ¥{{info.salePrice}}</span>
 		</view>
 	
@@ -30,7 +35,7 @@
 	<view style="height: 120rpx;padding-bottom: env(safe-area-inset-bottom)"></view>
 	
 	<view class="bottomBox">
-		<view class="ktyong">可用 <span class="ktyong1">{{avaIntegral}}</span><span class="ktyong2">积分</span> </view>
+		<view class="ktyong" style="padding-top: 46rpx;">可用 <span class="ktyong1" style="font-weight: 500;">{{avaIntegral}}</span><span class="ktyong2">积分</span> </view>
 		<view class="bottomBtn" @click="ljbuy">立即兑换</view>
 		
 	</view>
@@ -90,7 +95,7 @@
 			</view>
 			
 			<view class="buybtnBox">
-				<view class="ktyong"><view>合计 <span class="ktyong1">{{totalIntegral}}</span><span class="ktyong2">积分</span>   </view> 
+				<view class="ktyong"><view>合计 <span class="ktyong1" style="font-weight: 500;">{{totalIntegral}}</span><span class="ktyong2">积分</span>   </view> 
 				   <view class="kyNum">可用积分:{{avaIntegral}}</view>
 				</view>
 				<view class="bottomBtn" @click="goBuy">立即兑换</view>
@@ -226,6 +231,7 @@
 						this.info=res.data;
 						if(this.info.details){
 							this.info.details = this.info.details.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
+							 this.info.details=this.info.details.replace(/\<p/gi, '<p style="display: inline-block"');
 						}
 						this.shopInfo=res.data.shopList[0];
 						this.totalIntegral=this.goodsnum*this.info.integral
@@ -411,7 +417,7 @@
 		color: #FF0000;font-size: 24rpx;padding-top: 6rpx;
 	}
 	.ktyong{
-		font-weight: 500;
+		
 		color: #666666;
 		font-size: 24rpx;
 		padding-left: 30rpx;
@@ -431,6 +437,9 @@
 		line-height: 45rpx;
 		
 	}
+	.jfspan11{
+		font-size: 40rpx !important;
+	}
 	.jfspan2{
 		font-weight: 400;
 		color: #FF0000;
@@ -926,7 +935,7 @@ button{
 	font-weight: 500;
 	color: #333333;
 	padding: 20rpx 24rpx;
-	padding-top: 0;
+	padding-top: 20rpx;
 	padding-bottom: 16rpx;
 }
 .goodsMd{

+ 6 - 2
pages/shop/confirm.vue

@@ -100,13 +100,16 @@
 				comment:'',
 				mydata:'',
 				orderData:'',
+				shareId:'',
 			}
 		},
 		onLoad(opt) {
 			this.shopID=opt.shopID;
 			this.shopName=opt.shopName;
-			
 			this.goodsnum=opt.itemQty;
+			if(opt.shareId){
+				this.shareId=opt.shareId
+			}
 			//console.log(this.carInfo)
 			this.userInfo = uni.getStorageSync("userInfo");
 			this.goodsInfo=uni.getStorageSync("goodsDetail");
@@ -150,7 +153,8 @@
 					totalMoney:this.totalMoney,
 					shopId:this.shopID,
 					comment:this.comment,
-					sheetDetail:JSON.stringify(jsonArray)
+					sheetDetail:JSON.stringify(jsonArray),
+					shareId:this.shareId
 				}
 				uni.showLoading({
 					title: '加载中'

+ 60 - 25
pages/shop/goodsDetail.vue

@@ -21,7 +21,7 @@
 				</view>
 				<view class="goodsPrice4" v-if="info.showLabel&&info.scribingPrice&&info.showLabel.indexOf('1')!=-1">¥{{info.scribingPrice}}</view>
 			</view>
-			<view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">已售 {{info.saleQty}}</view>
+			<view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">已售 {{info.saleQty>0?info.saleQty:0}}</view>
 		</view>
 		<view class="goodsName">{{info.name}}</view>
 		<view class="goodsMd" v-if="info.sellingPoint">{{info.sellingPoint}}</view>
@@ -148,7 +148,7 @@
 					<view class="hotGoodsLineRIght">
 						<view class="goodsName2">{{info.name}}</view>
 					    <view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">
-							已售 {{info.saleQty}}</view>
+							已售 {{info.saleQty>0?info.saleQty:0}}</view>
 						<view class="goodsPrice">
 							<view class="goodsPrice11" v-if="info.saleLabel">{{info.saleLabel}}</view>
 							<view class="goodsPrice22">¥</view>
@@ -203,14 +203,16 @@
 		</view>
 	</view>
 <!-- 	<view :style="{color:colorX}">asdfas</view> -->
-   <view class="shareBox" v-if="shareShow">
-   	 <view class="shareCont">
-		 <button open-type="share" class="bottomImgBox shareBtn" >
-		 	<image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
-		 	<view class="bottomTxt">分享</view>
+   <view class="shareBox" v-if="shareShow" @click="shareShow=false">
+	   <img :src="shareQrCode" alt=""style="width: 300rpx;height:300rpx">
+   	 <view class="shareCont" @click.stop="">
+		 <button open-type="share" class=" shareBtn" >
+		 	<image src="../../static/timg/icon_wxhy.png" mode="" class="shareBimg"></image>
+		 	<view class="bottomTxtshare">分享</view>
 		 </button>
 		 <view @click="gowp">
-			 生成海报
+			 <img src="../../static/timg/icon_haibao.png" alt="" class="shareBimg">
+			 <view class="bottomTxtshare">生成海报</view> 
 		 </view>
 	 </view>
    </view>
@@ -246,6 +248,8 @@
 				shareShow:false,
 				ext:'',
 				shareId:'',
+				shareQrCode:'',
+				scene:'',
 			}
 		},
 		onLoad(opt) {
@@ -255,18 +259,30 @@
 			if(opt.shareId){
 				this.shareId=opt.shareId
 			}
+			
 			//this.userInfo = uni.getStorageSync("userInfo");
 			this.userInfo=this.$store.state.userInfo;
 			this.ext=this.$common.getExtStoreId();
+			//opt.scene='10003'
 			if(this.userInfo){
 				this.wxOpenData=this.$store.state.wxOpenData;
-				this.openGoodsDetailById();
+				if(opt.scene&&opt.scene!='undefined'){
+					this.scene=opt.scene;
+					this.getShareParams()
+				}else{
+					this.openGoodsDetailById();
+				}
+				
 			}else{
 				this.$common.automaticlogin().then(val => {
 					this.userInfo=this.$store.state.userInfo;
 					this.wxOpenData=this.$store.state.wxOpenData;
-					this.openGoodsDetailById();
-					console.log(this.userInfo)
+					if(opt.scene&&opt.scene!='undefined'){
+						this.scene=opt.scene;
+						this.getShareParams()
+					}else{
+						this.openGoodsDetailById();
+					}
 				})
 			}
 			
@@ -285,24 +301,32 @@
 			}, 2000);
 		},
 		methods: {
-			gowp(){
-				this.$http('openMall/shareQrCode', {
-				  bizType:1,
-				  path:'pages/shop/goodsDetail?id'+this.id+'&shareId='+this.userInfo.openId,
-				  goodsId:this.id,
-				  openId:this.userInfo.openId,
-				  unionId:this.ext.unionId
+			getShareParams(){
+				this.$http('openMall/getShareParams', {
+				  scene:this.scene,
 				 },'GET').then(res => {
-					 
+					 this.id=res.data.goodsID;
+					 this.shareId=res.data.operatorID
+					 this.openGoodsDetailById();
 				 })
+			},
+			gowp(){
+				// uni.scanCode({
+				// 	success: function (res) {
+				// 		console.log('条码类型:' + res.scanType);
+				// 		console.log(res)
+				// 	}
+				// });
+				// return false
 				var time=''
 				if(this.info.goodsDownTime){
 					var time = this.info.createTime.slice(0,10) + '~' +this.info.goodsDownTime.slice(0,10)
 				}else{
 					
 				}
+				this.shareShow=false;
 				uni.navigateTo({
-					url:'wp?img='+this.info.ImgList[0].url+'&name='+this.info.name+'&time='+time+'&sellingPoint'+this.info.sellingPoint
+					url:'wp?img='+this.info.ImgList[0].url+'&name='+this.info.name+'&time='+time+'&sellingPoint'+this.info.sellingPoint+'&id='+this.id
 				})
 			},
 			sharewx(){
@@ -500,6 +524,19 @@
 </script>
 
 <style scoped lang="less">
+	.shareBtn{
+		/* width: 100rpx; */
+		background: #F4F5F7;
+	}
+.shareBimg{
+	width: 102rpx;
+	height: 102rpx;
+}
+.bottomTxtshare{
+	color: #333333;
+	font-size: 22rpx;
+	padding-top: 20rpx;
+}
 .shareBox{
 	width: 100%;
 	height: 100vh;
@@ -511,13 +548,14 @@
 }
 .shareCont{
 	width: 100%;
-	background: #FFFFFF;
+	background: #F4F5F7;
 	position: absolute;
 	left: 0;
 	bottom: 0;
 	display: flex;
 	justify-content: space-around;
 	padding: 50rpx 0;
+	border-radius: 40rpx 40rpx 0px 0px;
 }
 .timeTbox{
 		width: 750rpx;
@@ -776,10 +814,7 @@
 	padding-top: 20rpx;
 	padding-left: 40rpx;
 }
-.shareBtn{
-	width: 100rpx;
-	background: #FFFFFF;
-}
+
 button::after{
  	border: none;
 }

+ 84 - 10
pages/shop/wp.vue

@@ -10,6 +10,7 @@
 			</view>
 		</view> -->
 		<view class="downloadBtn" @click="toSaveImage">保存图片</view>
+		<!-- <img :src="mpWxQr2" alt="" ref="image" class="wcl"> -->
 	</view>
 </template>
 
@@ -17,7 +18,7 @@
 	export default {
 		data() {
 			return {
-				mpWxQr: "http://dmsphoto.66km.com.cn/marketing/F520E658D4A649B88DF210EA41432A01.png",
+				mpWxQr: "http://dmsphoto.66km.com.cn/thFiles/2D929DEF-6178-42E3-AC8F-1EA2078CD9C4.png",
 				canvasW: 0,
 				canvasH: 0,
 				invest_areas: [{id: 1, name: "儿童教育"}, {id: 1, name: "少儿编程"}, {id: 1, name: "生物智能"}, {id: 1, name: "万物相连"}, {id: 1, name: "大数据"}],
@@ -29,6 +30,11 @@
 				time: "2022.01.21~2022.01.2",
 				finished: false,
 				sellingPoint:'',
+				userInfo:'',
+				ext:'',
+				mpWxQr2:'',
+				mpWxQr3:'',
+				mpWxQr4:'',
 			}
 		},
 		computed: {
@@ -46,19 +52,67 @@
 		onLoad(opt) {
 			//this.canvasW = uni.getSystemInfoSync().windowWidth
 			//this.canvasH = this.calculateCanvasHeight()
+			
 			this.avatar=opt.img;
 			this.nickname=opt.name;
-			if(opt.sellingPoint){
+			if(opt.sellingPoint&&opt.sellingPoint!='undefined'){
+				
 				this.sellingPoint=opt.sellingPoint;
 			}
+			console.log('this.sellingPoint==='+this.sellingPoint)
 			
-			console.log(this.sellingPoint)
 			if(this.nickname.length>18){
 				this.nickname=this.nickname.substring(0,18)+'...'
 			}
+			this.userInfo=this.$store.state.userInfo;
+			this.ext=this.$common.getExtStoreId();
 			this.canvasW =uni.upx2px(600)
 			this.canvasH = uni.upx2px(827)
-			this.toDrawCanvas()
+			var that=this;
+			var type=opt.type
+			if(type==2){
+				var bizType=2;
+				var path='pages/activity/jkDetail'
+			}else{
+				var bizType=1;
+				var path='pages/shop/goodsDetail'
+			}
+			uni.showLoading({
+				title: '加载中'
+			})
+			this.$request.httpBinary('openMall/shareQrCode', {
+			  bizType:bizType,
+			  path:path,//?id+this.id+'&shareId='+this.userInfo.openId,
+			  goodsId:opt.id,
+			  openId:this.userInfo.openId,
+			  unionId:this.ext.unionId
+			 },'GET').then(res => {
+				 //console.log(res)
+				 this.mpWxQr3=res;
+				 uni.hideLoading();
+				 //this.mpWxQr2= 'data:image/png;base64,'+uni.arrayBufferToBase64(res)
+				// this.mpWxQr4= uni.arrayBufferToBase64(res)
+				 this.toDrawCanvas()
+			 })
+			// this.$request.httpBinary('openMall/shareQrCode', {
+			//   bizType:1,
+			//   path:'pages/shop/goodsDetail',//?id+this.id+'&shareId='+this.userInfo.openId,
+			//   goodsId:opt.id,
+			//   openId:this.userInfo.openId,
+			//   unionId:this.ext.unionId
+			//  },'GET').then(res => {
+			// 	 //console.log(res)
+			// 	 this.mpWxQr2= 'data:image/png;base64,'+uni.arrayBufferToBase64(res)
+			// 	 // let theNode=uni.createSelectorQuery().select(".wcl")
+			// 	 //     theNode.boundingClientRect((data)=>{
+			// 	 //           console.log(data)
+			// 		// 	  // that.mpWxQr=data
+			// 	 //     }).exec()
+			// 	// this.mpWxQr = uni.createSelectorQuery().select('wcl')
+			// 	 this.toDrawCanvas()
+			//  })
+			 //return false;
+			
 		},
 		methods: {
 			toSaveImage() {
@@ -128,18 +182,38 @@
 				//this.drawHelloInfo(ctx, padding, padding + cardHeight + padding, cw)
 				// draw qr code
 				if (this.mpWxQr) {
-					
+					 var fsm =  uni.getFileSystemManager();
+					 //var filePath='../../static/timg/CS.png'
+					  var times = new Date().getTime();
+					var codeimg = wx.env.USER_DATA_PATH + '/' + times + '.png';
+					 fsm.writeFile({
+						 filePath: codeimg, // 要写入的文件路径 (本地路径)
+						 data: this.mpWxQr3, // 要写入的文本或二进制数据
+						 encoding:"base64", // 指定写入文件的字符编码
+						 success(e) {
+							 console.log(e)
+							 console.log(codeimg)
+							 var wxsx=uni.upx2px(68)
+							 var wxsy=uni.upx2px(649)
+							 var wxwidth=uni.upx2px(148)
+							 ctx.drawImage(codeimg, wxsx, wxsy, wxwidth,wxwidth)
+						 },
+						 fail(err) {
+						 	console.log(err)
+						 }
+					});
 					const hello = await this.downloadImage(this.mpWxQr)
 					//const padding = uni.upx2px(34)
 					//const av = uni.upx2px(180)
 					//const totalH = this.calculateCanvasHeight()
 					//console.log("totalH=="+totalH)
-					console.log(hello.tempFilePath)
-					var wxsx=uni.upx2px(68)
-					var wxsy=uni.upx2px(649)
-					var wxwidth=uni.upx2px(148)
+					//console.log(hello.tempFilePath)
+					// var wxsx=uni.upx2px(68)
+					// var wxsy=uni.upx2px(649)
+					// var wxwidth=uni.upx2px(148)
+					// ctx.drawImage(codeimg, wxsx, wxsy, wxwidth,wxwidth)
 					if (hello.tempFilePath) {
-						ctx.drawImage(hello.tempFilePath, wxsx, wxsy, wxwidth,wxwidth)
+						//ctx.drawImage(hello.tempFilePath, wxsx, wxsy, wxwidth,wxwidth)
 					}
 				}
 				ctx.draw()

BIN
static/timg/CS.png


BIN
static/timg/icon_haibao.png


BIN
static/timg/icon_wxhy.png