| 12345678910111213141516171819202122232425262728293031323334353637 |
- /**
- * 获取参数
- * @param name
- * @returns {string|null}
- * @constructor
- */
- function GetQueryString(name) {
- let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
- let r = window.location.search.substr(1).match(reg);
- if (r != null) {
- return decodeURIComponent(r[2]);
- };
- return null;
- }
- function openCover(obj) {
- var hcode = '<img src="' + obj.src + '" style="max-width:480px; max-height:320px;" />';
- // layer.photos({
- // anim:5,
- // });
- layer.open({
- type: 0,
- title: '预览封面',
- content: hcode,
- anim: 1,
- offset: '20px',
- isOutAnim: true,
- maxmin: false,
- fixed: true,
- resize: false,
- closeBtn: 1,
- shade: 0.5,
- shadeClose: true,
- success: function (layero, index) {
- }
- });
- }
|