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