Explorar o código

扫描二维码跳转 前台显示小程序直播 修改部分ui

lemon橪 %!s(int64=4) %!d(string=hai) anos
pai
achega
2f180d5178

+ 1 - 1
config/config.js

@@ -7,7 +7,7 @@ export default {
   appid: "wx6f10f29075dc1b0b", //小程序唯一凭证,即 AppID,可在「微信公众平台 - 设置 - 开发设置」页中获得。(需要已经成为开发者,且帐号没有异常状态)
   appSecret: "6dfbe0c72380dce5d49d65b3c91059b1", //可在 manifest.json 查看
   aMapKey: "d649892b3937a5ad20b76dacb2bcb5bd", //在高德中申请web端key
-  scanAuthNavigation:['https://m-b2b2c.pickmall.cn'], //扫码认证跳转域名配置 会根据此处配置的路由进行跳转
+  scanAuthNavigation:['https://m-b2b2c.pickmall.cn/'], //扫码认证跳转域名配置 会根据此处配置的路由进行跳转
   iosAppId:"id1564638363", //AppStore的应用地址id 具体在分享->拷贝链接中查看
   logo:"https://lilishop-oss.oss-cn-beijing.aliyuncs.com/4c864e133c2944efad1f7282ac8a3b9e.png" //logo地址
 }; 

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "lili商城",
     "appid" : "__UNI__C100675",
     "description" : "",
-    "versionName" : "4.0.19",
-    "versionCode" : 4000019,
+    "versionName" : "4.0.20",
+    "versionCode" : 4000020,
     "transformPx" : false,
     "app-plus" : {
         "compatible" : {

+ 2 - 3
pages/product/goods.vue

@@ -118,7 +118,6 @@
           <!-- 拼团用户列表 -->
           <PromotionAssembleListLayout v-if="isGroup" @to-assemble-buy-now="toAssembleBuyNow" :res="PromotionList" />
 
-
           <!-- 配置地址 如果是虚拟产品的时候不展示 -->
           <view class="card-box" v-if="goodsDetail.goodsType !='VIRTUAL_GOODS'">
             <view class="card-flex" @click="shutMask(4)">
@@ -179,7 +178,7 @@
         </view>
         <!-- 正常结算页面 -->
         <view class="detail-btn" v-if="!isGroup">
-          <view class="to-store-car to-store-btn" v-if="goodsDetail.goodsType!='VIRTUAL_GOODS'"  @click="shutMask(4)">加入购物车</view>
+          <view class="to-store-car to-store-btn" v-if="goodsDetail.goodsType!='VIRTUAL_GOODS'" @click="shutMask(4)">加入购物车</view>
           <view class="to-buy to-store-btn" @click="shutMask(4, 'buy')">立即购买</view>
           <view class="to-store-car to-store-btn" v-if="startTimer">暂未开始</view>
         </view>
@@ -584,7 +583,6 @@ export default {
     toAssembleBuyNow(order) {
       this.shutMask(4, "PINTUAN", order);
     },
-
     /**
      * 查看购物车
      */
@@ -685,6 +683,7 @@ export default {
         keyword: this.goodsDetail.name,
       }).then((res) => {
         this.likeGoodsList = res.data.result.content;
+        console.warn(this.likeGoodsList);
       });
     },
 

+ 1 - 1
pages/product/product/goods/-goods-swiper.vue

@@ -32,7 +32,7 @@ export default {
 <style lang="scss" scoped>
 .carousel {
   // #ifdef MP-WEIXIN
-  margin-top: var(--status-bar-height);
+  margin-top: 44px;
   // #endif
   width: 750rpx;
   height: 750rpx;

+ 1 - 1
pages/product/product/style.scss

@@ -131,7 +131,7 @@ page {
     display: flex;
     align-items: center;
     width: 100%;
-    background: #fff !important;
+    // background: #fff !important;
 
     > .headerList {
         flex: 8;

+ 5 - 0
pages/tabbar/home/template/tpl.js

@@ -81,6 +81,11 @@ export function modelNavigateTo(item) {
             url: `/pages/promotion/joinGroup`,
           });
           break;
+        case "小程序直播":
+          uni.navigateTo({
+            url: `/pages/promotion/lives`,
+          });
+          break;
         case "积分商城":
           uni.switchTab({
             url: `/pages/navigation/point/point-mall`,

+ 18 - 7
pages/tabbar/home/views.vue

@@ -57,7 +57,7 @@ import tpl_goods from "@/pages/tabbar/home/template/tpl_goods"; //商品分类
 // 结束引用组件
 import { getFloorData } from "@/api/home"; //获取楼层装修接口
 import permision from "@/js_sdk/wa-permission/permission.js"; //权限工具类
-
+import config from "@/config/config";
 // TODO 后续开发
 // import tpl_join_group from "@/pages/tabbar/home/template/tpl_join_group";
 // import tpl_integral from "@/pages/tabbar/home/template/tpl_integral";
@@ -66,6 +66,7 @@ import permision from "@/js_sdk/wa-permission/permission.js"; //权限工具类
 export default {
   data() {
     return {
+      config,
       pageData: "", //楼层页面数据
     };
   },
@@ -118,12 +119,22 @@ export default {
       uni.scanCode({
         success: function (res) {
           let path = encodeURIComponent(res.result);
+          config.scanAuthNavigation.forEach((src) => {
+            if (res.result.indexOf(src) != -1) {
+                uni.navigateTo({
+                  url: `/${res.result.substring(src.length)}`,
+                });
+            } else {
+              setTimeout(() => {
+                uni.navigateTo({
+                  url: "/pages/tabbar/home/web-view?src=" + path,
+                });
+              }, 100);
+            }
+          });
+
+          // let
           // 扫码成功后跳转到webview页面
-          setTimeout(() => {
-            uni.navigateTo({
-              url: "/pages/tabbar/home/web-view?src=" + path,
-            });
-          }, 100);
         },
       });
     },
@@ -142,7 +153,7 @@ export default {
             if (isIos) {
               plus.runtime.openURL("app-settings:");
             } else {
-              permision.gotoAppPermissionSetting()
+              permision.gotoAppPermissionSetting();
             }
           }
         },