Authored by 陈峰

vue 2.0 95%

@@ -18,8 +18,8 @@ module.exports = { @@ -18,8 +18,8 @@ module.exports = {
18 app_type: 1 18 app_type: 1
19 }, 19 },
20 domains: { 20 domains: {
21 - // api: 'http://api-test3.yohops.com:9999/',  
22 - // service: 'http://service-test3.yohops.com:9999/', 21 + api: 'http://api-test3.yohops.com:9999/',
  22 + service: 'http://service-test3.yohops.com:9999/',
23 23
24 // api: 'http://api-test2.yohops.com:9999/', 24 // api: 'http://api-test2.yohops.com:9999/',
25 // service: 'http://service-test2.yohops.com:9999/', 25 // service: 'http://service-test2.yohops.com:9999/',
@@ -28,8 +28,8 @@ module.exports = { @@ -28,8 +28,8 @@ module.exports = {
28 // service: 'http://dev-service.yohops.com:9999/', 28 // service: 'http://dev-service.yohops.com:9999/',
29 // singleApi: 'http://192.168.102.27:8092/' 29 // singleApi: 'http://192.168.102.27:8092/'
30 30
31 - api: 'http://api.yoho.cn/',  
32 - service: 'http://service.yoho.cn/', 31 + // api: 'http://api.yoho.cn/',
  32 + // service: 'http://service.yoho.cn/',
33 singleApi: 'http://single.yoho.cn/' 33 singleApi: 'http://single.yoho.cn/'
34 }, 34 },
35 subDomains: { 35 subDomains: {
1 -import yoho from './yoho';  
2 -import cookie from 'yoho-cookie'; 1 +// import yoho from './yoho';
  2 +// import cookie from 'yoho-cookie';
3 3
4 // cookie.set('_YOHOUID', '15286052'); 4 // cookie.set('_YOHOUID', '15286052');
5 // cookie.set('_YOHOTOKEN', 'b98acd01a0b52a8d1f99df2639ad637e'); 5 // cookie.set('_YOHOTOKEN', 'b98acd01a0b52a8d1f99df2639ad637e');
1 import Vue from 'vue'; 1 import Vue from 'vue';
2 import lazyload from 'vue-lazyload'; 2 import lazyload from 'vue-lazyload';
3 3
4 -import Component from 'me/exchange.vue'; 4 +import exchange from 'me/exchange.vue';
5 5
6 6
7 7
@@ -10,6 +10,6 @@ Vue.use(lazyload, { preLoad: 3 }); @@ -10,6 +10,6 @@ Vue.use(lazyload, { preLoad: 3 });
10 new Vue({ 10 new Vue({
11 el: '#exchange', 11 el: '#exchange',
12 components: { 12 components: {
13 - Component 13 + exchange
14 } 14 }
15 }); 15 });
1 <template> 1 <template>
2 <div class="sidebar"> 2 <div class="sidebar">
3 - <template v-for="(item, index) in list"> 3 + <div v-for="(item, index) in list" :key="index">
4 <template v-if="item.separative_sign === 'Y'"> 4 <template v-if="item.separative_sign === 'Y'">
5 <div class="sep"> 5 <div class="sep">
6 <!-- 分割线 --> 6 <!-- 分割线 -->
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 <span class="en">{{(item.sort_name_en || '').trim()}}</span> 11 <span class="en">{{(item.sort_name_en || '').trim()}}</span>
12 <span class="cn">{{item.sort_name}}</span> 12 <span class="cn">{{item.sort_name}}</span>
13 </span> 13 </span>
14 - </template> 14 + </div>
15 </div> 15 </div>
16 </template> 16 </template>
17 17
1 <template> 1 <template>
2 - <div> 2 +<div>
3 <cheader title="我的" class="ghost" fixed ref="header"> 3 <cheader title="我的" class="ghost" fixed ref="header">
4 <i slot="left"></i> 4 <i slot="left"></i>
5 </cheader> 5 </cheader>
@@ -71,24 +71,6 @@ @@ -71,24 +71,6 @@
71 </a> 71 </a>
72 </div> 72 </div>
73 </div> 73 </div>
74 -  
75 - <!--<div class="group-list">  
76 - <a class="glist-item auth" href="/me/collection">  
77 - 我的收藏  
78 - <span class="num">商品/品牌/资讯 <span class="icon icon-right"></span></span>  
79 - </a>  
80 - <a class="glist-item auth" href="/me/records?type={{recordNum}}">  
81 - 浏览记录  
82 - <span class="num">{{recordNum}}<span class="icon icon-right"></span></span>  
83 - </a>  
84 - </div>-->  
85 - <!--<div class="group-list">  
86 - <a class="glist-item auth" href="/me/mycurrency">  
87 - 有货币  
88 - <span class="num">{{data.yoho_coin_num}} <span class="icon icon-right"></span></span>  
89 - </a>  
90 - </div>-->  
91 -  
92 <div class="group-list address-item"> 74 <div class="group-list address-item">
93 <a class="glist-item auth" id="address" v-if="data.nickName"> 75 <a class="glist-item auth" id="address" v-if="data.nickName">
94 地址管理 76 地址管理
@@ -112,58 +94,17 @@ @@ -112,58 +94,17 @@
112 <span class="num"><span class="icon icon-right"></span></span> 94 <span class="num"><span class="icon icon-right"></span></span>
113 </p> 95 </p>
114 </div> 96 </div>
115 -  
116 - <!--<div class="group-list">  
117 - <a class="glist-item auth" href="/me/collection">  
118 - 我的收藏  
119 - <span class="num">商品/品牌/资讯 <span class="icon icon-right"></span></span>  
120 - </a>  
121 - <a class="glist-item auth" href="/me/records?type={{recordNum}}">  
122 - 浏览记录  
123 - <span class="num">{{recordNum}}<span class="icon icon-right"></span></span>  
124 - </a>  
125 - </div>-->  
126 - <!--<div class="group-list">  
127 - <a class="glist-item auth" href="/me/mycurrency">  
128 - 有货币  
129 - <span class="num">{{data.yoho_coin_num}} <span class="icon icon-right"></span></span>  
130 - </a>  
131 - </div>-->  
132 -  
133 - <div class="group-list address-item">  
134 - <a class="glist-item auth" id="address" v-if="data.nickName">  
135 - 地址管理  
136 - <span class="num">{{data.address_num}} <span class="icon icon-right"></span></span>  
137 - </a>  
138 - <p class="glist-item auth" v-else>  
139 - 地址管理  
140 - </p>  
141 - </div>  
142 - <div class="group-list">  
143 - <a class="glist-item" href="/help">  
144 - 帮助中心  
145 - <span class="num"><span class="icon icon-right"></span></span>  
146 - </a>  
147 - <p class="glist-item">  
148 - 电话客服  
149 - <span class="num tel" @click="goTel">400-889-9646<span class="icon icon-right"></span></span>  
150 - </p>  
151 - <p class="glist-item ghost" id="setting">  
152 - 设置  
153 - <span class="num"><span class="icon icon-right"></span></span>  
154 - </p>  
155 - </div>  
156 -  
157 <div class="group-list swiper-area" v-if="floor.length > 0"> 97 <div class="group-list swiper-area" v-if="floor.length > 0">
158 <swipe class="swipe" :style="{height: floorHeight + 'px'}"> 98 <swipe class="swipe" :style="{height: floorHeight + 'px'}">
159 <swipe-item v-for="item in floor" :key="item.src" :style="{backgroundColor: item.bgColor}"> 99 <swipe-item v-for="item in floor" :key="item.src" :style="{backgroundColor: item.bgColor}">
160 - <a :href="item.url | transformBlk" :title="item.title" v-if="item.url"> 100 + <a v-blk-href="item.url" :title="item.title" v-if="item.url">
161 <img v-img-src="{src: item.src, width: floorImgW, height: floorImgH}"> 101 <img v-img-src="{src: item.src, width: floorImgW, height: floorImgH}">
162 </a> 102 </a>
163 <img v-img-src="{src: item.src, width: floorImgW, height: floorImgH}" v-else> 103 <img v-img-src="{src: item.src, width: floorImgW, height: floorImgH}" v-else>
164 </swipe-item> 104 </swipe-item>
165 </swipe> 105 </swipe>
166 </div> 106 </div>
  107 + <channel :class="{'bg-animation': isShowChannel}" @cv="changeChannel"></channel>
167 </div> 108 </div>
168 </template> 109 </template>
169 110