提交
This commit is contained in:
@@ -17,6 +17,12 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="name_px">
|
||||
<text><span style=" color:red;">*</span>参加培训姓名</text>
|
||||
<view class="name_input">
|
||||
<u--input type="text" v-model="name" placeholder="请输入姓名" clearable></u--input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="order_top common_radius_box color_shandow goods_box pay_box">
|
||||
@@ -223,7 +229,8 @@ export default {
|
||||
color: "#fff",
|
||||
}, ],
|
||||
initData: {}, //积分
|
||||
user: {}
|
||||
user: {},
|
||||
name: '', //姓名
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -377,8 +384,6 @@ export default {
|
||||
this.payType = 4;
|
||||
}
|
||||
});
|
||||
|
||||
console.log('支付是0----',this.selectPayIndex)
|
||||
this.$forceUpdate();
|
||||
} else {
|
||||
this.isDefaultCurrency = false;
|
||||
@@ -387,6 +392,13 @@ export default {
|
||||
},
|
||||
//下单
|
||||
async goBuyJie() {
|
||||
if(!this.name){
|
||||
uni.showToast({
|
||||
title: "培训姓名不能为空",
|
||||
icon: 'none'
|
||||
});
|
||||
return
|
||||
}
|
||||
debounce(async () => {
|
||||
var that = this;
|
||||
let data = {
|
||||
@@ -397,7 +409,8 @@ export default {
|
||||
come: '2',
|
||||
remark: that.options.title,
|
||||
trainingClassId: that.options.id,
|
||||
trainingClassIdentity: that.options.identity +':'+that.options.price
|
||||
trainingClassIdentity: that.options.identity +':'+that.options.price,
|
||||
userName: that.name
|
||||
}
|
||||
|
||||
await $http.request({
|
||||
@@ -1016,4 +1029,26 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.name_px{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
text{
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.name_input{
|
||||
width: 250rpx;
|
||||
}
|
||||
}
|
||||
/deep/.u-input{
|
||||
height: 65rpx;
|
||||
line-height: 65rpx;
|
||||
}
|
||||
/deep/.uni-input-placeholder{
|
||||
font-size: 28rpx;
|
||||
}
|
||||
/deep/.uni-input-input{
|
||||
font-size: 28rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user