Browse Source

修改接口

master
liaoxinyu 2 years ago
parent
commit
766c86e8d9
  1. 14
      app.js
  2. 2
      components/uni-swipe-action-item/mpother.js
  3. 2
      manifest.json
  4. 2
      pages/assets/draw.vue
  5. 2
      pages/assets/recharge.vue
  6. 4
      pages/assets/records.vue
  7. 2
      pages/auth/senior.vue
  8. 4
      pages/base/home.vue
  9. 2
      pages/base/mine.vue
  10. 2
      pages/currency/list.vue
  11. 2
      pages/exchange/contract-history.vue
  12. 2
      pages/exchange/contractHis.vue
  13. 2
      pages/income/index.vue
  14. 2
      pages/login/index.vue
  15. 2
      pages/otc/bind-pay.vue
  16. 4
      pages/purchase/bill.vue
  17. 2
      pages/reg/index.vue
  18. 2
      pages/safe/forget-password.vue
  19. 2
      pages/safe/phone.vue
  20. 4
      pages/service/service.vue
  21. 2
      static/chart_main/chart_main/old-datafeed.js
  22. 4
      static/chart_main/chart_main/sevencoin.js
  23. 2
      static/chart_main/old-datafeed.js
  24. 4
      static/chart_main/sevencoin.js
  25. 6
      static/tradingview.html

14
app.js

