修改配置文件
This commit is contained in:
		
							parent
							
								
									91175cb3d7
								
							
						
					
					
						commit
						e150f9584b
					
				| 
						 | 
				
			
			@ -41,7 +41,7 @@ const install = (Vue, vm) => {
 | 
			
		|||
		// 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的
 | 
			
		||||
		// 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值
 | 
			
		||||
		// const token = uni.getStorageSync('token');
 | 
			
		||||
		const token = "	Bearer a75c44e23b7740c48740c95ae3b7b427"
 | 
			
		||||
		const token = "	Bearer 6ecfb3a42c3d43b3b950c6e911e46223"
 | 
			
		||||
		// console.log("我是token", token)
 | 
			
		||||
		config.header.Authorization = token; 
 | 
			
		||||
		// config.header.Tenant-Id=1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										133
									
								
								pages.json
									
									
									
									
									
								
							
							
						
						
									
										133
									
								
								pages.json
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -43,69 +43,7 @@
 | 
			
		|||
				"navigationStyle": "custom"
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"path" : "pages_teacher/teacher_class/class_detail",
 | 
			
		||||
			"style" : 
 | 
			
		||||
			{
 | 
			
		||||
				"navigationBarTitleText": "班级详情",
 | 
			
		||||
				"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
				"enablePullDownRefresh": false,
 | 
			
		||||
				"navigationStyle": "custom"
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"path" : "pages_teacher/pages_add/add_operation",
 | 
			
		||||
			"style" : 
 | 
			
		||||
			{
 | 
			
		||||
				"navigationBarTitleText": "添加听力",
 | 
			
		||||
				"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
				"enablePullDownRefresh": false,
 | 
			
		||||
				"navigationStyle": "custom"
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"path":"pages_teacher/teacher_teachers/teacher_addOperation",
 | 
			
		||||
			"style" : 
 | 
			
		||||
			{
 | 
			
		||||
				"navigationBarTitleText": "添加作业",
 | 
			
		||||
				"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
				"enablePullDownRefresh": false,
 | 
			
		||||
				"navigationStyle": "custom"
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
			
 | 
			
		||||
		{
 | 
			
		||||
			"path":"pages_teacher/teacher_teachers/teacher_speechadd",
 | 
			
		||||
			"style" : 
 | 
			
		||||
			{
 | 
			
		||||
				"navigationBarTitleText": "添加口语",
 | 
			
		||||
				"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
				"enablePullDownRefresh": false,
 | 
			
		||||
				"navigationStyle": "custom"
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"path":"pages_teacher/teacher_teachers/teacher_writeadd",
 | 
			
		||||
			"style" : 
 | 
			
		||||
			{
 | 
			
		||||
				"navigationBarTitleText": "添加写作",
 | 
			
		||||
				"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
				"enablePullDownRefresh": false,
 | 
			
		||||
				"navigationStyle": "custom"
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"path":"pages_teacher/teacher_teachers/operation_detail",
 | 
			
		||||
			"style" : 
 | 
			
		||||
			{
 | 
			
		||||
				"navigationBarTitleText": "作业详情",
 | 
			
		||||
				"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
				"enablePullDownRefresh": false,
 | 
			
		||||
				"navigationStyle": "custom"
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
		},
 | 
			
		||||
	
 | 
			
		||||
		{
 | 
			
		||||
			
 | 
			
		||||
			
 | 
			
		||||
| 
						 | 
				
			
			@ -190,6 +128,73 @@
 | 
			
		|||
			}
 | 
			
		||||
		}
 | 
			
		||||
	],
 | 
			
		||||
	  "subPackages": [
 | 
			
		||||
	  		{
 | 
			
		||||
				"root": "pages_teacher",
 | 
			
		||||
	  			"pages": [
 | 
			
		||||
					{
 | 
			
		||||
						"path":"teacher_teachers/teacher_writeadd",
 | 
			
		||||
						"style" : 
 | 
			
		||||
						{
 | 
			
		||||
							"navigationBarTitleText": "添加写作",
 | 
			
		||||
							"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
							"enablePullDownRefresh": false,
 | 
			
		||||
							"navigationStyle": "custom"
 | 
			
		||||
						}
 | 
			
		||||
						
 | 
			
		||||
					},
 | 
			
		||||
					{
 | 
			
		||||
						"path":"teacher_teachers/operation_detail",
 | 
			
		||||
						"style" : 
 | 
			
		||||
						{
 | 
			
		||||
							"navigationBarTitleText": "作业详情",
 | 
			
		||||
							"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
							"enablePullDownRefresh": false,
 | 
			
		||||
							"navigationStyle": "custom"
 | 
			
		||||
						}
 | 
			
		||||
						
 | 
			
		||||
					},
 | 
			
		||||
					{
 | 
			
		||||
						"path":"teacher_teachers/teacher_addOperation",
 | 
			
		||||
						"style" : 
 | 
			
		||||
						{
 | 
			
		||||
							"navigationBarTitleText": "添加作业",
 | 
			
		||||
							"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
							"enablePullDownRefresh": false,
 | 
			
		||||
							"navigationStyle": "custom"
 | 
			
		||||
						}
 | 
			
		||||
					},
 | 
			
		||||
					{
 | 
			
		||||
						"path" : "pages_add/add_operation",
 | 
			
		||||
						"style" : 
 | 
			
		||||
						{
 | 
			
		||||
							"navigationBarTitleText": "添加听力",
 | 
			
		||||
							"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
							"enablePullDownRefresh": false,
 | 
			
		||||
							"navigationStyle": "custom"
 | 
			
		||||
						}
 | 
			
		||||
					},
 | 
			
		||||
					{
 | 
			
		||||
						"path" : "teacher_class/class_detail",
 | 
			
		||||
						"style" : 
 | 
			
		||||
						{
 | 
			
		||||
							"navigationBarTitleText": "班级详情",
 | 
			
		||||
							"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
							"enablePullDownRefresh": false,
 | 
			
		||||
							"navigationStyle": "custom"
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
	  				
 | 
			
		||||
	  			]
 | 
			
		||||
	  		}
 | 
			
		||||
	  		
 | 
			
		||||
	  		
 | 
			
		||||
	  		
 | 
			
		||||
	  		
 | 
			
		||||
	  		
 | 
			
		||||
	
 | 
			
		||||
	  		
 | 
			
		||||
	  	],
 | 
			
		||||
	"globalStyle": {
 | 
			
		||||
		"navigationBarTextStyle": "black",
 | 
			
		||||
		"navigationBarTitleText": "uni-app",
 | 
			
		||||
| 
						 | 
				
			
			@ -197,5 +202,7 @@
 | 
			
		|||
		"backgroundColor": "#F8F8F8"
 | 
			
		||||
	},
 | 
			
		||||
	"uniIdRouter": {}
 | 
			
		||||
	
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,127 +19,7 @@
 | 
			
		|||
				</swiper-item>
 | 
			
		||||
				<!-- 写作 -->
 | 
			
		||||
				<swiper-item>
 | 
			
		||||
					<view v-for="(item,index) in Compose" :key="item.id">
 | 
			
		||||
						<view class="view_bages">
 | 
			
		||||
							<view class="lelts">{{item.examName}}</view>
 | 
			
		||||
							<text class="Bags active" @click="upType(index,1)">test1</text>
 | 
			
		||||
							<text class="Bags" @click="upType(index,2)">test2</text>
 | 
			
		||||
							<text class="Bags" @click="upType(index,3)">test3</text>
 | 
			
		||||
							<text class="Bags" @click="upType(index,4)">test4</text>
 | 
			
		||||
						</view>
 | 
			
		||||
						<view class="view_fff" v-if="listType[index]===1">
 | 
			
		||||
							<view class="view_Do">
 | 
			
		||||
								<view class="view_English">
 | 
			
		||||
									<view class="Task">
 | 
			
		||||
										Test 1
 | 
			
		||||
									</view>
 | 
			
		||||
									<view class="grizzly">曲线图</view>
 | 
			
		||||
									<view class="yellow">政府</view>
 | 
			
		||||
								</view>
 | 
			
		||||
 | 
			
		||||
								<view class="view_pushbutton">
 | 
			
		||||
 | 
			
		||||
								</view>
 | 
			
		||||
							</view>
 | 
			
		||||
							<view class="view_Do">
 | 
			
		||||
								<view class="view_English">
 | 
			
		||||
									<view class="Task">
 | 
			
		||||
										Test 1
 | 
			
		||||
									</view>
 | 
			
		||||
									<view class="grizzly">曲线图</view>
 | 
			
		||||
									<view class="yellow">政府</view>
 | 
			
		||||
								</view>
 | 
			
		||||
 | 
			
		||||
								<view class="view_pushbutton" @click="addIdList()">
 | 
			
		||||
 | 
			
		||||
								</view>
 | 
			
		||||
							</view>
 | 
			
		||||
						</view>
 | 
			
		||||
						<view class="view_fff" v-else-if="listType[index]===2">
 | 
			
		||||
							<view class="view_Do">
 | 
			
		||||
								<view class="view_English">
 | 
			
		||||
									<view class="Task">
 | 
			
		||||
										Test 2
 | 
			
		||||
									</view>
 | 
			
		||||
									<view class="grizzly">曲线图</view>
 | 
			
		||||
									<view class="yellow">政府</view>
 | 
			
		||||
								</view>
 | 
			
		||||
 | 
			
		||||
								<view class="view_pushbutton">
 | 
			
		||||
 | 
			
		||||
								</view>
 | 
			
		||||
							</view>
 | 
			
		||||
							<view class="view_Do">
 | 
			
		||||
								<view class="view_English">
 | 
			
		||||
									<view class="Task">
 | 
			
		||||
										Test 2
 | 
			
		||||
									</view>
 | 
			
		||||
									<view class="grizzly">曲线图</view>
 | 
			
		||||
									<view class="yellow">政府</view>
 | 
			
		||||
								</view>
 | 
			
		||||
 | 
			
		||||
								<view class="view_pushbutton">
 | 
			
		||||
 | 
			
		||||
								</view>
 | 
			
		||||
							</view>
 | 
			
		||||
						</view>
 | 
			
		||||
						<view class="view_fff" v-else-if="listType[index]===3">
 | 
			
		||||
							<view class="view_Do">
 | 
			
		||||
								<view class="view_English">
 | 
			
		||||
									<view class="Task">
 | 
			
		||||
										Test 3
 | 
			
		||||
									</view>
 | 
			
		||||
									<view class="grizzly">曲线图</view>
 | 
			
		||||
									<view class="yellow">政府</view>
 | 
			
		||||
								</view>
 | 
			
		||||
 | 
			
		||||
								<view class="view_pushbutton">
 | 
			
		||||
 | 
			
		||||
								</view>
 | 
			
		||||
							</view>
 | 
			
		||||
							<view class="view_Do">
 | 
			
		||||
								<view class="view_English">
 | 
			
		||||
									<view class="Task">
 | 
			
		||||
										Test 3
 | 
			
		||||
									</view>
 | 
			
		||||
									<view class="grizzly">曲线图</view>
 | 
			
		||||
									<view class="yellow">政府</view>
 | 
			
		||||
								</view>
 | 
			
		||||
 | 
			
		||||
								<view class="view_pushbutton">
 | 
			
		||||
 | 
			
		||||
								</view>
 | 
			
		||||
							</view>
 | 
			
		||||
						</view>
 | 
			
		||||
						<view class="view_fff" v-else-if="listType[index]===4">
 | 
			
		||||
							<view class="view_Do">
 | 
			
		||||
								<view class="view_English">
 | 
			
		||||
									<view class="Task">
 | 
			
		||||
										Test 4
 | 
			
		||||
									</view>
 | 
			
		||||
									<view class="grizzly">曲线图</view>
 | 
			
		||||
									<view class="yellow">政府</view>
 | 
			
		||||
								</view>
 | 
			
		||||
 | 
			
		||||
								<view class="view_pushbutton">
 | 
			
		||||
 | 
			
		||||
								</view>
 | 
			
		||||
							</view>
 | 
			
		||||
							<view class="view_Do">
 | 
			
		||||
								<view class="view_English">
 | 
			
		||||
									<view class="Task">
 | 
			
		||||
										Test 4
 | 
			
		||||
									</view>
 | 
			
		||||
									<view class="grizzly">曲线图</view>
 | 
			
		||||
									<view class="yellow">政府</view>
 | 
			
		||||
								</view>
 | 
			
		||||
 | 
			
		||||
								<view class="view_pushbutton">
 | 
			
		||||
 | 
			
		||||
								</view>
 | 
			
		||||
							</view>
 | 
			
		||||
						</view>
 | 
			
		||||
					</view>
 | 
			
		||||
					<compose></compose>
 | 
			
		||||
				</swiper-item>
 | 
			
		||||
				<!--听力  -->
 | 
			
		||||
				<swiper-item>
 | 
			
		||||
| 
						 | 
				
			
			@ -166,6 +46,7 @@
 | 
			
		|||
	import audiology from './components/audiology.vue'
 | 
			
		||||
	import reading from './components/reading.vue'
 | 
			
		||||
	import slander from './components/slander.vue'
 | 
			
		||||
	import compose from './components/compose.vue'
 | 
			
		||||
	export default {
 | 
			
		||||
		data() {
 | 
			
		||||
			return {
 | 
			
		||||
| 
						 | 
				
			
			@ -187,40 +68,25 @@
 | 
			
		|||
					name: '1',
 | 
			
		||||
					disabled: false
 | 
			
		||||
				}],
 | 
			
		||||
				// 写作
 | 
			
		||||
				Compose: [],
 | 
			
		||||
				num:0,
 | 
			
		||||
				// 下拉框的v-if布尔值
 | 
			
		||||
				radioValue: '',
 | 
			
		||||
				part1: true,
 | 
			
		||||
				current: 0,
 | 
			
		||||
				search: true,
 | 
			
		||||
				listType: [],
 | 
			
		||||
				idList: [],
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		components:{
 | 
			
		||||
			audiology,
 | 
			
		||||
			reading,
 | 
			
		||||
			slander
 | 
			
		||||
			slander,
 | 
			
		||||
			compose
 | 
			
		||||
		},
 | 
			
		||||
		methods: {
 | 
			
		||||
			upType(index, num) {
 | 
			
		||||
				this.listType.splice(index, 1, num)
 | 
			
		||||
			},
 | 
			
		||||
			change(index) {
 | 
			
		||||
				this.current = index;
 | 
			
		||||
			},
 | 
			
		||||
			//写作接口
 | 
			
		||||
			// getCompose() {
 | 
			
		||||
			// 	this.$u.post('https://api.admin-v2.langsi.online/admin-api/speaking/topic/home/list').then(res => {
 | 
			
		||||
			// 		this.Compose = res.data
 | 
			
		||||
			// 		console.log(this.Compose)
 | 
			
		||||
			// 		for (let i = 0; i < res.data.length; i++) {
 | 
			
		||||
			// 			this.listType.push(1)
 | 
			
		||||
			// 		}
 | 
			
		||||
			// 	})
 | 
			
		||||
			// },
 | 
			
		||||
			// 选中某个单选框时,由radio时触发
 | 
			
		||||
			radioCheck(index) {
 | 
			
		||||
				if (this.radioValue == this.list2[index].id) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user