Commit fd1b7614 by 谢中龙

新增界面

parent 7cbcacae
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
"pages/shopping/kpi/kpi", "pages/shopping/kpi/kpi",
"pages/shopping/welfare/welfare", "pages/shopping/welfare/welfare",
"pages/shopping/performance/performance" "pages/shopping/performance/performance"
], ],
"subPackages": [ "subPackages": [
{ {
...@@ -73,7 +74,8 @@ ...@@ -73,7 +74,8 @@
"pages/selectUsers/selectUsers", "pages/selectUsers/selectUsers",
"pages/userInfo/userInfo", "pages/userInfo/userInfo",
"pages/qrcode/qrcode", "pages/qrcode/qrcode",
"pages/userList/userList" "pages/userList/userList",
"pages/couponQrcode/couponQrcode"
] ]
} }
], ],
...@@ -120,9 +122,9 @@ ...@@ -120,9 +122,9 @@
], ],
"plugins": { "plugins": {
"contactPlugin": { "contactPlugin": {
"version": "1.0.12", "version": "1.0.12",
"provider": "wx104a1a20c3f81ec2" "provider": "wx104a1a20c3f81ec2"
} }
}, },
"sitemapLocation": "sitemap81.json" "sitemapLocation": "sitemap81.json"
} }
\ No newline at end of file
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": 54, "current": 58,
"list": [ "list": [
{ {
"id": -1, "id": -1,
...@@ -424,6 +424,12 @@ ...@@ -424,6 +424,12 @@
"name": "标签下的会员列表", "name": "标签下的会员列表",
"pathName": "shoppingGuid/page/pages/userList/userList", "pathName": "shoppingGuid/page/pages/userList/userList",
"query": "" "query": ""
},
{
"id": -1,
"name": "导购展示优惠券二维码",
"pathName": "shoppingGuid/page/pages/couponQrcode/couponQrcode",
"query": ""
} }
] ]
} }
......
// shoppingGuid/page/pages/couponQrcode/couponQrcode.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"navigationBarTitleText": "优惠券二维码",
"usingComponents": {}
}
\ No newline at end of file
<!--shoppingGuid/page/pages/couponQrcode/couponQrcode.wxml-->
<text>shoppingGuid/page/pages/couponQrcode/couponQrcode.wxml</text>
/* shoppingGuid/page/pages/couponQrcode/couponQrcode.wxss */
\ No newline at end of file
...@@ -254,6 +254,12 @@ wxService.page({ ...@@ -254,6 +254,12 @@ wxService.page({
} }
}) })
}, },
//展示优惠券二维码
onTapShowQrcode(e){
console.log(e)
let item = e.currentTarget.dataset.item;
},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<view>{{item.typeText}}</view> <view>{{item.typeText}}</view>
</view> </view>
<view class='coupon-item-rg'> <view class='coupon-item-rg'>
<view class='qrcode'> <view class='qrcode' data-item="{{item}}" bindtap='onTapShowQrcode'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/walare_qrcode.png' mode='aspectFit'></image> <image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/walare_qrcode.png' mode='aspectFit'></image>
</view> </view>
<view class='coupon-title'>{{item.title}}</view> <view class='coupon-title'>{{item.title}}</view>
......
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