Compare commits
2 Commits
c4318615e3
...
b7529dd64d
Author | SHA1 | Date |
---|---|---|
|
b7529dd64d | |
|
05627a62d7 |
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -793,6 +793,13 @@
|
|||
{
|
||||
"navigationBarTitleText" : "聊天信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/shop/gift",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "礼包专区"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
@ -147,6 +147,9 @@
|
|||
if (rs.code == 200) {
|
||||
// 提现回调
|
||||
getToWalletCallback()
|
||||
|
||||
//
|
||||
uni.navigateBack()
|
||||
return
|
||||
}
|
||||
util.alert({
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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 |
|
@ -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()],
|
||||
|
|
Loading…
Reference in New Issue