Compare commits
No commits in common. "b7529dd64d368a15987955d3683c0d2130c43639" and "c4318615e3e156974aaea30d8e98f83cff4f5237" have entirely different histories.
b7529dd64d
...
c4318615e3
|
@ -8,7 +8,7 @@ const config = {
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
// host: 'http://91f.xyz:8080',
|
// host: 'http://91f.xyz:8080',
|
||||||
host: 'http://liuyd.cpolar.top',
|
host: 'http://liuyd.cpolar.top',
|
||||||
// host: 'http://hpedc3.natappfree.cc',
|
// host: 'http://liuyd.cpolar.top',
|
||||||
// #endif
|
// #endif
|
||||||
// 是否vivo显示
|
// 是否vivo显示
|
||||||
showVivo: true,
|
showVivo: true,
|
||||||
|
|
|
@ -60,9 +60,11 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关闭
|
// 取消
|
||||||
function handleQuit() {
|
function handleCancel() {
|
||||||
plus.runtime.quit()
|
// 判断是否强制更新
|
||||||
|
if (versionCloud.value.isForce == 1) plus.runtime.quit()
|
||||||
|
else close()
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
@ -95,12 +97,8 @@
|
||||||
<text class="tac cfff f28" @click="handleConfirm">更新</text>
|
<text class="tac cfff f28" @click="handleConfirm">更新</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="btn cancel bar f1" v-if="versionCloud.isForce == 1">
|
<view class="btn cancel bar f1">
|
||||||
<text class="tac c333 f28" @click="handleQuit">关闭</text>
|
<text class="tac c333 f28" @click="handleCancel">取消</text>
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="btn cancel bar f1" v-else>
|
|
||||||
<text class="tac c333 f28" @click="close">取消</text>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -793,13 +793,6 @@
|
||||||
{
|
{
|
||||||
"navigationBarTitleText" : "聊天信息"
|
"navigationBarTitleText" : "聊天信息"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"path" : "pages/shop/gift",
|
|
||||||
"style" :
|
|
||||||
{
|
|
||||||
"navigationBarTitleText" : "礼包专区"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -147,9 +147,6 @@
|
||||||
if (rs.code == 200) {
|
if (rs.code == 200) {
|
||||||
// 提现回调
|
// 提现回调
|
||||||
getToWalletCallback()
|
getToWalletCallback()
|
||||||
|
|
||||||
//
|
|
||||||
uni.navigateBack()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
util.alert({
|
util.alert({
|
||||||
|
|
|
@ -30,14 +30,14 @@
|
||||||
return handleAlipayPay(event)
|
return handleAlipayPay(event)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// img: '/static/shop-weixin-pay.png',
|
img: '/static/shop-weixin-pay.png',
|
||||||
// name: '微信支付',
|
name: '微信支付',
|
||||||
// provider: 'wxpay',
|
provider: 'wxpay',
|
||||||
// apiRequest: (event) => {
|
apiRequest: (event) => {
|
||||||
// return handleWeChat(event)
|
return handleWeChat(event)
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
])
|
])
|
||||||
// 支付列表下标
|
// 支付列表下标
|
||||||
const paymentIndex = ref(0)
|
const paymentIndex = ref(0)
|
||||||
|
@ -136,6 +136,7 @@
|
||||||
content: params.response.msg,
|
content: params.response.msg,
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,107 +0,0 @@
|
||||||
<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,6 +2,7 @@
|
||||||
/**
|
/**
|
||||||
* 商城
|
* 商城
|
||||||
*/
|
*/
|
||||||
|
// 底部菜单
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive,
|
||||||
|
@ -105,7 +106,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="appbw">
|
<view class="appbw">
|
||||||
<!-- 轮播图 -->
|
<!-- 轮播图 -->
|
||||||
<swiper class="banner oh" autoplay="true">
|
<swiper class="banner oh mtb30 mlr30 br20" autoplay="true" v-if="0">
|
||||||
<swiper-item v-for="(item, index) in 3" :key="index">
|
<swiper-item v-for="(item, index) in 3" :key="index">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<image class="poster"
|
<image class="poster"
|
||||||
|
@ -115,12 +116,14 @@
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
|
|
||||||
<view class="gift mtb30">
|
<!-- 公告 -->
|
||||||
<view class="item fdc fmid" v-for="(item,index) in 4" :key="index">
|
<swiper class="notice mtb30 mlr30 c333 f28 br20" vertical="true" v-if="0">
|
||||||
<image class="icon" src="/static/logo.png" mode="aspectFill" />
|
<swiper-item class="item bsb rows plr20" v-for="(item, index) in 2" :key="index">
|
||||||
<view class="mt10 c333 f28">礼包专区</view>
|
<image class="wh30" src="/static/notice.png" mode="aspectFit" />
|
||||||
</view>
|
<view class="f1 mlr20">九亿商城上线啦~</view>
|
||||||
</view>
|
<uni-icons type="right" />
|
||||||
|
</swiper-item>
|
||||||
|
</swiper>
|
||||||
|
|
||||||
<!-- 功能区 -->
|
<!-- 功能区 -->
|
||||||
<view class="fn rows mtb30 mlr30">
|
<view class="fn rows mtb30 mlr30">
|
||||||
|
@ -155,7 +158,8 @@
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// 轮播图
|
// 轮播图
|
||||||
.banner {
|
.banner {
|
||||||
height: 180rpx;
|
height: 300rpx;
|
||||||
|
box-shadow: 0 0 20rpx #00000066;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -167,15 +171,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 礼包专区
|
// 公告
|
||||||
.gift {
|
.notice {
|
||||||
display: grid;
|
height: 80rpx;
|
||||||
grid-template-columns: repeat(4, 1fr);
|
background-color: #f8f8f8;
|
||||||
|
|
||||||
.icon {
|
|
||||||
width: 110rpx;
|
|
||||||
height: 90rpx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 功能区
|
// 功能区
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 4.1 KiB |
|
@ -3,9 +3,9 @@ import {
|
||||||
} from 'vite';
|
} from 'vite';
|
||||||
import uni from '@dcloudio/vite-plugin-uni';
|
import uni from '@dcloudio/vite-plugin-uni';
|
||||||
|
|
||||||
let target = 'http://91f.xyz:8080'
|
// let target = 'http://91f.xyz:8080'
|
||||||
// let target = 'http://liuyd.cpolar.top'
|
let target = 'http://liuyd.cpolar.top '
|
||||||
// let target = 'http://hpedc3.natappfree.cc'
|
// let target = 'http://3qkcs4.natappfree.cc'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [uni()],
|
plugins: [uni()],
|
||||||
|
|
Loading…
Reference in New Issue