|
@@ -120,16 +120,37 @@
|
|
shoppingCartList: [],
|
|
shoppingCartList: [],
|
|
shoppingAllChecked: false,
|
|
shoppingAllChecked: false,
|
|
totalMoney: 0,
|
|
totalMoney: 0,
|
|
- studentId: ''
|
|
|
|
|
|
+ studentId: '',
|
|
|
|
+ studentName: '',
|
|
|
|
+ phone: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onReady() {
|
|
onReady() {
|
|
if(this.carhelp.getNsStudentId()) {
|
|
if(this.carhelp.getNsStudentId()) {
|
|
this.studentId = this.carhelp.getNsStudentId().studentId;
|
|
this.studentId = this.carhelp.getNsStudentId().studentId;
|
|
this.getshoppingCarList();
|
|
this.getshoppingCarList();
|
|
|
|
+ this.getStudentDetail();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getStudentDetail() {
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title: "加载中",
|
|
|
|
+ mask: true,
|
|
|
|
+ })
|
|
|
|
+ mineApi.getStudentDtl({
|
|
|
|
+ studentId: this.studentId
|
|
|
|
+ }).then((response) => {
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ this.studentName = response.data.studentName;
|
|
|
|
+ this.phone = response.data.phone;
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: error,
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getshoppingCarList() {
|
|
getshoppingCarList() {
|
|
this.shoppingCartList = [];
|
|
this.shoppingCartList = [];
|
|
|
|
|
|
@@ -196,6 +217,9 @@
|
|
courseAmount: this.shoppingCartList[i].nsCoursePackage.courseAmount,
|
|
courseAmount: this.shoppingCartList[i].nsCoursePackage.courseAmount,
|
|
unitPrice: this.shoppingCartList[i].nsCoursePackage.unitPrice,
|
|
unitPrice: this.shoppingCartList[i].nsCoursePackage.unitPrice,
|
|
waterElectricityAmount: this.shoppingCartList[i].nsCoursePackage.waterElectricityAmount,
|
|
waterElectricityAmount: this.shoppingCartList[i].nsCoursePackage.waterElectricityAmount,
|
|
|
|
+ studentId: this.studentId,
|
|
|
|
+ studentName: this.studentName,
|
|
|
|
+ phone: this.phone
|
|
});
|
|
});
|
|
idList.push(this.shoppingCartList[i].id);
|
|
idList.push(this.shoppingCartList[i].id);
|
|
}
|
|
}
|