Compare commits

...

2 Commits

Author SHA1 Message Date
sx b7529dd64d 工作代码提交 2025-04-08 21:54:02 +08:00
sx 05627a62d7 工作代码提交 2025-04-07 19:27:14 +08:00
9 changed files with 155 additions and 36 deletions

View File

@ -8,7 +8,7 @@ const config = {
// #ifndef H5
// host: 'http://91f.xyz:8080',
host: 'http://liuyd.cpolar.top',
// host: 'http://liuyd.cpolar.top',
// host: 'http://hpedc3.natappfree.cc',
// #endif
// 是否vivo显示
showVivo: true,

View File

@ -60,11 +60,9 @@
})
}
//
function handleCancel() {
//
if (versionCloud.value.isForce == 1) plus.runtime.quit()
else close()
//
function handleQuit() {
plus.runtime.quit()
}
defineExpose({
@ -97,8 +95,12 @@
<text class="tac cfff f28" @click="handleConfirm">更新</text>
</view>
<view class="btn cancel bar f1">
<text class="tac c333 f28" @click="handleCancel">取消</text>
<view class="btn cancel bar f1" v-if="versionCloud.isForce == 1">
<text class="tac c333 f28" @click="handleQuit">关闭</text>
</view>
<view class="btn cancel bar f1" v-else>
<text class="tac c333 f28" @click="close">取消</text>
</view>
</view>
</view>

View File

@ -793,6 +793,13 @@
{
"navigationBarTitleText" : "聊天信息"
}
},
{
"path" : "pages/shop/gift",
"style" :
{
"navigationBarTitleText" : "礼包专区"
}
}
],

View File

@ -147,6 +147,9 @@
if (rs.code == 200) {
//
getToWalletCallback()
//
uni.navigateBack()
return
}
util.alert({

View File

@ -30,14 +30,14 @@
return handleAlipayPay(event)
}
},
{
img: '/static/shop-weixin-pay.png',
name: '微信支付',
provider: 'wxpay',
apiRequest: (event) => {
return handleWeChat(event)
}
},
// {
// img: '/static/shop-weixin-pay.png',
// name: '',
// provider: 'wxpay',
// apiRequest: (event) => {
// return handleWeChat(event)
// }
// },
])
//
const paymentIndex = ref(0)
@ -136,7 +136,6 @@
content: params.response.msg,
showCancel: false,
})
}
</script>

107
jiuyi2/pages/shop/gift.vue Normal file
View File

@ -0,0 +1,107 @@
<script setup>
//
import {
ref,
reactive,
getCurrentInstance,
} from 'vue'
import {
onReachBottom,
onPullDownRefresh,
onShow,
onLoad,
onReady,
} from '@dcloudio/uni-app';
//
import util from '@/common/js/util.js'
//
import api from '@/api/index.js'
//
import productList from '@/components/shop/productList/productList'
// tab
const tab = reactive([{
name: '礼包专区',
},
{
name: '超值礼包',
},
{
name: '大礼包',
},
{
name: '小礼包',
},
])
//
const tabIndex = ref(0)
// tab
function handleTab(index) {
if (tabIndex.value === index) return
tabIndex.value = index
}
</script>
<template>
<view class="app">
<!-- 公告 -->
<swiper class="notice c333 f28" vertical="true">
<swiper-item class="item bsb rows plr20" v-for="(item, index) in 2" :key="index">
<image class="icon" src="/static/notice.png" mode="aspectFit" />
<view class="f1 mlr20">九亿商城上线啦~</view>
</swiper-item>
</swiper>
<!-- 礼包专区 -->
<view class="tab bfff">
<view class="item ver ptb10" v-for="(item,index) in tab" :key="index" @click="handleTab(index)"
:class="{'active': index === tabIndex}">
<view class="mtb20">{{item.name}}</view>
<view class="line"></view>
</view>
</view>
<!-- 商品卡片组 加载更多 -->
<view class="product oh ptb30 plr30">
<productList ref="product" />
</view>
</view>
</template>
<style lang="scss" scoped>
//
.notice {
height: 80rpx;
background-color: #e8e8e8;
.icon {
width: 84rpx;
height: 36rpx;
}
}
//
.tab {
display: grid;
grid-template-columns: repeat(4, 1fr);
//
.item {
.line {
width: 40rpx;
height: 6rpx;
background-color: #DD4B5B;
opacity: 0;
transition: .3s;
}
&.active {
.line {
opacity: 1;
}
}
}
}
</style>

View File

@ -2,7 +2,6 @@
/**
* 商城
*/
//
import {
ref,
reactive,
@ -106,7 +105,7 @@
<template>
<view class="appbw">
<!-- 轮播图 -->
<swiper class="banner oh mtb30 mlr30 br20" autoplay="true" v-if="0">
<swiper class="banner oh" autoplay="true">
<swiper-item v-for="(item, index) in 3" :key="index">
<view class="item">
<image class="poster"
@ -116,14 +115,12 @@
</swiper-item>
</swiper>
<!-- 公告 -->
<swiper class="notice mtb30 mlr30 c333 f28 br20" vertical="true" v-if="0">
<swiper-item class="item bsb rows plr20" v-for="(item, index) in 2" :key="index">
<image class="wh30" src="/static/notice.png" mode="aspectFit" />
<view class="f1 mlr20">九亿商城上线啦~</view>
<uni-icons type="right" />
</swiper-item>
</swiper>
<view class="gift mtb30">
<view class="item fdc fmid" v-for="(item,index) in 4" :key="index">
<image class="icon" src="/static/logo.png" mode="aspectFill" />
<view class="mt10 c333 f28">礼包专区</view>
</view>
</view>
<!-- 功能区 -->
<view class="fn rows mtb30 mlr30">
@ -158,8 +155,7 @@
<style lang="scss" scoped>
//
.banner {
height: 300rpx;
box-shadow: 0 0 20rpx #00000066;
height: 180rpx;
.item {
height: 100%;
@ -171,10 +167,15 @@
}
}
//
.notice {
height: 80rpx;
background-color: #f8f8f8;
//
.gift {
display: grid;
grid-template-columns: repeat(4, 1fr);
.icon {
width: 110rpx;
height: 90rpx;
}
}
//

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -3,9 +3,9 @@ import {
} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
// let target = 'http://91f.xyz:8080'
let target = 'http://liuyd.cpolar.top '
// let target = 'http://3qkcs4.natappfree.cc'
let target = 'http://91f.xyz:8080'
// let target = 'http://liuyd.cpolar.top'
// let target = 'http://hpedc3.natappfree.cc'
export default defineConfig({
plugins: [uni()],