pull/2/head
js199000126 2023-05-26 11:39:43 +08:00
parent 5f5944b15f
commit 15a30885a7
5 changed files with 64 additions and 28 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,6 +7,7 @@ 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({
@ -25,6 +26,12 @@ 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,19 +24,30 @@
</view>
</view>
</view>
<view class="right">
<view class="up">
<view class="right" v-if="!vip.integral">
<view class="up" @tap="goEquity">
<image style="width: ;" src="@/static/images/shop/vip_oneStar.png" mode=""></image>
</view>
<text>会员等级1级</text>
<view class="button">查看权益</view>
<view class="button" @tap="goEquity"></view>
</view>
<view class="right" v-else>
<view class="up">
<image style="width: ;" src="@/static/images/shop/vip_oneStar.png" mode=""></image>
</view>
<text>会员等级0级</text>
<view class="button">申请会员</view>
</view>
</view>
</view>
<view class="header_bottom">
<navigator :url="bannerList.url">
<image :src="bannerList.picUrl" mode=""></image>
</navigator>
<u-swiper
:list="bannerList"
keyName="picUrl"
height="100%"
radius="20rpx"
bgColor="transparent"
></u-swiper>
</view>
</view>
<view class="notice" @tap="goNoticeDetail">
@ -82,10 +93,7 @@
<view class="item" v-for="item in productList" @click="goDetail(item)">
<image :src="item.image" mode=""></image>
<view class="name">{{item.storeName}}</view>
<text>
<u--text color="#E50202" mode="price" :text="item.price"></u--text>
</text>
<u--text class="text" color="#E50202" mode="price" :text="item.price"></u--text>
</view>
</view>
<view class="" style="margin-top: 110rpx;">
@ -260,6 +268,7 @@
page: 1,
limit: 10,
},
vip: {},//
tempArr: [], //
roll: [], //
site_name: '', //title
@ -333,7 +342,8 @@
})
})
getHeader().then(res => {
console.log(res, '会员')
this.vip = res.data
console.log(this.vip, '会员')
})
this.getBanners()
this.getIndexPage()
@ -349,9 +359,15 @@
})
},
methods: {
//
goEquity(){
console.log('goEmember_equity')
uni.navigateTo({
url:'/pages/member_equity/index'
})
},
//
goNoticeDetail() {
console.log('notice哇')
uni.navigateTo({
url: '/pages/notice/index'
})
@ -390,8 +406,9 @@
// console.log(this.$store.tenantId,'tenantId')
getBanner().then(res => {
this.bannerList = res.data.list[0]
console.log(this.bannerList, 'banner')
this.bannerList = [...res.data.list]
console.log(res.data.list,'banner')
})
console.log(this.userInfo.userId, 'userInfo111111')
@ -920,18 +937,18 @@
.bottom {
margin-top: 27rpx;
height: 200rpx;
overflow: scroll;
white-space: nowrap;
display: flex;
flex-wrap: nowrap;
.item {
position: relative;
display: inline-block;
width: 370rpx;
width: 45%;
height: 199rpx;
margin-left: 19rpx;
image {
width: 370rpx;
width: 100%;
height: 199rpx;
}
@ -963,16 +980,16 @@
position: absolute;
left: 17rpx;
top: 81rpx;
width: 166rpx;
height: 71rpx;
width: 120rpx;
height: 62rpx;
}
.img2 {
position: absolute;
top: 22rpx;
right: 25rpx;
width: 138rpx;
height: 132rpx;
width: 116rpx;
height: 104rpx;
}
}
}
@ -1011,8 +1028,10 @@
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">
<view class="detail" @tap="goDetail(item)">
<view class="name">
{{item.storeName}}
</view>
@ -186,7 +186,7 @@
};
},
computed: {
...mapGetters(['isLogin']),
...mapGetters(['isLogin', 'uid']),
reChecked() {
return item => {
return item.checked
@ -263,6 +263,16 @@
};
},
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