diff --git a/common/js/api.js b/common/js/api.js index 2928240..58e1443 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -1,5 +1,6 @@ // let baseUrl = 'http://192.168.66.221:8000' let baseUrl = 'http://192.168.66.16:8084' +// let baseUrl = '' let API = { baseUrl: baseUrl, diff --git a/pages/about/bonusSet/bonusSet.vue b/pages/about/bonusSet/bonusSet.vue index eb4ad06..dc14c15 100644 --- a/pages/about/bonusSet/bonusSet.vue +++ b/pages/about/bonusSet/bonusSet.vue @@ -87,7 +87,6 @@ }, cancel(){ this.showEdit = false; - this.editInfo = {}; }, confirm(){ let data = { @@ -122,6 +121,7 @@ }, onNavigationBarButtonTap() { this.title = "添加奖金"; + this.editInfo = {}; this.showEdit = true; } } diff --git a/pages/about/serviceSet/serviceSet.vue b/pages/about/serviceSet/serviceSet.vue index 2c26a6d..e55181e 100644 --- a/pages/about/serviceSet/serviceSet.vue +++ b/pages/about/serviceSet/serviceSet.vue @@ -31,7 +31,7 @@ 微信号码: - + @@ -90,7 +90,6 @@ }, cancel(){ this.showEdit = false; - this.editInfo = {}; }, confirm(){ API.request('/customerService/save', { @@ -124,6 +123,7 @@ }, onNavigationBarButtonTap(e){ this.title = "添加客服"; + this.editInfo = {}; this.showEdit = true; }, onReachBottom() { diff --git a/pages/scratchCard/scratch.js b/pages/scratchCard/scratch.js index 8e01012..4a3c2b4 100644 --- a/pages/scratchCard/scratch.js +++ b/pages/scratchCard/scratch.js @@ -7,12 +7,14 @@ class Scratch { this.width = opts.width || 340 this.height = opts.height || 150 // this.maskColor = opts.maskColor || '#D2D2D2' - this.maskColor = '#ccc' + // this.maskColor = '#dddddd' + this.maskColor = 'transparent'; this.size = opts.size || 10 this.r = this.size * 2 this.area = this.r * this.r this.scale = opts.scale || 0.3 this.totalArea = this.width * this.height + this.bgImg = opts.bgImg this.show = false this.init() } @@ -26,6 +28,8 @@ class Scratch { } drawMask () { + // this.ctx.drawImage(this.bgImg, 65, 865, 951, 720, 0, 0, 330, 250) + this.ctx.drawImage(this.bgImg, 64.8, 864, 950.4, 720, 0, 0, 330, 250) this.ctx.setFillStyle(this.maskColor) this.ctx.fillRect(0, 0, this.width, this.height) this.ctx.draw() diff --git a/pages/scratchCard/scratchCard.vue b/pages/scratchCard/scratchCard.vue index 693638d..48c93b7 100644 --- a/pages/scratchCard/scratchCard.vue +++ b/pages/scratchCard/scratchCard.vue @@ -1,12 +1,10 @@ \ No newline at end of file diff --git a/static/home/btn_11.png b/static/home/btn_11.png new file mode 100644 index 0000000..e83b959 Binary files /dev/null and b/static/home/btn_11.png differ diff --git a/static/home/canvas.png b/static/home/canvas.png new file mode 100644 index 0000000..a2acec9 Binary files /dev/null and b/static/home/canvas.png differ diff --git a/static/home/noPrize.png b/static/home/noPrize.png index 501f51c..b1a06b5 100644 Binary files a/static/home/noPrize.png and b/static/home/noPrize.png differ diff --git a/static/home/noPrize_1.png b/static/home/noPrize_1.png new file mode 100644 index 0000000..501f51c Binary files /dev/null and b/static/home/noPrize_1.png differ