Commit 9b3612e0 by 杨北旺

修改商品详情领取优惠券/添加默认生产环境商户号/打开sentry

1 parent 7eeaff6d
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
// 初始化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";
// 判断小程序是否需要更新
......
......@@ -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('领取中...')
......
......@@ -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}}">
......
......@@ -58,6 +58,6 @@
],
"include": []
},
"appid": "wx6e40cfb83ce4ffb1",
"appid": "wx2a9f38eb8e39b823",
"projectname": "hmd"
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!