diff --git a/App.vue b/App.vue
index 234226b..52a8170 100644
--- a/App.vue
+++ b/App.vue
@@ -6,6 +6,8 @@ export default {
recentNativeData: 0 // 初始化一个全局变量
},
onLaunch: function (options) {
+
+ console.log=()=>{}
// === wgt 包启动诊断日志 ===
console.log('=== App Launch 开始 ===')
console.log('启动参数:', JSON.stringify(options))
diff --git a/components/exchange/exchange.vue b/components/exchange/exchange.vue
new file mode 100644
index 0000000..e86aa39
--- /dev/null
+++ b/components/exchange/exchange.vue
@@ -0,0 +1,215 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 兑换
+
+
+
+
+ {{couponVip.exchange_name}}
+
+
+ {{couponVip.exchange_value}}
+
+
+ 截至日期:{{couponVip.expire_time}}
+
+
+ 兑换
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/common/recharge/index.vue b/pages/common/recharge/index.vue
index ec108e1..6b1f8ba 100644
--- a/pages/common/recharge/index.vue
+++ b/pages/common/recharge/index.vue
@@ -4,10 +4,11 @@
+
-
+
diff --git a/static/image/recharge/closeE.png b/static/image/recharge/closeE.png
new file mode 100644
index 0000000..542b13c
Binary files /dev/null and b/static/image/recharge/closeE.png differ
diff --git a/static/image/recharge/exchange.png b/static/image/recharge/exchange.png
new file mode 100644
index 0000000..e86d787
Binary files /dev/null and b/static/image/recharge/exchange.png differ
diff --git a/static/image/recharge/qmj/bannar.png b/static/image/recharge/qmj/bannar.png
index 742cdf0..1472437 100644
Binary files a/static/image/recharge/qmj/bannar.png and b/static/image/recharge/qmj/bannar.png differ
diff --git a/static/image/recharge/rightBtnImg.png b/static/image/recharge/rightBtnImg.png
new file mode 100644
index 0000000..2485694
Binary files /dev/null and b/static/image/recharge/rightBtnImg.png differ
diff --git a/utils/requests.js b/utils/requests.js
index 7be274b..c090312 100644
--- a/utils/requests.js
+++ b/utils/requests.js
@@ -27,7 +27,7 @@ function encodeParam(data) {
let keys = Object.keys(params);
keys.forEach(res => {
if ((params[res] && params[res] != "") || params[res] === 0) {
- if (typeof (params[res]) != 'string' && typeof (params[res]) != 'number') {
+ if (typeof(params[res]) != 'string' && typeof(params[res]) != 'number') {
params[res] = 'Object';
}
url += "&";
@@ -107,7 +107,7 @@ function generateUUID() {
var d = new Date().getTime();
var uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
/[xy]/g,
- function (c) {
+ function(c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3) | 0x8).toString(16);
@@ -185,7 +185,7 @@ const request = (method = 'GET', serverUrl, domainUrl, params, dataType = "json"
console.log("传参详情", data)
return new Promise((resolve, reject) => {
uni.request(data).then(res => {
- console.log(deCode(res.data.data))
+ console.log(deCode(res.data.data))
if (res.statusCode == 200) {
if (res.data.encrypt) {
if (q != 'test') {
@@ -195,6 +195,7 @@ const request = (method = 'GET', serverUrl, domainUrl, params, dataType = "json"
}
}
+ console.log(res.data)
if (res.data.code == 1001003 || res.data.code == 1001004 || res.data.code == 1001005) {
uni.hideLoading();
uni.showToast({
@@ -248,7 +249,7 @@ const request = (method = 'GET', serverUrl, domainUrl, params, dataType = "json"
}
})
}
-
+ console.log(123)
resolve(res.data);
} else {
// InnerApp.addRequestLog(url, data, res)
@@ -271,20 +272,7 @@ const request = (method = 'GET', serverUrl, domainUrl, params, dataType = "json"
err: JSON.stringify(err)
}
})
- // uni.showModal({
- // title: '提示',
- // content: JSON.stringify(err),
- // success: function (res) {
- // if (res.confirm) {
- // console.log('用户点击确定');
- // } else if (res.cancel) {
- // console.log('用户点击取消');
- // }
- // }
- // });
- // uniToast('服务器繁忙');
}
- // InnerApp.addRequestLog(url, data, err)
reject(err);
});
});