Commit 353fffa0 by 杨北旺

提交插件

1 parent 08db4d37
......@@ -67,7 +67,8 @@
"root": "packageMall",
"pages": [
"pages/shoppingCart/shoppingCart",
"pages/pay/pay"
"pages/pay/pay",
"pages/detail/detail"
]
},
{
......@@ -102,6 +103,26 @@
"pages/pay/index",
"pages/PayResult/payResult"
]
},
{
"root": "packagePlugin",
"pages": [
"pages/index/index"
],
"plugins": {
"ticketPlugin": {
"version": "2.0.2",
"provider": "wxd5b8312c3a09901a"
},
"express-plugin": {
"version": "1.2.0",
"provider": "wx1b1f66316b427c74"
},
"collectionPlugin": {
"version": "1.2.0",
"provider": "wx5e90fdd843841356"
}
}
}
],
"usingComponents": {
......
{
"navigationStyle": "custom"
}
\ No newline at end of file
Page({
data: {
list: [{
id: 1,
}, {
id: 2,
}, {
id: 3,
}, {
id: 4,
}, {
id: 5,
},]
},
onLoad(options) {
},
toJump(e) {
const { id } = e.currentTarget.dataset
let url = ''
const shareCode = '5759S2m7h'
switch (id) {
case 1:
url = `plugin://collectionPlugin/sbkHome?shareCode=${shareCode}&userId=ooPYo45el_GJ55vqhdME5-tqQmaw`
break;
case 2:
url = `plugin://collectionPlugin/sbkHome?shareCode=${shareCode}`
break;
case 3:
url = `plugin://collectionPlugin/naixueHome?shareCode=${shareCode}`
break;
case 4:
url = `plugin://ticketPlugin/home?shareCode=${shareCode}&reLocation=true`
break;
case 5:
url = `plugin://express-plugin/home?shareCode=${shareCode}`
break;
default:
break;
}
wx.navigateTo({
url,
})
}
})
\ No newline at end of file
{
"navigationBarTitleText": "在线下单"
}
\ No newline at end of file
.container {
box-sizing: border-box;
padding: 30rpx;
.cover {
height: 268rpx;
margin-bottom: 30rpx;
}
}
\ No newline at end of file
<view class="container">
<block wx:for="{{list}}" wx:key="index">
<glsx-image bind:tap="toJump" data-id="{{item.id}}" class="cover" webp src="equity/plugin/equity_plugin_{{index}}.png"></glsx-image>
</block>
</view>
\ No newline at end of file
const navStyle = "background-color: transparent;";
import { IMG_URL } from '../../../config'
Page({
data: {
IMG_URL,
navStyle,
noticeContent: true,
noticeContent: '卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡卡',
......@@ -12,12 +14,12 @@ Page({
title: '官方',
desc: '福利群',
tip: '优惠资讯,先人一步',
url: 'fuliq'
url: 'fuliqun'
}, {
title: '专属',
desc: '福利官',
tip: '超多福利,不容错过',
url: 'fulig'
url: 'fuliguan'
}],
showModal:false,
urlName:''
......
......@@ -112,12 +112,25 @@ page {
background-color: rgba(0, 0, 0, .6);
}
.max_cover {
.box_cover {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 638rpx;
height: 756rpx;
.max_cover {
width: 638rpx;
height: 756rpx;
}
.close_icon {
position: absolute;
right: 32rpx;
top: 32rpx;
width:32rpx;
height:32rpx;
}
}
}
\ No newline at end of file
......@@ -49,5 +49,8 @@
<!-- 弹框 -->
<view wx:if="{{showModal}}" class="modal_widget">
<view bind:tap="closeModal" class="popup-bg"></view>
<glsx-image wx:if="{{urlName}}" class="max_cover" webp src="home/{{urlName}}.png"></glsx-image>
<view class="box_cover">
<image class="max_cover" src="{{IMG_URL}}home/{{urlName}}.png" show-menu-by-longpress="{{true}}" />
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
</view>
</view>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!