@ -3,21 +3,21 @@ let config = {};
if (process.env.NODE_ENV == 'production'||true) { //生产环境 if (process.env.NODE_ENV == 'production'||true) { //生产环境
config = { config = {
// ajax地址 // ajax地址
baseUrl: 'https://ctma.catycoin.com', baseUrl: 'https://ctma.catycoins.com',
// 图片地址 (暂时无用) // 图片地址 (暂时无用)
imgUrl: 'https://ctma.catycoin.com/storage', imgUrl: 'https://ctma.catycoins.com/storage',
// socket地址 // socket地址
socketUrl: 'wss://ctma.catycoin.com/ws1', socketUrl: 'wss://ctma.catycoins.com/ws1',
socketUrl1: 'wss://ctma.catycoin.com/ws2', socketUrl1: 'wss://ctma.catycoins.com/ws2',
// pc端地址 // pc端地址
pcUrl:'https://www.catycoin.com', pcUrl:'https://www.catycoins.com',
// app名称 // app名称
appName: 'CATYcoin', appName: 'CATYcoin',
// 版本 // 版本
version: '1.0.0', version: '1.0.0',
// 移动端地址 // 移动端地址
mobile: 'https://app.catycoin.com', mobile: 'https://app.catycoins.com',
down:"https://app.catycoin.com/download/CATYcoin.html" down:"https://app.catycoins.com/download/CATYcoin.html"
}; };
} else { //开发环境 } else { //开发环境
config = { config = {

2
components/uni-swipe-action-item/mpother.js

@ -125,7 +125,7 @@ export default {
views views
.selectAll('.selector-query-hock') .selectAll('.selector-query-hock')
.boundingClientRect(data => { .boundingClientRect(data => {
console.log(data) // console.log(data)
this.position.content = data[1] this.position.content = data[1]
this.position.button = data[0] this.position.button = data[0]
if (this.autoClose) return if (this.autoClose) return

2
manifest.json

@ -112,7 +112,7 @@
"router" : { "router" : {
"base" : "./" "base" : "./"
}, },
"domain" : "https://app.catycoin.com", "domain" : "https://app.catycoins.com",
"template" : "main.html", "template" : "main.html",
"title" : "CATYcoin" "title" : "CATYcoin"
} }

2
pages/assets/draw.vue

@ -433,7 +433,7 @@ export default {
let list = [...this.list, ...res.data.data];// let list = [...this.list, ...res.data.data];//
this.list.splice(0,this.list.length,...list); this.list.splice(0,this.list.length,...list);
// this.list.push(...list); // this.list.push(...list);
console.log('length---------------',this.list.length, '页数:',res.data.current_page); // console.log('length---------------',this.list.length, '',res.data.current_page);
if (res.data.data.length < res.data.per_page) this.loadMore = false; if (res.data.data.length < res.data.per_page) this.loadMore = false;
}); });
}, },

2
pages/assets/recharge.vue

@ -264,7 +264,7 @@ export default {
}); });
}, },
change(e){ change(e){
console.log(e) // console.log(e)
} }
}, },
created() { created() {

4
pages/assets/records.vue

@ -82,7 +82,7 @@ import formData from "@/utils/class/date";
let list = [...this.list, ...res.data.data];// let list = [...this.list, ...res.data.data];//
this.list.splice(0,this.list.length,...list); this.list.splice(0,this.list.length,...list);
// this.list.push(...list); // this.list.push(...list);
console.log('length---------------',this.list.length, '页数:',res.data.current_page); // console.log('length---------------',this.list.length, '',res.data.current_page);
if (res.data.data.length < res.data.per_page) this.loadMore = false; if (res.data.data.length < res.data.per_page) this.loadMore = false;
}); });
}, },
@ -107,7 +107,7 @@ import formData from "@/utils/class/date";
}, },
}, },
onLoad(e) { onLoad(e) {
console.log('---------',e); // console.log('---------',e);
this.type = e.type; this.type = e.type;
if(e.type=='draw'){ if(e.type=='draw'){
this.getWithdrawRecords(); this.getWithdrawRecords();

2
pages/auth/senior.vue

@ -64,7 +64,7 @@ export default {
}, },
methods: { methods: {
getFile(name) { getFile(name) {
console.log(name) // console.log(name)
this.$getFile({count: 9}).then((res) => { this.$getFile({count: 9}).then((res) => {
this.upLoadImg(res, name); this.upLoadImg(res, name);
}) })

4
pages/base/home.vue

@ -1311,7 +1311,7 @@
*/ */
getCollegeLinks() { getCollegeLinks() {
College.getCategoryList().then(res => { College.getCategoryList().then(res => {
console.log(res, 11111); // console.log(res, 11111);
let list = res.data; let list = res.data;
list.forEach(item => { list.forEach(item => {
if (this.guideId === '') { if (this.guideId === '') {
@ -1333,7 +1333,7 @@
}).then(res => { }).then(res => {
let data = res.data; let data = res.data;
this.articleList = data.splice(0, 3); this.articleList = data.splice(0, 3);
console.log(this.articleList, 222222); // console.log(this.articleList, 222222);
setTimeout(() => { setTimeout(() => {
this.skroll(); this.skroll();
}, 100); }, 100);

2
pages/base/mine.vue

@ -439,7 +439,7 @@
Profile.getAuthInfo().then(res => { Profile.getAuthInfo().then(res => {
this.ProfileDetail = res.data; this.ProfileDetail = res.data;
this.user_auth_level = res.data.primary_status this.user_auth_level = res.data.primary_status
console.log(this.ProfileDetail, 11111); // console.log(this.ProfileDetail, 11111);
}) })
}, },
}, },

2
pages/currency/list.vue

@ -78,7 +78,7 @@ export default {
}, },
}, },
onLoad(query) { onLoad(query) {
console.log(this.list) // console.log(this.list)
}, },
}; };
</script> </script>

2
pages/exchange/contract-history.vue

@ -303,7 +303,7 @@ export default {
generalizeInfo() { generalizeInfo() {
Profile.qrcode().then((res) => { Profile.qrcode().then((res) => {
this.detail = res.data; this.detail = res.data;
console.log(this.detail) // console.log(this.detail)
}); });
}, },
// //

2
pages/exchange/contractHis.vue

@ -298,7 +298,7 @@ export default {
); );
}, },
holdPosition(boo) { holdPosition(boo) {
console.log(this.checked,this.symbolLeft,boo) // console.log(this.checked,this.symbolLeft,boo)
let data = { let data = {
symbol: (this.checked && this.symbolLeft) || "", symbol: (this.checked && this.symbolLeft) || "",
}; };

2
pages/income/index.vue

@ -143,7 +143,7 @@ export default {
uni.getSystemInfo({ uni.getSystemInfo({
success: function (res) { success: function (res) {
this.windowHeight=60 this.windowHeight=60
console.log(this.windowHeight) // console.log(this.windowHeight)
} }
}); });
}, },

2
pages/login/index.vue

@ -180,7 +180,7 @@ export default {
}); });
}, },
loginVer(data) { loginVer(data) {
console.log(data) // console.log(data)
this.secondaryShow = true; this.secondaryShow = true;
this.secondaryData = data; this.secondaryData = data;
this.form2.signature = data.signature; this.form2.signature = data.signature;

2
pages/otc/bind-pay.vue

@ -150,7 +150,7 @@ export default {
}, },
onLoad(query) { onLoad(query) {
this.query = query this.query = query
console.log(this.query) // console.log(this.query)
this.getList(); this.getList();
}, },
methods: { methods: {

4
pages/purchase/bill.vue

@ -75,9 +75,9 @@ export default {
let data = { let data = {
page: this.page, page: this.page,
}; };
console.log(over) // console.log(over)
Wallet.subscribeRecords(data).then((res) => { Wallet.subscribeRecords(data).then((res) => {
console.log(res) // console.log(res)
if (res.data.current_page == 1) this.list = []; if (res.data.current_page == 1) this.list = [];
this.list = [...this.list, ...res.data.data]; this.list = [...this.list, ...res.data.data];
over && over({ finished: res.data.data.length < res.data.per_page }); over && over({ finished: res.data.data.length < res.data.per_page });

2
pages/reg/index.vue

@ -301,7 +301,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.hideImg = false; this.hideImg = false;
} }
console.log("gc",res.data.img) // console.log("gc",res.data.img)
this.Graph_che = res.data.img; this.Graph_che = res.data.img;
this.gc_key= res.data.key; this.gc_key= res.data.key;
}); });

2
pages/safe/forget-password.vue

@ -154,7 +154,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.hideImg = false; this.hideImg = false;
} }
console.log("gc",res.data.img) // console.log("gc",res.data.img)
this.Graph_che = res.data.img; this.Graph_che = res.data.img;
this.form.gc_key= res.data.key; this.form.gc_key= res.data.key;
}); });

2
pages/safe/phone.vue

@ -77,7 +77,7 @@ export default {
setUserInfo: "setUserInfo", setUserInfo: "setUserInfo",
}), }),
changePhone() { changePhone() {
console.log(this.$refs.country) // console.log(this.$refs.country)
this.form.country_code = this.$refs.country&&this.$refs.country.country_code; this.form.country_code = this.$refs.country&&this.$refs.country.country_code;
if (!this.user.phone && !this.form.phone) { if (!this.user.phone && !this.form.phone) {
this.$toast(this.$t('safe.d5')); this.$toast(this.$t('safe.d5'));

4
pages/service/service.vue

@ -61,11 +61,11 @@
Member.serviceDetail({ Member.serviceDetail({
id: this.query.id, id: this.query.id,
}).then((res) => { }).then((res) => {
console.log(res) // console.log(res)
this.detail = res.data; this.detail = res.data;
}); });
Member.contact({}).then((res) => { Member.contact({}).then((res) => {
console.log(res); // console.log(res);
this.contacts = res.data; this.contacts = res.data;
}) })
}, },

2
static/chart_main/chart_main/old-datafeed.js

@ -82,7 +82,7 @@ Datafeeds.UDFCompatibleDatafeed.prototype.onInitialized = function() {
Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) { Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) {
if (this._enableLogging) { if (this._enableLogging) {
var now = new Date(); var now = new Date();
console.log(now.toLocaleTimeString() + '.' + now.getMilliseconds() + '> ' + message); // console.log(now.toLocaleTimeString() + '.' + now.getMilliseconds() + '> ' + message);
} }
}; };

4
static/chart_main/chart_main/sevencoin.js

@ -432,8 +432,8 @@ $(function () {
} }
// 生成订阅数据 // 生成订阅数据
createMsg() { createMsg() {
console.log(this.contract) // console.log(this.contract)
console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`) // console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`)
if (this.contract) { if (this.contract) {
return `swapKline_${this.symbolName}_${this.resolution(this.interval)}` return `swapKline_${this.symbolName}_${this.resolution(this.interval)}`
} else { } else {

2
static/chart_main/old-datafeed.js

@ -82,7 +82,7 @@ Datafeeds.UDFCompatibleDatafeed.prototype.onInitialized = function() {
Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) { Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) {
if (this._enableLogging) { if (this._enableLogging) {
var now = new Date(); var now = new Date();
console.log(now.toLocaleTimeString() + '.' + now.getMilliseconds() + '> ' + message); // console.log(now.toLocaleTimeString() + '.' + now.getMilliseconds() + '> ' + message);
} }
}; };

4
static/chart_main/sevencoin.js

@ -463,8 +463,8 @@ $(function () {
} }
// 生成订阅数据 // 生成订阅数据
createMsg() { createMsg() {
console.log(this.contract) // console.log(this.contract)
console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`) // console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`)
if (this.contract) { if (this.contract) {
return `swapKline_${this.symbolName}_${this.resolution(this.interval)}` return `swapKline_${this.symbolName}_${this.resolution(this.interval)}`
} else { } else {

6
static/tradingview.html

@ -22,9 +22,9 @@
<body> <body>
<div class="tradingview" id="tradingview_10798345"></div> <div class="tradingview" id="tradingview_10798345"></div>
</body> </body>
<script src="https://www.catycoin.com/newlink/mobile/jquery3_5_1.min.js"></script> <script src="https://www.catycoins.com/newlink/mobile/jquery3_5_1.min.js"></script>
<script src="https://www.catycoin.com/newlink/mobile/pako1_0_9.min.js"></script> <script src="https://www.catycoins.com/newlink/mobile/pako1_0_9.min.js"></script>
<script src="https://www.catycoin.com/newlink/mobile/qs6_9_4.min.js"></script> <script src="https://www.catycoins.com/newlink/mobile/qs6_9_4.min.js"></script>
<script src="./chart_main/charting_library.min.js"></script> <script src="./chart_main/charting_library.min.js"></script>
<script src="./chart_main/ws.js"></script> <script src="./chart_main/ws.js"></script>
<script src="./chart_main/sevencoin.js?v=2"></script> <script src="./chart_main/sevencoin.js?v=2"></script>

Loading…
Cancel
Save