增加积分商城的功能
This commit is contained in:
@ -7,11 +7,15 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<view class="line1">{{ attr.productSelect.store_name }}</view>
|
<view class="line1">{{ attr.productSelect.store_name }}</view>
|
||||||
<view class="money font-color-red">
|
<view class="money font-color-red" v-if="!isIntegral">
|
||||||
¥
|
¥
|
||||||
<text class="num">{{ attr.productSelect.price }}</text>
|
<text class="num">{{ attr.productSelect.price }}</text>
|
||||||
<text class="stock">库存: {{ attr.productSelect.stock }}</text>
|
<text class="stock">库存: {{ attr.productSelect.stock }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="money font-color-red" v-if="isIntegral">
|
||||||
|
<text class="num">{{ attr.productSelect.integral }}积分</text>
|
||||||
|
<text class="stock">库存: {{ attr.productSelect.stock }}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="iconfont icon-guanbi" @click="closeAttr"></view>
|
<view class="iconfont icon-guanbi" @click="closeAttr"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -65,6 +69,7 @@
|
|||||||
export default {
|
export default {
|
||||||
name: "ProductWindow",
|
name: "ProductWindow",
|
||||||
props: {
|
props: {
|
||||||
|
isIntegral:Boolean,
|
||||||
attr: {
|
attr: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {},
|
default: () => {},
|
||||||
|
@ -184,7 +184,7 @@
|
|||||||
<!-- 优惠券 -->
|
<!-- 优惠券 -->
|
||||||
<CouponPop v-on:changeFun="changeFun" :coupon="coupon"></CouponPop>
|
<CouponPop v-on:changeFun="changeFun" :coupon="coupon"></CouponPop>
|
||||||
<!-- 商品规格弹窗 -->
|
<!-- 商品规格弹窗 -->
|
||||||
<ProductWindow v-on:changeFun="changeFun" :attr="attr" :cartNum="cart_num"></ProductWindow>
|
<ProductWindow isIntegral v-on:changeFun="changeFun" :attr="attr" :cartNum="cart_num"></ProductWindow>
|
||||||
<!-- 分享海报 -->
|
<!-- 分享海报 -->
|
||||||
<StorePoster v-on:setPosterImageStatus="setPosterImageStatus" :posterImageStatus="posterImageStatus"
|
<StorePoster v-on:setPosterImageStatus="setPosterImageStatus" :posterImageStatus="posterImageStatus"
|
||||||
:posterData="posterData" :goodId="id"></StorePoster>
|
:posterData="posterData" :goodId="id"></StorePoster>
|
||||||
|
Reference in New Issue
Block a user