web100 2 vuotta sitten
vanhempi
commit
857dd85c9a

+ 7 - 0
api/tabBar/shoppingCart.js

@@ -39,4 +39,11 @@ export function obligationList(data) {
 		method: 'GET',
 		data
 	})
+}
+export function payPrepay(params) {
+	return http.request({
+		url: '/blade-sales-part/order/payPrepay',
+		method: 'GET',
+		params
+	})
 }

+ 17 - 1
api/views/salesSlip/index.js

@@ -16,4 +16,20 @@ export function appDetail(params) {
 	})
 }
 //订单支付
-
+// 
+//退款
+export function checkOrder(data) {
+	return http.request({
+		url: '/blade-sales-part/order/checkOrder',
+		method: 'post',
+		data
+	})
+}
+// 确认收货
+export function appUpdate(data) {
+	return http.request({
+		url: '/blade-sales-part/order/appUpdate',
+		method: 'post',
+		data
+	})
+}

+ 1 - 1
common/setting.js

@@ -10,7 +10,7 @@ module.exports = {
 	version: '1.0.0',
 	// 开发环境接口Url
 	// devUrl: 'http://192.168.0.106:1080',
-	devUrl: 'http://192.168.8.109:1080',
+	devUrl: 'http://192.168.8.108:1080',
 	// devUrl: 'https://td.echepei.com/api',
 	// devUrl: 'http://jxy.natapp1.cc/api',
 	// devUrl: 'http://121.37.83.47:10004',

+ 9 - 0
manifest.json

@@ -44,6 +44,7 @@
                     "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
                     "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
                     "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
+                    "<uses-permission android:name=\"android.permission.INTERNET\"/>",
                     "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
                     "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
                     "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
@@ -52,6 +53,7 @@
                     "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
                     "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
                     "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
+                    "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
                 ]
             },
@@ -76,6 +78,13 @@
                         "appkey_ios" : "dd1af6068bd4db430b7eb17fd0213cb1",
                         "appkey_android" : "057bf4ca5e561158f039b19ec46bddd3"
                     }
+                },
+                "payment" : {
+                    "weixin" : {
+                        "__platform__" : [ "ios", "android" ],
+                        "appid" : "",
+                        "UniversalLinks" : ""
+                    }
                 }
             },
             "icons" : {

+ 5 - 5
pages.json

@@ -133,17 +133,17 @@
 			"iconPath": "static/images/tabBar/classification.png",
 			"selectedIconPath": "static/images/tabBar/classification_selected.png",
 			"text": "分类"
-		},{
-			"pagePath": "pages/tabBar/vehicleModel",
-			"iconPath": "static/images/tabBar/vehicleModel.png",
-			"selectedIconPath": "static/images/tabBar/vehicleModel_selected.png",
-			"text": "车型"
 		}, {
 			"pagePath": "pages/tabBar/shoppingCart",
 			"iconPath": "static/images/tabBar/cart.png",
 			"selectedIconPath": "static/images/tabBar/cart_selected.png",
 			"text": "购物车"
 		}, {
+			"pagePath": "pages/tabBar/vehicleModel",
+			"iconPath": "static/images/tabBar/vehicleModel.png",
+			"selectedIconPath": "static/images/tabBar/vehicleModel_selected.png",
+			"text": "车型"
+		},{
 			"pagePath": "pages/tabBar/center",
 			"iconPath": "static/images/tabBar/my.png",
 			"selectedIconPath": "static/images/tabBar/my_selected.png",

+ 1 - 1
pages/tabBar/center.vue

@@ -25,7 +25,7 @@
 						<u-icon name="car" color="#919399" size="32"></u-icon>
 						<text style="color: #525454;font-size: 24rpx;">待收货</text>
 					</u-grid-item>
-					<u-grid-item @click="pageJump('已完成')">
+					<u-grid-item @click="pageJump('已收货')">
 						<u-badge v-for="(item , index) in badgeList" v-if="item.status == 5" :key="index" type="error"
 							max="99" :value="item.count" absolute :offset="[3,15]"></u-badge>
 						<u-icon name="list-dot" color="#919399" size="32"></u-icon>

+ 37 - 3
pages/tabBar/shoppingCart.vue

@@ -57,7 +57,7 @@
 					<view style="font-size: 22rpx;color: #FD4B09;">运费:¥{{totalFreight}}</view>
 				</view>
 				<view style="width: 200rpx;">
-					<u-button shape="circle" size="small" text="提交订单" v-if="!editDel"
+					<u-button shape="circle" size="small" text="立即支付" v-if="!editDel"
 						:disabled="this.selectedProduct.length == 0"
 						color="linear-gradient(0deg, #FD5003 0%, #FBA680 100%)" @click="submit"></u-button>
 					<u-button shape="circle" size="small" text="删除" v-else :disabled="this.selectedProduct.length == 0"
@@ -201,6 +201,7 @@ import { registerRuntimeCompiler } from "vue"
 							}
 						}
 					}
