Esempio n. 1
0
from django.conf.urls import url
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'),  # 订单评论
]
Esempio n. 2
0
from django.conf.urls import url
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>.+)$', CommentView.as_view(),
        name="comment")  # 订单评论
]
Esempio n. 3
0
from django.contrib import admin
from django.urls import path, include
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView

urlpatterns = [
    path("place_order", 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("check/<int:order_id>", CheckPayView.as_view(),
         name="check"),  # 查询支付交易结果【测试】
    path("comment/<int:order_id>", CommentView.as_view(),
         name="comment"),  # 查询支付交易结果
]
Esempio n. 4
0
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'),  # 订单评论
]
Esempio n. 5
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/(?P<order_id>.+)', CommentView.as_view(),
         name='comment'),  # 订单评论
]
Esempio n. 6
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'),  # 评论
]
Esempio n. 7
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'),

]
Esempio n. 8
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'),  # 立即购买
]
Esempio n. 9
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'), # 评论区
]
Esempio n. 10
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'),
]
Esempio n. 11
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"),  # 评论
]
Esempio n. 12
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'), # 订单评论
]
Esempio n. 13
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')  # 检查订单

]
Esempio n. 14
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'),  # 订单评论
]