Browse Source

上传

hfll
前端-胡立永 1 month ago
parent
commit
a3a3dcf90c
10 changed files with 57 additions and 10 deletions
  1. +1
    -0
      api/model/index.js
  2. +23
    -2
      components/product/productItem.vue
  3. +1
    -1
      components/user/productList.vue
  4. BIN
      doc/4u5qWXI8Upxtb192e8c31f52cb65391097b2b230eb5e.png
  5. BIN
      doc/gh_887a56a1d81b_1280.jpg
  6. BIN
      doc/logo.png
  7. +29
    -6
      pages_order/components/product/submit.vue
  8. +2
    -1
      pages_order/mine/promotion.vue
  9. +1
    -0
      pages_order/product/productDetail.vue
  10. BIN
      pages_order/static/logo.png

+ 1
- 0
api/model/index.js View File

@ -68,6 +68,7 @@ const api = {
method: 'GET',
auth: true,
showLoading: true,
limit : 500,
},
// 删除购物车信息
deleteCart: {


+ 23
- 2
components/product/productItem.vue View File

@ -100,8 +100,15 @@
</view>
<!-- 购买按钮 -->
<view @click.stop="purchase(item.id)" class="buy-btn">
购买
<view class=""
style="display: flex;justify-content: space-between;">
<view @click.stop="purchase(item.id)" class="buy-btn">
购买
</view>
<view @click.stop="addCart(item)" class="buy-btn">
加入购物车
</view>
</view>
</view>
</view>
@ -140,6 +147,20 @@
}
})
},
//
addCart(item){
this.$api('addCart', {
shopId : item.id,
num : 1,
}, res => {
if(res.code == 200){
uni.showToast({
title: '加入购物车成功',
icon: 'none'
})
}
})
},
//
getPriceByRole(item) {


+ 1
- 1
components/user/productList.vue View File

@ -94,7 +94,7 @@
.image {
width: 300rpx;
height: 250rpx;
height: 300rpx;
border-radius: 20rpx;
}


BIN
doc/4u5qWXI8Upxtb192e8c31f52cb65391097b2b230eb5e.png View File

Before After
Width: 1037  |  Height: 1495  |  Size: 2.1 MiB

BIN
doc/gh_887a56a1d81b_1280.jpg View File

Before After
Width: 1280  |  Height: 1280  |  Size: 279 KiB

BIN
doc/logo.png View File

Before After
Width: 860  |  Height: 860  |  Size: 270 KiB Width: 1280  |  Height: 1280  |  Size: 333 KiB

+ 29
- 6
pages_order/components/product/submit.vue View File

@ -12,16 +12,27 @@
<button
open-type="contact"
class="service-icon">
<image src="@/pages_order/static/productDetail/service.png"
mode="aspectFill" class="service-icon-img">
<uv-icon
name="kefu-ermai"
size="45rpx"
></uv-icon>
</image>
<view class="title">
客服
</view>
</button>
<button
class="service-icon"
class="service-icon give"
@click="$emit('toSend')">
<image src="/static/image/center/9.png"
mode="aspectFill" class="service-icon-img"/>
<uv-icon
name="gift-fill"
size="45rpx"
color="#eb3300"
></uv-icon>
<view class="title">
送礼
</view>
</button>
<view class="submit-btn">
@ -66,7 +77,7 @@
left: 0;
width: 100vw;
background-color: #fff;
height: 100rpx;
height: 120rpx;
display: flex;
justify-content: center;
align-items: center;
@ -83,6 +94,8 @@
flex-direction: column;
justify-content: center;
margin: 0 20rpx;
flex-shrink: 0;
align-items: center;
&::after{
border: 0;
}
@ -95,6 +108,16 @@
.title {
font-size: 26rpx;
color: #666666;
line-height: 40rpx;
}
}
.give{
background: rgba($uni-color, 0.1);
padding: 6rpx 20rpx;
border-radius: 15rpx;
.title{
color: $uni-color;
}
}


+ 2
- 1
pages_order/mine/promotion.vue View File

@ -36,7 +36,8 @@ import index from '../../uni_modules/uv-ui-tools'
title: '',
baseUrl: 'https://image.hhlm1688.com/',
canvas: {},
imagePath: 'https://image.hhlm1688.com/2025-02-27/2fe7e417-54ad-4911-b9ba-84ac7d48e66d.png',
imagePath: 'https://image.hhlm1688.com/2025-03-06/32fbb8e2-160b-4cbf-9a49-a72de231de20.png',
// imagePath: 'https://image.hhlm1688.com/2025-02-27/2fe7e417-54ad-4911-b9ba-84ac7d48e66d.png',
// imagePath: 'https://image.hhlm1688.com/2025-02-26/6539d2fa-558d-47db-9681-ecffec5b6c5d.png',
index : 0,
}


+ 1
- 0
pages_order/product/productDetail.vue View File

@ -191,6 +191,7 @@
<style scoped lang="scss">
.page {
padding-bottom: 120rpx;
.swipe {}
//


BIN
pages_order/static/logo.png View File

Before After
Width: 860  |  Height: 860  |  Size: 270 KiB

Loading…
Cancel
Save