第一次提交

This commit is contained in:
2023-03-01 22:50:02 +08:00
parent 21c2eced33
commit 9e433c75a8
2 changed files with 24 additions and 13 deletions

5
app.js
View File

@@ -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:'',

View File

@@ -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,