Commit e6289522 by 肖康

购物车

parent 3db64095
......@@ -8,7 +8,7 @@
.pagebot{
height: 62rpx;
line-height: 62rpx;
background: #F5F5F7;
// background: #F5F5F7;
font-size: 22rpx;
text-align: center;
color:#C6C7CC;
......@@ -143,7 +143,6 @@
.searchgo{
font-size: 24rpx;
color:$uni-coloract;
margin-right: 24rpx;
position: relative;
top:8rpx;
}
......
......@@ -54,7 +54,10 @@ export default {
}
}
});
}
},
updateCar(){
this.getData()
}
}
};
</script>
......
......@@ -5,10 +5,10 @@
<view class="titlesi">订单确认</view>
</view>
<view class="tabs row bothSide">
<view class="itemt act row rowCenter verCenter">快递配送</view>
<view class="itemt row rowCenter verCenter">客户自提</view>
<view class="itemt row rowCenter verCenter" @click.stop="shippingtypetab(1)" :class="{'act':shipping_type==1}">快递配送</view>
<view class="itemt row rowCenter verCenter" @click.stop="shippingtypetab(2)" :class="{'act':shipping_type==2}">客户自提</view>
</view>
<view class="kdbox" style="display:none;">
<view class="kdbox" v-show="shipping_type==1">
<navigator url="" class="kditem row verCenter bothSide" >
<text class="icon iconfont icon-dzz"></text>
<view class="iteminfo">
......@@ -25,7 +25,7 @@
<text>添加收货地址</text>
</navigator>
</view>
<view class="ztbox">
<view class="ztbox" v-show="shipping_type==2">
<view class="zttips row"><text class="icon iconfont icon-dzz"></text> <text>请在接到猎芯网系统短信通知后,再携带已盖章的合同打印件上门取货。</text></view>
<view class="ztitem row verCenter bothSide act">
<view class="ztl">
......@@ -315,13 +315,35 @@
</template>
<script>
import {
Ichunt_Api,
Api_Url
} from '@/util/api.js';
export default {
data() {
return {
shipping_type:1,
currency:1,
ztaddress:{},//自提地址信息
}
},
onShow() {
this.getData();
},
methods: {
//获取商品信息
getData(){
},
//获取自提地址
getSelfaddress(){
this.request(Api_Url + '/cart/selfaddress', 'POST', {}, true, true).then(res => {
});
},
shippingtypetab(type){
this.shipping_type=type
},
openzt() {
this.$refs.popupztinfo.open('bottom');
},
......
......@@ -76,7 +76,8 @@ const router = new Router({
path: '/pages/confirm/confirm',
aliasPath: '/order/confirm',
meta: {
title: '确认订单'
title: '确认订单',
auth: true
}
},
{
......
......@@ -16,7 +16,7 @@ const request = (url = '', type = 'GET', param = {}, Loading, headertype) => {
pf: 2
});
//请求es相关
if (url.indexOf("so12.ichunt.") != -1 || url.indexOf("/esapi/") != -1 || url.indexOf("/goods/detail") != -1|| url.indexOf("/optimum/goods") != -1) {
if (url.indexOf("so12.ichunt.") != -1 || url.indexOf("/esapi/") != -1 || url.indexOf("/goods/detail") != -1|| url.indexOf("/optimum/goods") != -1|| url.indexOf("/cart/lists") != -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