diff --git a/common/config.js b/common/config.js
index 9ac30f6..1bfbe82 100644
--- a/common/config.js
+++ b/common/config.js
@@ -54,6 +54,7 @@ class ConfigManager {
isLoading = true;
loadPromise = new Promise((resolve, reject) => {
+
RequestManager.get('config')
.then(res => {
if (res.status === 1 && res.data) {
diff --git a/common/request.js b/common/request.js
index e187605..87ad740 100644
--- a/common/request.js
+++ b/common/request.js
@@ -7,6 +7,24 @@ import EnvConfig from '@/common/env.js'
import md5 from 'js-md5'
class RequestManager {
+ /**
+ * 判断URL是否在白名单中
+ * @param {String} url 请求地址
+ * @returns {Boolean} 是否在白名单中
+ */
+ static isUrlInWhitelist(url) {
+ // 白名单URL列表
+ const whitelistUrls = [
+ 'login_record',
+ 'api/warehouse_index',
+ 'api/user',
+ 'api/warehouse_send_record'
+ ]
+
+ // 检查URL是否包含白名单中的任一项
+ return whitelistUrls.some(whiteItem => url.indexOf(whiteItem) > -1)
+ }
+
/**
* 发送网络请求
* @param {Object} param 请求参数
@@ -21,7 +39,7 @@ class RequestManager {
* @returns {Promise} 返回请求Promise
*/
static request(param, backpage, backtype) {
-
+
return new Promise((resolve, reject) => {
// 参数检查
if (!param || typeof param !== 'object') {
@@ -189,7 +207,8 @@ class RequestManager {
}
}
console.log(requestUrl);
- if (requestUrl.indexOf('login_record') > -1) {
+ if (RequestManager.isUrlInWhitelist(requestUrl)) {
+
reject(res.data)
return;
}
diff --git a/components/detail-preview-popup/detail-preview-popup.vue b/components/detail-preview-popup/detail-preview-popup.vue
index 4427e8e..a6a31ea 100644
--- a/components/detail-preview-popup/detail-preview-popup.vue
+++ b/components/detail-preview-popup/detail-preview-popup.vue
@@ -33,7 +33,7 @@
-
diff --git a/manifest.json b/manifest.json
index b329af1..a72e50a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "友达赏",
- "appid" : "__UNI__2E6CB39",
+ "appid" : "__UNI__0BC0425",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 101,
diff --git a/pages/sangdai/sangdai.vue b/pages/sangdai/sangdai.vue
index a7fc626..fba10f3 100644
--- a/pages/sangdai/sangdai.vue
+++ b/pages/sangdai/sangdai.vue
@@ -9,7 +9,7 @@
+ :class="tabCur == i ? 'act' : 'unact'" @click="tabChange(i)">
{{ item.title }}
@@ -29,7 +29,7 @@
+ :class="subTabCur == i ? 'act' : 'unact'" @click="subTabChange(i)">
{{ item.title }}
@@ -79,7 +79,7 @@
+ :style="{ backgroundColor: getBgColor(a.shang_title), color: getTextColor(a.shang_title) }">
{{ a.shang_title }}
{{ a.prize_num }}
@@ -88,9 +88,9 @@
{{ a.goodslist_title }}
{{
- a.goodslist_money * 1 > 0
- ? `可分解:${a.goodslist_money}`
- : `不可分解`
+ a.goodslist_money * 1 > 0
+ ? `可分解:${a.goodslist_money}`
+ : `不可分解`
}}
@@ -121,7 +121,7 @@
{{ a.prize_num }}
- 已发货
+ 已发货
@@ -150,7 +150,7 @@
- 达达券
发货
上锁
@@ -179,7 +179,7 @@
-
+
{{ item.chooseNum }}
@@ -188,14 +188,14 @@
-
+
- 共{{nowChooseNum}}
+ 共{{ nowChooseNum }}
件物品,合计兑换
- {{totalChangeMoney}}
+ {{ totalChangeMoney }}
{{ this.$config.getAppSetting('currency2_name') }}
@@ -250,7 +250,7 @@
{{ addData.provinceName }}-{{ addData.cityName }}-{{
- addData.countyName
+ addData.countyName
}}-{{ addData.detailInfo }}
@@ -263,9 +263,9 @@
{{
- nowChooseNum >= freightData.free_post
- ? '包邮'
- : `¥${freightData.post_money}`
+ nowChooseNum >= freightData.free_post
+ ? '包邮'
+ : `¥${freightData.post_money}`
}}
@@ -320,7 +320,7 @@
- 恭喜您成功兑换,获得{{zhanshiMoney}} {{ this.$config.getAppSetting('currency2_name') }}
+ 恭喜您成功兑换,获得{{ zhanshiMoney }} {{ this.$config.getAppSetting('currency2_name') }}
@@ -336,533 +336,534 @@
\ No newline at end of file
diff --git a/pages/user/login.vue b/pages/user/login.vue
index 86ac9fb..bbc1b52 100644
--- a/pages/user/login.vue
+++ b/pages/user/login.vue
@@ -7,7 +7,7 @@
申请获取以下权限
- 获得你的公开信息(昵称,头像、地区等)
+ 获得你的公开信息