|
@@ -3,7 +3,7 @@ require("../images/back.png")
|
|
|
require("../images/down2.png")
|
|
|
require("../images/pic.png")
|
|
|
const $ = require("jquery");
|
|
|
-const { getUrlArgObject,openNewWin } = require('./promise.js');
|
|
|
+const { getUrlArgObject } = require('./promise.js');
|
|
|
let fst = `
|
|
|
<div class="step stepFst">
|
|
|
<p>步骤1</p>
|
|
@@ -530,24 +530,37 @@ let obj = {
|
|
|
}
|
|
|
$(function(){
|
|
|
let disName = getUrlArgObject("disName");
|
|
|
+ let imgNum = 0;
|
|
|
$("#disName").html(disName)
|
|
|
- $(".disName img").click(function(){
|
|
|
- openNewWin(`http://192.168.2.241:5545/static/img/pic4.e6d2fd9.png`)
|
|
|
- })
|
|
|
$(".disLis li").each(function(idx,item){
|
|
|
if($(item).html() == disName){
|
|
|
$(this).css("color","#2a9bd5").siblings().css("color","#000")
|
|
|
let num = $(this).attr("data-val")
|
|
|
- // $(".disFst").eq($(this).attr("data-val")).css("display","block").siblings(".disFst").css("display","none")
|
|
|
+ imgNum = num
|
|
|
$(".disFst").html(obj[num])
|
|
|
}
|
|
|
})
|
|
|
$(".disLis li").click(function(){
|
|
|
$("#disName").html($(this).html())
|
|
|
let num = $(this).attr("data-val")
|
|
|
+ imgNum = num
|
|
|
$(this).css("color","#2a9bd5").siblings().css("color","#000")
|
|
|
$(".disFst").html(obj[num])
|
|
|
- // $(".disFst").eq($(this).attr("data-val")).css("display","block").siblings(".disFst").css("display","none")
|
|
|
+ })
|
|
|
+ const newinConf = {
|
|
|
+ width: '900', //窗口的文档显示区的宽度。以像素计。
|
|
|
+ height: '826', //窗口文档显示区的高度。以像素计。
|
|
|
+ left: '0', //窗口的 x 坐标。以像素计。
|
|
|
+ top: '0', //窗口的 y 坐标。以像素计。
|
|
|
+ openMode: "_blank" //每次都是新窗口打开为_blank,打开同一窗口填写任意字符串
|
|
|
+ }
|
|
|
+
|
|
|
+ const newWindowLocation = `width=${newinConf.width}, height=${newinConf.height}, left=${newinConf.left}, top=${newinConf.top} scrollbars=yes`
|
|
|
+ const openNewWin = function (url) {
|
|
|
+ window.open(url, newinConf.openMode, newWindowLocation)
|
|
|
+ }
|
|
|
+ $(".disName img").click(function(){
|
|
|
+ openNewWin(`view.html?imgNum=`+imgNum)
|
|
|
})
|
|
|
$(".disFst").height(window.innerHeight-105+'px')
|
|
|
$("#disFst").on('click',"#sureBtn1",function(){
|