forked from EastWorld/wechat-app-mall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
246 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<van-popup show="{{ s }}" custom-class="btn-add-box-popup" round close-on-click-overlay="{{ false }}"> | ||
<view class="t">用户协议及隐私政策</view> | ||
<view class="content"> | ||
您在使用我们的服务时,我们可能会收集和 | ||
使用您的相关信息。我们希望通过本 | ||
<text class="link" data-k="yhxy" bindtap="goYstk">《用户协议》</text> | ||
及<text class="link" data-k="ysxy" bindtap="goYstk">《隐私协议》</text>向您说明,在使用我 | ||
们的服务时,我们如何收集、使用、储存和 | ||
分享这些信息,以及我们为您提供的访问、 | ||
更新、控制和保护这些信息的方式。本<text class="link" data-k="yhxy" bindtap="goYstk">《用户协议》</text>及 | ||
<text class="link" data-k="ysxy" bindtap="goYstk">《隐私协议》</text>,希望您仔细闭读, | ||
充分理解协议中的内容后再点击同意。 | ||
</view> | ||
<view class="btn-group"> | ||
<van-button type="primary" block size="small" bind:click="aggree">同意</van-button> | ||
<van-button type="danger" block size="small" bind:click="notagree">不同意</van-button> | ||
</view> | ||
</van-popup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.btn-add-box-popup .t { | ||
font-size: 36rpx; | ||
text-align: center; | ||
height: 88rpx; | ||
line-height: 88rpx; | ||
font-weight: bold; | ||
} | ||
.btn-add-box-popup .bd { | ||
padding: 0 32rpx; | ||
padding-bottom: 32rpx; | ||
} | ||
.btn-add-box-popup .del-btn { | ||
margin-top: 32rpx; | ||
} | ||
|
||
.content { | ||
width: 600rpx; | ||
padding: 32rpx; | ||
font-size: 32rpx; | ||
line-height: 54rpx; | ||
} | ||
.link { | ||
color: #10AEFF; | ||
} | ||
.btn-group { | ||
padding: 32rpx; | ||
display: flex; | ||
justify-content: space-around; | ||
} | ||
.mt32 { | ||
margin-top: 32rpx; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
在需要的页面上加这句代码即可 | ||
<fuwuxieyi k="invoice_apply" /> | ||
k 为页面唯一编号,随便命名即可 | ||
不传k,每次都会弹出 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const WXAPI = require('apifm-wxapi') | ||
Page({ | ||
data: { | ||
categoryId: undefined, // 分类id | ||
}, | ||
onLoad (options) { | ||
this.data.categoryId = options.categoryId | ||
this.cmsCategoryDetail() | ||
this.articles() | ||
}, | ||
onShow: function () { | ||
|
||
}, | ||
async cmsCategoryDetail() { | ||
const res = await WXAPI.cmsCategoryDetail(this.data.categoryId) | ||
if (res.code == 0) { | ||
this.setData({ | ||
category: res.data | ||
}) | ||
wx.setNavigationBarTitle({ | ||
title: res.data.info.name, | ||
}) | ||
} | ||
}, | ||
async articles() { | ||
wx.showLoading({ | ||
title: '', | ||
}) | ||
const res = await WXAPI.cmsArticles({ | ||
categoryId: this.data.categoryId | ||
}) | ||
wx.hideLoading() | ||
if (res.code == 0) { | ||
this.setData({ | ||
cmsArticles: res.data | ||
}) | ||
} else { | ||
this.setData({ | ||
cmsArticles: null | ||
}) | ||
} | ||
}, | ||
onShareAppMessage: function() { | ||
return { | ||
title: this.data.category.info.name, | ||
path: '/pages/cms/list?categoryId='+ this.data.categoryId +'&inviter_id=' + wx.getStorageSync('uid') | ||
} | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"navigationBarTitleText": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<van-empty wx:if="{{!cmsArticles}}" description="暂无记录" /> | ||
<van-cell wx:for="{{cmsArticles}}" wx:key="id" title="{{item.title}}" is-link url="/pages/help/detail?id={{item.id}}" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* pages/cms/list.wxss */ |
Oops, something went wrong.