|
@@ -14,15 +14,18 @@ Page({
|
|
|
this.getList()
|
|
|
},
|
|
|
clickBut(e) {
|
|
|
- wx.showToast({
|
|
|
+ this.data.classList.length >= 2 ? wx.showToast({
|
|
|
title: '请选择订单领域(订单只允许同品牌/同领域的商品)',
|
|
|
icon: "none",
|
|
|
duration: 3000
|
|
|
- })
|
|
|
+ }) : this.handleSubmit(0);
|
|
|
},
|
|
|
/* 提交 */
|
|
|
submit(e) {
|
|
|
- let data = this.data.classList[e.detail.value];
|
|
|
+ this.handleSubmit(e.detail.value)
|
|
|
+ },
|
|
|
+ handleSubmit(index) {
|
|
|
+ let data = this.data.classList[index];
|
|
|
_Http.basic({
|
|
|
"id": 20221128183202,
|
|
|
"content": {
|