From c47e066678f4e9089562accac3bbc8cd6b2caf00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com>
Date: Mon, 23 Aug 2021 13:43:52 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E6=9D=83=E4=BA=A4=E6=98=93=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 8 +-
static/css/user/user.css | 2 +-
static/js/api/user.js | 32 +++-
static/js/project/bidding/biddingList.js | 4 +
static/js/project/index.js | 4 +-
static/js/project/interact/interact.js | 20 ++-
static/js/project/listingItems/bond.js | 48 +++++-
static/js/project/listingItems/items.js | 15 +-
static/js/project/listingItems/itemsList.js | 17 ++
static/js/project/policy/policyDetail.js | 69 ++++++++
static/js/project/user/index.js | 57 ++++++-
view/bidding/biddingList.html | 2 +-
view/listingItems/bond.html | 6 +-
view/login/login.html | 2 +-
view/new/newDetail.html | 4 +-
view/policy/policy.html | 6 +-
view/policy/policyDetail.html | 170 ++++++++++++++++++++
view/user/user.html | 23 ++-
18 files changed, 442 insertions(+), 47 deletions(-)
create mode 100644 static/js/project/policy/policyDetail.js
create mode 100644 view/policy/policyDetail.html
diff --git a/index.html b/index.html
index 3ef6ec4..3d8dd8d 100644
--- a/index.html
+++ b/index.html
@@ -133,10 +133,10 @@
@@ -145,10 +145,10 @@
diff --git a/static/css/user/user.css b/static/css/user/user.css
index 7b1b3b9..7a3c44a 100644
--- a/static/css/user/user.css
+++ b/static/css/user/user.css
@@ -66,7 +66,7 @@
text-align: right;
}
-.userTable input[type='text']{
+.userTable input[type='text'],input[type='password']{
border: 1px solid #e3e3e3;
width: 90%;
height: 36px;
diff --git a/static/js/api/user.js b/static/js/api/user.js
index f3ce355..34c98fa 100644
--- a/static/js/api/user.js
+++ b/static/js/api/user.js
@@ -6,7 +6,7 @@
@purl /transaction/website/member/{id}
@param
*/
-var userUpdate = '/transaction/member' //修改用户信息类接口
+var userUpdate = '/transaction/member/edit' //修改用户信息类接口
/*
@purl /getInfo
@@ -42,19 +42,31 @@ var userBidding = '/transaction/outproject/biddinglist/member' //我的竞价
@purl /transaction/demand
@param
*/
-var userDemand = '/transaction/demand' //新增供求类接口
+var userDemand = '/transaction/demand/add' //新增供求类接口
+
+/*
+@purl /transaction/demand
+@param
+*/
+var userEdit = '/transaction/demand/edit' //修改供求类接口
/*
@purl /transaction/demand/{ids}
@param
*/
-var deleteSupply = '/transaction/demand' //删除供求类接口
+var deleteSupply = '/transaction/demand/remove' //删除供求类接口
+
+/*
+@purl /transaction/demand/{ids}
+@param
+*/
+var selectSupply = '/transaction/demand' //查询供求类接口
/*
@purl /transaction/communicate
@param
*/
-var userCommunicate = '/transaction/communicate' //添加咨询类接口
+var userCommunicate = '/transaction/communicate/add' //添加咨询类接口
/*
@purl /transaction/demand
@@ -78,16 +90,22 @@ var base64Attach = '/common/base64Attach' //数据字典
@purl /common/base64Attach
@param
*/
-var showUserImg = 'transaction/member/showImg/memberId' //用户图片展示
+var showUserImg = '/transaction/member/showImg/memberId' //用户图片展示
/*
@purl /common/base64Attach
@param
*/
-var deleteUserImg = 'transaction/member/deleteImg/attachId' //用户图片展示
+var deleteUserImg = '/transaction/member/deleteImg/attachId' //用户图片展示
+
+/*
+@purl supplyDemand/showImg/id/{id}
+@param
+*/
+var supplyDemandImg = '/transaction/website/supplyDemand/showImg/id' //用户图片展示
/*
@purl supplyDemand/showImg/id/{id}
@param
*/
-var supplyDemandImg = '/transaction/website/supplyDemand/showImg/id' //用户图片展示
\ No newline at end of file
+var updatePwd = '/system/user/profile/updatePwd' //修改用户密码
\ No newline at end of file
diff --git a/static/js/project/bidding/biddingList.js b/static/js/project/bidding/biddingList.js
index 6fec5db..4d0c964 100644
--- a/static/js/project/bidding/biddingList.js
+++ b/static/js/project/bidding/biddingList.js
@@ -194,6 +194,7 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT
tabCheck = function (deptId) {
module.data.deptId = deptId;
+
$('#locInfoall').attr("class","auction_hall_table_tab auction_loc");
$("#deptLocationContent div").attr("class","auction_hall_table_tab auction_loc");
if(deptId == ''){
@@ -234,6 +235,9 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT
if(id == ''){
id = 'All';
}
+ if(projectNumber == undefined){
+ module.data.projectNumber = '';
+ }
for (var i = 0 ; i < module.data.deptTypeList.length ; i++){
document.getElementById('standardType'+(i+1)).className = 'auction_hall_table_tab';
}
diff --git a/static/js/project/index.js b/static/js/project/index.js
index 0922492..e74d710 100644
--- a/static/js/project/index.js
+++ b/static/js/project/index.js
@@ -576,8 +576,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
goUserInteract = function () {
tools.skip('view/user/user.html?type=goInteract')
}
- goListing = function () {
- tools.skip('view/listingItems/itemsList.html');
+ goListing = function (clickType,dictSort,dictCode) {
+ tools.skip('view/listingItems/itemsList.html?clickType='+clickType+'&dictSort='+dictSort+'&dictCode='+dictCode);
}
goAnnouncementList = function (type) {
diff --git a/static/js/project/interact/interact.js b/static/js/project/interact/interact.js
index 595fcef..eb04e13 100644
--- a/static/js/project/interact/interact.js
+++ b/static/js/project/interact/interact.js
@@ -92,8 +92,7 @@ define(['jquery', "template", "Tools", "interactApi", "paging"], function ($, te
if (pageCount < 1){
pageCount = 1;
}
- console.log(module.data.searchInformationList)
- if(module.data.searchInformationList == ''){
+ if((module.data.searchInformationList == '' || module.data.searchType == 'YES')&& module.data.turnPage != 'YES'){
// 初始化 分页器
var page_s1=createPage('.page_s2');
// 设置分页
@@ -113,11 +112,16 @@ define(['jquery', "template", "Tools", "interactApi", "paging"], function ($, te
}
goSearch = function () {
+ $('.page_s2').html('');
var searchTitle = $('#searchTitle').val();
var searchContent = $('#searchContent').val();
module.data.searchTitle = searchTitle ;
module.data.searchContent = searchContent ;
+ module.data.searchType = 'YES';
+ module.data.turnPage = 'NO';
module.data.pageNum = 1 ;
+ console.log('aaa')
+
document.getElementById('interact').style.display = 'none';
document.getElementById('search').style.display = 'block';
tools.doGet(interactSearch, {deptId:100,title:searchTitle,content:searchContent,pageNum:1,pageSize:module.data.pageSize}, module.searchInteractInformation,true)
@@ -125,16 +129,22 @@ define(['jquery', "template", "Tools", "interactApi", "paging"], function ($, te
turnThePage = function (pageNum) {
module.data.pageNum = pageNum ;
- console.log(pageNum)
if (module.data.searchType == 'YES'){
- tools.doGet(interactSearch, {deptId:100,title:module.data.searchTitle,content:module.data.searchContent,pageNum:pageNum,pageSize:module.data.pageSize}, module.interactInformation,true)
+ module.data.turnPage = 'YES';
+ tools.doGet(interactSearch, {deptId:100,title:module.data.searchTitle,content:module.data.searchContent,pageNum:pageNum,pageSize:module.data.pageSize}, module.searchInteractInformation,true)
}else{
tools.doGet(interactList, {deptId:100,pageNum:pageNum,pageSize:module.data.pageSize}, module.interactInformation,true);
}
}
goUserInteract = function () {
- tools.skip('../user/user.html?type=goInteract')
+ if(tools.getCookie('Admin-Token')){
+ tools.skip('../user/user.html?type=goInteract')
+ }else{
+ tools.initDialog('登陆提示', '登陆后可参与竞价,是否登录?', function () {
+ tools.skip('../login/login.html')
+ }, '登录', function () { }, "取消")
+ }
}
return module;
});
\ No newline at end of file
diff --git a/static/js/project/listingItems/bond.js b/static/js/project/listingItems/bond.js
index 50d37c1..c53d1df 100644
--- a/static/js/project/listingItems/bond.js
+++ b/static/js/project/listingItems/bond.js
@@ -14,8 +14,8 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi',"cupload"], function
tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true);
document.getElementById('realName').value = tools.getCookie('userName');
document.getElementById('userNum').value = tools.getCookie('phone');
- document.getElementById('userBank').value = tools.getCookie('bankAddress');
- document.getElementById('bankId').value = tools.getCookie('bankCardNum');
+ document.getElementById('userBank').value == null ? '': tools.getCookie('bankAddress');
+ document.getElementById('bankId').value == null ? '':tools.getCookie('bankCardNum');
document.getElementById('idCard').value = tools.getCookie('idCardNum');
//项目基本信息
tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation,true);
@@ -89,7 +89,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi',"cupload"], function
}
submit = function(){
-
+ if(module.onCheck()){
var data = {};
var realName = $('#realName').val();
var userNum = $('#userNum').val();
@@ -109,10 +109,48 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi',"cupload"], function
data['status'] = 'Y';
tools.doPost(signupSubmit, data, module.upLoadAction);
-
-
+ }
}
+ //验证表单
+ module.onCheck = function () {
+ var userNum = $('#userNum').val();
+ var realName = $('#realName').val();
+ var userBank = $('#userBank').val();
+ var bankId = $('#bankId').val();
+ var idCard = $('#idCard').val();
+ if ($('#checkAgree:checked').val() == undefined ) {
+ $('#checkAgree')[0].focus()
+ tools.initTips('请选择我已同意 ', 'right', $('#checkAgree')[0], 2000)
+ return false;
+ }
+ if (realName == '') {
+ $('#realName')[0].focus()
+ tools.initTips('请输入姓名', 'right', $('#realName')[0], 2000)
+ return false;
+ }
+ if (userNum == '') {
+ $('#userNum')[0].focus()
+ tools.initTips('请输入会员账号', 'right', $('#userNum')[0], 2000)
+ return false;
+ }
+ if (userBank == '') {
+ $('#userBank')[0].focus()
+ tools.initTips('请输入开户银行', 'right', $('#userBank')[0], 2000)
+ return false;
+ }
+ if (bankId == '') {
+ $('#bankId')[0].focus()
+ tools.initTips('请输入银行卡号', 'right', $('#bankId')[0], 2000)
+ return false;
+ }
+ if (idCard == '') {
+ $('#idCard')[0].focus()
+ tools.initTips('请输入身份证号', 'right', $('#idCard')[0], 2000)
+ return false;
+ }
+ return true;
+ }
module.toTips = function(data){
console.log(data)
if(data.msg != '操作成功'){
diff --git a/static/js/project/listingItems/items.js b/static/js/project/listingItems/items.js
index 9c19adf..a0f2dbe 100644
--- a/static/js/project/listingItems/items.js
+++ b/static/js/project/listingItems/items.js
@@ -15,18 +15,23 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
//底部友情链接
tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true);
+ //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
+ tools.getWebConfig();
+
module.data.loginNow = tools.getCookie('Admin-Token');
//浏览次数
tools.doGet(outProject, {id:getQueryVariable('id')}, module.projectNum,true);
- //项目基本信息
- tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation,true);
+ setTimeout(function(){//项目基本信息
+ tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation,true);
+ },100)
+
+
//项目基本信息
tools.doGet(showImg + '/'+getQueryVariable('id'), {}, module.showImgInformation,true);
- //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
- tools.getWebConfig();
+
//焦点图
setTimeout(function () {
@@ -170,12 +175,10 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
if (data.code == 200) {
console.log(serverApi)
var content = data.data;
-
//倒计时
var timer = setInterval(function(){
module.dataCompare(content.signupStartTime,content.signupStopTime,content.biddingStartTime,content.biddingStopTime);
},1000)
-
for(var i = 0 ; i < content.fileUrlList.length ; i++){
content.fileUrlList[i].fileUrl = serverApi+content.fileUrlList[i].fileUrl;
}
diff --git a/static/js/project/listingItems/itemsList.js b/static/js/project/listingItems/itemsList.js
index 250f0e1..69e781d 100644
--- a/static/js/project/listingItems/itemsList.js
+++ b/static/js/project/listingItems/itemsList.js
@@ -70,6 +70,18 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi
projectName: getQueryVariable('projectName'),
projectNumber: getQueryVariable('projectNumber')
}, module.itemList, true);
+ }else if(getQueryVariable('clickType') == 'deptType'){//新闻资讯
+ tools.doGet(itemsList, { deptId: 100, pageNum: module.data.pageNum, pageSize: module.data.pageSize }, module.itemList, true);
+ setTimeout(function(){
+ typeCheck(getQueryVariable('dictSort'),getQueryVariable('dictCode'))
+ goSearch()
+ },500)
+ }else if(getQueryVariable('clickType') == 'deptLocation'){
+ tools.doGet(itemsList, { deptId: 100, pageNum: module.data.pageNum, pageSize: module.data.pageSize }, module.itemList, true);
+ setTimeout(function(){
+ tabCheck(getQueryVariable('dictSort'))
+ goSearch()
+ },500)
} else {
//新闻资讯
tools.doGet(itemsList, { deptId: 100, pageNum: module.data.pageNum, pageSize: module.data.pageSize }, module.itemList, true);
@@ -133,6 +145,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi
//挂牌项目列表
module.itemList = function (data) {
if (data.code == 200) {
+ console.log(data)
module.data.serverApi = serverApi;
var content = data.rows;
var pageCount = (data.total / module.data.pageSize).toFixed(0);
@@ -257,10 +270,14 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi
typeCheck = function (id, projectNumber) {
module.data.projectNumber = projectNumber;//标的物类型ID
+ console.log(id+'----------------'+projectNumber)
document.getElementById('standardTypeAll').className = 'auction_hall_table_tab';
if (id == '') {
id = 'All';
}
+ if(projectNumber == undefined){
+ module.data.projectNumber = '';
+ }
for (var i = 0; i < module.data.deptTypeList.length; i++) {
document.getElementById('standardType' + (i + 1)).className = 'auction_hall_table_tab';
}
diff --git a/static/js/project/policy/policyDetail.js b/static/js/project/policy/policyDetail.js
new file mode 100644
index 0000000..04f5655
--- /dev/null
+++ b/static/js/project/policy/policyDetail.js
@@ -0,0 +1,69 @@
+/**
+ * Created by Administrator on 2021/4/5.
+ */
+define(['jquery', "template", "Tools", "newApi"], function ($, template, Tools ) {
+ //数据存储
+ var module = {
+ data: {
+ newsInformationList:''
+ },
+ };
+ var tools = new Tools();
+
+ module.init = function (page) {
+ //底部友情链接
+ tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true);
+ console.log(getQueryVariable('id'))
+ var titName = getQueryVariable('type')
+ if(titName == 'zcfg'){
+ document.getElementById('titIndex').innerText = '政策法规'
+ }
+ if(titName == 'jygz'){
+ document.getElementById('titIndex').innerText = '交易规则'
+ }
+ if(titName == 'zlxz'){
+ document.getElementById('titIndex').innerText = '资料下载'
+ }
+
+ //新闻资讯
+ tools.doGet(newDetail + '/'+getQueryVariable('id'), {}, module.NewsInformation,true);
+
+ //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
+ tools.getWebConfig();
+ };
+ //底部友情链接
+ module.bottomFriendsLinks = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ console.log(content)
+ module.data.friendsLinksList = content;
+ var friendsLinksData = template('friendsLinksData', module.data);
+ $("#friendsLinksContent").html(friendsLinksData);
+ }
+ }
+
+ //获取地址栏参数
+ function getQueryVariable(variable){
+ var query = window.location.search.substring(1);
+ var vars = query.split("&");
+ for (var i=0;i
+
+

+
关注公众号 了解详情
+
+
+
+
+
+