فهرست منبع

商城排版优化

shish 1 سال پیش
والد
کامیت
b8320c0dfe

+ 1 - 1
hdApp/src/admin/goods/add.vue

@@ -58,7 +58,7 @@
 
         <tui-list-cell class="line-cell" :hover="false">
           <view class="tui-title">已售数量</view>
-          <input v-model="form.sold" placeholder-class="phcolor" class="tui-input" name="sold" placeholder="客户端展示:已售数量+系统销售数量" maxlength="50" type="number" />
+          <input v-model="form.sold" placeholder-class="phcolor" class="tui-input" name="sold" placeholder="客户端展示:已售数量+售数量" maxlength="50" type="number" />
         </tui-list-cell>
         <!-- <tui-list-cell class="line-cell" :hover="true" :arrow="true">
           <view class="tui-title required">品种</view>

+ 1 - 1
hdApp/src/admin/goods/categorySort.vue

@@ -188,7 +188,7 @@ export default {
 			// 调用API更新排序
 			sort({ items: sortData }).then(res => {
 				if (res.code === 1) {
-					this.$msg('排序更新成功')
+					this.$msg('已更新')
 				} else {
 					this.$msg('排序更新失败')
 				}

+ 4 - 4
hdApp/src/admin/goods/detail.vue

@@ -61,7 +61,7 @@
 
         <tui-list-cell class="line-cell" :hover="false">
           <view class="tui-title">已售数量</view>
-          <input v-model="form.sold" placeholder-class="phcolor" @focus="soldFocusHandler" @blur="soldBlurHandler"  class="tui-input" name="sold" placeholder="客户端展示:已售数量+系统销售数量" maxlength="50" type="number" />
+          <input v-model="form.sold" placeholder-class="phcolor" @focus="soldFocusHandler" @blur="soldBlurHandler"  class="tui-input" name="sold" placeholder="客户端展示:已售数量+售数量" maxlength="50" type="number" />
         </tui-list-cell>
 
         <!-- <tui-list-cell class="line-cell" :hover="true" :arrow="true">
@@ -113,10 +113,10 @@
         </tui-list-cell>
 
         <tui-list-cell class="line-cell" :hover="false">
-          <view class="tui-title">状态</view>
+          <view class="tui-title">商城上面</view>
           <view class="btn-group">
-            <button class="option-btn" :class="[form.status === '1' ? 'active' : '']" @click="statusChange({detail:{value:'1'}})">上架</button>
-            <button class="option-btn" :class="[form.status === '0' ? 'active' : '']" @click="statusChange({detail:{value:'0'}})">下架</button>
+            <button class="option-btn" :class="[form.status === '1' ? 'active' : '']" @click="statusChange({detail:{value:'1'}})">显示</button>
+            <button class="option-btn" :class="[form.status === '0' ? 'active' : '']" @click="statusChange({detail:{value:'0'}})">隐藏</button>
           </view>
         </tui-list-cell>
 

+ 1 - 1
hdApp/src/admin/goods/goodsSort.vue

@@ -253,7 +253,7 @@ export default {
 			// 调用API更新排序
 			sort({ cId: this.option.id, items: sortData }).then(res => {
 				if (res.code === 1) {
-					this.$msg('排序更新成功')
+					this.$msg('已更新')
 				} else {
 					this.$msg('排序更新失败')
 					// 恢复原始顺序

+ 3 - 2
hdApp/src/admin/goods/list.vue

@@ -23,7 +23,7 @@
                 <view class="goods-list-top" @click="edit(goodsItem.id)">
                   <view class="img-blo">
 
-                    <view v-if="goodsItem.status == 0" class="sold-out">
+                    <view v-if="goodsItem.stock <= 0" class="sold-out">
                       <view class="sold-out-xj">已下架</view>
                     </view>
 
@@ -34,7 +34,8 @@
                       <view class="goods-name" style="font-size:29upx;font-weight:bold;	overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width:350upx;">{{ goodsItem.name||'' }}</view>
                     </view>
                     <view class="operate-wrap" style="margin-bottom:15upx;">
-                      <view class="goods-price" style="font-size:23upx;">¥{{ goodsItem.price?parseFloat(goodsItem.price):0 }}</view>
+                      <view class="goods-price" style="font-size:23upx;" v-if="goodsItem.priceType == 1">¥{{ goodsItem.price?parseFloat(goodsItem.price):0 }}</view>
+                      <view class="goods-price" style="font-size:23upx;" v-else>-</view>
                     </view>
                     <view class="operate-wrap">
                       <view style="font-size:23upx;">

+ 3 - 24
hdApp/src/admin/goods/price-increase.vue

@@ -9,14 +9,6 @@
 		<block v-if="form.riseSwitch != 0">
 			<!-- 选项设置 -->
 			<div class="input-line-wrap new-wrap">
-				<!-- <tui-list-cell class="line-cell" :hover="false">
-					<div class="tui-title">涨价节日</div>
-					<div class="tui-input button-wrap">
-						<block v-for="(item, index) in festData" :key="index">
-							<button class="admin-button-com" :class="[form.festIdList.includes(item.id) ? '' : 'default']" @click="selFestFn(item)">{{ item.name || '暂无' }}</button>
-						</block>
-					</div>
-				</tui-list-cell> -->
 				<tui-list-cell class="line-cell" :hover="false">
 					<div class="tui-title">涨价方式</div>
 					<radio-group class="tui-input flex-center-between" @change="radioChange">
@@ -43,7 +35,7 @@
 					</tui-list-cell>
 				</block>
 			</div>
-			<div class="prompt-text">这里的规则只对花束商城生效,对花材和花束图集无效</div>
+			<div class="prompt-text">涨价只对花束商城生效,花材和花束图集无效</div>
 		</block>
 		<div class="button-group">
 			<button class="admin-button-com default big cancel-btn" @click="goBack">取消</button>
@@ -55,21 +47,18 @@
 <script>
 	import { mapGetters } from 'vuex'
 	import TuiListCell from '@/components/plugin/list-cell'
-	// api
 	import { getFest } from '@/utils/config'
 	import { getRise, updateRise } from '@/api/goods'
 	export default {
-		name: 'setting-price-increase',
+		name: 'price-increase',
 		components: {
 			TuiListCell
 		},
 		data() {
 			return {
-				// radioVal: '0',
 				form: {
 					riseSwitch: '0',
 					riseType: '0',
-					//festIdList: [],
 					riseAmount: ''
 				}
 			}
@@ -77,9 +66,6 @@
 		computed: {
 			...mapGetters({ festData: 'getFest' })
 		},
-		onLoad() {
-			// this.init()
-		},
 		methods: {
 			init() {
 				getFest().then(() => {
@@ -89,17 +75,12 @@
 			_getDet() {
 				return getRise().then(res => {
 					if (this.$util.isEmpty(res.data)) return
-					//res.data.festIdList = res.data.festIdList.map(e => e + '')
 					Object.keys(this.form).forEach((i, index) => {
 						this.form[i] = res.data[i]
 					})
 				})
 			},
 			setPrice() {
-				// if (this.form.festIdList.length == 0) {
-				// 	this.$msg('请先选择节日!')
-				// 	return false
-				// }
 				if (!this.form.riseAmount) {
 					this.$msg('请先输入比例或者金额!')
 					return false
@@ -135,6 +116,7 @@
 		color: $fontColor3;
 		padding-bottom: 20upx;
 		padding-left: 30upx;
+		font-size:29upx;
 	}
 	.module-com {
 		margin-bottom: 20upx;
@@ -170,9 +152,6 @@
 				padding-bottom: 12upx;
 				margin-right: 20upx;
 				border-radius: 4upx;
-				// &:first-child {
-				// 	margin-left: 0;
-				// }
 			}
 		}
 	}

+ 2 - 3
hdApp/src/admin/home/apply.vue

@@ -43,10 +43,9 @@ export default {
             title:'花束',
             list:[
                 { name: "花束", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/list",pf:1},
-                { name: "花束品种", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/kind",pf:1},
-                { name: "商城分类", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/category",pf:1},
+                { name: "花束分类", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/category",pf:1},
                 { name: "涨价设置", img: `${this.$constant.hostUrl}/image/ghs/home/gj2.png`, url: "/admin/goods/price-increase",pf:1},
-                { name: "分类排序", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/categorySort",pf:1},
+                { name: "花束排序", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/categorySort",pf:1},
             ]
         },
         {