Przeglądaj źródła

支持跳转指定平台页面

shenxin 5 lat temu
rodzic
commit
b57037cd5e

+ 1 - 1
src/pages/index.vue

@@ -59,7 +59,7 @@
               }"
                     @change="tabsChange">
             </u-tabs>
-            <view class="u-font-22 u-content-color">单平台门店每天只能报名1次</view>
+            <view class="u-font-22 u-content-color">每门店单平台每天只能报名1次</view>
           </view>
         </view>
       </u-sticky>

+ 7 - 4
src/pagesSub/activity/activityDetail.vue

@@ -44,14 +44,14 @@
         <view class="divider-right"></view>
         <block v-if="detail.plat_type === 8">
           <view class="to-btn u-p-l-28"
-                @click="openOtherApplte(8)">
+                @click="openOtherApplte()">
             <view class="icon-mt-wh icon-elm"></view>
             <view class="u-m-t-2 u-font-22 u-content-color line-32">打开饿了么</view>
           </view>
         </block>
         <block v-if="detail.plat_type === 9">
           <view class="to-btn u-p-l-28"
-                @click="openOtherApplte(9)">
+                @click="openOtherApplte()">
             <view class="icon-mt-wh icon-mt"></view>
             <view class="u-m-t-2 u-font-22 u-content-color line-32">打开美团</view>
           </view>
@@ -387,8 +387,11 @@ export default {
         url: `/pagesSub/order/submitOrder?activityId=${this.detail.id}&userActivityId=${this.detail.user_activity_id}`
       })
     },
-    openOtherApplte (platType) {
-      this.$store.dispatch('toOtherApplte', platType)
+    openOtherApplte () {
+      uni.navigateToMiniProgram({
+        appId: this.detail.app_info.appid,
+        path: this.detail.app_info.path
+      })
     }
   },
   filters: {

+ 38 - 34
src/pagesSub/other/noviceStrategy.vue

@@ -50,7 +50,7 @@
       <view class="desc u-m-t-8 line-34">参与活动共有4个步骤:</view>
       <view class="item">
         <view class="line-40 bold">1.报名规则</view>
-        <view class="u-m-t-8 u-new-color line-34">用户定位10km范围以外活动不能够报名。 同平台(例如美团、饿了么)单用户每天只能报名一次。</view>
+        <view class="u-m-t-8 u-new-color line-34">用户定位10km范围以外活动不能够报名。同平台(例如美团、饿了么)单门店单用户每天只能报名一次。</view>
         <view class="desc line-34">霸王餐与返利餐均为限时限量活动,当活动时间过期或参与名额为零时,则无法报名。</view>
       </view>
       <view class="item">
@@ -82,42 +82,46 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-  .novice-main {
-    .z-index-10 {
-      z-index: 10;
-      position: relative;
-    }
-    .content {
-      margin-top: 16px;
-      padding: 32px;
-      background-color: #fff;
-      .title {
-        font-size: 36px;
-        line-height: 50px;
-        font-weight: bold;
-        .title-bg {
-          position: relative;
-          &::before {
-            position: absolute;
-            left: 0;
-            bottom: 0;
-            content: "";
-            width: 262px;
-            height: 14px;
-            background: linear-gradient(90deg, #FEB268 0%, rgba(254, 176, 104, 0) 100%);
-          }
+.novice-main {
+  .z-index-10 {
+    z-index: 10;
+    position: relative;
+  }
+  .content {
+    margin-top: 16px;
+    padding: 32px;
+    background-color: #fff;
+    .title {
+      font-size: 36px;
+      line-height: 50px;
+      font-weight: bold;
+      .title-bg {
+        position: relative;
+        &::before {
+          position: absolute;
+          left: 0;
+          bottom: 0;
+          content: '';
+          width: 262px;
+          height: 14px;
+          background: linear-gradient(
+            90deg,
+            #feb268 0%,
+            rgba(254, 176, 104, 0) 100%
+          );
         }
       }
-      .desc {
-        color: $u-other-color;
-      }
-      .item {
-        margin-top: 24px;
-      }
     }
-    .tips {
-      padding: 32px 0;
-      text-align: center;
+    .desc {
+      color: $u-other-color;
     }
+    .item {
+      margin-top: 24px;
+    }
+  }
+  .tips {
+    padding: 32px 0;
+    text-align: center;
   }
+}
 </style>