引导页+cell

This commit is contained in:
shijingjing
2023-03-20 19:08:04 +08:00
parent 42a332b76c
commit 5b81a23bb8
4 changed files with 17 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ const start = () => {
let json = {
easycom: {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue",
"^(Ai|V)(.*)": "@/components/$1$2/$1$2.vue"
"^(Ai|V)(.*)": "@/components/$1$2/$1$2.vue",
},
pages: [
{path: 'pages/home', style: {navigationBarTitleText: "小程序应用库"}}
@@ -33,7 +33,12 @@ const start = () => {
globalStyle: {
pageOrientation: "auto",
navigationBarTextStyle: "white",
navigationBarBackgroundColor: "#4181FF"
navigationBarBackgroundColor: "#4181FF",
"mp-weixin": {
"usingComponents": {
"cell": "plugin://materialPlugin/cell"
}
}
}
}
Promise.all([

View File

@@ -18,6 +18,12 @@
"desc": "你的位置信息将用于当前事件发生地点"
}
},
"plugins": {
"materialPlugin": {
"version": "1.0.5",
"provider": "wx4d2deeab3aed6e5a"
}
},
"requiredPrivateInfos" : ["getLocation", "chooseLocation"]
}
}

View File

@@ -22,7 +22,7 @@ export default {
}
}).then(res=> {
if(res?.data) {
this.picUrl = res.data.records[0].picUrl
this.picUrl = res.data.records[0]?.picUrl
}
})
}

View File

@@ -13,9 +13,8 @@
<div class="col-666">请选择社群加入群聊</div>
</div>
</div>
<div class="jionGroup">
<!-- bind:startmessage='startmessage' @completemessage="completemessage" -->
<cell url='https://wework.qpic.cn/wwpic/71159_FwGG4OEPQM6LxsZ_1679023053/0' class="join-btn">加入群聊</cell>
<div class="jionGroup">
<cell @startmessage="startmessage" @completemessage="completemessage" url='https://wework.qpic.cn/wwpic/71159_FwGG4OEPQM6LxsZ_1679023053/0' ></cell>
</div>
<div class="pic">
@@ -116,8 +115,7 @@ export default {
line-height: 80px;
padding: 0 72px;
box-sizing: border-box;
::v-deep .join-btn {
display: block;
::v-deep cell .wrapper {
width: 100%;
height: 100%;
text-align: center;