|
|
@ -3,20 +3,20 @@ |
|
|
|
<view class="guanli" v-if="list && list.length>0" @click="guanli">{{operate}}</view> |
|
|
|
<view v-for="(item,index) in list" :key="index"> |
|
|
|
<view class="goodBox" v-if="item.data && item.data.length > 0 "> |
|
|
|
<view class="title" v-if="item.data.some(v => v.flag === 1)">{{item.merchant_name}} ></view> |
|
|
|
<view class="title" v-if="item.data.some(v => v.flag == 1)">{{item.merchant_name}} ></view> |
|
|
|
<view class="goodItem" v-for="(goodItem,goodIndex) in item.data" :key="goodIndex" |
|
|
|
v-if="goodItem.flag != 0"> |
|
|
|
<view class="noSelect" v-if="!goodItem.is_select" @click="changeSelect(goodItem)"></view> |
|
|
|
<view class="selectBox flex-around" v-else @click="changeSelect(goodItem)"> |
|
|
|
<img src="https://static.ticket.sz-trip.com/cgc/images/order/dui.png"> |
|
|
|
</view> |
|
|
|
<image :src="showImg(goodItem.Specifications_image)" mode="aspectFill" |
|
|
|
<image :src="showImg(goodItem.specifications_image)" mode="aspectFill" |
|
|
|
@click="goDetails(goodItem.good_id)"></image> |
|
|
|
<view class="contentBox"> |
|
|
|
<view class="title text-overflow">{{goodItem.good_name}}</view> |
|
|
|
<view class="subTitle text-overflow">{{goodItem.Specifications_name}}</view> |
|
|
|
<view class="priceBox flex-between"> |
|
|
|
<view class="price">{{showPrice(goodItem.Specifications_money)}}</view> |
|
|
|
<view class="price">{{goodItem.Specifications_money / 100}}</view> |
|
|
|
<view class="flex-between" style="width: 165rpx;font-size: 29rpx;"> |
|
|
|
<view :class="['jian', goodItem.num == 1 ? 'zhihui' : '']" @click="delNum(goodItem)">- |
|
|
|
</view> |
|
|
@ -33,12 +33,12 @@ |
|
|
|
<view class="title flex-between">失效商品<span @click="delLoseGood('',1)">清空失效商品</span></view> |
|
|
|
<view class="goodItem" v-for="(goodItem,goodIndex) in loseList" :key="goodIndex"> |
|
|
|
<view class="noSelect"></view> |
|
|
|
<image :src="showImg(goodItem.Specifications_image)" mode="aspectFill"></image> |
|
|
|
<image :src="showImg(goodItem.specifications_image)" mode="aspectFill"></image> |
|
|
|
<view class="contentBox"> |
|
|
|
<view class="title text-overflow">{{goodItem.good_name}}</view> |
|
|
|
<view class="subTitle text-overflow">{{goodItem.Specifications_name}}</view> |
|
|
|
<view class="priceBox flex-between"> |
|
|
|
<view class="price">{{showPrice(goodItem.Specifications_money)}}</view> |
|
|
|
<view class="price">{{goodItem.Specifications_money / 100}}</view> |
|
|
|
<view class="btn" @click="delLoseGood(goodItem.id,0)">删除</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -48,10 +48,10 @@ |
|
|
|
<!-- 预定按钮 --> |
|
|
|
<view class="orderBox flex-between"> |
|
|
|
<view class="priceBox"> |
|
|
|
<view class="selectBox flex-around" v-if="allSelect" @click="changeAllSelect"> |
|
|
|
<!-- <view class="selectBox flex-around" v-if="allSelect" @click="changeAllSelect"> |
|
|
|
<img src="https://static.ticket.sz-trip.com/cgc/images/order/dui.png" alt=""> |
|
|
|
</view> |
|
|
|
<view class="noSelect" v-else @click="changeAllSelect"></view>全选 |
|
|
|
<view class="noSelect" v-else @click="changeAllSelect"></view>全选 --> |
|
|
|
<span v-if="operate == '管理'">在线付:</span> |
|
|
|
<p v-if="operate == '管理'">¥{{getAllPrice()}}</p> |
|
|
|
</view> |
|
|
@ -82,11 +82,11 @@ |
|
|
|
methods: { |
|
|
|
getShoppingList() { |
|
|
|
this.Post({ |
|
|
|
is_post: 2, |
|
|
|
lon: this.$store.state.user.location.lon || '120.63132', |
|
|
|
lat: this.$store.state.user.location.lat || '31.30227' |
|
|
|
is_post: 1, |
|
|
|
// lon: this.$store.state.user.location.lon || '120.63132', |
|
|
|
// lat: this.$store.state.user.location.lat || '31.30227' |
|
|
|
}, '/api/shopping/getShoppingList').then(res => { |
|
|
|
this.list = res.data |
|
|
|
this.list = res.data.merchant |
|
|
|
this.loseList = [] |
|
|
|
this.list.forEach(item => { |
|
|
|
item.data.forEach(items => { |
|
|
@ -153,7 +153,7 @@ |
|
|
|
// 去商品详情 |
|
|
|
goDetails(id) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/subPackages/goods/goodsInfo?id=' + id |
|
|
|
url: '/subPackages/techan/detail?id=' + id |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 改变所有选中 |
|
|
@ -363,7 +363,7 @@ |
|
|
|
.jia { |
|
|
|
width: 47rpx; |
|
|
|
height: 47rpx; |
|
|
|
background: #2791F7; |
|
|
|
background: #6CA5AA; |
|
|
|
border-radius: 50%; |
|
|
|
text-align: center; |
|
|
|
color: #FFFFFF; |
|
|
|