|
|
@@ -30,7 +30,7 @@
|
|
|
<view style="font-weight: bold;font-size: 32rpx;color: #222222;">{{item.title}}</view>
|
|
|
<view style="font-size: 28upx;color: #222;" class="margin-top">{{item.createTime}}</view>
|
|
|
<view style="color:#2FB57A;font-size: 32upx;" class="margin-top">
|
|
|
-
|
|
|
+
|
|
|
<text style="font-size: 28upx;color: #222;">{{item.duration}}分钟</text>
|
|
|
</view>
|
|
|
<view class="u-font-14 u-tips-color " v-if="item.content && item.status == 3">
|
|
|
@@ -38,15 +38,16 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="flex justify-between u-p-t-20" style="border-top:1rpx solid #F0F0F0;" v-if="checkJs != '否'">
|
|
|
+ <view class="flex justify-between u-p-t-20" style="border-top:1rpx solid #F0F0F0;"
|
|
|
+ v-if="checkJs != '否'">
|
|
|
<view style="font-weight: bold;font-size: 40rpx;color: #F24E4E;">¥{{item.price}}</view>
|
|
|
<view class="flex">
|
|
|
- <u-button v-if="item.status == 1" :custom-style="customStyle" @click="updateStatus(item)"
|
|
|
- >立即上架</u-button>
|
|
|
+ <u-button v-if="item.status == 1" :custom-style="customStyle"
|
|
|
+ @click="updateStatus(item)">立即上架</u-button>
|
|
|
<u-button v-if="item.status == 0" class="customStyle2" :custom-style="customStyle"
|
|
|
- @click="downdateStatus(item)" >立即下架</u-button>
|
|
|
- <u-button v-if="item.status == 1" :custom-style="customStyle" @click="delStatus(item)"
|
|
|
- >删除</u-button>
|
|
|
+ @click="downdateStatus(item)">立即下架</u-button>
|
|
|
+ <u-button v-if="item.status == 1" :custom-style="customStyle"
|
|
|
+ @click="delStatus(item)">删除</u-button>
|
|
|
<!-- <u-button v-if="item.status != 0" :custom-style="customStyle2" shape="square" :plain="true"
|
|
|
@click="update(item)">重新编辑</u-button> -->
|
|
|
</view>
|
|
|
@@ -206,16 +207,17 @@
|
|
|
endTime: '',
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
- massageTypeId: []
|
|
|
+ massageTypeId: [],
|
|
|
+ classifyId: null,
|
|
|
}
|
|
|
},
|
|
|
- onLoad() {
|
|
|
+ onLoad(query) {
|
|
|
this.$queue.showLoading("加载中...");
|
|
|
this.userId = uni.getStorageSync('userId')
|
|
|
this.nickName = uni.getStorageSync('nickName')
|
|
|
// this.getRenZheng()
|
|
|
this.renzheng = uni.getStorageSync("renzheng")
|
|
|
-
|
|
|
+ this.classifyId = query.id
|
|
|
this.$Request.get('/app/common/type/319').then(res => {
|
|
|
if (res.code == 0) {
|
|
|
this.checkJs = res.data.value;
|
|
|
@@ -332,7 +334,7 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.show = true
|
|
|
this.getcity()
|
|
|
}
|
|
|
@@ -531,7 +533,8 @@
|
|
|
// page: this.page,
|
|
|
// limit: this.limit,
|
|
|
city: this.city,
|
|
|
- artificerId: uni.getStorageSync('artificerId')
|
|
|
+ artificerId: uni.getStorageSync('artificerId'),
|
|
|
+ classifyId: this.classifyId
|
|
|
}
|
|
|
this.$Request.get('/app/artificer/selectMassageTypeList', data).then(res => {
|
|
|
// console.log(res)
|
|
|
@@ -630,15 +633,16 @@
|
|
|
|
|
|
.publish-page {
|
|
|
background-color: #F5F5F5;
|
|
|
- padding: 20rpx 32rpx ;
|
|
|
- .item{
|
|
|
+ padding: 20rpx 32rpx;
|
|
|
+
|
|
|
+ .item {
|
|
|
background: #FFFFFF;
|
|
|
border-radius: 32rpx 32rpx 32rpx 32rpx;
|
|
|
padding: 24rpx;
|
|
|
margin-bottom: 20rpx;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
.addbtn {
|
|
|
position: fixed;
|
|
|
@@ -654,7 +658,7 @@
|
|
|
font-weight: bold;
|
|
|
font-size: 32rpx;
|
|
|
color: #FFFFFF;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|