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