文字修改

This commit is contained in:
liuye
2023-06-15 14:42:27 +08:00
parent 58fcca64fb
commit 191304fd31
6 changed files with 29 additions and 16 deletions

View File

@@ -82,7 +82,7 @@ export default {
name: 'goodsList', name: 'goodsList',
data() { data() {
return { return {
tabList: [{name: '全部'}, {name: '免费兑'}, {name: '京东低价商品'}], tabList: [{name: '全部'}, {name: '积分兑换'}, {name: '京东低价商品'}],
currentTabs: 1, currentTabs: 1,
barStyle: { barStyle: {
'width': '20px', 'width': '20px',
@@ -139,7 +139,7 @@ export default {
getList() { getList() {
this.$http.post(`/app/appintegralsupermarketshop/goodsListWXCP`, null, { this.$http.post(`/app/appintegralsupermarketshop/goodsListWXCP`, null, {
params: { params: {
goodsType: this.currentTabs, //商品类型0全部、1免费兑、2京东低价商品默认0 goodsType: this.currentTabs, //商品类型0全部、1积分兑换、2京东低价商品默认0
orderType: this.currentType == 0 ? 1 : 0, //排序类型0积分升序、1上架时间倒序默认0 orderType: this.currentType == 0 ? 1 : 0, //排序类型0积分升序、1上架时间倒序默认0
filterIntegral: this.currentType == 2 ? true : false, //过滤我可兑换的默认false filterIntegral: this.currentType == 2 ? true : false, //过滤我可兑换的默认false
integralRange: this.currentType == 1 ? this.currentPoint : '', //积分区间类型0全部、150分以下、2:100分以下、3200分以下、45000分以下默认0 integralRange: this.currentType == 1 ? this.currentPoint : '', //积分区间类型0全部、150分以下、2:100分以下、3200分以下、45000分以下默认0

View File

@@ -22,7 +22,7 @@
</div> </div>
</div> </div>
<p class="tips" v-if="item.goodsType == 2"><span>兑换成功后点击去购买前往京东低价购买</span></p> <p class="tips" v-if="item.goodsType == 2"><span>兑换成功后点击去购买前往京东低价购买</span></p>
<p class="tips" v-else>免费兑换商品可到固定的兑换点进行核销兑换</p> <p class="tips" v-else>积分兑换商品可到固定的兑换点进行核销兑换</p>
<p class="remark" v-if="item.remarks">备注{{item.remarks}}</p> <p class="remark" v-if="item.remarks">备注{{item.remarks}}</p>
<div class="flex-btn" v-if="item.goodsType == 2 && item.status != 2"> <div class="flex-btn" v-if="item.goodsType == 2 && item.status != 2">
<p></p> <p></p>

View File

@@ -13,7 +13,7 @@
</div> </div>
</div> </div>
<p class="tips" v-if="goodsInfo.type == 2">兑换成功后点击去购买前往京东低价购买</p> <p class="tips" v-if="goodsInfo.type == 2">兑换成功后点击去购买前往京东低价购买</p>
<p class="tips" v-else>免费兑换商品可到固定的兑换点进行核销兑换</p> <p class="tips" v-else>积分兑换商品可到固定的兑换点进行核销兑换</p>
</div> </div>
<div class="content"> <div class="content">
<div class="item-flex" @click="show=true"> <div class="item-flex" @click="show=true">

View File

@@ -7,7 +7,7 @@
<h3>{{goodsInfo.integralPrice}}积分<span v-if="goodsInfo.type == 2">+¥{{goodsInfo.payMoney}}<span v-if="goodsInfo.type == 2">兑换后再付</span></span></h3> <h3>{{goodsInfo.integralPrice}}积分<span v-if="goodsInfo.type == 2">+¥{{goodsInfo.payMoney}}<span v-if="goodsInfo.type == 2">兑换后再付</span></span></h3>
<div>零售单价¥{{goodsInfo.retailPrice}}</div> <div>零售单价¥{{goodsInfo.retailPrice}}</div>
<span class="tips" v-if="goodsInfo.type == 2">兑换成功后点击去购买前往京东低价购买</span> <span class="tips" v-if="goodsInfo.type == 2">兑换成功后点击去购买前往京东低价购买</span>
<span class="tips" v-else>免费兑换商品可到固定的兑换点进行核销兑换</span> <span class="tips" v-else>积分兑换商品可到固定的兑换点进行核销兑换</span>
</div> </div>
<div class="product-content"> <div class="product-content">
<p>商品描述</p> <p>商品描述</p>

View File

@@ -3,7 +3,7 @@
<img src="./img/success.png" alt=""> <img src="./img/success.png" alt="">
<div v-if="goodsInfo.type == 0"> <div v-if="goodsInfo.type == 0">
<h3>提交成功</h3> <h3>提交成功</h3>
<p>提交免费兑订单成功扣减 <span>{{integralPrice}}积分</span></p> <p>提交积分兑换订单成功扣减 <span>{{integralPrice}}积分</span></p>
<div class="btn-flex"> <div class="btn-flex">
<div @click="back">返回</div> <div @click="back">返回</div>
<div @click="toOrderList">查看订单</div> <div @click="toOrderList">查看订单</div>

View File

@@ -44,14 +44,14 @@
</AiTopFixed> </AiTopFixed>
<div class="user-list" v-if="list.length"> <div class="user-list" v-if="list.length">
<div class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item)"> <div class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item)">
<div class="flex-left"> <img :src="item.toUserAvatar" alt="" v-if="currentTabs == 1">
<img :src="item.toUserAvatar" alt="" v-if="currentTabs == 1"> <img src="./img/group-img.png" alt="" v-else>
<p v-if="currentTabs == 1">{{item.toUserName}}</p> <div class="item-border">
<img src="./img/group-img.png" alt="" v-if="currentTabs != 1"> <div class="flex-left">
<p v-if="currentTabs != 1">{{item.roomName}}</p> <p>{{currentTabs == 1 ? item.toUserName : item.roomName}}</p>
</div>
<div class="flex-right" :class="`type`+item.userType" v-if="item.userType > 0">{{item.userType == 1 ? '内部' : '外部'}}</div>
</div> </div>
<div class="flex-right" :class="`type`+item.roomType" v-if="currentTabs == 1 && item.roomType > 0">{{item.roomType == 1 ? '内部' : '外部'}}</div>
<div class="flex-right" :class="`type`+item.toUserType" v-if="currentTabs != 1 && item.toUserType > 0">{{item.toUserType == 1 ? '内部' : '外部'}}</div>
</div> </div>
</div> </div>
<AiEmpty v-else/> <AiEmpty v-else/>
@@ -134,6 +134,13 @@ export default {
} }
}).then(res=> { }).then(res=> {
if(res?.data) { if(res?.data) {
res.data.records.map((item) => {
if(item.type == 1) {
item.userType = item.roomType
}else {
item.userType = item.toUserType
}
})
this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records
this.pages = res.data.pages this.pages = res.data.pages
} }
@@ -199,9 +206,15 @@ export default {
border-top: 1px solid #eee; border-top: 1px solid #eee;
background-color: #fff; background-color: #fff;
.item { .item {
padding: 24px 32px 0 32px; padding: 24px 0 0 32px;
display: flex; display: flex;
justify-content: space-between; .item-border {
width: calc(100% - 112px);
padding-right: 32px;
display: flex;
justify-content: space-between;
border-bottom: 1px solid #eee;
}
.flex-left { .flex-left {
padding-right: 8px; padding-right: 8px;
box-sizing: border-box; box-sizing: border-box;
@@ -238,9 +251,9 @@ export default {
font-size: 32px; font-size: 32px;
color: #333; color: #333;
letter-spacing: 0.3px; letter-spacing: 0.3px;
border-bottom: 1px solid #eee;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
width: 100%;
} }
} }
.item:nth-last-child(1) { .item:nth-last-child(1) {