Commit 77b24690 by 肖康

会员中旬询价 首页修改

parent 90ad5746

151 KB | W: | H:

164 KB | W: | H:

public/assets/images/mall/banner.png
public/assets/images/mall/banner.png
public/assets/images/mall/banner.png
public/assets/images/mall/banner.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -12,7 +12,7 @@ seajs.config({ ...@@ -12,7 +12,7 @@ seajs.config({
map:[ map:[
['.js','.js?v='+Date.now()] ['.js','.js?v='+Date.now()]
], ],
preload:(isMallXk?['liexin_ajax','slide','mallUi']:['liexin_ajax']) //预加载模块 preload:(isMallXk?['liexin_ajax','slide','mallUi']:['liexin_ajax','mallUi']) //预加载模块
}); });
seajs.use() seajs.use()
\ No newline at end of file
...@@ -6,10 +6,51 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) { ...@@ -6,10 +6,51 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) {
var mallUi = { var mallUi = {
init: function () { init: function () {
mallUi.handle(); mallUi.handle();
console.log("商城")
}, },
handle: function () { handle: function () {
//询价POP
$("body").on("click", ".frqbtnxs", function () {
if (!tool.isLogin()) {
liexin_pop.LoginPop()
return
}
mallUi.openInquiry()
})
//退出账号
$("body").on("click", ".logoutbtns", function () {
$.liexin_ajax('/api/auth/logout', 'GET', {}, function (res) {
if (res.code == 0) {
setTimeout(function () {
history.go(0)
}, 1000)
} else {
liexin_pop.Tip({ title: res.msg })
}
})
})
//官网
$(".gw-header-top .topclose").click(function () {
$(".gw-header-top").slideUp(500);
tool.setCookie("topclose", 1, 30);
$(".gw-header-nav").animate({
top: 0
})
})
$(".closehometips").click(function () {
tool.setCookie("closehometips", 1, 30);
$(".footfixedcor").animate({
bottom: -160
})
})
if(!isMallXk){
return
}
// 商城
//商城顶部 //商城顶部
$(".mall-header-top .topclose").click(function () { $(".mall-header-top .topclose").click(function () {
$(".mall-header-top").slideUp(500); $(".mall-header-top").slideUp(500);
...@@ -35,18 +76,10 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) { ...@@ -35,18 +76,10 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) {
} }
window.location.href = "/search?keyword=" + val_ window.location.href = "/search?keyword=" + val_
}) })
//询价POP
$("body").on("click", ".frqbtnxs", function () {
if(!tool.isLogin()){
liexin_pop.LoginPop()
return
}
mallUi.openInquiry()
})
}, },
openInquiry:function(){ openInquiry: function () {
liexin_pop.Open({ liexin_pop.Open({
title: "Inquiry", title: "Inquiry",
width: 791, width: 791,
...@@ -73,7 +106,7 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) { ...@@ -73,7 +106,7 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) {
} }
$(this).parents(".inquirygroupinputs").remove(); $(this).parents(".inquirygroupinputs").remove();
}) })
$("body").on("click", ".submitInquiry", function () { $("body").on("click", ".submitInquiry", function () {
var arr_ = []; var arr_ = [];
$(".allInquiryPop .inquirygroupinputs").each(function () { $(".allInquiryPop .inquirygroupinputs").each(function () {
...@@ -106,22 +139,22 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) { ...@@ -106,22 +139,22 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) {
return return
} }
$.liexin_ajax('/api/inquiry/add', 'POST', { $.liexin_ajax('/api/inquiry/add', 'POST', {
items:arr_, items: arr_,
remark:$(".allInquiryPop .inquiryremark").val() remark: $(".allInquiryPop .inquiryremark").val()
}, function (res) { }, function (res) {
if (res.code === 0) { if (res.code === 0) {
liexin_pop.Tip({ title: res.msg }) liexin_pop.Tip({ title: res.msg })
setTimeout(function(){ setTimeout(function () {
history.go(0) history.go(0)
},800) }, 1000)
} else { } else {
liexin_pop.Tip({ title: res.msg }) liexin_pop.Tip({ title: res.msg })
} }
}) })
}) })
} }
} }
......
define('headui', ['tool'], function (require, exports, module) {
var tool=require("tool");
var headui = {
init: function () {
headui.handle();
},
handle:function(){
$(".gw-header-top .topclose").click(function(){
$(".gw-header-top").slideUp(500);
tool.setCookie("topclose",1,30);
$(".gw-header-nav").animate({
top:0
})
})
$(".closehometips").click(function(){
tool.setCookie("closehometips",1,30);
$(".footfixedcor").animate({
bottom:-160
})
})
}
}
module.exports = headui.init();
})
seajs.use(['headui'])
\ No newline at end of file
define('search', ['tool', 'liexin_pop'], function (require, exports, module) {
var tool = require("tool");
var liexin_pop = require("liexin_pop");
var search = {
page:1,
init: function () {
search.handle();
search.getData()
},
getData:function(){
var data={
}
$.liexin_ajax('/api/semour/skuLists', 'GET', {
}, function (res) {
if (res.code == 0) {
} else {
liexin_pop.Tip({ title: res.msg })
}
})
},
handle: function () {
}
}
module.exports = search.init();
})
seajs.use(['search'])
\ No newline at end of file
define('frq', ['tool', 'liexin_pop'], function (require, exports, module) {
var tool = require("tool");
var liexin_pop = require("liexin_pop");
var frq = {
init: function () {
frq.handle();
frq.getData()
},
getData:function(){
$.liexin_ajax('/api/user/info', 'GET', {}, function (res) {
if (res.code == 0) {
} else {
liexin_pop.Tip({ title: res.msg })
}
})
},
handle: function () {
}
}
module.exports = frq.init();
})
seajs.use(['frq'])
\ No newline at end of file
define('frq', ['tool', 'liexin_pop'], function (require, exports, module) {
var tool = require("tool");
var liexin_pop = require("liexin_pop");
var frq = {
init: function () {
frq.handle();
frq.getData()
},
getData:function(){
$.liexin_ajax('/api/inquiry/list', 'GET', {
status:$(".inuirynavs .item.act").attr("guid"),
keyword:$(".inquirysearchvalss").val()
}, function (res) {
if (res.code == 0) {
} else {
liexin_pop.Tip({ title: res.msg })
}
})
},
handle: function () {
}
}
module.exports = frq.init();
})
seajs.use(['frq'])
\ No newline at end of file
...@@ -54,5 +54,5 @@ ...@@ -54,5 +54,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -38,5 +38,5 @@ ...@@ -38,5 +38,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -255,5 +255,5 @@ ...@@ -255,5 +255,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -42,5 +42,5 @@ ...@@ -42,5 +42,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -71,5 +71,5 @@ ...@@ -71,5 +71,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -145,5 +145,5 @@ ...@@ -145,5 +145,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -134,5 +134,5 @@ ...@@ -134,5 +134,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -42,6 +42,6 @@ ...@@ -42,6 +42,6 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
<script src="{{$public}}/assets/js/auth/changePassword.js?v={{time()}}"></script> <script src="{{$public}}/assets/js/auth/changePassword.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -54,6 +54,6 @@ ...@@ -54,6 +54,6 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
<script src="{{$public}}/assets/js/auth/forget.js?v={{time()}}"></script> <script src="{{$public}}/assets/js/auth/forget.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -34,6 +34,5 @@ ...@@ -34,6 +34,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
<script src="{{$public}}/assets/js/auth/login.js?v={{time()}}"></script> <script src="{{$public}}/assets/js/auth/login.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -163,6 +163,6 @@ ...@@ -163,6 +163,6 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
<script src="{{$public}}/assets/js/auth/reg.js?v={{time()}}"></script> <script src="{{$public}}/assets/js/auth/reg.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<a href="/about/company" class="fr clj">CONTACT US</a> <a href="/about/company" class="fr clj">CONTACT US</a>
@if(!empty($_COOKIE['sem_email'])) @if(!empty($_COOKIE['sem_email']))
<div class="login-head-box yesLogin fr clj"> <div class="login-head-box yesLogin fr clj">
<a href="" class="row"> <a href="/user/order" class="row">
<span><i class="icon iconfont icon-touxiang"></i></span> <span><i class="icon iconfont icon-touxiang"></i></span>
<div class="username">{{$_COOKIE['sem_email']}}</div> <div class="username">{{$_COOKIE['sem_email']}}</div>
</a> </a>
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<a href="/user/order">My Orders</a> <a href="/user/order">My Orders</a>
<a href="/user/inquiry">My RFQ</a> <a href="/user/inquiry">My RFQ</a>
<a href="/user/account">My Account</a> <a href="/user/account">My Account</a>
<a href="javascript:void(0)" class="logoutbtns">LOGOUT</a>
</div> </div>
</div> </div>
@else @else
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<a class="car-boxs" href="/car"><i class="icon iconfont icon-gouwuche"></i><span class="carNum">99</span></a> <a class="car-boxs" href="/car"><i class="icon iconfont icon-gouwuche"></i><span class="carNum">99</span></a>
@if(!empty($_COOKIE['sem_email'])) @if(!empty($_COOKIE['sem_email']))
<div class="login-head-box yesLogin" > <div class="login-head-box yesLogin" >
<a href="" class="row"> <a href="/user/order" class="row">
<span><i class="icon iconfont icon-touxiang"></i></span> <span><i class="icon iconfont icon-touxiang"></i></span>
<div class="username">{{$_COOKIE['sem_email']}}</div> <div class="username">{{$_COOKIE['sem_email']}}</div>
</a> </a>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<a href="/user/order">My Orders</a> <a href="/user/order">My Orders</a>
<a href="/user/inquiry">My RFQ</a> <a href="/user/inquiry">My RFQ</a>
<a href="/user/account">My Account</a> <a href="/user/account">My Account</a>
<a href="javascript:void(0)" class="logoutbtns">LOGOUT</a>
</div> </div>
</div> </div>
@else @else
......
<div class="mall-header-user-nav"> <div class="mall-header-user-nav">
<div class="user-con-nav w1200 "> <div class="user-con-nav w1200 ">
<div class="nav-box row verCenter" style="height:80px;"> <div class="nav-box row verCenter" style="height:80px;">
<a href="" class="logo"><img src="{{$public}}/assets/images/common/logo.png" alt=""></a> <a href="/mall" class="logo"><img src="{{$public}}/assets/images/common/logo.png" alt=""></a>
<div class="menber">Member Center</div> <div class="menber">Member Center</div>
<div class="login-head-box yesLogin"> <div class="login-head-box yesLogin">
<a href="" class="row"> <a href="/user/order" class="row">
<span><i class="icon iconfont icon-touxiang"></i></span> <span><i class="icon iconfont icon-touxiang"></i></span>
<div class="username">460053411@qq.com</div> <div class="username">{{$_COOKIE['sem_email']}}</div>
</a> </a>
</div> </div>
<a href="" class="about-link">Contact Us</a> <a href="/about/company" class="about-link">Contact Us</a>
</div> </div>
</div> </div>
......
...@@ -84,6 +84,5 @@ ...@@ -84,6 +84,5 @@
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/home/headui.js?v={{time()}}"></script>
<script src="{{$public}}/assets/js/home/home.js?v={{time()}}"></script> <script src="{{$public}}/assets/js/home/home.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
@include('common.mallHeaderNav') @include('common.mallHeaderNav')
<div class="searchbox w1200"> <div class="searchbox w1200">
<div class="bread-menu row boxsiz"> <div class="bread-menu row boxsiz">
<a href="">Home</a> <a href="/mall">Home</a>
<i>></i> <i>></i>
<span>SourceHanSansCN-Regular</span> <span>SourceHanSansCN-Regular</span>
</div> </div>
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="datalistcon boxsiz"> <div class="datalistcon boxsiz">
<div class="list-th boxsiz row"> <div class="list-th boxsiz row">
<div class="th w180">Part NO.</div> <div class="th w180">Part NO.</div>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
<div class="section lboxs infobase" style="display:none;"> <div class="section lboxs infobase" >
<div class="row bothSide boxinfo"> <div class="row bothSide boxinfo">
<div class="l "> <div class="l ">
<div class="grp row"> <div class="grp row">
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="lboxs addressbox"> <div class="lboxs addressbox" style="display:none;">
<div class="list-table"> <div class="list-table">
<div class="thead row boxsiz"> <div class="thead row boxsiz">
<div class="th w56">NO.</div> <div class="th w56">NO.</div>
......
...@@ -26,18 +26,18 @@ ...@@ -26,18 +26,18 @@
</div> </div>
<div class="user-right boxsiz"> <div class="user-right boxsiz">
<div class="row bothSide"> <div class="row bothSide">
<div class="nav row"> <div class="nav row inuirynavs">
<div class="item act "> <div class="item act " guid="">
<div class="row rowCenter"> <div class="row rowCenter">
<div>All</div><span>(2)</span> <div>All</div><span>(2)</span>
</div> </div>
</div> </div>
<div class="item "> <div class="item " guid="0">
<div class="row rowCenter"> <div class="row rowCenter">
<div>Pending</div><span>(2)</span> <div>Pending</div><span>(2)</span>
</div> </div>
</div> </div>
<div class="item "> <div class="item " guid="1">
<div class="row rowCenter"> <div class="row rowCenter">
<div>Replied</div><span>(2)</span> <div>Replied</div><span>(2)</span>
</div> </div>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</div> </div>
<div class="search-shit boxsiz"> <div class="search-shit boxsiz">
<span class="icon"><i class="icon iconfont icon-shouyesousuo"></i></span> <span class="icon"><i class="icon iconfont icon-shouyesousuo"></i></span>
<input type="text" placeholder="Search Part No./Quotation No."> <input type="text" placeholder="Search Part No./Quotation No." class="inquirysearchvalss">
</div> </div>
</div> </div>
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
</div> </div>
@endsection @endsection
@section('js') @section('js')
<script src="{{$public}}/assets/js/user/frq.js?v={{time()}}"></script> <script src="{{$public}}/assets/js/user/frq.js?v={{time()}}"></script>
@endsection @endsection
\ No newline at end of file
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 sign in to comment