Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
8 years ago
Commit
bd647adca9095d75b3076da7b6af5c2176de5b51
1 parent
5647c0f7
打包优化
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
.babelrc
public/vue/home/address/address-act.vue
public/webpack.config.js
.babelrc
0 → 100644
View file @
bd647ad
{
"presets"
:
[
"es2015"
],
"plugins"
:
[
"transform-runtime"
],
"comments"
:
false
}
...
...
public/vue/home/address/address-act.vue
View file @
bd647ad
...
...
@@ -11,22 +11,22 @@
<div class="address-container">
<div class="address-content">
<ul v-if="province.showList" class="address-ul">
<li v-for="pprovince in provinces"
<li v-for="pprovince in provinces"
@click="switchAddress(pprovince.id, pprovince.caption)">{{pprovince.caption}}
<span v-if="pprovince.id === province.id" class="iconfont icon-V"></span></li>
</ul>
<ul v-if="city.showList" class="address-ul">
<li v-for="pcity in citys"
<li v-for="pcity in citys"
@click="switchAddress(pcity.id, pcity.caption)">{{pcity.caption}}
<span v-if="pcity.id === city.id" class="iconfont icon-V"></span></li>
</ul>
<ul v-if="area.showList" class="address-ul">
<li v-for="parea in areas"
<li v-for="parea in areas"
@click="switchAddress(parea.id, parea.caption)">{{parea.caption}}
<span v-if="parea.id === area.id" class="iconfont icon-V"></span></li>
</ul>
<ul v-if="street.showList" class="address-ul">
<li v-for="pstreet in streets"
<li v-for="pstreet in streets"
@click="switchAddress(pstreet.id, pstreet.caption)">{{pstreet.caption}}
<span v-if="pstreet.id === street.id" class="iconfont icon-V"></span></li>
</ul>
...
...
@@ -159,7 +159,8 @@
}
</style>
<script>
require('../../../scss/home/_address.css');
let $ = require('yoho-jquery');
require('home/_address.css');
let areaForm = $('.edit-address');
let areaCode = areaForm.find('input[name=area_code]');
...
...
@@ -259,7 +260,7 @@
areaCode.val(id);
area.val(this.province.title + ' '
+ this.city.title + ' '
+ this.area.title + ' '
+ this.area.title + ' '
+ this.street.title);
this.show = false;
}
...
...
@@ -295,7 +296,7 @@
areaCode.val(this.street.id || this.area.id || this.city.id || this.province.id);
area.val(this.province.title + ' '
+ this.city.title + ' '
+ this.area.title + ' '
+ this.area.title + ' '
+ this.street.title);
},
...
...
public/webpack.config.js
View file @
bd647ad
...
...
@@ -39,7 +39,7 @@ module.exports = {
},
{
test
:
/
\.
js$/
,
exclude
:
[
/node_modules/
],
loader
:
'babel
?presets[]=es2015&plugins[]=transform-runtime&comments=false
'
loader
:
'babel'
},
{
test
:
/
\.
css$/
,
loader
:
ExtractTextPlugin
.
extract
([
'css?-url!postcss'
])
...
...
@@ -60,7 +60,8 @@ module.exports = {
modulesDirectories
:
[
'node_modules'
,
'./vue'
,
'./hbs'
,
'./scss'
,
'./js'
],
alias
:
{
js
:
path
.
join
(
__dirname
,
'js/'
),
vue
:
'vue/dist/vue.js'
vue
:
'vue/dist/vue.js'
,
jquery
:
'yoho-jquery'
}
},
plugins
:
[
...
...
Please
register
or
login
to post a comment