|
@@ -125,7 +125,7 @@ var couponTem = {
|
|
|
<div class="handle-btn">
|
|
|
<div v-if="config.type == 'dataExport'" id="previewButton" class="btn-item btn-default" @click="previewFn">预览数据</div>
|
|
|
<div v-if="config.type == 'vip-update'" id="cancelButton" class="btn-item btn-default" @click="cancelFn">取 消</div>
|
|
|
- <button type="button" class="btn-item btn-primary" id="submitButton" :disabled="submitStatus" @click="submitFn">@@btnText@@</button>
|
|
|
+ <button type="button" :data-cl-event="confirmButtonEventAttr" class="btn-item btn-primary" id="submitButton" :disabled="submitStatus" @click="submitFn">@@btnText@@</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="order-service">
|
|
@@ -142,6 +142,13 @@ var couponTem = {
|
|
|
this.$emit('mounted')
|
|
|
},
|
|
|
computed: {
|
|
|
+ isWeiXinBrowser: function () {
|
|
|
+ return navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
|
|
|
+ },
|
|
|
+ confirmButtonEventAttr: function () {
|
|
|
+ var platform = this.isWeiXinBrowser ? 'wx' : 'app'
|
|
|
+ return `c_${platform}_buy_buttonclick`
|
|
|
+ },
|
|
|
couponTypeTipClass: function () {
|
|
|
if (this.coupon.type === '折扣券') {
|
|
|
return 'discount'
|