作者 牛承志

8.26niu

<view class="top">
<image src="{{schoolData.image}}"></image>
<image src="{{schoolData.image}}" mode="widthFix"></image>
</view>
<view class="nav">
<view class="nav-1">
... ...
.top image {
width: 100%;
}
.top{
height: 400rpx;
overflow: hidden;
}
.nav {
position: relative;
text-align: center;
}
.nav-1 image {
.nav-1{
position: absolute;
width: 168rpx;
height: 168rpx;
overflow: hidden;
border-radius: 50%;
left: 44rpx;
top: -84rpx;
}
.nav-1 image {
width: 168rpx;
height: 168rpx;
border-radius: 50%;
}
.anniu {
... ...
... ... @@ -16,6 +16,7 @@
.top image {
width: 100%;
height:468rpx;
border-radius: 24rpx 24rpx 0 0;
}
... ...
... ... @@ -8,12 +8,12 @@
<view class="moon">
<view class="mony" wx:for="{{shoppingData}}" wx:key='key' >
<view>
<image src="{{item.image}}"></image>
<image src="{{item.image}}" mode="aspectFill"></image>
</view>
<view class="mon-1">
<text>{{item.title}}</text>
<view class="mon-2">
<view class="mon-4"><image src="/img/ic_jifen@2x.png"></image>
<view class="mon-4"><image src="/img/ic_jifen@2x.png" mode=""></image>
<view>{{item.number}}</view>
</view>
<view class="mon-3" bindtap="duihuan" data-id="{{item}}">兑换</view>
... ...
... ... @@ -3,7 +3,8 @@
<image src="/img/ic_date.png" catchtap="goCalend"></image>
</view>
</view>
<!--今日任务 -->
<view style="min-height:calc(100vh - 360rpx);">
<!--今日任务 -->
<view class="cast" style="background:rgba(113,116,132,1);" bindtap="gotoday" data-type="today" data-clock="{{raskData.Today.type}}"
data-id="{{raskData.Today.today_id}}" wx:if="{{raskData.Today}}">
<view class="cast-1">今日任务
... ... @@ -46,6 +47,7 @@
</view> -->
</view>
<view class="kong" wx:if="{{!raskData.Today&&!raskData.Match&&!raskData.Evaluation}}">今日没有任务哦!</view>
</view>
<!-- -->
<view class="footer">
... ...
... ... @@ -52,15 +52,17 @@
}
.footer {
position: absolute;
bottom: 3%;
left: 50%;
/* position: fixed;
bottom: 40rpx;
left: 50%; */
font-size: 28rpx;
color: rgba(139, 139, 141, 1);
margin-left: -60rpx;
/* margin-left: -60rpx; */
display: flex;
justify-content: center;
align-items: center;
margin-top: 60rpx;
margin-bottom: 60rpx;
}
.footer image {
... ... @@ -74,7 +76,7 @@
width: 80rpx !important;
height: 80rpx;
padding: 0;
margin-left: 20rpx;
margin: 0 !important;
}
.kong {
... ...
... ... @@ -144,15 +144,12 @@ Page({
bind_choose(e) {
let Index = e.currentTarget.dataset.index
let answer = e.currentTarget.dataset.answer
console.log(answer, '222')
console.log(e, '222')
this.setData({
nav: Index
})
let listindex = this.data.curent
let list = this.data.clockData.List
console.log(list)
list.forEach((item, index) => {
console.log(item)
... ...
... ... @@ -8,7 +8,7 @@
<view class="top-1" bindtap="getmy">
<view>
<view style="display: flex;justify-content: center;width: 184rpx;height: 184rpx;overflow: hidden;border-radius: 50%;">
<image src="{{token ? meData.avatar : '../../img/ic_head@2x.png'}}" mode="widthFix"></image>
<image src="{{token ? meData.avatar : '../../img/ic_head@2x.png'}}" mode="aspectFill"></image>
</view>
<view style="display: flex;justify-content: center;">
<view class="bigtitle">{{meData.nickname}}</view>
... ...
... ... @@ -63,6 +63,16 @@ Page({
}
},
// 预览
preview(event) {
let currentUrl = event.currentTarget.dataset.src
let currentUrlList = event.currentTarget.dataset.list
wx.previewImage({
current: currentUrl, // 当前显示图片的http链接
urls: currentUrlList, // 需要预览的图片http链接列表
})
},
onReady: function () {
... ...
... ... @@ -21,8 +21,9 @@
<image src="/img/ic_voice40@2x.png" bindtap="goAudio" data-audio="{{MessageCon.audio_file}}"></image>
</view>
</view>
<view class="boxd-end">
<image src="{{MessageCon.image}}"></image>
<view class="boxd-end" data-src="{{MessageCon.image}}"
data-list="{{MessageCon.image}}" bindtap="preview">
<image src="{{MessageCon.image}}" mode="widthFix"></image>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -5,8 +5,8 @@
},
"setting": {
"urlCheck": false,
"es6": false,
"enhance": true,
"es6": true,
"enhance": false,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
... ... @@ -29,7 +29,7 @@
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
... ... @@ -46,7 +46,7 @@
},
"scripts": {},
"isGameTourist": false,
"appid": "wxb717767cdf314ea2",
"appid": "wxc65ea6b2677a6703",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
... ...
... ... @@ -59,6 +59,23 @@
"pathName": "pages/eight/eight",
"query": "",
"scene": null
},
{
"name": "pages/task/task",
"pathName": "pages/task/task",
"query": "",
"scene": null
},
{
"name": "pages/index/index",
"pathName": "pages/index/index",
"query": "",
"scene": null
},
{
"name": "pages/mission/mission",
"pathName": "pages/mission/mission",
"scene": null
}
]
}
... ...