from django.urls import re_path
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView
app_name = 'order'
urlpatterns = [
    re_path(r'^place$', OrderPlaceView.as_view(), name='place'),  # 提交订单页面显示
    re_path(r'^commit$', OrderCommitView.as_view(), name='commit'),  # 订单创建
    re_path(r'^pay$', OrderPayView.as_view(), name='pay'),  # 订单支付
    re_path(r'^check$', CheckPayView.as_view(), name='check'),  # 查询支付交易结果
    re_path(r'^comment/(?P<order_id>.+)$',
            CommentView.as_view(),
            name='comment'),  # 订单评论
]
Exemple #2
0
from django.urls import path, include, re_path
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckOrderView, CommentView

app_name = 'order'
urlpatterns = [
        re_path(r'^place$', OrderPlaceView.as_view(), name='place'),  # 订单提交页面的显示
        re_path(r'^commit$', OrderCommitView.as_view(), name='commit'),  # 订单生成页面
        re_path(r'^pay$', OrderPayView.as_view(), name='pay'),  # 订单支付
        re_path(r'^check$', CheckOrderView.as_view(), name='check'),  # 查询订单支付
        re_path(r'^comment/(?P<order_id>\d+)$', CommentView.as_view(), name='comment'),  # 评论
]
Exemple #3
0

from django.urls import path

from order.views import OrderPlaceView,OrderCommitView, \
    OrderPayView, CheckPayView, CommentView

urlpatterns = [
    # 显示提交页面
    path('place', OrderPlaceView.as_view(), name='place'),
    # 订单创建
    path('commit', OrderCommitView.as_view(), name='commit'),
    # 订单支付
    path('pay', OrderPayView.as_view(), name='pay'),
    # 支付结果
    path('check', CheckPayView.as_view(), name='check'),
    # 评论
    path('comment/<str:order_id>', CommentView.as_view(), name='comment'),

]
Exemple #4
0
from django.conf.urls import url
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, CommentView, OrderBuyPlaceView

urlpatterns = [
    url(r'^place$', OrderPlaceView.as_view(), name='place'),  # 提交订单页面显示
    url(r'^commit$', OrderCommitView.as_view(), name='commit'),  # 提交订单页面显示
    url(r'^pay$', OrderPayView.as_view(), name='pay'),  # 订单支付
    url(r'^check$', OrderCheckView.as_view(), name='check'),  # 获取支付结果
    url(r'^comment/(?P<order_id>.+)$', CommentView.as_view(), name='comment'),  # 订单评论
    url(r'^buy$', OrderBuyPlaceView.as_view(), name='buy'),  # 立即购买
]
Exemple #5
0
from django.conf.urls import url
from order.views import OrderPlaceView,OrderCommitView,OrderCheckView,OrderPayView,CommentView
urlpatterns = [
    url('^place$',OrderPlaceView.as_view(),name='place'), # 订单页面显示
    url('^commit$',OrderCommitView.as_view(),name='commit'), # 订单页面显示
    url('^pay$',OrderPayView.as_view(),name='pay'), # 支付订单
    url('^check$',OrderCheckView.as_view(),name='check'), # 支付清单
    url('^comment/(?P<order_id>.*)$',CommentView.as_view(),name='comment'), # 评论区
]
Exemple #6
0
from django.conf.urls import url
from django.urls import include, path, re_path
# from . import views
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView

app_name = 'order'
urlpatterns = [
    path('place/', OrderPlaceView.as_view(), name='place'),
    path('commit', OrderCommitView.as_view(), name='commit'),
    path('pay', OrderPayView.as_view(), name='pay'),
    path('check', CheckPayView.as_view(), name='check'),
    re_path('comment/(?P<order_id>.*)$', CommentView.as_view(),
            name='comment'),
    # path('comment/<int:order_id>', CommentView.as_view(), name='comment'),
]
Exemple #7
0
from django.conf.urls import url
from apps.order import views
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView
urlpatterns = [
    url(r'^place$', OrderPlaceView.as_view(), name="place"),  # 显示购物车结算页面
    url(r'^commit$', OrderCommitView.as_view(), name="commit"),  # 提交订单
    url(r'^pay$', OrderPayView.as_view(), name="pay"),  # 支付
    url(r'^check$', CheckPayView.as_view(), name="check"),  # 查询支付交易结果
    url(r'^comment/(?P<order_id>\d+)$', CommentView.as_view(), name="comment"),  # 评论
]
Exemple #8
0
#from django.conf.urls import url
from django.urls import path, re_path
from order.views import OrderPlaceView, OrderCommitView, OrderCheckView, OrderPayView, CommentView

urlpatterns = [
    # url(r'^place$', OrderPlaceView.as_view(), name='place'), # 提交订单页面
    # url(r'^commit$', OrderCommitView.as_view(), name='commit'), # 创建订单
    # url(r'^pay$', OrderPayView.as_view(), name='pay'), # 订单支付
    # url(r'^check$', OrderCheckView.as_view(), name='check'), # 订单交易结果
    # url(r'^comment/(?P<order_id>.*)$', CommentView.as_view(), name='comment'), # 订单评论

    path('place/', OrderPlaceView.as_view(), name='place'), # 提交订单页面
    path('commit/', OrderCommitView.as_view(), name='commit'), # 创建订单
    path('pay/', OrderPayView.as_view(), name='pay'), # 订单支付
    path('check/', OrderCheckView.as_view(), name='check'), # 订单交易结果
    re_path('comment/(?P<order_id>.*)/', CommentView.as_view(), name='comment'), # 订单评论
]
Exemple #9
0
from django.urls import path, include
from order.views import OrderPlaceView, OrderCommitView,\
    OrderPayView, CheckPayView, CommentView


app_name = 'order'
urlpatterns = [
    path('place', OrderPlaceView.as_view(), name='place'),
    path('commit', OrderCommitView.as_view(), name='commit'),  # 创建订单
    path('pay', OrderPayView.as_view(), name='pay'),  # 创建订单

    path('check', CheckPayView.as_view(), name='check'),  # 检查订单
    path('comment/<order_id>', CommentView.as_view(), name='comment')  # 检查订单

]
Exemple #10
0
from django.urls import path
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView

urlpatterns = [
    path('place', OrderPlaceView.as_view(), name='place'),  # 提交订单页面显示
    path('commit', OrderCommitView.as_view(), name='commit'),  #订单创建
    path('pay', OrderPayView.as_view(), name='pay'),  # 订单支付
    path('check', CheckPayView.as_view(), name='check'),  # 查询支付交易结果
    path('comment/<int:order_id>', CommentView.as_view(),
         name='comment'),  # 订单评论
]