zhaojs
2023-07-31 49edf3b5b18597aacc3c05529712fbbe9720a805
pages/takeout/mt.vue
@@ -28,6 +28,7 @@
         <view v-if="qrcode" class="code-btn" @click="shareClick()">
            领红包点外卖
         </view>
      </view>
      <view class="rulesContent">
@@ -35,25 +36,25 @@
            规则说明:
         </view>
         <view class="richtext-content">
            1.此活动为部分区域有效,以活动页面实际展示为准;红包发放数量及红包金额具有随机性;具体红包使用有效期及红包金额以实际收到为准
            2.红包使用规则:
            (1)红包使用门槛、使用期限及使用规则等以红包券面展示信息为准;
            (2)红包可在美团或美团外卖最新版客户端、美团外卖小程序下单且选择在线支付时使用;且红包仅限非到店自取外卖订单,下午茶、夜宵、美食、蛋糕、团餐频道、甜点
            饮品频道使用;
            (3)外卖新人首单红包限新用户(设备、手机号、 红包
            号均未在美团外卖下过单)首次下单使用,且不与其他优惠(首减、满减、满赠、套餐增、折扣菜)同享;非首单红包可与上述优惠叠加使用;
            <view>1.此活动为部分区域有效,以活动页面实际展示为准;红包发放数量及红包金额具有随机性;具体红包使用有效期及红包金额以实际收到为准</view>
            <view>2.红包使用规则:</view>
            <view>(1)红包使用门槛、使用期限及使用规则等以红包券面展示信息为准;</view>
            <view>(2)红包可在美团或美团外卖最新版客户端、美团外卖小程序下单且选择在线支付时使用;且红包仅限非到店自取外卖订单,下午茶、夜宵、美食、蛋糕、团餐频道、甜点
            饮品频道使用;</view>
            <view>(3)外卖新人首单红包限新用户(设备、手机号、红包、号均未在美团外卖下过单)首次下单使用,且不与其他优惠(首减、满减、满赠、套餐增、折扣菜)同享;非首单红包可与上述优惠叠加使用;</view>
         </view>
      </view>
   </view>
</template>
<script>
   import './mt.css'
   import comUtils from '../../common/ComUtils.js'
   import api from '@/common/tk_api.js'
   export default {
      data() {
         return {
            optionsCurrent: 1,
            qrcode: '',
            api,
            mtInfo: {},
            optionsList: [{
                  label: "美团",
@@ -69,6 +70,19 @@
      onLoad() {
         this.IntiData()
      },
      onShareAppMessage: function() {
         return {
            title: '美团红包',
            path: '/pages/takeout/mt',
            // promise
         }
      },
      onShareTimeline() {
         return {
            title: '美团红包',
            path: '/pages/takeout/mt',
         }
      },
      methods: {
         IntiData() {
            uni.showLoading({
@@ -76,7 +90,7 @@
               mask: true
            });
            var that = this;
            this.$http.post('/tkapi/api/taoke/meituan_act', {
            this.api.post('/api/taoke/meituan_act', {
               type: this.optionsCurrent
            }).then(e => {
               uni.hideLoading();
@@ -96,11 +110,23 @@
            })
         },
         toElm() {
            uni.redirectTo({
               url: './elm?dfgtoken=' + comUtils.getUrlPar('dfgtoken')
            uni.switchTab({
               url: './elm'
            })
         },
         shareClick() {
            /* uni.navigateTo({
               url:'/pages/wxkf/kfweb'
            });
            return; */
            uni.navigateToMiniProgram({
              appId: this.mtInfo.we_app_info.app_id,
              path: this.mtInfo.we_app_info.page_path,
              success(res) {
                // 打开成功
              }
            })
         /*
            var that=this;
            var ua = navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == "micromessenger") {
@@ -108,7 +134,7 @@
            }
            else{
               window.location.href = this.mtInfo.deeplink;
            }
            } */
         },
      }