工作笔记

 

4.(2020.8.13)微信小程序内嵌H5缓存问题

      给H5链接添加版本号

1.(2020.7.10)uniapp中定义的方法调用为undefined

解决:

var contextr =this ;
contextr.onLoad()

2.(2020.7.15)uniapp实现:点击放大某个区域,点击区域外部分缩小(含过渡效果)

html:

<view @click="pos4_lessen" :class="{active:isActive,actives:isActives}" style="position:relative;width:750rpx;height:1200rpx;background-color:#fff;top: 120rpx;" >
    <image @click.stop="pos4_largen"  class="city-pos4" :src="imgUrl" style="width: 454rpx;height:454rpx;" ></image>
</view>

js:

export default {
		data() {
			return {
				isActive:false,
				isActives:true
			}
		},


		methods: {
			// 六月放大
			pos4_largen(e){
				this.isActive = true
				this.isActives =false
			},
			pos4_lessen(){
					this.isActive = false
					this.isActives = true
			},
		},
}

css:

.active{
		transition: transform 2s;    //过渡时间    
		transform: scale(1.8);       //放大倍数
		transform-origin:123% 47%;   //放大基数
	}
	.actives{
		transition: transform 2s;
		transform: scale(1);
		transform-origin:123% 47%; 
	}

3.H5 页面图片被压缩

解决:mode="widthFix"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值