diff --git a/packageA/pages/my_service/appment_main.js b/packageA/pages/my_service/appment_main.js index 4d1054f..fd6d46b 100644 --- a/packageA/pages/my_service/appment_main.js +++ b/packageA/pages/my_service/appment_main.js @@ -659,6 +659,11 @@ Page({ is_textea: 1 }) th.query_project(); + + th.queryMultipleNodes(); + + + }, //获取单个服务项目信息 query_project: function() { @@ -816,5 +821,53 @@ Page({ // that.data.writesize = [res.width, res.height]; }).exec(); }, + + //开始拖拽 + touchmove: function (e) { + var that = this,th=that; + var position = [e.touches[0].pageX - that.data.writesize[0] / 2, e.touches[0].pageY - that.data.writesize[1] / 2 - this.data.scrolltop]; + that.setData({ + write: position + }); + + }, + + + touchend:function(e){ + var that = this,th=that; + var position =th.data.write; + for(var i=0;i<7;i++){ + for(var j=0; j<2;j++){ + //如果坐标在网格内 + if( position[0]>th.data.f_x+i*th.data.f_width && position[0]