Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9b3612e0
authored
Jul 26, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改商品详情领取优惠券/添加默认生产环境商户号/打开sentry
1 parent
7eeaff6d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
api/env/index.js
app.js
packageMall/components/CouponGoods/CouponGoods.js
packageMall/components/CouponGoods/CouponGoods.wxml
project.config.json
api/env/index.js
View file @
9b3612e
import
{
preReleaseAppId
}
from
'~/config'
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
let
index
=
4
let
index
=
3
/**
*
...
...
@@ -109,7 +109,7 @@ const defaultMerchantId = {
ip
:
'44211227'
,
dev
:
'44211227'
,
uat
:
'44210895'
,
prod
:
'
101430
'
,
prod
:
'
44208317
'
,
preRelease
:
'44211283'
}[
target
[
index
]]
...
...
app.js
View file @
9b3612e
// app.js
// 初始化sentry
//
import sentryInit from "~/utils/sentryConfig/sentryInit";
//
sentryInit();
import
sentryInit
from
"~/utils/sentryConfig/sentryInit"
;
sentryInit
();
import
api
from
"./api/index"
;
import
{
router
}
from
"./router/index"
;
// 判断小程序是否需要更新
...
...
packageMall/components/CouponGoods/CouponGoods.js
View file @
9b3612e
...
...
@@ -45,6 +45,7 @@ Component({
*/
methods
:
{
getCoupon
(
e
)
{
return
let
{
merchantId
}
=
wx
.
p
.
storage
.
get
(
'merchant_info'
)
let
{
item
}
=
e
.
currentTarget
.
dataset
wx
.
p
.
wxApi
.
showLoading
(
'领取中...'
)
...
...
packageMall/components/CouponGoods/CouponGoods.wxml
View file @
9b3612e
...
...
@@ -29,7 +29,7 @@
<view class="h4_text drive" wx:if="{{item.couponStatus == 1&&item.effectiveType == 3}}">无期限</view>
</view>
<block wx:if="{{order == 0}}">
<view class="box_btn box_btn_color" bindtap="toDetail" wx:if="{{item.couponStatus == 0&&item.residueAmount >0}}" data-item="{{item}}" bindtap="getCoupon">领取</view>
<view class="box_btn box_btn_color
box_btn_color_grey
" bindtap="toDetail" wx:if="{{item.couponStatus == 0&&item.residueAmount >0}}" data-item="{{item}}" bindtap="getCoupon">领取</view>
<view class="box_btn_color_been_gray " bind:tap="toDetail" wx:elif="{{item.couponStatus != 1&&item.residueAmount ==0}}">已抢光</view>
<view class="box_btn_color_been" bind:tap="toDetail" wx:elif="{{item.couponStatus == 1}}">已领取</view>
<view class="already" wx:if="{{item.couponStatus == 1}}">
...
...
project.config.json
View file @
9b3612e
...
...
@@ -58,6 +58,6 @@
],
"include"
:
[]
},
"appid"
:
"wx
6e40cfb83ce4ffb1
"
,
"appid"
:
"wx
2a9f38eb8e39b823
"
,
"projectname"
:
"hmd"
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment