liuyg
2021-06-04 c9f87486592ffeedf218928456d72ab7511ae1bf
widgets/visualAngle/Widget.js
@@ -31,18 +31,18 @@
            // 暴露在外的接口
            var that = this;
            $(".v-a-One").click(function () {
               that.clearColor();
               that.clearColor('one');
               $(".v-a-One").css({ 'backgroundColor': '#3F9DFD', 'color': '#fff' });
               $(this).find('.v-a-o-img').attr("src", "../../../images/addL/wtiyan.png");
               // .attr("src", src_value);
            })
            $(".v-a-Two").click(function () {
               that.clearColor();
               that.clearColor('two');
               $(".v-a-Two").css({ 'backgroundColor': '#3F9DFD', 'color': '#fff' });
               $(this).find('.v-a-o-img').attr("src", "../../../images/addL/wquanqiu.png");
            })
            $(".v-a-Three").click(function () {
               that.clearColor();
               that.clearColor('three');
               $(".v-a-Three").css({ 'backgroundColor': '#3F9DFD', 'color': '#fff' });
               $(this).find('.v-a-o-img').attr("src", "../../../images/addL/wshijiao.png");
            })
@@ -84,11 +84,17 @@
         resize: function () {
         },
         clearColor: function () {
         clearColor: function (val) {
            $(".visualAngleOnce").css({ 'backgroundColor': '#fff', 'color': '#000' });
            $('.v-a-One').find('.v-a-o-img').attr("src", "../../../images/addL/btiyan.png")
            $('.v-a-Two').find('.v-a-o-img').attr("src", "../../../images/addL/bquanqiu.png")
            $('.v-a-Three').find('.v-a-o-img').attr("src", "../../../images/addL/bshijiao.png")
            if (val != 'one') {
               $('.v-a-One').find('.v-a-o-img').attr("src", "../../../images/addL/btiyan.png")
            }
            if (val != 'two') {
               $('.v-a-Two').find('.v-a-o-img').attr("src", "../../../images/addL/bquanqiu.png")
            }
            if (val != 'three') {
               $('.v-a-Three').find('.v-a-o-img').attr("src", "../../../images/addL/bshijiao.png")
            }
         },
         destroy: function () {