+
 					uni.showLoading({
 						title: '加载中',
 						mask: true
@@ -208,9 +209,42 @@ import { registerRuntimeCompiler } from "vue"
 					generateOrder({
 						address: this.addres.belongtoarea + this.addres.detailedAddress,
 						list: data,
-					}).then(res => {
+					}).then(res => {	
+						console.log(typeof(res.data.timeStamp));
 						console.log(res);
-						return
+						uni.requestPayment({
+								provider: "wxpay", 
+						       appId:res.data.appId,
+						       timeStamp: res.data.timeStamp,
+						       nonceStr: res.data.nonceStr,
+						       package: res.data.package,
+						       signType: res.data.signType,
+						       paySign: res.data.paySign,
+						    success(res) {
+								uni.showToast({
+									title: '支付成功',
+									mask: true,
+									duration: 2000
+								});
+								setTimeout(function() {
+									uni.hideLoading();
+									// this_.refresh(res.data.data.id)
+								}, 1000);
+							},
+						    fail(e) {
+								console.log(e);
+								uni.showToast({
+									title: "支付失败",
+									icon: 'none',
+									mask: true
+								});
+								setTimeout(function() {
+									uni.hideLoading();
+									// this_.refresh(res.data.id)
+								}, 1000);
+							}
+						})	
+			
 						uni.showToast({
 							title: "提交成功",
 							icon: 'none'

+ 2 - 2
pages/views/personalInformation/index.vue

@@ -19,11 +19,11 @@
 					</u-form-item>
 					<u-form-item label="联系电话" prop="tel" borderBottom>
 						<u-input v-model="form.tel" inputAlign="right" border="none" placeholder="请输入联系电话"
-							disabledColor="#ffffff" disabled />
+							disabledColor="#ffffff"  />
 					</u-form-item>
 					<u-form-item label="省市区" prop="addr" borderBottom @click="selectAddress">
 						<u-input v-model="form.addr" inputAlign="right" border="none" placeholder="请选择省市区"
-							disabledColor="#ffffff" disabled />
+							disabledColor="#ffffff"  />
 					</u-form-item>
 					<u-form-item label="详细地址" prop="details" borderBottom>
 						<u-input v-model="form.details" inputAlign="right" border="none" placeholder="请输入详细地址"

+ 18 - 5
pages/views/salesSlip/index.vue

@@ -4,7 +4,7 @@
 				:current="current" lineColor="#FD4B09" @click="sectionChange"></u-tabs>
 			<view
 				style="background-color: #fff;padding: 8rpx 0rpx;display: flex;justify-content: space-between;align-items: center;">
-				<u-search placeholder="请输入订单号" v-model="form.sysNo" @custom="custom" @search="custom"></u-search>
+				<u-search placeholder="请输入商品名" v-model="cname" @custom="custom" @search="custom"></u-search>
 			</view>
 		</view>
 		<view class="content" style="margin-top: 95px;">
@@ -56,6 +56,7 @@
 		data() {
 			return {
 				current: 0,
+				cname:"",
 				list: [{
 					name: '全部',
 					status: '',
@@ -83,14 +84,14 @@
 						value: 0
 					}
 				}, {
-					name: '已完成',
-					status: '已完成',
+					name: '已收货',
+					status: '已收货',
 					badge: {
 						value: 0
 					}
 				}, {
 					name: '退款售后',
-					status: '退款售后',
+					status: '退款请核,退款中,已取消',
 					badge: {
 						value: 0
 					}
@@ -135,7 +136,7 @@
 			sectionChange(item) {
 				this.current = item.index;
 				this.search = {
-					xcxStatus: this.list[item.index].name == "全部" ? "" : this.list[item.index].name
+					xcxStatus: this.list[item.index].name == "全部" ? "" : this.list[item.index].status
 				}
 				this.page = {
 					total: 0,
@@ -165,6 +166,18 @@
 					uni.hideLoading();
 				})
 			},
+			//搜索
+			custom(){
+				this.page = {
+					total: 0,
+					size: 10,
+					current: 1
+				}
+				this.search = {
+					retrieval:this.cname
+				}
+				this.onSearch()
+			},
 			choice(item, index) {
 				uni.$u.route('/pages/views/salesSlip/orderDetails', {
 					id: item.id

+ 57 - 20
pages/views/salesSlip/obligation.vue

@@ -18,7 +18,7 @@
 						<view class="price" v-for="(ites,inds) in ite.orderItemsList">
 							<view>¥{{ites.price}}</view>
 							<view v-if="!editDel">
-								<u-number-box v-model="ites.goodsNum" :min="1" :max="ites.inventory" buttonSize="40rpx"
+								<u-number-box v-model="ites.goodsNum" :min="1" :max="ites.goodsNum" buttonSize="40rpx"
 									@change="(val)=>{statistics(val,index,ind)}"></u-number-box>
 							</view>
 						</view>
@@ -33,17 +33,12 @@
 		<view style="height: 100rpx;"></view>
 		<view class="submitBar">
 			<view class="bar_view">
-				<view>
-					<u-checkbox-group v-model="radiovalue" placement="column" @change="radioGroupChange">
-						<u-checkbox label="全选" name="全选" activeColor="#FD4B09" shape="circle"></u-checkbox>
-					</u-checkbox-group>
-				</view>
-				<view v-if="!editDel">
+				<view v-if="!editDel" style="margin-left: 300rpx;">
 					<view>总计:¥<text>{{totalPrice}}</text></view>
 					<view style="font-size: 22rpx;color: #FD4B09;">运费:¥{{totalFreight}}</view>
 				</view>
 				<view style="width: 200rpx;">
-					<u-button shape="circle" size="small" text="提交订单" v-if="!editDel"
+					<u-button shape="circle" size="small" text="立即支付" v-if="!editDel"
 						:disabled="this.selectedProduct.length == 0"
 						color="linear-gradient(0deg, #FD5003 0%, #FBA680 100%)" @click="submit"></u-button>
 					<u-button shape="circle" size="small" text="删除" v-else :disabled="this.selectedProduct.length == 0"
@@ -59,6 +54,7 @@
 	import {
 		obligationList,
 		generateOrder,
+		payPrepay,
 		shoppingCartUpdate,
 		getCorpsAddr
 	} from '@/api/tabBar/shoppingCart.js'
@@ -81,6 +77,7 @@ import { logo } from '../../../common/setting'
 		},
 		watch: {
 			companyValue() {
+				
 				if (this.companyValue.length != 0 || this.companyValueLength != 0) {
 					if (this.companyValue.length == this.companyValueLength) {
 						this.radiovalue = ["全选"]
@@ -88,6 +85,15 @@ import { logo } from '../../../common/setting'
 						this.radiovalue = []
 					}
 				}
+				// if (this.companyValue.length > 0) {
+				// 	console.log(21321324);
+
+				// 	// if (this.companyValue.length == this.companyValueLength) {
+				// 	// 	this.radiovalue = ["全选"]
+				// 	// } else {
+				// 	// 	this.radiovalue = []
+				// 	// }
+				// }
 				this.statistics()
 			}
 		},
@@ -184,21 +190,50 @@ import { logo } from '../../../common/setting'
 							if (item == ite.name) {
 								data.push({
 									name: item,
-									list: ite.list
 								})
 							}
 						}
 					}
+					console.log('data',data);
 					uni.showLoading({
 						title: '加载中',
 						mask: true
 					});
-					generateOrder({
-						address: this.addres.belongtoarea + this.addres.detailedAddress,
-						list: data,
-					}).then(res => {
+					payPrepay({srcOrderNo:data[0].name}).then(res => {
 						console.log(res);
-						return
+						uni.requestPayment({
+								provider: "wxpay", 
+						       appId:res.data.appId,
+						       timeStamp: res.data.timeStamp,
+						       nonceStr: res.data.nonceStr,
+						       package: res.data.package,
+						       signType: res.data.signType,
+						       paySign: res.data.paySign,
+						    success(res) {
+								uni.showToast({
+									title: '支付成功',
+									mask: true,
+									duration: 2000
+								});
+								setTimeout(function() {
+									uni.hideLoading();
+									// this_.refresh(res.data.data.id)
+								}, 1000);
+							},
+						    fail(e) {
+								console.log(e);
+								uni.showToast({
+									title: "支付失败",
+									icon: 'none',
+									mask: true
+								});
+								setTimeout(function() {
+									uni.hideLoading();
+									// this_.refresh(res.data.id)
+								}, 1000);
+							}
+						})	
+									
 						uni.showToast({
 							title: "提交成功",
 							icon: 'none'
@@ -210,7 +245,7 @@ import { logo } from '../../../common/setting'
 						});
 						this.editDel = false
 						this.companyValue = []
-						obligationList().then(res => {
+						shoppingCartList().then(res => {
 							this.dataList = res.data
 							this.companyValueLength = this.dataList.length
 							uni.hideLoading();
@@ -249,16 +284,18 @@ import { logo } from '../../../common/setting'
 						}
 					}
 				}
+				console.log(data);
 				this.totalPrice = 0
 				this.totalFreight = 0
 				for (let item of data) {
 					for(let orderItem of item.orderItemsList){
-						this.totalPrice += Number(orderItem.price) * Number(item.goodsNum)
-						console.log(this.totalPrice);
-					}
-					if (Number(item.goodsNum) == 1) {
-						this.totalFreight += 5
+						this.totalPrice += Number(orderItem.price) * Number(orderItem.goodsNum)
+						console.log(orderItem.goodsNum);
+						if (Number(orderItem.goodsNum) == 1) {
+							this.totalFreight += 5
+						}
 					}
+			
 				}
 				this.totalFreight = this.totalFreight.toFixed(2)
 				this.totalPrice = this.totalPrice.toFixed(2)

+ 179 - 37
pages/views/salesSlip/orderDetails.vue

@@ -7,21 +7,21 @@
 						<view slot="icon" style="width: 10rpx;height: 35rpx;background-color: #fd4b09;"></view>
 					</u-cell>
 				</u-cell-group>
-				<view class="textBox">
+				<!-- <view class="textBox">
 					<view>快递公司:</view>
 					<view>{{form.logisticsCorpName || ''}}</view>
 				</view>
 				<view class="textBox">
 					<view>快递单号:</view>
 					<view>{{form.expressNo || ''}}</view>
-				</view>
+				</view> -->
 				<view class="textBox">
 					<view>收货人:</view>
 					<view>{{form.contacts}}</view>
 				</view>
 				<view class="textBox">
 					<view>收货地址:</view>
-					<view>{{form.address || ''}}</view>
+					<view>{{form.recAddress || ''}}</view>
 				</view>
 			</view>
 		</view>
@@ -52,16 +52,19 @@
 					<view slot="icon" style="width: 10rpx;height: 35rpx;background-color: #fd4b09;"></view>
 				</u-cell>
 			</u-cell-group>
-			<u-cell v-for="(item,index) in form.orderItemsList" :key="index" :border="form.orderItemsList.length == Number(index+1)?false:true">
+			<u-cell v-for="(item,index) in form.orderItemsList" :key="index"
+				:border="form.orderItemsList.length == Number(index+1)?false:true">
 				<view slot="label">
 					<u-row>
 						<u-col span="2.9">
-							<u--image :showLoading="true" :src="item.url?item.url:'https://td.echepei.com/file/applets/resources/parts/images/404.png'"
+							<u--image :showLoading="true"
+								:src="item.url?item.url:'https://td.echepei.com/file/applets/resources/parts/images/404.png'"
 								width="150rpx" height="150rpx" radius="10">
 							</u--image>
 						</u-col>
 						<u-col span="9.1">
-							<view style="font-size: 36rpx;width: 500rpx;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
+							<view
+								style="font-size: 36rpx;width: 500rpx;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
 								{{item.goodsName}}
 							</view>
 							<view style="display: flex;justify-content: space-between;">
@@ -76,42 +79,43 @@
 					</u-row>
 				</view>
 			</u-cell>
-		</view>
-		<view class="contentBox">
-			<view style="width: 100%;margin: 0 auto;">
-				<u-cell-group :border="false">
-					<u-cell :border="false" center title="付款信息" arrow-direction="down">
-						<view slot="icon" style="width: 10rpx;height: 35rpx;background-color: #fd4b09;"></view>
-					</u-cell>
-				</u-cell-group>
-				<view class="textBox">
-					<view>已付金额:</view>
-					<view>0.00</view>
-				</view>
-				<view class="textBox">
-					<view>本次付款:</view>
-					<view>0.00</view>
-				</view>
-			</view>
-		</view>
+		</view>
+		<view class="contentBox">
+			<view style="width: 100%;margin: 0 auto;">
+				<u-cell-group :border="false">
+					<u-cell :border="false" center title="付款信息" arrow-direction="down">
+						<view slot="icon" style="width: 10rpx;height: 35rpx;background-color: #fd4b09;"></view>
+					</u-cell>
+				</u-cell-group>
+				<!-- 				<view class="textBox">
+					<view>已付金额:</view>
+					<view>0.00</view>
+				</view> -->
+				<view class="textBox">
+					<view>本次付款:</view>
+					<view>{{form.salesAmount}}</view>
+				</view>
+			</view>
+		</view>
 		<view style="height: 160rpx;"></view>
-		<view style="width: 100%;position: fixed;bottom: 0;background-color: #fff;border-top: 1rpx solid #ccc;padding-bottom: env(safe-area-inset-bottom);z-index: 10;">
+		<view v-if="isDisabled"
+			style="width: 100%;position: fixed;bottom: 0;background-color: #fff;border-top: 1rpx solid #ccc;padding-bottom: env(safe-area-inset-bottom);z-index: 10;">
 			<view style="width: 100%;display: flex;font-size: 24rpx;height: 80rpx;">
+				<view @click="requestRefund" v-if="!form.status == '已收货'"
+					style="width: 50%;display: grid;background-color: #b3b3b3;justify-items: center;height: 100%;align-items: center;">
+					<!-- <u-icon name="close" color="#fff"></u-icon> -->
+					<view style="color: #fff;">申请退款</view>
+				</view>
 				<view @click="orderClosing"
-					style="width: 50%;background-color: #b3b3b3;display: grid;justify-items: center;height: 100%;">
-					<u-icon name="close" color="#fff"></u-icon>
-					<view style="color: #fff;">取消订单</view>
+					style="width: 100%;background-color: #FD4B09;display: grid;justify-items: center;height: 100%;align-items: center;">
+					<!-- <u-icon name="close" color="#fff"></u-icon> -->
+					<view style="color: #fff;">{{order}}</view>
 				</view>
-				<!-- <view @click="confirmReceipt"
-					style="width: 50%;background-color: #FD4B09;display: grid;justify-items: center;height: 100%;">
-					<u-icon name="checkmark" color="#fff"></u-icon>
-					<view style="color: #fff;">立即支付</view>
-				</view> -->
-				<view @click="confirmReceipt"
+				<!-- 				<view @click="confirmReceipt"
 					style="width: 50%;background-color: #FD4B09;display: grid;justify-items: center;height: 100%;">
 					<u-icon name="checkmark" color="#fff"></u-icon>
 					<view style="color: #fff;">确认收货</view>
-				</view>
+				</view> -->
 				<!-- <view v-if="form.status == 2 || form.status == 3" @click="returnGoods"
 					style="width: 100%;background-color: #FD4B09;display: grid;justify-items: center;height: 100%;">
 					<u-icon name="close" color="#fff"></u-icon>
@@ -139,11 +143,15 @@
 
 <script>
 	import {
-		appDetail
+		appDetail,
+		checkOrder,
+		appUpdate
 	} from '@/api/views/salesSlip/index.js'
 	export default {
 		data() {
 			return {
+				order: "",
+				isDisabled: true,
 				form: {
 					orderItemsList: []
 				}
@@ -154,19 +162,153 @@
 				title: '加载中',
 				mask: true
 			});
+			let _this = this
 			appDetail({
 				id: onLoad.id
 			}).then(res => {
+				console.log(234324324);
 				this.form = res.data
 				console.log(this.form);
+				if (this.form.status == '已发货' ) {
+					_this.isDisabled = true;
+					_this.order = "确认收货";
+				} else if (this.form.status == '录入' || this.form.status == '退款中' || this.form.status == '已取消' ||
+					this.form.status == '退款请核' || this.form.status == '已收货' || this.form.status == '待发货' || this.form.status == '待确认') {
+					_this.order = "申请退款";
+					_this.isDisabled = true;
+				} else {
+					_this.isDisabled = false;
+				}
+
 				uni.hideLoading();
 			}).catch(err => {
 				uni.hideLoading();
 			})
 		},
 		methods: {
-			confirmReceipt(){
+			confirmReceipt() {
 				console.log(1);
+			},
+			//申请退款按钮
+			requestRefund() {
+				let _this = this
+				uni.showModal({
+					title: '提示',
+					content: "确认退款?",
+					success: function(rest) {
+						if (rest.confirm) {
+							uni.showLoading({
+								title: '退款中',
+								mask: true
+							});
+							
+							checkOrder({
+								id: _this.form.id,
+								pageLabel: "销售订单",
+								pageStatus: "this.$store.getters.domSaleStatus",
+								url: "/tirePartsMall/salesManagement/saleOrder/index",
+							}).then(res => {
+								uni.showToast({
+									icon: "none",
+									title: '提交申请成功',
+									mask: true
+								});
+								setTimeout(function() {
+									// appDetail({
+									// 	id: res.data.id
+									// }).then(res => {
+									// 	this.form = res.data
+									// 	console.log(this.form);
+									// }).catch(err => {
+									// 	uni.hideLoading();
+									// })
+									if (res.code == 200) {
+										_this.isDisabled = false
+									}
+									uni.hideLoading();
+								}, 1000);
+							})
+						}
+					}
+				})
+			},
+			orderClosing() {
+				console.log(123);
+				this.requestRefund()
+				return
+				if (this.order == "申请退款") {
+					uni.showLoading({
+						title: '退款中',
+						mask: true
+					});
+					checkOrder({
+						id: this.form.id,
+						pageLabel: "销售订单",
+						pageStatus: "this.$store.getters.domSaleStatus",
+						url: "/tirePartsMall/salesManagement/saleOrder/index",
+					}).then(res => {
+						uni.showToast({
+							icon: "none",
+							title: '提交申请成功',
+							mask: true
+						});
+						let _this = this
+						setTimeout(function() {
+							// appDetail({
+							// 	id: res.data.id
+							// }).then(res => {
+							// 	this.form = res.data
+							// 	console.log(this.form);
+							// }).catch(err => {
+							// 	uni.hideLoading();
+							// })
+							if (res.code == 200) {
+								_this.isDisabled = false
+							}
+							uni.hideLoading();
+						}, 1000);
+					})
+				} else {
+					//确认收货
+					let this_ = this
+					uni.showModal({
+						title: '提示',
+						content: "是否确认收货",
+						success: function(rest) {
+							if (rest.confirm) {
+								// 用户点击了确认按钮
+								uni.showLoading({
+									title: '加载中',
+									mask: true
+								});
+								appUpdate({
+									id: this_.form.id,
+								}).then(res => {
+									uni.showToast({
+										icon: "none",
+										title: '确认收货成功',
+										mask: true
+									});
+									let _this = this
+									setTimeout(function() {
+										// appDetail({
+										// 	id: res.data.id
+										// }).then(res => {
+										// 	this.form = res.data
+										// 	console.log(this.form);
+										// }).catch(err => {
+										// 	uni.hideLoading();
+										// })
+										if (res.code == 200) {
+											this.isDisabled = false
+										}
+										uni.hideLoading();
+									}, 1000);
+								})
+							}
+						}
+					})
+				}
 			}
 		}
 	}