Esempio n. 1
0
from django.urls import path, re_path
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, OrderCommentView

urlpatterns = [
    path('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$', OrderCheckView.as_view(), name='check'),  # 订单结果查询
    re_path(r'^comment/(?P<order_id>.+)$', OrderCommentView.as_view(), name='comment')  # 订单评论
]
Esempio n. 2
0
File: urls.py Progetto: chen-tl/Web
from django.conf.urls import url
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, OrderCommentView

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>.+)$',
        OrderCommentView.as_view(),
        name='comment'),
]
from django.urls import path, re_path
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, OrderCommentView

urlpatterns = [
    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>[0-9]+)',
            OrderCommentView.as_view(),
            name='comment'),
]
Esempio n. 4
0
from django.urls import path
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView

urlpatterns = [
    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'),  # 订单支付结果查询
]
Esempio n. 5
0
from django.contrib import admin
from django.urls import path, include
from order.views import OrderPlaceView, OrderCommitView, OrderCheckView, OrderPayView

urlpatterns = [
    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='pay')
]
Esempio n. 6
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. 7
0
from django.conf.urls import url
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, OrderCommentView

urlpatterns = [
    # Examples:
    # url(r'^$', 'dailyfresh.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    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>\d+)$',
        OrderCommentView.as_view(),
        name='comment'),
]
Esempio n. 8
0
from django.conf.urls import url
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView
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'),  # 订单查询页面
]
Esempio n. 9
0
from django.conf.urls import url, include

from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView

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"),  # 订单详情
]