Merge branch 'youda' of http://192.168.195.14:3000/shang/yfs into youda

This commit is contained in:
18631081161 2025-06-06 20:15:39 +08:00
commit d8652f5a39
14 changed files with 90 additions and 844 deletions

View File

@ -17,7 +17,7 @@ export const whiteList = [
"pages/shouye/huanxiang", // 换箱页面
"pages/mall/index", // 商城首页
"pages/shouye/detail_wuxian", // 无限详情页
"pages/sangdai/sangdai", // 盒柜页面
"pages/hegui/hegui", // 盒柜页面
"pages/infinite/index", // 福利首页
"pages/user/index", // 用户中心
"pages/infinite/daily_check_in", // 每日签到

View File

@ -18,6 +18,32 @@ class AppPlatform extends BasePlatform {
}
AppLaunch(options) {
console.log("AppLaunch", options);
uni.hideTabBar({})
this.getConfig().then(res => {
console.log("AppLaunch", res);
if (res.isCheck) {
console.log("开启审核模式开启审核模式开启审核模式开启审核模式开启审核模式开启审核模式开启审核模式");
uni.setTabBarItem({
index: 0,
visible: false,
});
uni.setTabBarItem({
index: 2,
text: "购物车"
// visible:false,
});
uni.setTabBarItem({
index: 3,
visible: false,
});
uni.showTabBar({})
uni.switchTab({
url: '/pages/mall/index'
});
// uni.tos
}
})
}
@ -171,7 +197,18 @@ class AppPlatform extends BasePlatform {
getUserMenuList() {
// 获取基础菜单列表
const baseMenuList = super.getUserMenuList();
let menuList = [];
for (let i = 0; i < baseMenuList.length; i++) {
let menu = baseMenuList[i];
if (menu.id == 3) {
if (!this.getIsCheck("user_menu_3")) {
menuList.push(menu);
}
} else {
menuList.push(menu);
}
}
// 添加App特有的菜单项
const appSpecificMenus = [{
id: 12,
@ -183,7 +220,7 @@ class AppPlatform extends BasePlatform {
}];
// 返回合并后的菜单列表
return [...baseMenuList];
return menuList;
}
/**
@ -266,7 +303,7 @@ class AppPlatform extends BasePlatform {
uni.removeStorageSync('token');
uni.removeStorageSync('userinfo');
uni.switchTab({
url: '/pages/shouye/index'
url: '/pages/shouye/index'
});
// window.location.href = window.location.href;
}

View File

@ -18,6 +18,7 @@ class BasePlatform {
this.config = null;
}
async getConfig() {
// return new Promise((resolve, reject) => {
if (this.config) {
return this.config;
}
@ -25,6 +26,13 @@ class BasePlatform {
this.config = res;
return this.config;
}
/**
* 获取是否需要审核
* @returns {boolean} 是否需要审核
*/
getIsCheck(tag) {
return this.config?.isCheck ?? false;
}
getPayData(url, data) {
throw new Error('子类必须实现 getPayData 方法');
}

View File

@ -78,7 +78,7 @@
icon: '/static/tabbar/hegui.png',
actIcon: '/static/tabbar/hegui_sel.png',
title: '盒柜',
path: '/pages/sangdai/sangdai'
path: '/pages/hegui/hegui'
},
{
id: 5,
@ -109,7 +109,7 @@
icon: '/static/tabbar/hegui.png',
actIcon: '/static/tabbar/hegui_sel.png',
title: '盒柜',
path: '/pages/sangdai/sangdai'
path: '/pages/hegui/hegui'
},
{
id: 4,

View File

@ -19,7 +19,7 @@ Component({
},
{
"index": 3,
"pagePath": "/pages/sangdai/sangdai",
"pagePath": "/pages/hegui/hegui",
"iconPath": "/static/tabbar/m3.png",
"selectedIconPath": "/static/tabbar/s3.png",
"text": "盒柜"

View File

@ -716,7 +716,7 @@ export default {
this.$c.to({
type: 3,
url: "/pages/sangdai/sangdai",
url: "/pages/hegui/hegui",
});
},

View File

@ -695,7 +695,7 @@
this.$c.to({
type: 3,
url: '/pages/sangdai/sangdai'
url: '/pages/hegui/hegui'
})
},

View File

@ -180,23 +180,6 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/sangdai/sangdai",
"style": {
"navigationBarBackgroundColor": "#222222",
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "pages/sangdai/caceDetail",
"style": {
"navigationBarBackgroundColor": "#222222",
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "pages/user/tui-guang",
"style": {
@ -410,6 +393,13 @@
{
"navigationStyle": "custom"
}
},
{
"path" : "pages/hegui/hegui",
"style" :
{
"navigationStyle": "custom"
}
}
],
"subPackages": [{
@ -512,7 +502,7 @@
"text": "商城"
},
{
"pagePath": "pages/sangdai/sangdai",
"pagePath": "pages/hegui/hegui",
"iconPath": "static/tabbar/m3.png",
"selectedIconPath": "static/tabbar/s3.png",
"text": "盒柜"

View File

@ -453,12 +453,15 @@ export default {
if (this.tabList[this.tabCur].id != 1) return
const arr = []
this.listData.forEach(item => {
item.orderlist.forEach(a => {
arr.push(a)
if (this.listData != null && this.listData.length > 0) {
this.listData.forEach(item => {
if (item != null && item.orderlist != null && item.orderlist.length > 0) {
item.orderlist.forEach(a => {
arr.push(a)
})
}
})
})
}
return arr
.filter(item => item.prize_num > 0)
@ -468,9 +471,11 @@ export default {
if (this.listData != null && this.listData.length > 0) {
let t = []
this.listData.forEach(it => {
it.orderlist.forEach(a => {
t.push(a)
})
if (it != null && it.orderlist != null && it.orderlist.length > 0) {
it.orderlist.forEach(a => {
t.push(a)
})
}
})
return t
} else {
@ -540,7 +545,7 @@ export default {
chooseAdd() {
this.canReload = false;
console.log('aaaaaaaaaaaaaaaaaaaa');
this.$platform.chooseAddress().then(res => {
console.log(res);
@ -800,7 +805,6 @@ export default {
a.chooseNum = 0
})
})
this.freightData = res.data.yufei
}
if (res.data.show_dadajuan != null) {
@ -1313,12 +1317,12 @@ export default {
// #endif
// #ifdef MP
bottom: calc(var(--window-bottom) + 160rpx);
// #endif
// #ifdef APP
bottom: 10px;
// #endif
width: 750rpx;
box-sizing: border-box;
padding: 0 30rpx 100rpx;

View File

@ -1,741 +0,0 @@
<template>
<view class="content">
<!-- 购买说明 -->
<view class="header" v-if="goods" :style="'background: url(https://hdyfs.languowangluo.cn'+ goods.card_banner + ') repeat 0 0 / 100% auto;'">
<view class="head">
<view class="status_bar" :style="'height:'+ statusBarHeight +'px;'"></view>
<view class="header_title">
<view @click="back()">
<image :src="z_imgPath + 'back.png'"></image>返回
</view>
<view class="hang1">{{goods.title}} </view>
</view>
</view>
<view class="redu">
<view> 收集进度: <text>{{goods.hove_count}}</text> /{{goods.count}}</view>
<view>
<cmd-progress :percent="goods.gailv" :show-info="false" stroke-color="#1AC762" :strokeWidth="10">
</cmd-progress>
</view>
</view>
</view>
<mescroll-body ref="mescrollRef" style="min-height: auto;" @init="mescrollInit" :down="downOption"
@down="downCallback" @up="upCallback">
<view class="title_ipt">
<image :src="z_imgPath+'search.png'"></image>
<input type="text" placeholder="请输入关键字" placeholder-style="color:rgba(255,255,255,0.6)"
onfirm-type="search" v-model="keyword" @confirm="show='',loadData(1)" />
<view>搜索</view>
</view>
<view class="qiehuan">
<view @click="getlist(i,'')" v-for="(v,i) in arr" :key="i">
<view :class="show==i?'xzs':'wzs'">{{v}}</view>
<view class="qiehuan_line" v-if="show==i"> </view>
</view>
</view>
<view class="cate">
<view v-for="(item,index) in shang_cate" :key="index" :class="item.id==shang_id?'cate_sel':''"
@click="getlist(show,item.id)">{{item.title}}</view>
</view>
<!-- 赏池预览 -->
<view class="shop" v-if="goodslist && goodslist.length>0">
<view v-for="(item,index) in goodslist" :key="index" class="shop_item">
<!-- @click="change_sel(index,item.is)" -->
<view class="item_head" @click="yulan(item)">
<image :src="'https://hdyfs.languowangluo.cn'+item.imgurl" mode="aspectFill"></image>
<!-- <view class="hang1">{{item.prize_code}}</view> -->
<!-- <view v-if="item.is==1">X{{item.num}}</view>
<view class="mengban" v-else></view> -->
</view>
<view class="shop_con">
<view class="hang1" style="color: #FFFFFF;">{{item.title}}</view>
</view>
</view>
</view>
</mescroll-body>
</view>
</template>
<script>
export default {
data() {
return {
z_imgPath: this.$z_img1 + 'chouka/',
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
goods_id: '', //id
goodslist: [],
goods: {},
downOption: {
auto: false
},
//
shang_cate: [],
shang_id: '',
//
keyword: '',
// , ''
arr: ['全部', '已拥有', '未拥有'],
show: 0
}
},
onLoad(v) {
this.goods_id = v.caId
this.getShang()
},
onShareAppMessage() {
let that = this;
return {
title: "友达赏,正版潮玩手办一番赏",
imageUrl: that.goods.imgurl,
path: "/pages/chouka/index"
};
},
methods: {
getShang(){
let that = this;
that.req({
url: 'card_level',
success(res) {
if (res.status == 1) {
that.shang_cate=res.data
}
}
})
},
getlist(v, a) {
this.is_quan = false
this.show = v;
this.shang_id = a ? a : ''
this.goodslist = []
this.mescroll.resetUpScroll()
},
back() {
uni.navigateBack()
},
downCallback() {
this.mescroll.resetUpScroll(false)
},
upCallback(page) {
this.loadData(page.num);
},
loadData(pageNo) {
let that = this;
that.req({
url: 'card_book',
data: {
page: pageNo,
card_id: that.goods_id,
shang_id: that.shang_id,
title: that.keyword,
type: that.show
},
success(res) {
if (res.status == 1) {
if (res.status == 0) {
setTimeout(() => {
uni.navigateBack()
}, 1500)
}
if (res.status == 1) {
that.goods = res.data.card_goods
// that.shang_cate = res.data.category
that.count = res.data.goods_list.total
that.post = res.data.yuefei
console.log(that.post)
that.mescroll.endByPage(res.data.goods_list.data.length, res.data.goods_list.last_page);
// console.log(res.data.data)
if (pageNo == 1) {
that.goodslist = res.data.goods_list.data;
} else {
that.goodslist = that.goodslist.concat(res.data.goods_list.data);
}
if (that.is_quan) {
for (let i = 0; i < that.goodslist.length; i++) {
that.$set(that.goodslist[i], 'number', that.goodslist[i].num)
}
} else {
for (let i = 0; i < that.goodslist.length; i++) {
that.$set(that.goodslist[i], 'number', 0)
}
}
}
}
}
})
},
}
}
</script>
<style>
.yulanStyle image:nth-of-type(1) {
width: 550rpx;
/* height: 550rpx; */
}
.yulanStyle>view:nth-of-type(2) {
border: 10rpx solid #FF7514;
box-sizing: border-box;
margin-bottom: 20rpx;
margin-top: 10rpx;
overflow: hidden;
}
.yulanStyle>view:nth-of-type(1) {
font-size: 32rpx;
font-family: Source Han Sans CN;
font-weight: bold;
color: #080808;
line-height: 52rpx;
-webkit-text-stroke: 3rpx #FFFFFF;
text-stroke: 3rpx #FFFFFF;
background: #FF7514;
padding: 6rpx 20rpx;
width: fit-content;
}
.yulanStyle {
font-size: 47rpx;
font-family: Source Han Sans CN;
font-weight: bold;
color: #FFFFFF;
text-align: center;
}
textarea {
width: 100%;
height: 120rpx;
background: rgba(255, 255, 255, 0.08);
border-radius: 10rpx;
padding: 4rpx 10rpx;
margin-top: 20rpx;
font-size: 26rpx;
box-sizing: border-box;
}
.kuaidi_text {
font-size: 24rpx;
color: #999999;
}
.kuaidi>view:nth-of-type(2) {
font-size: 28rpx;
}
.kuaidi>view:nth-of-type(1) {
border-bottom: 1px solid #666666;
padding: 20rpx 0;
}
.kuaidi>view {
margin-top: 20rpx;
}
.kuaidi image {
width: 32rpx;
height: 32rpx;
}
.kuaidi {
padding: 0 30rpx 30rpx 30rpx !important;
color: #ffffff;
}
.order_title>image {
width: 164rpx;
height: 29rpx;
position: absolute;
left: 30rpx;
top:20rpx;
}
.order_title {
font-size: 50rpx;
font-family: Source Han Sans CN;
font-weight: bold;
color: #FFFFFF;
position: relative;
text-align: right;
}
.order {
width: 750rpx;
background: rgba(0, 0, 0, 0.9);
border-radius: 30rpx 30rpx 0px 0px;
border-top: 5rpx solid #35ED85;
border-bottom: none;
position: absolute;
bottom: 0;
padding: 10rpx 30rpx 50rpx;
box-sizing: border-box;
color: #FFFFFF;
}
.pop_huishou {
width: 610rpx;
height: 70rpx;
margin: 48rpx auto 0;
display: block;
}
.xuyuan_foot {
display: flex;
align-items: center;
justify-content: flex-end;
padding: 30rpx;
font-size: 24rpx;
color: #FFFFFF;
text-shadow: 0px 0px 14rpx #FF2121;
}
.xuyuan_item_2 {
color: #ffffff;
font-size: 24rpx;
margin-top: 6rpx;
width: 100%;
}
.shop_item_img>view:nth-of-type(1) {
position: absolute;
bottom: 0;
left: 0;
font-size: 20rpx;
padding: 2rpx 20rpx 2rpx 10rpx;
box-sizing: border-box;
background: #FF7514;
border-radius: 0 8rpx 0 0;
}
.shop_item_img>image {
width: 100%;
height: 100%;
border-radius: 8rpx;
position: absolute;
top: 0;
left: 0;
}
.shop_item_img {
width: 170rpx;
height: 170rpx;
border-radius: 10rpx 10rpx 0 0;
position: relative;
text-align: left;
box-sizing: border-box;
overflow: hidden;
}
.xuyuan_item {
width: 170rpx !important;
min-width: 170rpx;
height: 242rpx;
margin-right: 20rpx;
flex-shrink: 0;
text-align: center;
position: relative;
margin-top: 20rpx;
}
.xuyuan_con {
display: flex;
margin: 14rpx auto 0;
width: 630rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #666666;
overflow-x: scroll;
overflow-y: hidden;
}
.xuyuan_head>view:nth-of-type(2) {
font-size: 24rpx;
}
.xuyuan_head {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 28rpx;
padding: 0 24rpx;
box-sizing: border-box;
color: #ffffff;
}
.xuyuan {
width: 690rpx;
/* height: 432rpx; */
background: #222222;
/* border: 2rpx solid #FFFFFF; */
border-radius: 1rpx;
margin: 24rpx auto 0;
padding-top: 24rpx;
box-sizing: border-box;
}
.pop_btn {
width: 484rpx;
height: 68rpx;
background: #000000;
border: 2rpx solid #2FB4FF;
border-radius: 6rpx;
font-size: 32rpx;
color: #2FB4FF;
margin: 50rpx auto 0;
display: flex;
justify-content: center;
align-items: center;
}
.pop_con {
height: 440rpx;
margin: auto;
padding: 0rpx 36rpx;
font-size: 24rpx;
line-height: 36rpx;
color: #FFFFFF;
box-sizing: border-box;
overflow-y: scroll;
}
.pop_title {
/* font-family: 'zcq'; */
font-size: 40rpx;
color: #96FFFE;
height: 128rpx;
line-height: 128rpx;
text-align: center;
}
.pop {
width: 543rpx;
height: 801rpx;
padding-top: 192rpx;
box-sizing: border-box;
/* background: #FFFFFF; */
/* border-radius: 20rpx; */
}
.p_t_r {
position: absolute;
top: -20rpx;
right: -10rpx;
width: 32rpx;
height: 32rpx;
}
.footer>image {
width: 212rpx;
height: 70rpx;
}
/* .footer>image:nth-of-type(3) {
width: 317rpx;
height: 106rpx;
position: absolute;
top: 20rpx;
left: 0;
right: 0;
margin: auto;
z-index: 11;
} */
.jiesuo {
margin: auto;
width: 317rpx !important;
height: 106rpx !important;
}
.footer {
width: 750rpx;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
position: fixed;
bottom: 0rpx;
right: 0;
left: 0;
margin: auto;
background: #0D0D0D;
padding: 30rpx 60rpx;
box-sizing: border-box;
}
.xuanfu image {
width: 77rpx;
height: 77rpx;
margin-top: 20rpx;
}
.xuanfu {
position: fixed;
bottom: 391rpx;
right: 20rpx;
width: 77rpx;
z-index: 21;
}
.shop_con {
padding:5rpx 10rpx 6rpx;
box-sizing: border-box;
line-height: 40rpx;
/* background: #000000; */
border-radius: 0 0 10rpx 10rpx;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.6);
text-align: center;
}
.item_head>view:nth-of-type(1) {
width: 100%;
position: absolute;
background: rgba(255, 255, 255, .7);
/* border-radius: 0 7rpx 0 0; */
font-size: 24rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #333333;
bottom: 0rpx;
left: 0rpx;
padding: 6rpx 14rpx;
box-sizing: border-box;
}
.mengban {
width: 100%;
height: 100%;
position: absolute;
background: rgba(0, 0, 0, 0.8) !important;
top: 0;
left: 0;
}
.item_head>image {
width: 193rpx;
height: 264rpx;
}
.item_head {
width: 193rpx;
height: 264rpx;
position: relative;
}
.shop_item {
width: 193rpx;
margin-top: 10rpx;
position: relative;
box-sizing: border-box;
color: #FFFFFF;
}
.shop>.shop_item:nth-child(3n+2) {
margin: 10rpx 26rpx 0;
}
.shop {
width: 690rpx;
min-height: 664rpx;
background: rgba(255, 255, 255, 0.08);
border-radius: 10px;
margin: 0rpx auto;
display: flex;
/* justify-content: center; */
flex-wrap: wrap;
padding: 10rpx 30rpx;
box-sizing: border-box;
font-size: 24rpx;
}
.cate_sel {
background: linear-gradient(0deg, #1AC762 0%, #35ED85 100%) !important;
color: #000 !important;
}
.cate>view {
padding: 4rpx 20rpx;
/* border: 3rpx solid; */
border-radius: 10rpx;
margin-right: 30rpx;
font-size: 30rpx;
color: #FFFFFF;
margin-top: 20rpx;
background: #444444;
}
.cate {
width: 690rpx;
margin: 30rpx auto;
display: flex;
flex-wrap: wrap;
}
.qiehuan {
display: flex;
/* justify-content: space-between; */
align-items: center;
width: 690rpx;
margin: 0 auto;
box-sizing: border-box;
/* font-family: 'zcq'; */
/* font-weight: bold; */
}
.qiehuan>view {
/* flex: 1; */
text-align: center;
margin-right: 30rpx;
}
.wzs {
background: #E6E6E6;
border-radius: 10rpx;
color: #999999;
padding: 15rpx 40rpx;
font-size: 30rpx;
}
.xzs {
background: linear-gradient(0deg, #1AC762 0%, #35ED85 100%);
border-radius: 10rpx;
color: #000000;
padding: 15rpx 40rpx;
font-size: 30rpx;
/* font-size: 42rpx;
color: #FF7514;
-webkit-text-stroke: 1rpx #FFFFFF;
text-stroke: 1rpx #FFFFFF;
text-shadow: 2rpx 2rpx 10rpx #FFFFFF; */
}
.title_ipt {
display: flex;
align-items: center;
margin: 20rpx auto;
border-radius: 30rpx;
padding-left: 30rpx;
width: 652rpx;
height: 64rpx;
background: rgba(0, 0, 0, 0.7);
border-radius: 32rpx;
box-sizing: border-box;
}
.title_ipt>image {
width: 26rpx;
height: 26rpx;
}
.title_ipt>input {
width: 77%;
height: 60rpx;
box-sizing: border-box;
border-radius: 105rpx;
font-size: 28rpx;
line-height: 60rpx;
font-size: 28rpx;
font-weight: 400;
color: rgba(255, 255, 255, 0.6);
padding-left: 20rpx;
}
.title_ipt>view {
width: 94rpx;
height: 35rpx;
background: linear-gradient(0deg, #1AC762 0%, #35ED85 100%);
border-radius: 18rpx;
font-size: 23rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #111111;
display: flex;
align-items: center;
justify-content: center;
margin-right: 20rpx;
}
.redu {
position: absolute;
bottom: 65rpx;
left: 0;
right: 0;
margin: auto;
width: 694rpx;
height: 108rpx;
background: rgba(22, 22, 22, 0.6);
padding: 16rpx 20rpx;
box-sizing: border-box;
color: #FFFFFF;
font-size: 20rpx;
border-radius: 0 0 7rpx 7rpx;
}
.header_title>view:nth-of-type(2) {
width: 520rpx;
text-align: center;
/* margin: auto; */
}
.header_title>view:nth-of-type(1) {
display: flex;
align-items: center;
}
.header_title image {
width: 48rpx;
height: 48rpx;
}
.header_title {
height: 70rpx;
line-height: 70rpx;
width: 100%;
box-sizing: border-box;
font-weight: bold;
display: flex;
align-items: center;
padding-left: 30rpx;
box-sizing: border-box;
}
.status_bar {
height: var(--status-bar-height);
width: 100%;
}
.head {
position: fixed;
top: 0;
z-index: 20;
}
.header {
width: 750rpx;
height: 489rpx;
background: #FFFFFF;
font-size: 32rpx;
color: #FFFFFF;
box-sizing: border-box;
position: absolute;
top: 0;
z-index: 15;
}
.content {
padding-bottom: 120rpx;
/* background: #FAFAFA; */
padding-top: 489rpx;
}
</style>

View File

@ -606,7 +606,7 @@ export default {
this.$c.to({
type: 3,
url: "/pages/sangdai/sangdai",
url: "/pages/hegui/hegui",
});
},

View File

@ -521,7 +521,7 @@
this.$refs.resPop.close();
this.$c.to({
type: 3,
url: '/pages/sangdai/sangdai'
url: '/pages/hegui/hegui'
})
},

View File

@ -22,7 +22,7 @@
</view>
</view>
<view v-if="userinfo" class="lv-box align-center justify-between"
<view v-if="userinfo && getIsCheck()" class="lv-box align-center justify-between"
@click="$c.to({ url: '/package/mine/equity' })">
<text class="lv-box-dengji">LV.{{ userinfo.quan_yi_level.level }}</text>
<view class="lv-box-ouqi column">
@ -49,7 +49,7 @@
</view>
<view class="money-card">
<view v-if="getIsCheck('user_money')" class="money-card">
<view class="other-num">
<view v-if="zuanshi" class="other-item" @click="$c.to({ url: '/pages/user/yetx' })">
<view class="title">{{ $config.getAppSetting('balance_name') }}</view>
@ -74,7 +74,7 @@
</view>
</view>
<view v-if="taskList.length > 0" class="task">
<view v-if="taskList.length > 0 && getIsCheck('user_task')" class="task">
<view class="task-title">主要任务</view>
<view
style="width: 622rpx; height: 2rpx; background-color: #F3F3F3; margin-left: 32rpx; margin-top: 34rpx;">
@ -109,7 +109,7 @@
<view class="qita mt30">
<view class="qita-title">其他服务</view>
<view class="qita-title" v-if="getIsCheck('user_menu_title')">其他服务</view>
<view class="menu-card">
<template v-for="(item, i) in menuList">
<!-- 普通菜单项 -->
@ -163,24 +163,8 @@ export default {
return {
z_imgPath: this.$z_img2,
userinfo: '',
menuList: [],
zuanshi: false,
//
money_1: '',
list: [{
// img: 'mine/img01.png?1',
// sel: 'mine/sel01.png?1',
name: '一番赏收藏'
},
{
// img: 'mine/img02.png?1',
// sel: 'mine/sel02.png?1'
name: '无限池收藏'
}
],
show: 1,
taskList: []
}
@ -196,7 +180,7 @@ export default {
},
onHide() {
uni.setStorageSync('page', this.$mp.page.route)
// uni.setStorageSync('page', this.$mp.page.route)
},
onShareAppMessage() {
let imageUrl = this.$config.getShareImageUrl();
@ -219,6 +203,7 @@ export default {
});
}
// #endif
},
methods: {
toChange() {
@ -233,6 +218,9 @@ export default {
url: '/pages/user/change'
})
},
getIsCheck(tag) {
return !this.$platform.getIsCheck(tag);
},
receiveCoupon() {
const coupon_id = uni.getStorageSync('_ou_coupon_id')
@ -323,43 +311,6 @@ export default {
})
// #endif
},
getPhoneNumber(e) {
// console.log(e)
let that = this
uni.login({
success(res) {
// console.log(res)
uni.checkSession({
success() {
that.req({
url: 'login_bind_mobile',
data: {
code: e.detail.code,
encryptedData: e.detail.encryptedData,
iv: e.detail.iv
},
success(res) {
console.log(res);
if (res.status == 1) {
if (res.data != null && res.data.token != null) {
uni.setStorageSync('token', res.data.token);
}
uni.showToast({
title: '绑定成功~',
success() {
that.getdata()
}
})
}
}
})
}
})
}
})
},
getlist(index) {
this.show = index
@ -383,7 +334,7 @@ export default {
this.taskList = [];
return;
}
const res = await this.$request.post('user');
console.log("resresresres", res);
if (res.status == 1) {
@ -396,7 +347,7 @@ export default {
}
},
//
toPage(id) {

View File

@ -3,15 +3,12 @@
<view @click="_calcValue('minus')" class="uni-numbox__minus uni-numbox-btns" :style="{background}">
<text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue <= min || disabled }"
:style="{color}">-</text>
<!-- <image src="/static/sangdai/jian.png" ></image> -->
</view>
<input :disabled="disabled" @focus="_onFocus" @blur="_onBlur" class="uni-numbox__value" type="number"
v-model="inputValue" />
<!-- :style="{background, color}" -->
<view @click="_calcValue('plus')" class="uni-numbox__plus uni-numbox-btns" :style="{background}">
<text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue >= max || disabled }"
:style="{color}">+</text>
<!-- <image src="/static/sangdai/jia.png" ></image> -->
</view>
</view>
</template>