cl 6 年之前
父节点
当前提交
aeafe5df3a

+ 34 - 4
pages/predict/predict.vue

@@ -29,14 +29,31 @@
 						<image src="/static/collect.png"></image>
 					</view>
 					<view class="uni-product-content-bottom">
-						<text @tap="writeModal" :data-name="product.name">分数匹配专业</text>
+						<text @tap="writeModal" :data-name="index">分数匹配专业</text>
 						<image src="/static/arrow.png"></image>
 					</view>
 				</view>
 			</view>
 		</view>
 		<neil-modal :show="show" :title="modaltitle" :show-cancel="false" @close="changeshow">
-
+			<view class="">
+				<view class="table-head">
+					<text>专业</text>
+					<text>平均分</text>
+					<text>最低分</text>
+					<text>省控线</text>
+					<text>录取人数</text>
+					<text>录取批次</text>
+				</view>
+				<view class="table-body">
+					<text>XXX</text>
+					<text>{{modalscore}}</text>
+					<text>{{modalmin}}</text>
+					<text>XXX</text>
+					<text>XXX</text>
+					<text>{{modallevel}}</text>
+				</view>
+			</view>
 		</neil-modal>
 	</view>
 
@@ -48,11 +65,13 @@
 	import ChooseLits from '../../components/choose-Cade/choose-Cade.vue';
 	import neilModal from '@/components/neil-modal/neil-modal.vue';
 
-
 	export default {
 		data() {
 			return {
 				modaltitle: '',
+				modalscore: '',
+				modalmin: '',
+				modallevel: '',
 				show: false,
 				// showdetail:false,
 				list: ['录取概率', '所在地', '高校层次', '批次', '2017'],
@@ -75,7 +94,10 @@
 		methods: {
 			writeModal(e) {
 				console.log(this.show);
-				var thistitle = e.currentTarget.dataset.name;
+				var thistitle = this.data[e.currentTarget.dataset.name].name;
+				this.modalscore = this.data[e.currentTarget.dataset.name].maxSco;
+				this.modalmin = this.data[e.currentTarget.dataset.name].minSco;
+				this.modallevel = this.data[e.currentTarget.dataset.name].level;
 				this.show = true;
 				// this.show = !this.show;
 				this.modaltitle = thistitle + '-专业列表2017';
@@ -163,6 +185,14 @@
 		color: #808080;
 	}
 
+	.table-head , .table-body{
+		margin: auto;
+		display: flex;
+		justify-content: space-between;
+		padding-left: 20rpx;
+		padding-right: 20rpx;
+	}
+
 	.uni-product-list {
 		background-color: #F8F8F8;
 		font-size: 35rpx;

文件差异内容过多而无法显示
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/predict/predict.js.map


+ 1 - 1
unpackage/dist/dev/mp-weixin/app.json

@@ -38,5 +38,5 @@
     ]
   },
   "usingComponents": {},
-  "sitemapLocation": "sitemap89.json"
+  "sitemapLocation": "sitemap29.json"
 }

+ 23 - 1
unpackage/dist/dev/mp-weixin/pages/predict/predict.js

@@ -156,10 +156,29 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
 
 
 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 {
   data: function data() {
     return {
       modaltitle: '',
+      modalscore: '',
+      modalmin: '',
+      modallevel: '',
       show: false,
       // showdetail:false,
       list: ['录取概率', '所在地', '高校层次', '批次', '2017'],
@@ -182,7 +201,10 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
   methods: {
     writeModal: function writeModal(e) {
       console.log(this.show);
-      var thistitle = e.currentTarget.dataset.name;
+      var thistitle = this.data[e.currentTarget.dataset.name].name;
+      this.modalscore = this.data[e.currentTarget.dataset.name].maxSco;
+      this.modalmin = this.data[e.currentTarget.dataset.name].minSco;
+      this.modallevel = this.data[e.currentTarget.dataset.name].level;
       this.show = true;
       // this.show = !this.show;
       this.modaltitle = thistitle + '-专业列表2017';

文件差异内容过多而无法显示
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/predict/predict.wxml