Merge branch 'pre-release' of https://gitea.lihaink.cn/mkm/shop-applet into pre-release

This commit is contained in:
luofei 2024-05-17 14:43:41 +08:00
commit dd214e72f3
6 changed files with 20 additions and 15 deletions

View File

@ -229,7 +229,8 @@
<u-line direction="col" style="margin: 0 20rpx;" length="60rpx" <u-line direction="col" style="margin: 0 20rpx;" length="60rpx"
color="#A1A1A1"></u-line> color="#A1A1A1"></u-line>
</view> </view>
<view class="attribute-li" v-for="item in product_attribute.attr"> <view class="attribute-li" v-for="item in product_attribute.attr"
v-if="item.label || item.value">
<view class="" style="display: flex;flex-direction: column;align-items: center;"> <view class="" style="display: flex;flex-direction: column;align-items: center;">
<view class="" style="margin-bottom: 10rpx;"> <view class="" style="margin-bottom: 10rpx;">
{{item.label}} {{item.label}}
@ -238,8 +239,8 @@
{{item.value}} {{item.value}}
</view> </view>
</view> </view>
<u-line direction="col" style="margin: 0 20rpx;" length="60rpx" <u-line direction="col" style="margin: 0 20rpx;" length="60rpx" color="#A1A1A1"
color="#A1A1A1"></u-line> v-if="item.label || item.value"></u-line>
</view> </view>
<view class="attribute-fixed-right" v-if="storeInfo.product_attribute.attr.length>5"> <view class="attribute-fixed-right" v-if="storeInfo.product_attribute.attr.length>5">
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
@ -755,9 +756,10 @@
getPreviewProDetail(params).then(res => { getPreviewProDetail(params).then(res => {
uni.hideLoading(); uni.hideLoading();
let storeInfo = res.data; let storeInfo = res.data;
// this.product_attribute = res.data.product_attribute
console.log(res.data.product_attribute); if (res.data.product_attribute)
this.product_attribute = res.data.product_attribute
this.image = res.data.image; this.image = res.data.image;
if (storeInfo.video_link && storeInfo.slider_image.length > 1) { if (storeInfo.video_link && storeInfo.slider_image.length > 1) {

View File

@ -13,7 +13,7 @@
<view class="card" style="min-height: 268rpx;"> <view class="card" style="min-height: 268rpx;">
<u-form-item label="商品图片" prop="formData.imageList" ref="item1" labelWidth='auto'> <u-form-item label="商品图片" prop="formData.imageList" ref="item1" labelWidth='auto'>
<text style="font-size:24rpx ; color:#E18C34 ;">上传时应注重真实性清晰度</text> <text style="font-size:24rpx ; color:#E18C34 ;">上传时应注重真实性清晰度至少上传两张</text>
</u-form-item> </u-form-item>
<view class="" style="display: flex;flex-wrap: wrap;"> <view class="" style="display: flex;flex-wrap: wrap;">
<view v-for="(item,index) in formData.imageList" style="margin-right: 20rpx;margin-bottom: 20rpx;"> <view v-for="(item,index) in formData.imageList" style="margin-right: 20rpx;margin-bottom: 20rpx;">

View File

@ -62,7 +62,6 @@
</view> </view>
</view> </view>
<u-form-item label="商品详情" prop="formData.content.image" required> <u-form-item label="商品详情" prop="formData.content.image" required>
<text style="color: #E18C34;font-size: 24rpx">上传时应注重真实性清晰度</text> <text style="color: #E18C34;font-size: 24rpx">上传时应注重真实性清晰度</text>
</u-form-item> </u-form-item>

View File

@ -1,8 +1,6 @@
<template> <template>
<view class="content"> <view class="content">
<view class="">
<u-button icon="plus" text="新增规格" @click="pushFn" class="custom-style" iconColor='#38BE41'></u-button>
</view>
<view class="card" v-for="(item,index) in attrValue"> <view class="card" v-for="(item,index) in attrValue">
<view class="card-head card-li"> <view class="card-head card-li">
<text style="font-size: 32rpx;">规格{{index+1}}</text> <text style="font-size: 32rpx;">规格{{index+1}}</text>
@ -17,13 +15,14 @@
<view class=""> <view class="">
<view class="" style="display: flex;align-items: center;justify-content: space-between;"> <view class="" style="display: flex;align-items: center;justify-content: space-between;">
<u--input style="flex: 2; background-color: #F6F6F6;" placeholder="请输入商品单价" v-model="item.price" <u--input style="flex: 2; background-color: #F6F6F6;" placeholder="请输入商品单价" v-model="item.price"
type='number'></u--input> placeholderStyle="font-size:26rpx;color:rgb(192, 196, 204);" type='number'></u--input>
<view class="" style="flex: 1;text-align: center;"> <view class="" style="flex: 1;text-align: center;">
/ /
</view> </view>
<view class="" @click="unitIptClick(index,false)" style="width: 100rpx;flex: 2.4"> <view class="" @click="unitIptClick(index,false)" style="width: 100rpx;flex: 2.4">
<u--input readonly style=" background-color: #F6F6F6;pointer-events: none;" <u--input readonly style=" background-color: #F6F6F6;pointer-events: none;"
placeholder="请输入计量单位" v-model="item.unit_name"></u--input> placeholderStyle="font-size:26rpx;color:rgb(192, 196, 204);" placeholder="请输入计量单位"
v-model="item.unit_name"></u--input>
</view> </view>
</view> </view>
@ -67,6 +66,11 @@
</view> </view>
</view> </view>
</view> </view>
<view class="">
<u-button icon="plus" text="新增规格" @click="pushFn" class="custom-style" iconColor='#38BE41'></u-button>
</view>
<view class="submit-btn"> <view class="submit-btn">
<u-button type="primary" shape="circle" text="保存" @click="submit"></u-button> <u-button type="primary" shape="circle" text="保存" @click="submit"></u-button>
</view> </view>
@ -326,7 +330,7 @@
.card { .card {
margin-top: 30rpx; margin-bottom: 30rpx;
padding: 30rpx 46rpx; padding: 30rpx 46rpx;
background-color: white; background-color: white;
border-radius: 16rpx 16rpx 16rpx 16rpx; border-radius: 16rpx 16rpx 16rpx 16rpx;

View File

@ -133,7 +133,7 @@
.left { .left {
margin-right: 30rpx; margin-right: 30rpx;
width: 140rpx; width: 160rpx;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@ -36,7 +36,7 @@
</view> </view>
<view class="" style="display: flex;align-items: center;color: #FC452F;"> <view class="" style="display: flex;align-items: center;color: #FC452F;">
<u--input border="surround" color='#FC452F' inputAlign='right' style='padding: 0;' <u--input border="surround" color='#FC452F' inputAlign='right' style='padding: 0;'
v-model="item.stock"></u--input> v-model="item.stock"></u--input>{{item.unit_name}}
</view> </view>
</view> </view>
</view> </view>