diff --git a/.gitignore b/.gitignore index 5d630ad2..b95ecdaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /jiuyi2/unpackage /jiuyi/unpackage /jiuyi2/.hbuilderx -/jiuyi/.hbuilderx \ No newline at end of file +/jiuyi/.hbuilderx +unpackage diff --git a/jiuyi2/api/mine.js b/jiuyi2/api/mine.js index 1a0c466f..2f585fea 100644 --- a/jiuyi2/api/mine.js +++ b/jiuyi2/api/mine.js @@ -354,6 +354,7 @@ const mine = { }, /** +<<<<<<< HEAD * 解锁他人评论 * @param {Object} param */ @@ -362,10 +363,23 @@ const mine = { url: `/video/comment/unlockOthersComment`, data: param, method: 'POST', +======= + * 查看已绑定的银行卡列表 + * @param {Object} param + */ + getBankCards(param) { + return util.request({ + url: '/user/bank-cards/getBankCards', + data: param.data, + query: param.query, + method: 'GET', + load: true, +>>>>>>> 0a930aa1702a2566cc55bb62dad90293c20f3b0d }) }, /** +<<<<<<< HEAD * 拉黑 * @param {Object} param */ @@ -374,6 +388,31 @@ const mine = { url: `/video/statistics/block`, data: param, method: 'POST', +======= + * 添加银行卡 + * @param {Object} param + */ + addBankCard(param) { + return util.request({ + url: '/user/bank-cards/addBankCard', + data: param.data, + query: param.query, + method: 'POST', + load: true, + }) + }, + + /** + * 删除银行卡 + * @param {Object} param + */ + deleteBankCard(param) { + return util.request({ + url: '/user/bank-cards/deleteBankCard', + path: param.path, + method: 'DELETE', + load: true, +>>>>>>> 0a930aa1702a2566cc55bb62dad90293c20f3b0d }) }, } diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index cbca85b5..d38f5920 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -6,9 +6,13 @@ const config = { // host: 'h5api', // #endif // #ifndef H5 +<<<<<<< HEAD // host: 'http://91f.xyz:8080', // host: 'https://1a880cd5.r24.cpolar.top/', host: 'http://aere2w.natappfree.cc', +======= + host: 'http://91f.xyz:8080', +>>>>>>> 0a930aa1702a2566cc55bb62dad90293c20f3b0d // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/common/js/util.js b/jiuyi2/common/js/util.js index b82f96e0..62bdca84 100644 --- a/jiuyi2/common/js/util.js +++ b/jiuyi2/common/js/util.js @@ -213,7 +213,7 @@ const util = { responseType: params.responseType || 'text', // 请求成功返回 success: res => { - // console.log('request success', url, res, params.data ? params.data : '') + console.log('request success', url, res, params.data ? params.data : '') // 关闭加载效果 if (params.load) { uni.hideLoading() @@ -224,8 +224,7 @@ const util = { // 登出 util.logout(() => { util.alert('请先登录') - reject(res.data) // 链式回调0 - + reject(res.data) // uni.reLaunch({ // url: '/login/login', // }) @@ -235,7 +234,6 @@ const util = { params.success ? params.success(res.data) : '' // 链式回调 resolve(res.data); - }, // 请求失败返回 fail: res => { @@ -1410,17 +1408,17 @@ const util = { * @param {Function} cb 回调函数 */ finalLogin(param, cb) { - try { - // 登录令牌 - const token = param.data - // 缓存token - uni.setStorageSync('token', token) - - // 开启加载 - uni.showLoading({ - mask: true - }) + // 登录令牌 + const token = param.data + // 缓存token + uni.setStorageSync('token', token) + console.log('set token', token) + // 开启加载 + uni.showLoading({ + mask: true + }) + setTimeout(() => { // 获取用户信息 util.getUserinfo((userinfo) => { // 登录 @@ -1435,9 +1433,7 @@ const util = { // cb ? cb() : '' }) - } catch (ev) { - console.log('finalLogin catch', ev) - } + }, 500) }, // 登录腾讯聊天 diff --git a/jiuyi2/components/shop/productList/productList.vue b/jiuyi2/components/shop/productList/productList.vue index 33cb6680..c786f718 100644 --- a/jiuyi2/components/shop/productList/productList.vue +++ b/jiuyi2/components/shop/productList/productList.vue @@ -57,7 +57,6 @@ // 加载更多列表 function getMoreList() { - console.log('getMoreList', listPrototype) if (listPrototype.total <= listPrototype.data.length) return listPrototype.pageNum++ getList() diff --git a/jiuyi2/pages/index/myTeam.vue b/jiuyi2/pages/index/myTeam.vue index 904c6c3b..1994316e 100644 --- a/jiuyi2/pages/index/myTeam.vue +++ b/jiuyi2/pages/index/myTeam.vue @@ -158,7 +158,10 @@ - {{item.userNickname}}{{item.isShop}} + + {{item.userNickname}} + {{item.sonList.length}} +