init
This commit is contained in:
35
wx214944c362629fc7/pages/pays/pays.js
Normal file
35
wx214944c362629fc7/pages/pays/pays.js
Normal file
@@ -0,0 +1,35 @@
|
||||
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();
|
||||
}
|
||||
});
|
||||
4
wx214944c362629fc7/pages/pays/pays.json
Normal file
4
wx214944c362629fc7/pages/pays/pays.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "提示",
|
||||
"usingComponents": {}
|
||||
}
|
||||
21
wx214944c362629fc7/pages/pays/pays.wxml
Normal file
21
wx214944c362629fc7/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>
|
||||
11
wx214944c362629fc7/pages/pays/pays.wxss
Normal file
11
wx214944c362629fc7/pages/pays/pays.wxss
Normal file
@@ -0,0 +1,11 @@
|
||||
.saoma {
|
||||
align-items: center;
|
||||
background-color: #f70000;
|
||||
border-radius: 98rpx;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
margin-top: 10rpx;
|
||||
width: 80%;
|
||||
}
|
||||
Reference in New Issue
Block a user