Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
Yardım
Üye Ol
Giriş Yap
weapp
/
C
İzle
8
Yıldızla
0
Çatalla
0
Kod
Konular
0
Değişiklik İstekleri
0
Sürümler
66
Wiki
Aktivite
Kaynağa Gözat
[我的][修改]:[增加兑换功能]
tags/福建版C.9.1.08欢乐城
meo
5 yıl önce
ebeveyn
e6101ebeb4
işleme
89de6d3b60
8 değiştirilmiş dosya
ile
116 ekleme
ve
1 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+1
-0
app.json
+1
-0
index/user.js
+7
-0
index/user.wxml
+74
-0
pages/exchange/exchange.js
+5
-0
pages/exchange/exchange.json
+5
-0
pages/exchange/exchange.wxml
+22
-0
pages/exchange/exchange.wxss
+1
-1
utils/imgurl.js
+ 1
- 0
app.json
Dosyayı Görüntüle
@@ -47,6 +47,7 @@
"pages/managelicenseplate/managelicenseplate",
"pages/payrule/payrule",
"pages/grade/grade",
"pages/exchange/exchange",
"pages/game/index",
"pages/canvas/index",
"pages/specialcourtesy/specialcourtesy",
+ 1
- 0
index/user.js
Dosyayı Görüntüle
@@ -20,6 +20,7 @@ Page({
editUrl: imgurl.edit.url,
activeUrl: imgurl.active.url,
dingUrl: imgurl.ding.url,
duihuan: imgurl.duihuan.url,
quansUrl: imgurl.quans.url,
wmintegral: imgurl.wmintegral.url,
cardiconUrl: imgurl.cardicon.url,
+ 7
- 0
index/user.wxml
Dosyayı Görüntüle
@@ -85,6 +85,13 @@
<image class='icons' src="{{myactivity}}" mode='widthFix'></image>我的活动</view>
</view>
</navigator>
<!-- 兑换 -->
<navigator url="/pages/exchange/exchange" open-type="navigate">
<view class="user-btn app-border-bottom">
<view>
<image class='icons' src="{{duihuan}}" mode='widthFix'></image>兑换</view>
</view>
</navigator>
</view>
</view>
<!-- 小马快店样式 -->
+ 74
- 0
pages/exchange/exchange.js
Dosyayı Görüntüle
@@ -0,0 +1,74 @@
const navigationBarHeight = (getApp().statusBarHeight + 60) + 'px'
const util = require("../../utils/util.js");
const Http = require("../../utils/HttpBasics");
const config = require("../../config/config");
const imgurl = require("../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
navigationBarHeight
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
// 兑换
exchange(e){
}
})
+ 5
- 0
pages/exchange/exchange.json
Dosyayı Görüntüle
@@ -0,0 +1,5 @@
{
"usingComponents": {
"navbar": "../../components/navbar/navbar"
}
}
+ 5
- 0
pages/exchange/exchange.wxml
Dosyayı Görüntüle
@@ -0,0 +1,5 @@
<navbar text="兑换" home back background='#FD832D' color="white"></navbar>
<view class="section" style="padding-top:{{navigationBarHeight}};">
<input placeholder="请输入兑换码" clearable/>
<button type="text" size="{{primarySize}}" style="background:#FD832D;color:#fff;" bindtap="exchange">兑换</button>
</view>
+ 22
- 0
pages/exchange/exchange.wxss
Dosyayı Görüntüle
@@ -0,0 +1,22 @@
/* pages/exchange/exchange.wxss */
.section{
display: flex;
padding: 0 20rpx;
flex: 5;
}
.section input{
flex: 4;
border: 1px solid #ccc;
border-radius: 10rpx;
height: 70rpx;
line-height: 70rpx;
font-size: 30rpx;
padding-left: 20rpx;
margin-right: 10rpx;
}
.section button{
flex: 1;
height: 74rpx;
line-height: 74rpx;
font-size: 30rpx;
}
+ 1
- 1
utils/imgurl.js
Dosyayı Görüntüle
@@ -586,7 +586,7 @@ module.exports = {
'name': '拼团小图标'
},
'duihuan': {
'url': baseUrl + '
lqc
duihuan
1
.png',
'url': baseUrl + 'duihuan.png',
'name': '兑换小图标'
},
'wangmeimeibargin':{
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet