Commit ca98a992 by LJM

Merge branch 'master' of http://git.ichunt.net/xiaokang/H5_2.0

parents b844be28 5a8c0add
......@@ -112,7 +112,6 @@
background: #FFFFFF;
border-radius: 10rpx;
padding:24rpx;
.edit{
color:$uni-color999;
font-size: 24rpx;
......
......@@ -110,14 +110,32 @@
}
}
.databox{
.databoxgroup{
width:100%;
padding:0 24rpx;
background: #fff;
margin-bottom: 16rpx;
.grouphead{
height:80rpx;
image{height:40rpx;width:128rpx;}
padding:24rpx 0;
text{
font-size: 26rpx;
font-weight: 600;
margin-left: 24rpx;
color: $uni-color666;
box-sizing: border-box;
}
a{
color: $uni-color666;
font-size: 24rpx;
max-width: 300rpx;
}
}
.group{
padding:24rpx 0;
border-bottom: 1rpx solid #F5F5F7;
border-top: 1rpx solid #F5F5F7;
.toprs1{
height:48rpx;
line-height: 48rpx;
......
<template>
<view>
<view class="box-slideLeft" >
<view class="touch-item touch-slideLeft " @touchstart="touchS" @touchmove="touchM" @touchend="touchE" :style="item_show.txtStyle">
<slot />
</view>
<view class="touch-item del-box-touch-slideLeft cf-shuCenter" @click="delItem(item_show)">
删除
</view>
<view class="box-slideLeft" >
<view class="touch-item touch-slideLeft " @touchstart="touchS" @touchmove="touchM" @touchend="touchE" :style="item_show.txtStyle">
<slot />
</view>
<view class="touch-item del-box-touch-slideLeft cf-shuCenter" @click="delItem(item_show)">
删除
</view>
</view>
</template>
......
......@@ -4,7 +4,7 @@
<text class="icon iconfont icon-home"></text>
<view>首页</view>
</navigator>
<navigator url="#" class="navitem" :class="{ act: actval == 2 }">
<navigator url="/sitmap" class="navitem" :class="{ act: actval == 2 }">
<text class="icon iconfont icon-class"></text>
<view>分类</view>
</navigator>
......
......@@ -18,6 +18,23 @@
"^/apis": ""
}
},
"/es": {
"target": "http://so.liexin.net",
"changeOrigin": true,
"secure": true,
"pathRewrite": {
"/es": ""
}
},
"/esgo": {
"target": "https://s.ichunt.com",
"changeOrigin": true,
"secure": true,
"pathRewrite": {
"/esgo": ""
}
},
"/v3": {
"target": "http://www.liexin.com",
"changeOrigin": true,
......
......@@ -23,6 +23,18 @@
"navigationBarTitleText": "购物车"
}
},
{
"path": "pages/classp/map",
"style": {
"navigationBarTitleText": "分类选型"
}
},
{
"path": "pages/classp/list",
"style": {
"navigationBarTitleText": "分类列表"
}
},
{
"path": "pages/mine/login",
"style": {
......
......@@ -88,8 +88,8 @@
</view>
</view>
</delSlideLeft>
<view class="pagebot">—— 已经到底了 ——</view>
</view>
<view class="pagebot">—— 已经到底了 ——</view>
<view class="nodata" style="display:none;">
<image src="https://img.ichunt.com/images/ichunt/202304/11/124e12f1e680f6eb5f5f46780d679eb3.png">
</image>
......
<template>
</template>
<script>
</script>
<style>
</style>
\ No newline at end of file
<template>
<view class="page mapPage">
asdasda
<bottomNavFixed actval="2" />
</view>
</template>
<script>
import {Ichunt_Api,Api_Url} from '@/util/api.js';
import bottomNavFixed from '@/components/bottom_nav.vue';
export default {
data() {
return {
};
},
onShow() {
this.getData();
},
methods: {
getData() {
// this.request(Api_Url + "/msg/allnum", 'POST', {}, ).then(res => {
// if (res.err_code === 0) {
// this.newscount=res.data
// }
// });
}
},
components: {
bottomNavFixed
}
};
</script>
<style scoped lang="scss">
@import '../../assets/css/index/index.scss';
</style>
\ No newline at end of file
......@@ -55,7 +55,7 @@
</template>
<script>
import {Ichunt_Api,Api_Url,Api_Es} from '@/util/api.js';
import {Ichunt_Api,Api_Url,Api_Es,Api_ES_Go} from '@/util/api.js';
export default {
data() {
return {
......@@ -79,6 +79,13 @@
this.getData()
},
methods: {
getListPOI(val_){
this.request(Api_ES_Go + "/api/think", 'POST', {k:val_}, ).then(res => {
if (res.err_code === 0) {
}
});
},
getData(){
this.request(Ichunt_Api + "/api/common/data", 'GET', {}, ).then(res => {
if (res.err_code === 0) {
......@@ -102,7 +109,7 @@
this.searchVal=e.detail.value;
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
//this.getListPOI(curVal);
this.getListPOI(this.searchVal);
}, 300);
},
clearInput(){
......
......@@ -16,39 +16,94 @@
<view class="rank1 row ">综合</view>
<view class="rank2 row sjpx act top">库存</view>
<view class="rank3 row sjpx act bot">价格</view>
<view class="sxbox row" @click="shiftPopShow=!shiftPopShow">筛选<text class="icon iconfont icon-sxs"></text></view>
<view class="sxbox row" @click="shiftPopShow=!shiftPopShow">筛选<text
class="icon iconfont icon-sxs"></text></view>
</view>
</view>
<view class="cons">
<view class="databox" v-show="list.length>0">
<view class="group" v-for="(item,index) in list" :key="index">
<view class="toprs1 row bothSide">
<navigator url="#" class="row">
<view class="goodsName elep">LM358adsasd</view>
<view class="actag">95折</view>
</navigator>
<view class="addcar" style="display:none;" @click="addcarpopfunc('10001')">加入购物车</view>
<view class="kfbtns" @click="addcarpopfunc('10001')">联系客服</view>
</view>
<view class="toprs2 row bothSide">
<view class="l2 elep"><text class="labelsd">品牌:</text>ST</view>
<view class="r2 elep"><text class="labelsd">起订量:</text>600</view>
</view>
<view class="toprs2 row bothSide">
<view class="l2 elep"><text class="labelsd">供应商:</text>mouser</view>
<view class="r2 elep"><text class="labelsd">库存:</text>6000000</view>
<view class="databox">
<view class="databoxgroup">
<view class="grouphead row bothSide">
<view class="row">
<image
src="https://img.ichunt.com/images/cms/202101/18/9b017ebeeb8594aeb3c0490272128ab2.jpg">
</image>
<text>Mouser</text>
</view>
<a href="" class="elep">啊实打实大苏打啊实打实阿斯顿萨达啊实打实</a>
</view>
<view class="toprs3 row bothSide">
<view class="group">
<view class="toprs1 row bothSide">
<navigator url="#" class="row">
<view class="goodsName elep">LM358adsasd</view>
<view class="actag">95折</view>
</navigator>
<view class="addcar" style="display:none;" @click="addcarpopfunc('10001')">加入购物车</view>
<view class="kfbtns" @click="addcarpopfunc('10001')">联系客服</view>
</view>
<view class="toprs2 row bothSide">
<view class="l2 elep"><text class="labelsd">品牌:</text>ST</view>
<view class="r2 elep"><text class="labelsd">起订量:</text>600</view>
</view>
<view class="toprs2 row bothSide">
<view class="l2 elep"><text class="labelsd">供应商:</text>mouser</view>
<view class="r2 elep"><text class="labelsd">库存:</text>6000000</view>
</view>
<view class="toprs3 row bothSide">
<view class="row">
<text class="labelsd">价格:</text>
<view class="row priceb">
<text class="p1">660+</text>
<text class="p2">¥130.86</text>
<text class="p3">$130.86</text>
</view>
</view>
<text class="labelsd" @click="addcarpopfunc('10001')">更多阶梯价<text
class="icon iconfont icon-arrbot"></text></text>
</view>
</view>
</view>
<view class="databoxgroup">
<view class="grouphead row bothSide">
<view class="row">
<text class="labelsd">价格:</text>
<view class="row priceb">
<text class="p1">660+</text>
<text class="p2">¥130.86</text>
<text class="p3">$130.86</text>
<image
src="https://img.ichunt.com/images/cms/202101/18/9b017ebeeb8594aeb3c0490272128ab2.jpg">
</image>
<text>Mouser</text>
</view>
<a href="" class="elep">啊实打实大苏打啊实打实阿斯顿萨达啊实打实</a>
</view>
<view class="group">
<view class="toprs1 row bothSide">
<navigator url="#" class="row">
<view class="goodsName elep">LM358adsasd</view>
<view class="actag">95折</view>
</navigator>
<view class="addcar" style="display:none;" @click="addcarpopfunc('10001')">加入购物车</view>
<view class="kfbtns" @click="addcarpopfunc('10001')">联系客服</view>
</view>
<view class="toprs2 row bothSide">
<view class="l2 elep"><text class="labelsd">品牌:</text>ST</view>
<view class="r2 elep"><text class="labelsd">起订量:</text>600</view>
</view>
<view class="toprs2 row bothSide">
<view class="l2 elep"><text class="labelsd">供应商:</text>mouser</view>
<view class="r2 elep"><text class="labelsd">库存:</text>6000000</view>
</view>
<view class="toprs3 row bothSide">
<view class="row">
<text class="labelsd">价格:</text>
<view class="row priceb">
<text class="p1">660+</text>
<text class="p2">¥130.86</text>
<text class="p3">$130.86</text>
</view>
</view>
<text class="labelsd" @click="addcarpopfunc('10001')">更多阶梯价<text
class="icon iconfont icon-arrbot"></text></text>
</view>
<text class="labelsd" @click="addcarpopfunc('10001')">更多阶梯价<text class="icon iconfont icon-arrbot"></text></text>
</view>
</view>
</view>
......@@ -65,8 +120,8 @@
</view>
</view>
<view class="shift-pop" v-show="shiftPopShow">
<view class="shiftpopbox" @click="shiftPopShow=!shiftPopShow">
<view class="cons" @click.stop="shiftPopShow=shiftPopShow">
<view class="shiftpopbox" @click="shiftPopShow=!shiftPopShow">
<view class="cons" @click.stop="shiftPopShow=shiftPopShow">
<view class="pophead row bothSide">
<text class="tits">筛选</text>
<text class="icon iconfont icon-xxx" @click.stop="shiftPopShow=!shiftPopShow"></text>
......@@ -104,7 +159,7 @@
<view class="cx" @click.stop="searchgo">查询</view>
</view>
</view>
</view>
</view>
<addCar ref="addCarPop" />
......@@ -116,7 +171,7 @@
export default {
data() {
return {
shiftPopShow:false,//筛选弹窗状态
shiftPopShow: false, //筛选弹窗状态
searchVal: "", //搜索值
list: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
}
......@@ -146,13 +201,13 @@
}
},
getData() {
},
searchgo(){
this.shiftPopShow=!this.shiftPopShow;
searchgo() {
this.shiftPopShow = !this.shiftPopShow;
},
addcarpopfunc(goods_id){
this.$refs.addCarPop.addcarpopfunc(goods_id);
addcarpopfunc(goods_id) {
this.$refs.addCarPop.addcarpopfunc(goods_id);
}
},
components: {
......
......@@ -40,6 +40,20 @@ const router = new Router({
title: '购物车'
}
},
{
path: '/pages/classp/map',
aliasPath: '/sitmap',
meta: {
title: '分类选型'
}
},
{
path: '/pages/classp/list',
aliasPath: '/optimum',
meta: {
title: '分类列表'
}
},
{
path: '/pages/mine/login',
aliasPath: '/login',
......
......@@ -3,22 +3,26 @@
let Ichunt_Api = ''; //3.0网站接口
let Api_Url = '';//api项目url
let Api_Es = '';//api项目url
let Api_ES_Go='';//型号联想
switch (window.location.hostname) {
case "m.ichunt.com":
Ichunt_Api = 'https://www.ichunt.com/v3';
Api_Url="https://api.ichunt.com"
Api_Es="//so12.ichunt.com"
Api_ES_Go="https://s.ichunt.com"
break;
default:
//本地proxy配置参考vue.config.js
Ichunt_Api = '/v3'
Api_Url= '/apis';
Api_Es="//so12.ichunt.com"
Api_Es="/es"
Api_ES_Go="/esgo"
}
module.exports = {
Ichunt_Api,
Api_Url,
Api_Es
Api_Es,
Api_ES_Go
}
......@@ -9,7 +9,13 @@ const request = (url = '', type = 'GET', param = {}, Loading) => {
var params = Object.assign(param, {
pf: 2
});
//请求es相关
if(url&&(url.indexOf("so12.ichunt.")!=-1||url.indexOf("so.liexin.net")!=-1)){
params = Object.assign(param, {
hkyefgyd: 1
});
}
//是否启动加载
if (Loading) {
uni.showLoading({
......
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