Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文虎
account-book
Commits
d0a2fcd2
Commit
d0a2fcd2
authored
Sep 05, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 隐藏兑换码
parent
79a39890
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
25 deletions
+46
-25
pay.js
api/mine/pay.js
+10
-0
pay.vue
pages/mine/pay/pay.vue
+36
-22
user-setting.vue
pages/mine/user-setting/user-setting.vue
+0
-3
No files found.
api/mine/pay.js
View file @
d0a2fcd2
...
@@ -25,3 +25,13 @@ export async function experienceVip(data) {
...
@@ -25,3 +25,13 @@ export async function experienceVip(data) {
noLoading
:
true
noLoading
:
true
})
})
}
}
// 新增更新名片
export
async
function
systemExchange
(
data
)
{
return
request
({
url
:
`/rest/system/exchange`
,
method
:
'GET'
,
data
,
noLoading
:
true
})
}
pages/mine/pay/pay.vue
View file @
d0a2fcd2
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<u-icon
name=
"arrow-right"
:size=
"24"
/>
<u-icon
name=
"arrow-right"
:size=
"24"
/>
</view>
</view>
</view>
</view>
<view
class=
"service-view"
v-if=
"
cdKeySetting
"
>
<view
class=
"service-view"
v-if=
"
showCDKey
"
>
<view
class=
"service-left-image"
>
<view
class=
"service-left-image"
>
<image
class=
"warning-image-b"
:src=
"huiyuan1Img"
/>
<image
class=
"warning-image-b"
:src=
"huiyuan1Img"
/>
<text>
会员兑换码
</text>
<text>
会员兑换码
</text>
...
@@ -101,7 +101,7 @@ import log from '@/utils/log.js';
...
@@ -101,7 +101,7 @@ import log from '@/utils/log.js';
import
BottomPay
from
'@/components/bottom-pay/index.vue'
;
import
BottomPay
from
'@/components/bottom-pay/index.vue'
;
import
{
mineBaseUrl
}
from
'@/utils/config.js'
;
import
{
mineBaseUrl
}
from
'@/utils/config.js'
;
import
{
introOptions
}
from
'@/utils/options/mine/pay.js'
;
import
{
introOptions
}
from
'@/utils/options/mine/pay.js'
;
import
{
getGoodsList
,
getOrderInfo
}
from
'@/api/mine/pay.js'
;
import
{
getGoodsList
,
getOrderInfo
,
systemExchange
}
from
'@/api/mine/pay.js'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
mapGetters
}
from
'vuex'
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -117,12 +117,13 @@ export default {
...
@@ -117,12 +117,13 @@ export default {
uid
:
''
,
uid
:
''
,
showPayBottom
:
false
,
showPayBottom
:
false
,
current
:
0
,
current
:
0
,
iap
:
''
iap
:
''
,
showCDKey
:
false
};
};
},
},
computed
:
{
computed
:
{
// 'restoreFlag'
// 'restoreFlag'
...
mapGetters
([
'userInfo'
,
'platform'
,
'loginChannel'
,
'authType'
,
'isIOS'
,
'cdKeySetting'
]),
...
mapGetters
([
'userInfo'
,
'platform'
,
'loginChannel'
,
'authType'
,
'isIOS'
]),
hidePay
()
{
hidePay
()
{
// return this.platform === '4' ? false : this.isIOS;
// return this.platform === '4' ? false : this.isIOS;
return
false
;
return
false
;
...
@@ -155,6 +156,7 @@ export default {
...
@@ -155,6 +156,7 @@ export default {
}
}
this
.
uid
=
this
.
userInfo
.
uid
this
.
uid
=
this
.
userInfo
.
uid
this
.
loadProducts
()
this
.
loadProducts
()
this
.
getShowCDKey
()
},
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
...
@@ -167,11 +169,11 @@ export default {
...
@@ -167,11 +169,11 @@ export default {
*/
*/
onShow
()
{
onShow
()
{
// 点分享进入小程序
// 点分享进入小程序
let
fUid
=
uni
.
getStorageSync
(
'fUid'
);
//
let fUid = uni.getStorageSync('fUid');
if
(
fUid
)
{
//
if (fUid) {
this
.
addShare
(
fUid
);
//
this.addShare(fUid);
}
//
}
},
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
...
@@ -658,22 +660,34 @@ export default {
...
@@ -658,22 +660,34 @@ export default {
);
);
},
},
addShare
(
uid
)
{
// addShare(uid) {
api
.
request
(
'user/add-share'
,
{
// api.request('user/add-share', {
method
:
'post'
,
// method: 'post',
data
:
{
// data: {
uid
:
uid
// uid: uid
},
// },
success
(
res
)
{
// success(res) {
if
(
res
.
status
)
{
// if (res.status) {
//保存分享关系完成,并删除分享者id
// //保存分享关系完成,并删除分享者id
uni
.
removeStorageSync
(
'fUid'
);
// uni.removeStorageSync('fUid');
}
else
{
// } else {
}
// }
// }
// });
// },
getShowCDKey
()
{
var
{
appWgtVersion
}
=
uni
.
getSystemInfoSync
()
if
(
this
.
platform
==
'4'
&&
this
.
isIOS
)
{
systemExchange
({
version
:
appWgtVersion
})
.
then
(
res
=>
{
this
.
showCDKey
=
res
.
data
})
.
catch
(
res
=>
{
});
}
}
});
},
},
handleService
()
{
handleService
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
animationType
:
'pop-in'
,
animationType
:
'pop-in'
,
...
...
pages/mine/user-setting/user-setting.vue
View file @
d0a2fcd2
...
@@ -65,9 +65,6 @@ export default {
...
@@ -65,9 +65,6 @@ export default {
avatar
()
{
avatar
()
{
return
this
.
mineBaseUrl
+
'toxuiang@3x.png'
;
return
this
.
mineBaseUrl
+
'toxuiang@3x.png'
;
},
},
isIOS
()
{
return
uni
.
getSystemInfoSync
().
platform
===
"ios"
||
1
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getQiniuToken
();
this
.
getQiniuToken
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment