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

master
lemon橪 2021-06-21 18:14:09 +08:00
parent e9739cacf5
commit 2f180d5178
7 changed files with 30 additions and 15 deletions

View File

@ -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地址
};

View File

@ -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" : {

View File

@ -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);
});
},

View File

@ -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;

View File

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

View File

@ -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`,

View File

@ -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();
}
}
},