Commit 953814e5 by 严立

兼容 IE11

parent 741c565f
......@@ -8,8 +8,6 @@ function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
context: path.resolve(__dirname, '../'),
entry: {
......@@ -39,10 +37,13 @@ module.exports = {
{
test: /\.js$/,
loader: 'babel-loader',
options:{
presets: ['es2015']
},
include: [
resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client'),
resolve('src'), resolve('test'), resolve('node_modules/element-ui/src'),
resolve('src'), resolve('test'), resolve('node_modules/element-ui/packages/input/src'),
resolve('src'), resolve('test'), resolve('node_modules/element-ui/packages'),
]
},
{
......
......@@ -21,9 +21,10 @@ module.exports = {
},
// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
host: '127.0.0.1', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
disableHostCheck: true,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
......
......@@ -10,6 +10,7 @@
"build": "node build/build.js"
},
"dependencies": {
"babel-preset-es2015": "^6.24.1",
"miment": "0.0.9",
"vue": "^2.6.11",
"vue-router": "^3.3.4"
......
No preview for this file type
No preview for this file type
/*声明 WebFont*/
@font-face {
font-family: 'siyuanyahei';
src: url('../../assets/NotoSansHans-Light.ttf');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'siyuanyahei';
src: url('../../assets/NotoSansHans-Light.otf');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'siyuanyahei';
src: url('../../assets/NotoSansHans-Light.woff');
font-weight: normal;
font-style: normal;
}
html,body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
......
let output = {
// 开发路径
base: 'http://bid-server.meiqicloud.com/',
resources: 'http://bid-web.meiqicloud.com/',
agentSignIn: 'http://bid-vue.meiqicloud.com/'
// base: 'http://bid-server.meiqicloud.com/',
// resources: 'http://bid-web.meiqicloud.com/',
// agentSignIn: 'http://bid-vue.meiqicloud.com/'
// 正式路径
// base: '/Api/',
// resources: 'http://bid-web.meiqicloud.com',
// agentSignIn: 'http://bid-vue.meiqicloud.com/'
base: '/Api/',
resources: 'http://bid-web.meiqicloud.com',
agentSignIn: 'http://bid-vue.meiqicloud.com/'
}
output.uploadFile = output.base + 'bid/common/webupload/upload'
......
......@@ -38,7 +38,6 @@ let output = {
funcData = iDataform(funcData, 'url')
let funcPromise = new Promise(function (funcResolve, funcReject) {
let funcXMLHttpRequest = new XMLHttpRequest()
funcXMLHttpRequest.timeout = funcConfigure.timeout
funcXMLHttpRequest.open(funcConfigure.method, funcUrl + funcData, true)
// 请求之前修改
......@@ -78,16 +77,13 @@ let output = {
if (funcConfigure.method === 'post') {
// 设置数据类型
funcData = iDataform(funcData, funcConfigure.sendType)
let funcPromise = new Promise(function (funcResolve, funcReject) {
let funcXMLHttpRequest = new XMLHttpRequest()
funcXMLHttpRequest.timeout = funcConfigure.timeout
funcXMLHttpRequest.open(funcConfigure.method, funcUrl, true)
// 请求之前修改
iHeader(funcXMLHttpRequest, funcConfigure)
iInterceptors.request(funcXMLHttpRequest, funcConfigure, funcUrl)
funcXMLHttpRequest.send(funcData)
funcXMLHttpRequest.onreadystatechange = function () {
if (funcXMLHttpRequest.readyState !== 4) {
......
......@@ -5,7 +5,7 @@
<div class="global-maxwidth row con-b align-s">
<div class="company-info">
<div class="logo">
<el-image :src="imageLogo" fit="fit"></el-image>
<img src="../assets/logo@2x.png" alt="">
</div>
<div>
<p>地址:厦门市思明区吕岭路1733号创想中心1801单元</p>
......
......@@ -4,7 +4,7 @@
<div class="global-maxwidth row con-b">
<div class="about row align-c">
<el-dropdown>
<span class="global-cursor" @click="$router.push('/about')">关注我们</span>
<span class="global-cursor">关注我们</span>
<el-dropdown-menu class="about-code" slot="dropdown">
<el-dropdown-item>
<img src="../assets/code.png" alt="">
......@@ -334,7 +334,7 @@
}
span:nth-child(2) {
width: 38px;
width: 52px;
padding-left: 14px;
font-size: @fontSize00;
color: #333333;
......
......@@ -229,6 +229,7 @@
* @returns
*/
onDocument: function () {
console.log('onDocument')
// 公告为预览状态禁止操作
if (this.$route.query.preview) return
this.$emit('document')
......
......@@ -40,7 +40,11 @@
<el-table-column prop="object" label="标的" min-width="140"></el-table-column>
<el-table-column prop="requirement" label="参数要求" min-width="230"></el-table-column>
<el-table-column prop="quantity" label="数量" min-width="120" align="center"></el-table-column>
<el-table-column prop="budget" label="限价(元)" min-width="180" align="center"></el-table-column>
<el-table-column prop="budget" label="限价(元)" min-width="180" align="center">
<template slot-scope="scope">
<span>{{scope.row.budget === 0 ? '无' : scope.row.budget}}</span>
</template>
</el-table-column>
</el-table>
</div>
</div>
......
......@@ -25,7 +25,4 @@ let output = new Vue({
'components': { App },
'template': '<App/>'
})
console.log('test')
console.log(window.XMLHttpRequest)
export default output
\ No newline at end of file
......@@ -3,7 +3,7 @@
<componentHeader></componentHeader>
<componentNavigation></componentNavigation>
<div class="home-banner">
<el-carousel v-if="listBanner.length > 0" class="home-carousel" trigger="click" height="400px" :autoplay="false">
<el-carousel v-if="listBanner.length > 0" class="home-carousel" trigger="click" height="400px" :autoplay="true">
<el-carousel-item v-for="(item, index) in listBanner" :key="index">
<img :src="listBanner[index].url" alt="" :class="item.isLink ? 'global-cursor' : ''" @click="onBanner(item)">
</el-carousel-item>
......
......@@ -74,7 +74,7 @@
</div>
<div class="row con-b align-c">
<span class="global-color-grey">{{item.projectNumber}}</span>
<span class="global-color-green">{{item.isWin ? '中标' : ''}}</span>
<span class="global-color-green">{{item.isWin ? '成交' : ''}}</span>
</div>
</div>
<div class="bid-item-bottom row con-b align-c">
......
......@@ -66,7 +66,11 @@
<el-table-column prop="object" label="标的"></el-table-column>
<el-table-column prop="requirement" label="参数要求"></el-table-column>
<el-table-column prop="quantity" label="数量" align="center"></el-table-column>
<el-table-column prop="budget" label="限价(元)" align="center"></el-table-column>
<el-table-column prop="budget" label="限价(元)" align="center">
<template slot-scope="scope">
<span>{{scope.row.budget === 0 ? '无' : scope.row.budget}}</span>
</template>
</el-table-column>
<el-table-column align="center">
<template slot-scope="scope">
<div class="global-cursor row">
......@@ -224,7 +228,11 @@
<el-table-column prop="object" label="标的" min-width="200"></el-table-column>
<el-table-column prop="requirement" label="参数要求" min-width="300"></el-table-column>
<el-table-column prop="quantity" label="数量" width="120"></el-table-column>
<el-table-column prop="budget" label="限价(元)" min-width="100"></el-table-column>
<el-table-column prop="budget" label="限价(元)" min-width="100">
<template slot-scope="scope">
<span>{{scope.row.budget === 0 ? '无' : scope.row.budget}}</span>
</template>
</el-table-column>
</el-table>
</div>
<div>
......
......@@ -191,6 +191,7 @@
}
},
queryPayCode: function () {
console.log('payway', this.payCode[Number(this.payway)])
if (this.payCode[Number(this.payway)]) {
clearInterval(this.payTimer)
this.queryPayState()
......@@ -356,8 +357,8 @@
clearInterval(this.payTimer)
},
onChangeRadio: function (funcRadio) {
// this.payway = funcRadio
// this.queryPayCode()
this.payway = funcRadio
this.queryPayCode()
},
}
}
......
......@@ -759,8 +759,6 @@
}
this.tableQuote.push(funcItem)
}
// console.log(JSON.stringify(funcSelection))
},
onQuoteNote: function (funcItem, funcIndex) {
......@@ -787,14 +785,12 @@
if (!iRuleAtom.isMoney(funcValue)) {
funcItem.tip = '请输入正确金额格式'
this.tableQuote[funcIndex].price = ''
console.log(JSON.stringify(this.tableQuote))
return
}
if (!funcValue) {
funcItem.tip = '请输入报价金额'
this.tableQuote[funcIndex].price = ''
console.log(JSON.stringify(this.tableQuote))
return
}
......@@ -807,7 +803,6 @@
if (funcValue > this.maxQuote) {
funcItem.tip = '不能超过一百亿元'
this.tableQuote[funcIndex].price = ''
console.log(JSON.stringify(this.tableQuote))
return
}
......@@ -829,7 +824,12 @@
funcChildEnd = funcChildEnd + 1
}
this.tableQuote[funcChildStart].price = Number(funcPrice) + Number(funcItem.price)
// console.log(JSON.stringify(this.tableQuote))
// 在主包价格设置完成后进行一次预算判断
if (this.tableQuote[funcChildStart].price > this.tableQuote[funcChildStart].budget && this.tableQuote[funcChildStart].budget !== 0) {
this.tableQuote[funcChildStart].tip = '超过 ' + this.tableQuote[funcChildStart].budget + ' 元限价'
} else {
this.tableQuote[funcChildStart].tip = ''
}
}
},
......@@ -839,7 +839,6 @@
* @returns
*/
onQuoteSubmit: function () {
console.log(JSON.stringify(this.tableQuote))
if (this.tableQuote.length === 0) {
this.$message.error('请填写完整报价信息')
return
......
......@@ -131,7 +131,7 @@
}
span:nth-child(1) {
max-width: 870px;
width: 870px;
flex-grow: 1;
}
......
......@@ -217,7 +217,7 @@
}
span:nth-child(1) {
max-width: 90%;
width: 870px;
padding-right: 80px;
flex-grow: 1;
}
......
......@@ -130,7 +130,7 @@
}
span:nth-child(1) {
max-width: 870px;
width: 870px;
flex-grow: 1;
}
......
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