第一次提交
This commit is contained in:
5
app.js
5
app.js
@@ -16,7 +16,10 @@ App({
|
|||||||
iv:'',
|
iv:'',
|
||||||
code:'',
|
code:'',
|
||||||
|
|
||||||
url:'http://chengjie468.gnway.cc',
|
|
||||||
|
// url:'http://chengjie468.gnway.cc:9090',
|
||||||
|
url:'https://35q45673j2.goho.co',
|
||||||
|
|
||||||
|
|
||||||
phone:'',
|
phone:'',
|
||||||
uid:'',
|
uid:'',
|
||||||
|
|||||||
@@ -378,21 +378,29 @@ isok(){
|
|||||||
var _this=this;
|
var _this=this;
|
||||||
console.log(this.data.id+'tttttttttttttttttttttttttttttttttt')
|
console.log(this.data.id+'tttttttttttttttttttttttttttttttttt')
|
||||||
wx.request({
|
wx.request({
|
||||||
url: app.globalData.url + '/app/Goddesswechat/buyGoods',
|
url: app.globalData.url + '/system/weixinPay/12345678',
|
||||||
data: {
|
header: app.getRequestHeader(),
|
||||||
version_number: app.globalData.version_number,
|
method: 'GET',
|
||||||
uid: wx.getStorageSync('uid'),
|
data: {
|
||||||
token:wx.getStorageSync('token'),
|
|
||||||
goods_id:this.data.goods_id,
|
},
|
||||||
order_id:this.data.order_id,
|
|
||||||
tg_order:''
|
// url: app.globalData.url + '/system/weixinPay/123',
|
||||||
},
|
// header: app.getRequestHeader(),
|
||||||
method: 'POST',
|
// data: {
|
||||||
header: { 'content-type': 'application/x-www-form-urlencoded' },
|
// version_number: app.globalData.version_number,
|
||||||
|
// uid: wx.getStorageSync('uid'),
|
||||||
|
// token:wx.getStorageSync('token'),
|
||||||
|
// goods_id:this.data.goods_id,
|
||||||
|
// order_id:this.data.order_id,
|
||||||
|
// tg_order:''
|
||||||
|
// },
|
||||||
|
//method: 'POST',
|
||||||
|
// header: { 'content-type': 'application/x-www-form-urlencoded' },
|
||||||
success(res) {
|
success(res) {
|
||||||
console.log(1111111)
|
console.log(1111111)
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.data.erro == 0) {
|
if (res.data.code == 200) {
|
||||||
|
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: res.data.data.timeStamp,
|
timeStamp: res.data.data.timeStamp,
|
||||||
|
|||||||
Reference in New Issue
Block a user