Commit 50738473 by 肖康

字体替换

parent 10e0c97c
.detailpage{
padding-top: 88rpx;
.detailhead{
height:88rpx;
width:100%;
color:#fff;
padding-left: 32rpx;
padding-right: 43rpx;
box-sizing: border-box;
background: linear-gradient(90deg, #93CDFF 0%, #1969F9 100%);
position: fixed;
z-index: 1;
left:0rpx;
top:0rpx;
.titlesp{
font-size: 34rpx;
font-weight: 500;
}
.icon{
font-size: 44rpx;
}
}
}
\ No newline at end of file
......@@ -6,6 +6,13 @@
"description": "",
"glyphs": [
{
"icon_id": "35604112",
"name": "tdzty",
"font_class": "tdzty",
"unicode": "e696",
"unicode_decimal": 59030
},
{
"icon_id": "35603752",
"name": "画板",
"font_class": "huaban",
......
......@@ -12,7 +12,7 @@
<text class="icon iconfont icon-car"></text>
<view>
购物车
<text class="counts">11</text>
<text class="counts">{{count}}</text>
</view>
</navigator>
<navigator url="/user" class="navitem" :class="{ act: actval == 4 }">
......@@ -23,19 +23,40 @@
</template>
<script>
import {Ichunt_Api,Api_Url} from '@/util/api.js';
export default {
name: 'bottom_nav',
props: {
actval: {
type: String,
default: 1
}
},
carcount: {
type: Number,
default: 0
}
},
created() {
this.getData();
},
data() {
return {};
return {
count:0
};
},
methods: {
getData() {}
getData() {
this.request(Api_Url + "/cart/count", 'POST', {},false,true ).then(res => {
if (res.err_code === 0) {
this.count=res.data;
console.log(this.carcount)
if(this.carcount){
this.count=this.carcount
}
}
});
}
}
};
</script>
......
......@@ -41,6 +41,12 @@
"navigationBarTitleText": "品牌详情"
}
},
{
"path": "pages/detail/detail/",
"style": {
"navigationBarTitleText": "商品详情"
}
},
{
"path": "pages/mine/login",
"style": {
......
<template>
<view class="brandpage fixeds">
<view class="brandpage " :class="{'fixeds':Top<45}">
<view class="header row verCenter " :class="{'act':isSearch}">
<text v-back class="icon iconfont icon-arrleft"></text>
<view class="inputbox row verCenter" >
......@@ -29,7 +29,7 @@
<view class="rank2 row sjpx act top">库存</view>
<view class="rank3 row sjpx act bot">价格</view>
</view>
<view class="databox">
<view class="databox branddataboxs" >
<view class="group" v-for="(item,index) in list" :key="index">
<view class="toprs1 row bothSide">
<navigator :url="'/item?goods_id='+item.goods_id" class="row">
......@@ -79,6 +79,7 @@
export default {
data() {
return {
Top:0,
brand_id:"",
isSearch:false,
zkshow:false,
......@@ -92,7 +93,11 @@
isLoadEnd: false // 是否已全部加载完
}
},
onPageScroll(e) {
uni.createSelectorQuery().select('.branddataboxs').boundingClientRect(res => {
this.Top= res.top;
}).exec();
},
onShow() {
this.getData();
this.getqqurl()
......
<template>
<view class="detailpage">
<view class="detailhead row verCenter bothSide">
<text v-back class="icon iconfont icon-arrleft"></text>
<view class="titlesp" >商品详情</view>
<navigator url="/joincart">
<text class="icon iconfont icon-car"></text>
</navigator>
</view>
da
</view>
</template>
<script>
import {Ichunt_Api,Api_Url,Api_Es,Api_ES_Go} from '@/util/api.js';
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
@import '../../assets/css/detail/detail.scss';
</style>
......@@ -82,7 +82,7 @@
<view class="goods-box">
<view class="titg">精选物料</view>
<scroll-view class="goods-con" scroll-x="true">
<navigator :url="'/item?goods_id='+item.goods_id" class="goods-item"
<navigator :url="'/item?goods_id='+item.goods_id" class="goods-item"
v-for="(item,index) in obj.h5_home_choice_goods" :key="index">
<image :src="item.goods_images"></image>
<view class="xhg elep">{{item.goods_name}}</view>
......
......@@ -60,11 +60,18 @@ const router = new Router({
},
{
path: '/pages/brand/brand',
aliasPath: '/brand/:brand_id',
aliasPath: '/brand',
meta: {
title: '品牌详情'
}
},
{
path: '/pages/detail/detail/',
aliasPath: '/item',
meta: {
title: '商品详情'
}
},
{
path: '/pages/mine/login',
aliasPath: '/login',
......@@ -90,7 +97,8 @@ const router = new Router({
path: '/pages/mine/user',
aliasPath: '/user',
meta: {
title: '会员中心'
title: '会员中心',
auth:true
}
},
{
......@@ -168,6 +176,14 @@ const router = new Router({
//全局路由前置守卫
router.beforeEach((to, from, next) => {
if(to.meta.auth){
if(!getCookie('Yo4teW_uid')||getCookie('Yo4teW_uid')==0){
uni.navigateTo({
url: '/login?referer='+to.aliasPath
})
}
}
//写入 Yo4teW_gid Yo4teW_csrf
if (!getCookie("Yo4teW_gid")) {
request(Api_Url + "/public/apiInit", 'get', {}).then(res => {
......
......@@ -16,7 +16,6 @@ const request = (url = '', type = 'GET', param = {}, Loading, headertype) => {
pf: 2
});
//请求es相关
console.log(url)
if (url.indexOf("so12.ichunt.") != -1 || url.indexOf("/esapi/") != -1|| url.indexOf("/goods/detail") != -1) {
params = Object.assign(param, { hkyefgyd: 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