Compare commits

..

No commits in common. "f386fced2f0ab46bfb12fcd2e5634a40a2470533" and "93d971598486f259786ce01123d568d0eb763a7f" have entirely different histories.

5 changed files with 28 additions and 75 deletions

View File

@ -1,6 +1,6 @@
// let domain = process.env.APP_BASE_URL
let domain = 'http://192.168.1.188:48080'
let domain = process.env.APP_BASE_URL
// let domain = 'http://192.168.1.188:48080'
// let domain = 'http://api.cyywl.top'
module.exports = {

View File

@ -7,7 +7,6 @@ import util from 'utils/util'
* 去商品详情
*/
export function goShopDetail(item, uid) {
console.log(item,'indexItem哇')
return new Promise(resolve => {
if (item.activityH5 && item.activityH5.type === "1") {
uni.navigateTo({
@ -26,12 +25,6 @@ export function goShopDetail(item, uid) {
}
});
}
export function goShopDetailCart(item, uid) {
console.log(item,'itemWWw阿')
return new Promise(resolve => {
resolve(item);
});
}
/**
* 活动商品普通商品购物车再次购买预下单

View File

@ -206,7 +206,7 @@
<productWindow :attr="attr" :isShow='1' :iSplus='1' @myevent="onMyEvent" @ChangeAttr="ChangeAttr"
@ChangeCartNum="ChangeCartNum" @attrVal="attrVal" @iptCartNum="iptCartNum" id='product-window'>
</productWindow>
<!-- <home></home> -->
<home></home>
<couponListWindow :coupon='coupon' @ChangCouponsClone="ChangCouponsClone" @ChangCoupons="ChangCoupons"
@ChangCouponsUseState="ChangCouponsUseState" @tabCouponType="tabCouponType"></couponListWindow>
<!-- 分享按钮 -->

View File

@ -24,31 +24,19 @@
</view>
</view>
</view>
<view class="right" v-if="vip.integral">
<view class="up" @tap="goEquity">
<view class="right">
<view class="up">
<image style="width: ;" src="@/static/images/shop/vip_oneStar.png" mode=""></image>
</view>
<text>会员等级1级</text>
<view class="button" @tap="goEquity"></view>
</view>
<view class="right" v-else>
<view class="up" @tap="goEquity">
<image style="width: ;" src="@/static/images/shop/vip_oneStar.png" mode=""></image>
</view>
<text>会员等级0级</text>
<view class="button" @tap="goEquity"></view>
<view class="button">查看权益</view>
</view>
</view>
</view>
<view class="header_bottom">
<u-swiper
:list="bannerList"
keyName="picUrl"
height="100%"
radius="20rpx"
bgColor="transparent"
@click="goUrl"
></u-swiper>
<navigator :url="bannerList.url">
<image :src="bannerList.picUrl" mode=""></image>
</navigator>
</view>
</view>
<view class="notice" @tap="goNoticeDetail">
@ -94,7 +82,10 @@
<view class="item" v-for="item in productList" @click="goDetail(item)">
<image :src="item.image" mode=""></image>
<view class="name">{{item.storeName}}</view>
<u--text class="text" color="#E50202" mode="price" :text="item.price"></u--text>
<text>
<u--text color="#E50202" mode="price" :text="item.price"></u--text>
</text>
</view>
</view>
<view class="" style="margin-top: 110rpx;">
@ -269,7 +260,6 @@
page: 1,
limit: 10,
},
vip: {},//
tempArr: [], //
roll: [], //
site_name: '', //title
@ -343,8 +333,7 @@
})
})
getHeader().then(res => {
this.vip = res.data
console.log(this.vip, '会员')
console.log(res, '会员')
})
this.getBanners()
this.getIndexPage()
@ -360,25 +349,9 @@
})
},
methods: {
goUrl(e){
let url = ''
if(this.bannerList[e].url.indexOf('http')>=0){
url = this.bannerList[e].url
}else{
url = 'http://' + this.bannerList[e].url
}
window.open(url)
},
//
goEquity(){
console.log('goEmember_equity')
uni.switchTab({
url:'/pages/member_equity/index'
})
},
//
goNoticeDetail() {
console.log('notice哇')
uni.navigateTo({
url: '/pages/notice/index'
})
@ -417,9 +390,8 @@
// console.log(this.$store.tenantId,'tenantId')
getBanner().then(res => {
this.bannerList = [...res.data.list]
console.log(res.data.list,'banner')
this.bannerList = res.data.list[0]
console.log(this.bannerList, 'banner')
})
console.log(this.userInfo.userId, 'userInfo111111')
@ -948,18 +920,18 @@
.bottom {
margin-top: 27rpx;
height: 200rpx;
display: flex;
flex-wrap: nowrap;
overflow: scroll;
white-space: nowrap;
.item {
position: relative;
display: inline-block;
width: 45%;
width: 370rpx;
height: 199rpx;
margin-left: 19rpx;
image {
width: 100%;
width: 370rpx;
height: 199rpx;
}
@ -991,16 +963,16 @@
position: absolute;
left: 17rpx;
top: 81rpx;
width: 120rpx;
height: 62rpx;
width: 166rpx;
height: 71rpx;
}
.img2 {
position: absolute;
top: 22rpx;
right: 25rpx;
width: 116rpx;
height: 104rpx;
width: 138rpx;
height: 132rpx;
}
}
}
@ -1039,10 +1011,8 @@
color: #000000;
}
.text {
text {
position: absolute;
display: flex;
justify-content: flex-end !important;
right: 20rpx;
bottom: 14rpx;
font-size: 28rpx;

View File

@ -20,7 +20,7 @@
<view class="image">
<image :src="item.image" style="border-radius: 10rpx;"></image>
</view>
<view class="detail" @tap="goDetail(item)">
<view class="detail">
<view class="name">
{{item.storeName}}
</view>
@ -186,7 +186,7 @@
};
},
computed: {
...mapGetters(['isLogin', 'uid']),
...mapGetters(['isLogin']),
reChecked() {
return item => {
return item.checked
@ -263,16 +263,6 @@
};
},
methods: {
//
goDetail(item) {
if (item.activityH5 && item.activityH5.type === "2" && !this.isLogin) {
toLogin();
} else {
uni.navigateTo({
url: `/pages/goods_details/index?id=${item.productId}`
})
}
},
//
allCheck() {
this.isAllSelect = !this.isAllSelect