Browse Source

上传

master
前端-胡立永 3 months ago
parent
commit
e912c75502
6 changed files with 31 additions and 9 deletions
  1. +1
    -1
      config.js
  2. +1
    -1
      mixins/product.js
  3. +13
    -3
      pages/index/index.vue
  4. +4
    -0
      pages/index/product.vue
  5. +2
    -1
      pages_order/components/product/submit.vue
  6. +10
    -3
      pages_order/components/product/submitUnitSelect.vue

+ 1
- 1
config.js View File

@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI); Vue.use(uvUI);
// 当前环境 // 当前环境
const type = 'dev'
const type = 'prod'
// 环境配置 // 环境配置


+ 1
- 1
mixins/product.js View File

@ -11,7 +11,7 @@ export default {
return [2].includes(detail.className) return [2].includes(detail.className)
}, },
isProductPrice(detail){ isProductPrice(detail){
return [0, 1].includes(detail.className)
return [0, 1, 3].includes(detail.className)
}, },
} }
} }

+ 13
- 3
pages/index/index.vue View File

@ -76,7 +76,10 @@
<scroll-view scroll-x="true"> <scroll-view scroll-x="true">
<view class="life"> <view class="life">
<view class="mouse" @click="menuClick(item.url)" :key="index" v-for="(item, index) in menu">
<view class="mouse"
@click="menuClick(item.url)"
v-if="index < 9"
:key="index" v-for="(item, index) in menu">
<view class="RentingAhouseimg"> <view class="RentingAhouseimg">
<image :src="item.icon" mode=""></image> <image :src="item.icon" mode=""></image>
</view> </view>
@ -85,8 +88,15 @@
</view> </view>
</view> </view>
<view class="more" @click="menuClick(item.url)" >
更多
<view class="more"
v-if="menu.length > 8"
@click="menuClick(item.url)" >
<view class="RentingAhouseimg">
<image src="" mode=""></image>
</view>
<view class="RentingAhouse">
更多
</view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>


+ 4
- 0
pages/index/product.vue View File

@ -143,6 +143,10 @@
name : '积分商城', name : '积分商城',
value : 2, value : 2,
}, },
{
name : '二手集市',
value : 3,
},
], ],
} }
}, },


+ 2
- 1
pages_order/components/product/submit.vue View File

@ -62,8 +62,9 @@
} }
}, },
methods: { methods: {
//
submit(){ submit(){
if(this.detail.className == 0){
if([0, 3].includes(this.detail.className)){
uni.navigateTo({ uni.navigateTo({
url: '/pages_order/gourmet/gourmetDetail?id=' + this.detail.shopId url: '/pages_order/gourmet/gourmetDetail?id=' + this.detail.shopId
}) })


+ 10
- 3
pages_order/components/product/submitUnitSelect.vue View File

@ -33,13 +33,15 @@
mode=""></image> mode=""></image>
<view class="info"> <view class="info">
<view class="price">
<view class="price"
v-if="isProductPrice(detail)">
价格<text>{{ detail.price }}</text> 价格<text>{{ detail.price }}</text>
</view> </view>
<!-- <view class="unit"> <!-- <view class="unit">
请选择规格 请选择规格
</view> --> </view> -->
<view class="favorable" v-if="detail.points">
<view class="favorable"
v-if="isProductPoint(detail)">
<view class="t"> <view class="t">
积分兑换 积分兑换
</view> </view>
@ -76,9 +78,14 @@
<view class="title"> <view class="title">
费用明细 费用明细
</view> </view>
<view class="detail">
<view class="detail"
v-if="isProductPoint(detail)">
积分{{ detail.points }} 积分{{ detail.points }}
</view> </view>
<view class="detail"
v-if="isProductPrice(detail)">
金额{{ detail.price }}
</view>
</view> </view>


Loading…
Cancel
Save