Initial Commit

This commit is contained in:
quantulr
2024-05-06 15:34:15 +08:00
commit e3a0666d5a
307 changed files with 28969 additions and 0 deletions

View File

@ -0,0 +1,42 @@
const WxParse = require('../../../wxParse/wxParse.js');
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
bgImg: app.globalData.bgImg,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.showLoading({
title: '加载中',
})
wx.request({
url: app.globalData.ip + '/wisdommining/api/banner/getPromotion',
method: 'GET',
header: {
"content-type": "application/x-www-form-urlencoded",
},
data: {},
success: res => {
console.log(res)
wx.hideLoading()
if (res.data.code == 1) {
WxParse.wxParse('article', 'html', res.data.value.welfarePhoto, this, 20);
} else {
wx.showModal({
title: '获取数据失败!',
content: res.data.message,
showCancel: false,
})
}
}
})
},
})

View File

@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "促销专区"
}

View File

@ -0,0 +1,4 @@
<import src="../../../wxParse/wxParse.wxml" />
<view class="cont">
<template is="wxParse" data="{{wxParseData:article.nodes}}"/>
</view>

View File

@ -0,0 +1,34 @@
@import "../../../wxParse/wxParse.wxss";
.cont{
width:750rpx;
}
.cont image{
width: 100% !important;
}
.btn{
width: 480rpx;
height: 80rpx;
background-image: linear-gradient(90deg,
#fcaa05 0%,
#f48e14 100%);
border-radius: 40rpx;
position: fixed;
left:135rpx;
bottom: 100rpx;
font-size: 36rpx;
color: #ffffff;
line-height: 80rpx;
text-align: center;
}
.btn button{
opacity: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
position: absolute;
left:0;
top: 0;
z-index: 10;
}