Browse Source

[修改]index增加js

master
chenjingyu 4 years ago
parent
commit
49fbe61998
  1. 4
      src/app/ui/luck-draw/luck-draw.component.ts
  2. 1
      src/assets/js/zhuanpan.js
  3. 4
      src/index.html

4
src/app/ui/luck-draw/luck-draw.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-25 08:48:50 * @Date: 2020-09-25 08:48:50
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2020-10-18 14:40:06 * @LastEditTime: 2020-10-18 15:06:21
*/ */
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { from } from 'rxjs'; import { from } from 'rxjs';
@ -29,7 +29,7 @@ export class LuckDrawComponent implements OnInit {
window.setTimeout(()=>{ window.setTimeout(()=>{
//window.location.reload() //window.location.reload()
},0) },0)
console.log(this.weekArray) //console.log(this.weekArray)
} }
weekArray = JSON.parse(localStorage.getItem('arr')); weekArray = JSON.parse(localStorage.getItem('arr'));
//支队数据和是否抽奖 //支队数据和是否抽奖

1
src/assets/js/zhuanpan.js

@ -18,6 +18,7 @@ function chongzhi(){
$(document).ready(function(){ $(document).ready(function(){
if(url=="twoStep"||url=="Reset"){ if(url=="twoStep"||url=="Reset"){
//$('.chongzhi').addClass("stop") //$('.chongzhi').addClass("stop")
console.log("aaa")
$("#Reset").on("contextmenu",function(){ $("#Reset").on("contextmenu",function(){
drawRouletteWheel() drawRouletteWheel()
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png") $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")

4
src/index.html

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-25 08:48:54 * @Date: 2020-09-25 08:48:54
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2020-10-18 09:05:19 * @LastEditTime: 2020-10-18 15:11:32
--> -->
<!doctype html> <!doctype html>
<html lang="zh-CN"> <html lang="zh-CN">
@ -27,6 +27,6 @@
<!-- <script src="/assets/js/kinerLottery.js"></script> <!-- <script src="/assets/js/kinerLottery.js"></script>
<script src="/assets/js/zepto.min.js"></script> --> <script src="/assets/js/zepto.min.js"></script> -->
<!-- <script src="/assets/js/zhuanpan.js"></script> --> <!-- <script src="/assets/js/zhuanpan.js"></script> -->
<!-- <script src="/assets/js/awardRotate.js"></script> --> <script src="/assets/js/awardRotate.js"></script>
<!-- <script src="/assets/js/zhuanpan.js"></script> --> <!-- <script src="/assets/js/zhuanpan.js"></script> -->
</html> </html>

Loading…
Cancel
Save