Tang 4 yıl önce
ebeveyn
işleme
8c00cf63d4
3 değiştirilmiş dosya ile 13 ekleme ve 5 silme
  1. 2 2
      common/request.js
  2. 2 2
      pages2/bank/detail.vue
  3. 9 1
      pages2/plan/create.vue

+ 2 - 2
common/request.js

@@ -1,8 +1,8 @@
 
 
-const BASE_URL = 'http://192.168.1.222:8088'
+// const BASE_URL = 'http://192.168.1.222:8088'
  // const BASE_URL = 'https://api.xyyxt.net' 
  // const BASE_URL = 'https://api.xyyxt.net' 
 // const BASE_URL = 'http://127.0.0.1:8088' 
 // const BASE_URL = 'http://127.0.0.1:8088' 
-// const BASE_URL = 'https://api.xyyxt.net'  //
+const BASE_URL = 'https://api.xyyxt.net' 
 import store from '@/store/index.js'
 import store from '@/store/index.js'
 import api from './api.js'
 import api from './api.js'
 var num = 1
 var num = 1

+ 2 - 2
pages2/bank/detail.vue

@@ -194,10 +194,10 @@
 					<image :src="collecStatus ? '/static/star.png' : '/static/sc.png'" class="sc"></image>
 					<image :src="collecStatus ? '/static/star.png' : '/static/sc.png'" class="sc"></image>
 					<view class="sc_t">收藏</view>
 					<view class="sc_t">收藏</view>
 				</view>
 				</view>
-				<view class="buy" v-if="payStatus === 1" @click="buyTK">
+				<view class="buy" v-if="payStatus === 0" @click="buyTK">
 					立即购买
 					立即购买
 				</view>
 				</view>
-				<view class="buy" v-if="payStatus === 0" @click="jumpExam">模拟考试</view>
+				<view class="buy" v-if="payStatus === 1" @click="jumpExam">模拟考试</view>
 			</view>
 			</view>
 		</view>
 		</view>
 		<u-popup v-model="showBox" mode="bottom" border-radius="14">
 		<u-popup v-model="showBox" mode="bottom" border-radius="14">

+ 9 - 1
pages2/plan/create.vue

@@ -91,7 +91,7 @@ export default {
 				time: '20:30',
 				time: '20:30',
 				startDate: '2021-05-07',
 				startDate: '2021-05-07',
 				endDate: '2021-05-31',
 				endDate: '2021-05-31',
-				week: '一,三,五'
+				week: '一、三、五'
 			},
 			},
 			calendar: 'range',
 			calendar: 'range',
 			list: [],
 			list: [],
@@ -166,6 +166,14 @@ export default {
 				});
 				});
 				return;
 				return;
 			}
 			}
+			// if (this.form.week == '请选择') {
+			// 	uni.showModal({
+			// 		title: '提示',
+			// 		content: '请选择学习频率',
+			// 		showCancel: false
+			// 	});
+			// 	return;
+			// }
 			let courseId = [];
 			let courseId = [];
 			for (let i = 0; i < this.list.length; i++) {
 			for (let i = 0; i < this.list.length; i++) {
 				courseId.push(this.list[i].courseId);
 				courseId.push(this.list[i].courseId);