|
|
|
@ -198,7 +198,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { productCategoryList, delCart } from '@/apis/modules/product.js' |
|
|
|
|
import { productTypeList, delCart } from '@/apis/modules/product.js' |
|
|
|
|
import { queryCustomer, queryCustomerDetails } from '@/apis/modules/client.js' |
|
|
|
|
import { add, getDetail, renew, queryCitySettlementPrice, getOrderOtherTime } from '@/apis/modules/order.js' |
|
|
|
|
import { getPartnerTeamRates } from '@/apis/modules/parner.js' |
|
|
|
@ -378,11 +378,11 @@ |
|
|
|
|
handleProduct(list) { |
|
|
|
|
let courses = {} |
|
|
|
|
// 产品分类 |
|
|
|
|
productCategoryList().then(res => { |
|
|
|
|
res.classificationList.forEach(e => { |
|
|
|
|
courses['list' + this.$util.getOrderType(e.classificationId)] = { |
|
|
|
|
productTypeList().then(res => { |
|
|
|
|
res.typeList.forEach(e => { |
|
|
|
|
courses['list' + e.typeId] = { |
|
|
|
|
shrink: false, |
|
|
|
|
name: e.classificationName, |
|
|
|
|
name: e.typeName, |
|
|
|
|
deadline: '', |
|
|
|
|
unit: 2, |
|
|
|
|
list: [] |
|
|
|
@ -407,7 +407,7 @@ |
|
|
|
|
e.options = 1 |
|
|
|
|
this.calcDate(e, !e.authority) |
|
|
|
|
} |
|
|
|
|
courses['list' + e.authority].list.push(e) |
|
|
|
|
courses['list' + e.typeId].list.push(e) |
|
|
|
|
}) |
|
|
|
|
this.courseList = courses |
|
|
|
|
}).catch(e => {}) |
|
|
|
@ -829,7 +829,7 @@ |
|
|
|
|
// 消息推送授权 |
|
|
|
|
publicNotice() { |
|
|
|
|
uni.requestSubscribeMessage({ |
|
|
|
|
tmplIds: ['8pDVfWYqh9c-nn3CeA1NXJtBxdd1FYiCtrl5BeLvbgU'], |
|
|
|
|
tmplIds: ['8pDVfWYqh9c-nn3CeA1NXJtBxdd1FYiCtrl5BeLvbgU', 'mg3RiI8tDNaChVQKjImXzYK63C5Il3BENfBwF0NDzDM'], |
|
|
|
|
success: (res) => { |
|
|
|
|
uni.switchTab({ |
|
|
|
|
url: '/pages/orders/orders' |
|
|
|
|