init
This commit is contained in:
1
wx05cb767e6530b48f/pages/pays/pays.js
Normal file
1
wx05cb767e6530b48f/pages/pays/pays.js
Normal file
@@ -0,0 +1 @@
|
||||
var t=getApp();Page({data:{imageUrlList:[]},preview:function(t){var a=t.currentTarget.dataset.src;console.log(a);var e=this.data.imageUrlList;console.log(e),wx.previewImage({current:a,urls:e})},pays:function(){var a=this;t._get("index/payList",{},(function(t){var e=t.data,r=[];e.res.pays.forEach((function(t){r.push(t.url)})),a.setData(e),a.setData({imageUrlList:r})}))},ToOrder:function(){wx.redirectTo({url:"../order/index?type=payment"})},onLoad:function(t){this.pays()}});
|
||||
1
wx05cb767e6530b48f/pages/pays/pays.json
Normal file
1
wx05cb767e6530b48f/pages/pays/pays.json
Normal file
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"提示","usingComponents":{}}
|
||||
21
wx05cb767e6530b48f/pages/pays/pays.wxml
Normal file
21
wx05cb767e6530b48f/pages/pays/pays.wxml
Normal file
@@ -0,0 +1,21 @@
|
||||
<view class="container">
|
||||
<view wx:if="{{res.st}}">
|
||||
<view style="padding:30rpx; margin:20rpx;">
|
||||
<text style="color: red;">{{res.title}}</text>
|
||||
<view style="text-align: center;padding-top:30rpx; margin-top:20rpx;">请滑动到底部跳转到订单列表</view>
|
||||
</view>
|
||||
<view style="display: flex;flex-direction: column; justify-content: center;align-items: center;" wx:for="{{res.pays}}" wx:key="this">
|
||||
<view style="display: flex;flex-direction: column; justify-content: center;align-items: center;">
|
||||
<view style="padding:20rpx 0;">{{item.name}}</view>
|
||||
<view style="color: red;">{{item.content}}</view>
|
||||
<image bindtap="preview" data-list="{{res.pays}}" data-src="{{item.url}}" src="{{item.url}}" style="max-height: 100%;max-width: 100%;height: 700rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:30rpx; margin:20rpx;">
|
||||
<text style="color: red;">{{res.title}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cont-box b-f">
|
||||
<button bindtap="ToOrder" class="saoma">去查看我的订单</button>
|
||||
</view>
|
||||
</view>
|
||||
1
wx05cb767e6530b48f/pages/pays/pays.wxss
Normal file
1
wx05cb767e6530b48f/pages/pays/pays.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.saoma{align-items:center;background-color:#f70000;border-radius:98rpx;color:#fff;display:-webkit-flex;display:flex;flex-direction:row;justify-content:center;margin-top:10rpx;width:80%}
|
||||
Reference in New Issue
Block a user