|
@@ -0,0 +1,28 @@
|
|
|
+(function(){
|
|
|
+ // 轮播图的切换
|
|
|
+ var curbg = 0;
|
|
|
+ setInterval(
|
|
|
+ function() {
|
|
|
+ if (curbg == 2) {
|
|
|
+ curbg = -1;
|
|
|
+ }
|
|
|
+ curbg++;
|
|
|
+ $('#bg .bg').removeClass('show');
|
|
|
+ $('#bg').find('img').eq(curbg).addClass('show');
|
|
|
+ },3000
|
|
|
+ );
|
|
|
+ $('#login-but').on('click',function(){
|
|
|
+ login()
|
|
|
+ })
|
|
|
+ var login = function(){
|
|
|
+ Popup.showLoading("loading...");
|
|
|
+ getAjax('/api/buy/token4','post',{},function(res){
|
|
|
+ if (res.err === 0) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ Popup.toast(res.msg);
|
|
|
+ }
|
|
|
+ Popup.close();
|
|
|
+ })
|
|
|
+ }
|
|
|
+})()
|