Authored by 陈峰

Merge branch 'feature/3158-revise' into 'release/6.8.7'

样式调整以及定时器销毁处理

问题修改

See merge request !18
import router from '../router/router';
let timer;
Component({
properties: {
product: {
... ... @@ -17,7 +19,7 @@ Component({
});
//放大缩小循环动画
var next = true;
setInterval(function () {
timer = setInterval(function () {
if (next) {
animation.scale(1.05).step()
next = !next;
... ... @@ -30,6 +32,10 @@ Component({
})
}.bind(this), 400)
},
detached: function() {
clearInterval(timer);
},
methods: {
onClick() {
router.go('detail', {
... ...
... ... @@ -107,5 +107,10 @@ page {
}
.my-draw-code-text {
font-size: 26rpx;
font-family: PingFangSC-Medium;
font-weight: bold;
font-size: 28rpx;
color: #444444;
letter-spacing: 0;
text-align: center;
}
\ No newline at end of file
... ...