上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页
摘要: 在微信小程序中我们需要有一个openid来做临时的‘认证’ 小程序端 <input placeholder="请输入手机号" bindinput="inputPhone" value="{{phone}}"></input> <button open-type="getUserInfo" bindg 阅读全文
posted @ 2019-03-30 19:54 流年中渲染了微笑 阅读(357) 评论(0) 推荐(0) 编辑
摘要: from django.test import TestCase # Create your tests here. # !/usr/bin/env python # -*- coding:utf-8 -*- """ 退款 根据订单号进行退款(需要证书才能操作) 文档https://pay.weix 阅读全文
posted @ 2019-03-29 22:11 流年中渲染了微笑 阅读(552) 评论(0) 推荐(0) 编辑
摘要: django 要加锁 必须先加事物 例子 from rest_framework import exceptionsfrom django.db import transaction def perform_create(self, serializer): with transaction.ato 阅读全文
posted @ 2019-03-17 23:30 流年中渲染了微笑 阅读(106) 评论(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 流年中渲染了微笑 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1. 拍卖专场的接口 url(r'^auction/$', auction.AuctionView.as_view()), class AuctionModelView(serializers.ModelSerializer): status = serializers.CharField(sour 阅读全文
posted @ 2019-03-17 19:00 流年中渲染了微笑 阅读(181) 评论(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 流年中渲染了微笑 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 微信支付的申请 需要有 1. 微信小程序公众平台 2.商户平台账号 最终你有的是 * 小程序的id * 商户号 *商户的key 微信支付的步骤 登陆 获取用户的openid 挑选商品去支付 生成订单(待支付) 用户扫码支付给微信 微信通知自己写的系统 阅读全文
posted @ 2019-03-16 14:33 流年中渲染了微笑 阅读(121) 评论(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 流年中渲染了微笑 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-15 16:42 流年中渲染了微笑 阅读(101) 评论(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 流年中渲染了微笑 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页