Authored by shuiling.wang@yoho.cn

blk

... ... @@ -283,6 +283,23 @@ const yoho = {
},
/**
* 频道跳转
* @param args {""}
* @param success
* @param fail
*/
goChannel(args, success, fail) {
if (this.isApp && window.yohoInterface) {
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
method: 'go.channel',
arguments: args
});
} else {
tip(tipInfo);
}
},
/**
* 分享
* @param args {"title":"标题","des":"描述","img":"icon地址","url":"网页地址"}
* @param success
... ...
... ... @@ -13,7 +13,7 @@
<div class="my-header unlisted" v-else>
<span class="auth username">登录/注册</span>
</div>
<div class="change-channel" @click="isShowChannel = true">
<div class="change-channel" @click="goChannel">
<span class="label">切换购物频道</span>
<span class="channel">{{curChannel}}<span class="icon icon-right"></span></span>
</div>
... ... @@ -35,13 +35,6 @@
</div>
<div class="my-order">
<!--<a class="order-title auth" href="/me/order?type=1">
我的订单
<span class="read-order">
查看全部订单 <span class="icon icon-right"></span>
</span>
</a>-->
<div class="order-type clearfix">
<a class="type-item auth" href="/me/order?type=2">
<span class="icon icon-card"></span>
... ... @@ -71,23 +64,6 @@
</div>
</div>
<!--<div class="group-list">
<a class="glist-item auth" href="/me/collection">
我的收藏
<span class="num">商品/品牌/资讯 <span class="icon icon-right"></span></span>
</a>
<a class="glist-item auth" href="/me/records?type={{recordNum}}">
浏览记录
<span class="num">{{recordNum}}<span class="icon icon-right"></span></span>
</a>
</div>-->
<!--<div class="group-list">
<a class="glist-item auth" href="/me/mycurrency">
有货币
<span class="num">{{data.yoho_coin_num}} <span class="icon icon-right"></span></span>
</a>
</div>-->
<div class="group-list address-item">
<a class="glist-item auth" id="address" v-if="data.nickName">
地址管理
... ... @@ -122,7 +98,6 @@
</swipe-item>
</swipe>
</div>
<channel :class="{'bg-animation': isShowChannel}" @cv="changeChannel"></channel>
</template>
<script>
... ... @@ -130,7 +105,6 @@
const $ = require('jquery');
const interceptClick = require('common/intercept-click');
const cheader = require('component/header.vue');
const channel = require('component/toggle-channel.vue');
const cookie = require('yoho-cookie');
require('vue-swipe/dist/vue-swipe.css');
const swipe = require('vue-swipe');
... ... @@ -169,7 +143,6 @@
},
components: {
cheader,
channel,
swipe: swipe.Swipe,
swipeItem: swipe.SwipeItem
},
... ... @@ -181,6 +154,10 @@
channel_id: data
});
},
goChannel() {
yoho.goChannel();
return false;
},
goTel() {
yoho.goTel({
tel: '400-889-9646'
... ... @@ -362,8 +339,6 @@
.my-header {
height: 260px;
/* background: resolve("me/header-bg.png"); */
background: #fff;
background-size: cover;
padding: 0 30px;
... ... @@ -385,8 +360,6 @@
height: 170px;
border-radius: 50%;
margin: 0 auto;
/* border: 3px solid #b0b0b0; */
background: resolve("me/user-icon.png");
background-size: 100%;
vertical-align: middle;
... ... @@ -419,7 +392,7 @@
}
.level-1 {
background: resolve("me/vip-1.png");
background: resolve("me/vip-1.png");
}
.level-2 {
... ... @@ -556,7 +529,7 @@
font-size: 34px;
line-height: 72px;
color: #fff;
background: #ff081c;
background: #000;
text-align: center;
border-radius: 50%;
transform: scale(0.5);
... ... @@ -613,8 +586,6 @@
}
.tel {
/* padding-right: 10px; */
.icon-right {
margin-left: 10px;
}
... ...