Feat(订单):增加订阅消息
This commit is contained in:
@@ -12,7 +12,14 @@ const settings = {
|
||||
/* 系统接口前缀,没有统一的填空字符串 */
|
||||
sysPrefix: '/',
|
||||
/* 是否收集错误日志 */
|
||||
collectRequestError: false
|
||||
collectRequestError: false,
|
||||
/* 订阅消息模板ID */
|
||||
SubscribeMessageTmplIds: [
|
||||
'7O3wKw7_D4t7yfSOlvecKuOQP8QEPY88uBx2FJg43HE',
|
||||
'TSmTnGibZ8IxWCiRWOvLxha6-0u7tE-V1-WbDCiPkKU',
|
||||
'9Q6xLHe6HyjkU5Zn5k_2zxYPf2y4MxVyUbOSW8pcZRU',
|
||||
'v0GegDmzjpqiinmdj7dOwRK1MaTAPVyCOpqn8hJ3Y3Q'
|
||||
]
|
||||
}
|
||||
|
||||
export default settings
|
||||
|
||||
@@ -625,6 +625,7 @@ import Loading from "@/components/Loading"
|
||||
import Payment from "@/components/Payment"
|
||||
import { mapGetters } from "vuex"
|
||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
import settings from '@/config/baseSetting.js'
|
||||
|
||||
export default {
|
||||
name: "MyOrder",
|
||||
@@ -1033,11 +1034,7 @@ export default {
|
||||
subscribePay(order) {
|
||||
this.orderInfo = order
|
||||
uni.requestSubscribeMessage({
|
||||
tmplIds: [
|
||||
'7O3wKw7_D4t7yfSOlvecKuOQP8QEPY88uBx2FJg43HE',
|
||||
'TSmTnGibZ8IxWCiRWOvLxha6-0u7tE-V1-WbDCiPkKU',
|
||||
'9Q6xLHe6HyjkU5Zn5k_2zxYPf2y4MxVyUbOSW8pcZRU'
|
||||
],
|
||||
tmplIds: settings.SubscribeMessageTmplIds,
|
||||
complete: () => this.pay = true
|
||||
})
|
||||
},
|
||||
|
||||
@@ -330,6 +330,7 @@ import uniPopup from '@/components/uni-popup/uni-popup.vue'
|
||||
import CouponsPopup from "@/components/CouponsPopup.vue"
|
||||
import { getDrawTicketByOrder } from '@/api/lottery'
|
||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
import settings from '@/config/baseSetting.js'
|
||||
|
||||
const NAME = "OrderSubmission"
|
||||
const _isWeixin = isWeixin()
|
||||
@@ -601,11 +602,7 @@ export default {
|
||||
},
|
||||
subscribePay() {
|
||||
uni.requestSubscribeMessage({
|
||||
tmplIds: [
|
||||
'7O3wKw7_D4t7yfSOlvecKuOQP8QEPY88uBx2FJg43HE',
|
||||
'TSmTnGibZ8IxWCiRWOvLxha6-0u7tE-V1-WbDCiPkKU',
|
||||
'9Q6xLHe6HyjkU5Zn5k_2zxYPf2y4MxVyUbOSW8pcZRU'
|
||||
],
|
||||
tmplIds: settings.SubscribeMessageTmplIds,
|
||||
complete: () => this.createOrder(false)
|
||||
})
|
||||
},
|
||||
|
||||
@@ -638,6 +638,7 @@ import {mapGetters} from "vuex";
|
||||
import {cancelOrderHandle, delOrderHandle, payOrderHandle, takeOrderHandle, yuePayOrderHandle} from "@/libs/order";
|
||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
// import {postCartAdd} from "@/api/store";
|
||||
import settings from '@/config/baseSetting.js'
|
||||
|
||||
const STATUS = [
|
||||
"待付款",
|
||||
@@ -1071,7 +1072,7 @@ export default {
|
||||
},
|
||||
subscribePay() {
|
||||
uni.requestSubscribeMessage({
|
||||
tmplIds: ['7O3wKw7_D4t7yfSOlvecKuOQP8QEPY88uBx2FJg43HE', 'TSmTnGibZ8IxWCiRWOvLxha6-0u7tE-V1-WbDCiPkKU', '9Q6xLHe6HyjkU5Zn5k_2zxYPf2y4MxVyUbOSW8pcZRU'],
|
||||
tmplIds: settings.SubscribeMessageTmplIds,
|
||||
complete: () => this.pay = true
|
||||
})
|
||||
},
|
||||
|
||||
@@ -138,6 +138,7 @@ import {weappPay} from "@/libs/wechat"
|
||||
import blPaymentPasswordInput from '@/components/blPaymentPasswordInput.vue'
|
||||
import {mapGetters} from "vuex"
|
||||
import passkeyborad from '@/components/yzc-paykeyboard/yzc-paykeyboard'
|
||||
import settings from '@/config/baseSetting.js'
|
||||
export default {
|
||||
name: 'SubmitOrder',
|
||||
mixins: [buyMixins],
|
||||
@@ -399,11 +400,7 @@ export default {
|
||||
},
|
||||
subscribePay() {
|
||||
uni.requestSubscribeMessage({
|
||||
tmplIds: [
|
||||
'7O3wKw7_D4t7yfSOlvecKuOQP8QEPY88uBx2FJg43HE',
|
||||
'TSmTnGibZ8IxWCiRWOvLxha6-0u7tE-V1-WbDCiPkKU',
|
||||
'9Q6xLHe6HyjkU5Zn5k_2zxYPf2y4MxVyUbOSW8pcZRU'
|
||||
],
|
||||
tmplIds: settings.SubscribeMessageTmplIds,
|
||||
complete: () => this.createOrder(false)
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user