记得上下班打卡 | git大法好,push需谨慎

Commit 4a62f797 authored by dongchun's avatar dongchun

修改后台bug

parent 58c89a7b
......@@ -358,7 +358,7 @@
let data = []
Array.prototype.forEach.call(itmeLength,function (item,index,arr) {
obj.activityUrl = item.querySelector('.quzhi').value;
obj.activityUrl = item.querySelector('.h5Url').value;
obj.bannerId = item.getAttribute('data-id');
obj.bannerType = type;
obj.createTime = item.getAttribute('data-createTime');
......
......@@ -303,7 +303,7 @@
})
console.log(data)
promiseMethods('/goblin/marketing/zhengzai/store','post', JSON.stringify(data), 'application/json').then(res => {
// $.operate.successCallback(res);
$.operate.successCallback(res);
})
}
function promiseMethods(url,type,data,contentType) {
......
......@@ -166,6 +166,15 @@
<th:block th:include="include :: footer" />
</body>
<script th:inline="javascript">
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
$(function () {
let name = 'storeId';
let time = 'time';
......@@ -178,7 +187,7 @@
var r2 = window.location.search.substr(1).match(reg2);
var r3 = window.location.search.substr(1).match(reg3);
$("#time").html(unescape(r2[2]));
$("#titleName").text(GetQueryString(activityName));
$("#titleName").text(getQueryVariable(activityName));
$("#storeId").val(unescape(r[2]));
$("#marketId").val(unescape(r3[2]));
let data = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment