Commit 583c37b3 authored by Joe's avatar Joe

update

parent 8e63e6d4
......@@ -5,6 +5,7 @@ var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
var path = require('path')
// add hot-reload related code to entry chunks
Object.keys(baseWebpackConfig.entry).forEach(function (name) {
......@@ -28,7 +29,8 @@ module.exports = merge(baseWebpackConfig, {
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true
inject: true,
favicon: path.resolve('favicon.ico')
}),
new FriendlyErrorsPlugin()
]
......
......@@ -53,6 +53,7 @@ var webpackConfig = merge(baseWebpackConfig, {
filename: config.build.index,
template: 'index.html',
inject: true,
favicon: path.resolve('favicon.ico'),
minify: {
removeComments: true,
collapseWhitespace: true,
......
favicon.ico

24.4 KB

......@@ -4,11 +4,13 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ygopro</title>
<title>MCPro决斗数据库</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<!--<link rel="stylesheet" href="assets/layui/css/layui.css">-->
<!--<link rel="shortcut icon" href="assets/img/mycardlogo.ico">-->
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
</head>
<body>
......
source activate py2
cd /Users/joe/Workspace/ygo/OSS_Python_API_20160419
python osscmd uploadfromdir /Users/joe/Workspace/ygo/projects/ygopro-arena-web-new/dist oss://mycard/ygopro --id ztDf0fCxr0eCgSIi --key 11LyGMp38uiHXuM2ok808w2jZVaTda
......@@ -143,4 +143,13 @@ export default class Api {
return Vue.http.post(url, opt, { 'emulateJSON': true });
}
static saveLabel(opt) {
const url = `${URL}/label`
return Vue.http.post(url, opt, { 'emulateJSON': true });
}
static getLabel(opt) {
return Vue.http.get(`${URL}/label`, { 'params': {} });
}
}
......@@ -15,6 +15,11 @@
<el-button type="link" @click="firstWin">点我设置</el-button>
</el-form-item>
<el-form-item label="竞技匹配活动文字">
<el-input v-model="labelone" placeholder="请输入活动标语,然后保存"></el-input>
<el-button type="link" @click="saveLable">保存</el-button>
</el-form-item>
</el-form>
<h4 class="color-blue"><i class="glyphicon glyphicon-filter"></i> 广告素材列表</h4>
......@@ -319,6 +324,7 @@
},
formLabelWidth: '120px',
isClick: false,
labelone: ""
}
},
......@@ -330,6 +336,24 @@
},
methods: {
saveLable: function () {
var param = {
labelone: this.labelone
}
API.saveLabel(param).then((res) => {
this.$notify({
title: '操作成功',
message: '',
type: 'success'
})
}, (res) => {
this.$notify({
title: '操作失败',
message: '',
type: 'success'
})
});
},
firstWin: function () {
API.getFirstWin({}).then((res) => {
this.firstWinForm.name = res.data.name
......
......@@ -26,6 +26,8 @@
<select name="server" class="form-control" id="server" v-on:change="onChange">
<option value="mycard">MCPro</option>
<option value="233">233</option>
<option value="koishi">Koishi</option>
<option value="koishi_tcg">Koishi_tcg</option>
</select>
</div>
</div>
......@@ -361,7 +363,8 @@
{
"render": function (data, type, row) {
// return "<span title='" + data + "'>" + data + "</span>";
return "<a href='?id=" + row[6] + "#/cardinfo'>" + data + "</a>";
// return "<a href='?id=" + row[6] + "#/cardinfo'>" + data + "</a>";
return "<a href='https://www.ourocg.cn/search/" + row[6] + "'>" + data + "</a>";
},
"targets": 1
},
......
......@@ -62,7 +62,7 @@
self.downloadUrls['windows'] = "https://mycard.moe"
self.downloadUrls['mac'] = "https://mycard.moe"
// self.downloadUrls['android'] = "https://pan.baidu.com/s/1eRWiWRC"
self.downloadUrls['android'] = "http://zhushou.360.cn/detail/index/soft_id/2972822"
self.downloadUrls['android'] = "http://www.pgyer.com/page/ygomobile"
// API.getDownloadUrls().then((res) => {
// let assets = res.data.assets
// for (let i of assets) {
......
<template>
<div class="other">
<footer @click="adClick">
<div class="row" v-bind:style="{ backgroundImage: 'url(' + adObj.src + ')' }">
<div class="col-md-4 col-sm-6 footer-navigation">
<div>
<div v-if="adObj.src" class="ads" @click="adClick" v-bind:style="{ backgroundImage: 'url(' + adObj.src + ')' }">
<div>
<h3><a href="#">{{ adObj.name }} </a></h3>
<p class="links"><a href="#"> {{ adObj.desctext }} </a></p>
<!--<p class="company-name">mycard © 2016 </p>-->
</div>
</div>
</footer>
</div>
</template>
......@@ -89,3 +87,25 @@
}
</script>
<style scoped>
.ads {
text-align: center;
padding: 25%;
/*padding-left: 200px;
padding-right: 200px;
padding-top: 20%;
padding-bottom: 20%;*/
background-repeat: no-repeat;
/*background-size: cover;*/
background-size: contain;
margin-left: auto;
margin-right: auto;
background-position: center;
}
</style>
\ No newline at end of file
<template>
<div class=content>
<div class="container">
<div class="fck">
<form id="search-form" class="search-form" @submit.prevent="onSubmit">
<div class="form-group" v-bind:class="{ 'has-error': hasError}">
<label class="control-label" for="searchText" v-if="hasError">{{lang.battle.notfound}}</label>
<div class="input-group">
<div class="input-group-addon"><span><i class="glyphicon glyphicon-search"></i></span></div>
<input class="form-control" type="text" id="searchText" v-model="searchText" :placeholder="lang.battle.ph2">
<div class="input-group-btn">
<button class="btn btn-default" type="submit">{{lang.battle.search}}</button>
<button class="btn btn-default" style="display:none" type="submit" id="search">{{lang.battle.search}}</button>
</div>
</div>
</div>
</form>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-1" role="tab" data-toggle="tab">{{lang.userRank.pointRank}} </a></li>
<li><a href="#tab-2" role="tab" data-toggle="tab">{{lang.userRank.expRank}} </a></li>
......@@ -10,7 +27,8 @@
<div role="tabpanel" class="tab-pane active" id="tab-1">
<br>
<p>{{lang.userRank.tableHead2}}</p>
<!--<p>{{lang.userRank.tableHead2}}</p>-->
<p>{{labelone}}</p>
<div class="table-responsive" style="width:100%;overflow-x:auto;overflow-y:hidden;">
<table class="table table-striped table-bordered table-hover example" id="pt_table" :width="width"></table>
</div>
......@@ -63,10 +81,21 @@
var lang = localStorage.getItem('lang') || 'cn';
this.init(lang)
API.getLabel({}).then((res) => {
this.labelone = res.data.text;
}, (res) => {
})
},
data() {
return {
width: "100%",
searchText: "",
hasError: false,
username: "",
labelone:"",
}
},
......@@ -90,6 +119,10 @@
methods: {
init: function (lang) {
},
onSubmit: function () {
var url = `#/userinfo?username=${encodeURIComponent(this.searchText)}`
window.location.href = url
},
init2: function () {
......@@ -215,3 +248,15 @@
}
</script>
<style scoped>
.fck {
margin-bottom: 20px;
margin-top: -30px;
}
.scroll {
width: 250%;
}
</style>
\ No newline at end of file
......@@ -47,7 +47,7 @@
<div ref="print" id="print" style="margin-left: 20%;margin-right: 20%; ">
<!--<p>【胜】VS【负】 </p>-->
<p class="xx"> 比赛{{form.name1}} VS {{form.name2}}</p>
<p class="xx"> 战队{{form.name1}} VS {{form.name2}}</p>
<p class="xx"> 时间: {{getDate()}}</p>
<p class="xx"> 规则: {{form.rule}}</p>
<p class="xx"> 地点: {{form.location}}</p>
......@@ -159,7 +159,7 @@
return this.maxlength - x.a.length + 3;
},
copy() {
var copytext = "比赛: " + this.form.name1 + " VS " + this.form.name2 + "\r\n";
var copytext = "战队: " + this.form.name1 + " VS " + this.form.name2 + "\r\n";
copytext += "时间: " + this.getDate() + "\r\n";
copytext += "规则: " + this.form.rule + "\r\n";
copytext += "地点: " + this.form.location + "\r\n";
......
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 to comment