Commit d07987ea authored by wildfirecode13's avatar wildfirecode13

11

parent 33a552c0
{
"pages": [
"pages/index/index",
"pages/homePage/homePage",
"pages/myprize/myprize",
"pages/pageshop/pageshop",
"pages/tbccDemo/tbccDemo",
"pages/goodsPage/goodsPage",
"pages/turnTablePage/turnTablePage"
"pages/invitePage/invitePage"
],
"window": {
"enableSkia": "true",
......
{
"name": "yd11_20200922",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
......@@ -176,6 +177,11 @@
"resolved": "http://npm.dui88.com:80/mimic-fn/-/mimic-fn-2.1.0.tgz",
"integrity": "sha1-ftLCzMyvhNP/y3pptXcR/CCDQBs="
},
"mini-types": {
"version": "0.1.4",
"resolved": "https://registry.npm.taobao.org/mini-types/download/mini-types-0.1.4.tgz",
"integrity": "sha1-R3EsZgaRGTlSKLiy1IOhHufPn7E="
},
"nice-try": {
"version": "1.0.5",
"resolved": "http://npm.dui88.com:80/nice-try/-/nice-try-1.0.5.tgz",
......@@ -346,11 +352,6 @@
"resolved": "http://npm.dui88.com:80/strip-eof/-/strip-eof-1.0.0.tgz",
"integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="
},
"svga-parser": {
"version": "1.1.0",
"resolved": "http://npm.dui88.com:80/svga-parser/-/svga-parser-1.1.0.tgz",
"integrity": "sha1-sXgVrAwaDgGobJG7l/g02tYCdek="
},
"tans_lottie": {
"version": "1.0.4",
"resolved": "http://npm.dui88.com:80/tans_lottie/-/tans_lottie-1.0.4.tgz",
......
......@@ -6,6 +6,7 @@
"dependencies": {
"@tbmp/mp-cloud-sdk": "*",
"fyge-tbmini": "^1.3.7",
"mini-types": "^0.1.4",
"tans_lottie": "^1.0.4"
}
}
<view class="index-page">
<view class="index-rule-btn" onTap="showRuleModal">活动规则</view>
<navigator open-type="navigate" url="/pages/myprize/myprize" class="index-myprize-btn">我的奖品</navigator>
<view class="index-page__title">{{title}}</view>
<view class="index-page__content">{{content}}</view>
<view class="index-page__tips">AM接口只支持PC端预览,手机淘宝预览需要使用云函数模式</view>
<view class="index-start-btn" onTap="doShare">点击分享</view>
<navigator open-type="navigate" url="/pages/tbccDemo/tbccDemo" class="index-tbcc-btn">tbcc demo</navigator>
</view>
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="closeRuleModal"><text>{{rule}}</text></rule-modal>
<view class="index-start-btn" onTap="doShare">点击分享</view>
<common-modal-t1 a:if="{{commonModalVisible}}" data="{{commonModalData}}" onModalClose="closeCommonModal" onModalConfirm="confirmCommonModal" />
</view>
<end-modal a:if="{{false}}" />
\ No newline at end of file
......@@ -12,7 +12,7 @@ const SHARE_CONFIG = {
Page({
doShare() {},
doShare() {my.showSharePanel();},
data: {
},
......
.index-page {
min-height: 100vh;
}
.index-rule-btn, .index-myprize-btn {
position: absolute;
top: 30rpx;
width: 126rpx;
height: 48rpx;
line-height: 48rpx;
font-size: 22rpx;
background: rgba(0, 0, 0, 0.8);
color: #FFF;
text-align: center;
z-index: 5;
}
.index-rule-btn {
left: 0;
border-radius: 0 48rpx 48rpx 0;
}
.index-myprize-btn {
right: 0;
border-radius: 48rpx 0 0 48rpx;
}
.index-page__title {
font-size: 50rpx;
text-align: center;
padding: 100rpx 0 50rpx 0;
}
.index-page__content {
text-align: center;
font-size: 30rpx;
}
.index-page__tips {
padding-top: 40rpx;
text-align: center;
font-size: 22rpx;
}
.index-start-btn {
background: #0077a9;
color: #FFF;
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border-radius: 10rpx;
margin: 100rpx auto 50rpx auto;
font-size: 30rpx;
}
.index-tbcc-btn {
background: #0077a9;
color: #FFF;
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border-radius: 10rpx;
margin: 0 auto;
font-size: 30rpx;
}
.index-link-btn {
text-align: center;
color: #333;
font-size: 26rpx;
}
\ No newline at end of file
<view class="index-page">
<view class="index-page__tips">AM接口只支持PC端预览,手机淘宝预览需要使用云函数模式</view>
</view>
const app = getApp();
const { tbcc } = app;
const { commonToast, getAuthUserInfo, navigateToOutside } = tbcc.tb;
Page({
data: {
},
onLoad(query) {
// 页面加载
console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
}
});
{
"usingComponents": {
"rule-modal": "/components/ruleModal/ruleModal",
"common-modal-t1": "/components/commonModalT1/commonModalT1",
"end-modal": "/components/endModal/endModal"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment