Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
zhiliang-light-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
70f2b522
authored
2020-03-10 17:00:14 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
510aba1a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
src/config.js
src/pages/index/index.js
src/pages/index/index.wxml
src/config.js
View file @
70f2b52
...
...
@@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index');
const
APPID
=
''
/** ====每次发布版本记得修改此环境配置==== */
const
ENV
=
'
Dev
'
;
// Dev Prod
const
ENV
=
'
Prod
'
;
// Dev Prod
const
NET_CONFIG
=
ENV_CONFIG
[
ENV
];
const
MOCKAPI
=
ENV_CONFIG
.
mockApi
;
...
...
src/pages/index/index.js
View file @
70f2b52
...
...
@@ -257,10 +257,13 @@ Page({
data
:
{}
}).
then
((
result
)
=>
{
console
.
log
(
"result:"
,
result
);
_this
.
queryMember
().
then
((
result
)
=>
{
wx
.
showModal
({
content
:
'兑换成功'
,
showCancel
:
false
,
success
(
res
)
{}
})
}).
catch
((
err
)
=>
{});
}).
catch
((
err
)
=>
{
if
(
err
.
code
==
1002
)
{
_this
.
setData
({
...
...
@@ -492,7 +495,7 @@ Page({
this
.
setData
({
authorizeVisible
:
false
,
productDetailVisible
:
false
,
signTipsCompVisible
:
false
,
signTipsCompVisible
:
false
,
})
},
// 子组件事件
...
...
src/pages/index/index.wxml
View file @
70f2b52
...
...
@@ -14,7 +14,7 @@
<view class="data">
<view class="data-item" bindtap="onCashExchangeHanler">
<view class="data-item-t1">
{{userInfo
&&userInfo.memberPoints
? filter.Fen2Yuan(userInfo.memberPoints) + '元' : '-' }}
{{userInfo ? filter.Fen2Yuan(userInfo.memberPoints) + '元' : '-' }}
</view>
<view class="data-item-t2">奖金兑换</view>
</view>
...
...
Please
register
or
sign in
to post a comment