Skip to content

Commit

Permalink
feat: 新增了小程序跳转列表。
Browse files Browse the repository at this point in the history
  • Loading branch information
GzhiYi committed Nov 11, 2021
1 parent 6cc41f3 commit b94b75b
Show file tree
Hide file tree
Showing 12 changed files with 146 additions and 8 deletions.
1 change: 1 addition & 0 deletions cloudfunctions/user/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports.main = async (event) => {
openId: wxContext.OPENID,
appId: wxContext.APPID,
unionId: wxContext.UNIONID,
createTime: new Date(),
},
})
return {
Expand Down
3 changes: 2 additions & 1 deletion miniprogram/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"navigationBarTextStyle": "black",
"navigationStyle": "custom"
},
"sitemapLocation": "sitemap.json"
"sitemapLocation": "sitemap.json",
"navigateToMiniProgramAppIdList": ["wx083a90f5ac602053", "wxf3515fa60b618cd5"]
}
Binary file added miniprogram/images/account.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added miniprogram/images/jielong.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions miniprogram/pages/components/relate/relate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// pages/components/relate/relate.js
Component({
/**
* 组件的属性列表
*/
properties: {

},

/**
* 组件的初始数据
*/
data: {

},

/**
* 组件的方法列表
*/
methods: {

},
})
4 changes: 4 additions & 0 deletions miniprogram/pages/components/relate/relate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
35 changes: 35 additions & 0 deletions miniprogram/pages/components/relate/relate.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<view class='public-list'>
<view class='public-item' style="display: block;height: auto;border-bottom: none;">
<view class='public-item-name' style="padding: 20rpx 0;">个人其余作品(欢迎支持)</view>
<view class='public-item-right'>
</view>
<view class="mini-item" style="border-bottom: 1rpx solid #ebeef5;">
<image src="../../../images/account.jpeg"></image>
<view>
<view class="title">一起算账</view>
<view class="desc">
有群组的AA收款小程序,多人添加,一次结算出结果,再也不怕算错了。
</view>
<view style="display: flex;justify-content: flex-end;">
<navigator target="miniProgram" open-type="navigate" app-id="wx083a90f5ac602053" path="/pages/group/group" extra-data="" version="release">
<view class="go">使用</view>
</navigator>
</view>
</view>
</view>
<view class="mini-item">
<image src="../../../images/jielong.jpeg"></image>
<view>
<view class="title">单单接龙</view>
<view class="desc">
面向社交活动的一个接龙小程序,不要老是鸽子🕊好不好。
</view>
<view style="display: flex;justify-content: flex-end;">
<navigator target="miniProgram" open-type="navigate" app-id="wxf3515fa60b618cd5" path="/pages/chain/chain" extra-data="" version="release">
<view class="go">使用</view>
</navigator>
</view>
</view>
</view>
</view>
</view>
71 changes: 71 additions & 0 deletions miniprogram/pages/components/relate/relate.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.public-list {
background-color: #ffffff;
width:92%;
margin:0 auto 20rpx;
border-radius:20rpx;
}
.public-header {
padding:30rpx 20rpx;
font-size:39rpx;
display: flex;
align-items: center;
}
.public-icon {
margin-right: 18rpx;
width:32rpx;
height:32rpx;
}
.public-item {
padding:20rpx 20rpx;
display:flex;
justify-content: space-between;
align-items:center;
height:60rpx;
}
.public-item-bottom {
border-bottom: none !important;
}
.public-item-right {
display:flex;
align-items:center;
}
.public-item-name {
font-size: 34rpx;
color: #313131;
max-width: 400rpx;
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mini-item {
display: flex;
padding: 20rpx 0;
margin: 20rpxx 0;
}
.mini-item image {
width: 100rpx;
height: 100rpx;
min-width: 100rpx;
border-radius: 9999rpx;
margin-right: 20rpx;
}
.mini-item .title {
font-size: 38rpx;
font-weight: bold;
margin-bottom: 20rpx;
}
.mini-item .desc {
font-size: 26rpx;
color: #606266;
}
.mini-item .go {
width: fit-content;
padding: 10rpx 40rpx;
border: 1rpx solid #2454FF;
border-radius: 30rpx;
background-color: #2454FF;
color: #fff;
font-size: 24rpx;
margin: 20rpx 0;
}
3 changes: 2 additions & 1 deletion miniprogram/pages/setting/setting.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"usingComponents": {
"nav": "../components/nav/nav",
"dialog": "../components/dialog/dialog"
"dialog": "../components/dialog/dialog",
"relate": "../components/relate/relate"
}
}
1 change: 1 addition & 0 deletions miniprogram/pages/setting/setting.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
</view>
</view>
</view>
<relate></relate>
<view>
<image class="donate-arrow" src="https://7265-release-wifo3-1259814516.tcb.qcloud.la/thin-arrowheads-pointing-down.png?sign=cc067af49020cdc7912e08f5e4b17667&t=1619705906" mode="widthFix" binderror="" bindload=""></image>
<image class="donate-img" src="https://7265-release-wifo3-1259814516.tcb.qcloud.la/thank-you.png?sign=1df3583959ab3b69840f85278941437f&t=1619705710" mode="widthFix" binderror="" bindload=""></image>
Expand Down
2 changes: 1 addition & 1 deletion miniprogram/pages/setting/setting.wxss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
page {
background: #fff;
background-color: #F2F2F2;
}
.setting {
margin-bottom: 50rpx;
Expand Down
11 changes: 6 additions & 5 deletions project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@
"disablePlugins": [],
"outputPath": ""
},
"bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true
"minifyWXSS": true,
"disableUseStrict": false,
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false
},
"appid": "wxda00e9b7cd5f39b1",
"projectname": "dandan-account",
"libVersion": "2.8.3",
"libVersion": "2.19.5",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"cloudfunctionTemplateRoot": "cloudfunctionTemplate",
Expand Down

0 comments on commit b94b75b

Please sign in to comment.