zhangtao il y a 1 jour
Parent
commit
dc7ca391f8
4 fichiers modifiés avec 27 ajouts et 20 suppressions
  1. 2 0
      common/config.js
  2. 1 1
      manifest.json
  3. 20 16
      my/publish/index.vue
  4. 4 3
      pages/my/index.vue

+ 2 - 0
common/config.js

@@ -4,6 +4,8 @@
 // const ROOTPATH3 = "ws://smam.qd-xiaomage.com:9210/wss/chatSocket/";
 
 const ROOTPATH = "https://master.dstapp.cn/sqx_fast";
+// const ROOTPATH = "http://192.168.1.166:8188/sqx_fast";
+// const ROOTPATH1 = "http://192.168.1.166:8188/sqx_fast";
 const ROOTPATH1 = "https://master.dstapp.cn/sqx_fast";
 
 // const ROOTPATH = "http://shangmenshifu.unvue.cn/sqx_fast";

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "帝侍天上门师傅端",
-    "appid" : "__UNI__5F86569",
+    "appid" : "__UNI__FA16725",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",

+ 20 - 16
my/publish/index.vue

@@ -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;
-		
+
 	}
 
 

+ 4 - 3
pages/my/index.vue

@@ -120,7 +120,7 @@
 						<image src="../../static/images/my/team.png"></image>
 						<view class="box_text">我的团队</view>
 					</view>
-					<view class="box" @click="goNav('/my/publish/index')">
+					<view class="box" @click="goNav(`/my/publish/index?id=${classifyId}`)">
 						<image src="../../static/images/my/yjian.png"></image>
 						<view class="box_text">我的项目</view>
 					</view>
@@ -211,7 +211,8 @@
 				bzjCheck: '否',
 				XCXIsSelect: '否',
 				shopSel:'否',
-				isCashDeposit: ''
+				isCashDeposit: '',
+				classifyId:'',
 			}
 		},
 		onLoad() {
@@ -461,7 +462,7 @@
 						this.invitationCode = res.data.invitationCode
 						this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png'
 						// this.isAuthentication = res.data.isAuthentication
-
+						this.classifyId = res.data.classifyId
 						this.phone = res.data.phone;
 						this.openId = res.data.openId;