diff --git a/htmls/contactUs/contactUs.html b/htmls/contactUs/contactUs.html
index f20dc42..e9034a9 100644
--- a/htmls/contactUs/contactUs.html
+++ b/htmls/contactUs/contactUs.html
@@ -10,6 +10,7 @@
联系我们
+
@@ -40,25 +41,33 @@
height: 400px;
}
- .ty_moban {
- width: 100%;
- box-shadow: 0px 3px 6px rgb(0 0 0 / 6%);
- padding-bottom: 7px;
- position: relative;
- height: 2px;
- z-index: 2;
- }
+
-
-
-
-
-
+
+
+
+
+
联系我们
@@ -120,53 +129,13 @@
LoadBaiduMapScript().then((BMap) => {
// 百度地图API功能
- function SquareOverlay(center, length, color) {
- this._center = center;
- this._length = length;
- this._color = color;
- }
+
var map = new BMap.Map("allmap"); // 创建Map实例
map.centerAndZoom(new BMap.Point(104.067923463, 30.6799428454), 11); // 初始化地图,设置中心点坐标和地图级别
//添加地图类型控件
- // 继承API的BMap.Overlay
- SquareOverlay.prototype = new BMap.Overlay();
- SquareOverlay.prototype.initialize = function (map) {
- // 保存map对象实例
- this._map = map;
- // 创建div元素,作为自定义覆盖物的容器
- var div = document.createElement("div");
- div.style.position = "absolute";
- // 可以根据参数设置元素外观
- div.style.width = this._length + "px";
- div.style.height = this._length + "px";
- div.style.background = this._color;
- // 将div添加到覆盖物容器中
- map.getPanes().markerPane.appendChild(div);
- // 保存div实例
- this._div = div;
- // 需要将div元素作为方法的返回值,当调用该覆盖物的show、
- // hide方法,或者对覆盖物进行移除时,API都将操作此元素。
- return div;
- }
- SquareOverlay.prototype.draw = function(){
-// 根据地理坐标转换为像素坐标,并设置给容器
- var position = this._map.pointToOverlayPixel(this._center);
- this._div.style.left = position.x - this._length / 2 + "px";
- this._div.style.top = position.y - this._length / 2 + "px";
-}
-SquareOverlay.prototype.show = function(){
- if (this._div){
- this._div.style.display = "";
- }
-}
-// 实现隐藏方法
-SquareOverlay.prototype.hide = function(){
- if (this._div){
- this._div.style.display = "none";
- }
-}
+
map.addControl(new BMap.MapTypeControl({
mapTypes: [
BMAP_NORMAL_MAP,
@@ -176,8 +145,35 @@ SquareOverlay.prototype.hide = function(){
map.setCurrentCity("武汉"); // 设置地图显示的城市 此项是必须设置的
map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放
+ var points = [
+ [104.016235, 30.67775],
+ [104.069554, 30.601504],
+
+ ];
+ // 向地图添加标注
+ for (var i = 0; i < points.length; i++) {
+ var myIcon = new BMap.Icon("../../img/public/dwionv.png", new BMap.Size(50, 50), {
+ // 指定定位位置
+ offset: new BMap.Size(50, 205),
+ // 当需要从一幅较大的图片中截取某部分作为标注图标时,需要指定大图的偏移位置
+ imageOffset: new BMap.Size(0, 0 - i * 0) // 设置图片偏移
+ });
+ var point = new BMap.Point(points[i][0], points[i][1]);
+ // 创建标注对象并添加到地图
+ var marker = new BMap.Marker(point, { icon: myIcon });
+ map.addOverlay(marker);
+ };
})
+
+ var iframe = document.getElementById('getop')
+ console.log(iframe);
+ var body = iframe.contentWindow.document.body
+
+ console.log( $(body).nextAll(".ty_gr").css("color","#000"));
+
+
+
diff --git a/htmls/logshoppingcar/shopcar.html b/htmls/logshoppingcar/shopcar.html
index 0b94623..35829ee 100644
--- a/htmls/logshoppingcar/shopcar.html
+++ b/htmls/logshoppingcar/shopcar.html
@@ -8,6 +8,7 @@
+
@@ -27,7 +28,25 @@
-
+
+
+
+
diff --git a/img/public/dwionv.png b/img/public/dwionv.png
new file mode 100644
index 0000000000000000000000000000000000000000..b991a36dafba4d88bc7390892affb1cfa23b6f45
GIT binary patch
literal 998
zcmV
=nwSgBHExf
z$%M8|1Br|xv!c*ij1BiDbBoL&vtrA&CHrF+?>RUe_ndj>%yIj{;V|z!^UQZ<-uHQ)
z_o;l*)1#nfVjeERY@CK!n1&y*tNuTPudt(?vs#)SGInGEn1xt^i|fD1bYau+E^NUE
zcmW4uZd8eQQ&l{GyD%fhX$yUVXYf{baI!a*n{Z!AAh-epcolQn8McBt0*_)H
z&M66#)ls+&>v4V&s0vnLd5iPi&^)}W#RE@v(`Rw(VS>r(47@W`ts+7ex$$Ov9Ok=+pUQ*!va8AJ%Ya@>=qAI
ztJ4!)73uh;4uJ@%YGZ`md@M+WAeN`E>%TG@5LYFfmxxQWBSIJ`qiq6MTvH3S2l-*pZCjNnC`}g(W{nm_LI;
zYKg7S2ytvJ2REay!anrim;!#X+N7S!8lPZ;kOn%{DLAtP5WG=K
z(*s$kap7(KUmC^Rjf3oDT`hhkc3b_mG#zUkWTC#t(^Jpm8%?!Z^Rn*Kd3D*TdTVLA
zJ3G(}HGviQYl?sdYiass^WbCw@KZd0_<8IRcI1bsRa9OfuBI-dUM=!&E2weYjomHI
zm(>$^xz)*b`D;6_#jjlkdJzw`GssJ-LqbnrqDw%lgfGxmF
2yN$Ugr!_W1GoeGV=pM$)7&h8ZHcsBDHMc-f^jE})~!PE
z)^bS;+qNY_$EENlw$twK9%0hBofyFf24L`h+gdXJwrJ2fbd!
U1u?8S)c^nh07*qoM6N<$f+f(}iU0rr
literal 0
HcmV?d00001