上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页
摘要: django 要加锁 必须先加事物 例子 from rest_framework import exceptionsfrom django.db import transaction def perform_create(self, serializer): with transaction.ato 阅读全文
posted @ 2019-03-17 23:30 流年中渲染了微笑 阅读(115) 评论(0) 推荐(0)
摘要: 最后看出价的代码就是总代码 1. 查看竞价和出价是一个url url(r'^bid/$', bid.BidView.as_view()), 获取url传过来的值 是 重写 get_queryset """竞价""" from app01 import models from rest_framewo 阅读全文
posted @ 2019-03-17 23:23 流年中渲染了微笑 阅读(130) 评论(0) 推荐(0)
摘要: 1. 拍卖专场的接口 url(r'^auction/$', auction.AuctionView.as_view()), class AuctionModelView(serializers.ModelSerializer): status = serializers.CharField(sour 阅读全文
posted @ 2019-03-17 19:00 流年中渲染了微笑 阅读(204) 评论(0) 推荐(0)
摘要: 小程序支付官网 统一下单API官网 再次签名 小程序前端页面 <radio-group bindchange="changeGoods"> <view class='row'wx:for="{{goodList}}" wx:key="index"> <text>{{item.title}}-{{it 阅读全文
posted @ 2019-03-17 13:06 流年中渲染了微笑 阅读(291) 评论(0) 推荐(0)
摘要: 微信支付的申请 需要有 1. 微信小程序公众平台 2.商户平台账号 最终你有的是 * 小程序的id * 商户号 *商户的key 微信支付的步骤 登陆 获取用户的openid 挑选商品去支付 生成订单(待支付) 用户扫码支付给微信 微信通知自己写的系统 阅读全文
posted @ 2019-03-16 14:33 流年中渲染了微笑 阅读(133) 评论(0) 推荐(0)
摘要: 后端api url(r'^favor/', news.FavorView.as_view()), class FavorModelSerializer(serializers.ModelSerializer): class Meta: model = models.NewsFavorRecord f 阅读全文
posted @ 2019-03-15 22:07 流年中渲染了微笑 阅读(181) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-03-15 16:42 流年中渲染了微笑 阅读(107) 评论(0) 推荐(0)
摘要: 1. 随便找一个目录【比如component】 2.在component里创建一个文件夹 代码我们用的是官方的 https://developers.weixin.qq.com/s/jiSARvmF7i55 把代码复制到我们新建的tabbar中[包括js,wxml,json,wxss] 3. 全局的 阅读全文
posted @ 2019-03-15 16:01 流年中渲染了微笑 阅读(169) 评论(0) 推荐(0)
摘要: 1. 首页点瀑布流中的一个 进入详细页 在详细页的onLoad里向后端发送请求 2. 后端api 一 详细页面的展示 1. onLoad // 在首页页面的代码 <navigator url="/pages/newsDetail/newsDetail?newsId={{item.id}}"><ima 阅读全文
posted @ 2019-03-14 21:09 流年中渲染了微笑 阅读(235) 评论(0) 推荐(0)
摘要: 前端【首页】页面 思路 1.初始化数据2.下拉刷新数据3.上翻页刷新数据4.瀑布流 在wxss中 falls <!-- 上面四幅图 --> <view class="menu"> <view class="item" wx:for="{{menuList}}" wx:key="index"> <im 阅读全文
posted @ 2019-03-11 22:25 流年中渲染了微笑 阅读(733) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页