caichengyu 8 months ago
parent
commit
3d15a0cac4
2 changed files with 27 additions and 1 deletions
  1. 7 0
      common/httpList/order.js
  2. 20 1
      pages2/appointment/index.vue

+ 7 - 0
common/httpList/order.js

@@ -123,5 +123,12 @@ export default {
 			method: 'get',
 			data: data
 		})
+	},
+	subscribesaveoffline(data) {
+		return myRequest({
+			url: '/user/subscribe/save/offline',
+			method: 'post',
+			data: data
+		})
 	}
 }

+ 20 - 1
pages2/appointment/index.vue

@@ -77,7 +77,8 @@
         </view>
         <view class="btn">
           <view class="btn1 cancel" @click="showTip = false">知道了</view>
-          <view class="btn1 submit" @click="submit">马上缴费</view>
+          <view class="btn1 submit" @click="submit">线上缴费</view>
+          <view class="btn1 cancel" @click="submitunder">线下申请</view>
         </view>
       </view>
     </u-popup>
@@ -232,6 +233,24 @@ export default {
         });
       }
     },
+	submitunder(){
+		this.$api
+		  .subscribesaveoffline({
+		    appId: this.applyId,
+		    orderGoodsId: this.orderGoodsId,
+		  })
+		  .then((res) => {
+			  this.showTip=false;
+			  console.log(res)
+		      uni.showModal({
+		        content:res.data.code === 200?'申请成功,请等待管理员审核': res.data.msg,
+		        showCancel: false,
+		        complete: () => {
+		        	uni.navigateBack();
+		        }
+		      });
+		  });
+	},
   },
 };
 </script>