quanwei
18 hours ago c441dea81bd86bdfb12dff35821fed51f4cc91c2
mobile/pages/order/cashier.vue
@@ -29,6 +29,16 @@
            <switch :color="getTheme()" style="transform:scale(0.7);margin-right: -20rpx;" :checked="balanceType"
               @change="switch2Change" />
         </view>
         <view v-if="hasActivation" class="item">
            <view class="d-s-c">
               <view class="icon-box d-c-c mr10"><span style="color: #1774ff;font-size: 50rpx;" class="icon iconfont icon-erweima"></span></view>
               <view class="key d-c-c">
                  激活码抵扣:
                  <input class="ml20 f32 flex-1 p10" style="border: 1px solid #999999 ;" name="activation_code" type="text" v-model="activation_code" placeholder-class="grary9"
                   placeholder="请输入激活码" />
                </view>
            </view>
         </view>
      </view>
      <view class="bottom-btn" @click="submit">
         <button type="default">立即支付</button>
@@ -59,6 +69,7 @@
            payPrice: '',
            orderSn:'',
            payData: [], // 半屏小程序相关
            activation_code:'',//激活码
            isFirst: false,
         }
         
@@ -76,6 +87,17 @@
            }
         },
         hasActivation() {
            if (this.order_type == 30) {
               return false
            }
            let n = this.checkedPay.indexOf(50);
            if (n == -1) {
               return false
            } else {
               return true
            }
         },
      },
      onLoad(e) {
@@ -252,6 +274,7 @@
               pay_source: self.getPlatform(),
               payType: self.pay_type,
               use_balance: use_balance,
               activation_code:self.activation_code
            }
            self._post(url, params,