Commit 715ee273 authored by 石家欣's avatar 石家欣

sjx

parent cc45385e
<template>
<view @touchmove.stop.prevent>
<view class="e-modal" :class="[visible?'e-modal_show':'e-modal_hidden',animation?'e-modal-action_animation':'']">
<view class="e-modal-container" :style="{width}" @click.stop.prevent>
<slot></slot>
</view>
</view>
<view :class="['e-modal-mask',visible && mask ? 'e-modal-mask_show' : '',animation?'e-modal-action_animation':'']"></view>
</view>
</template>
<script>
export default {
props: {
visible: {
type: Boolean,
default: false
},
mask: {
type: Boolean,
default: true
},
width: {
type: String,
default: '75%'
},
animation: {
type: Boolean,
default: true
}
},
methods: {
cancel() {
this.$emit('update:visible', false)
this.$nextTick(()=>{
this.$emit('cancel')
})
}
}
}
</script>
<style scoped lang="scss">
.e-modal,
.e-modal-mask {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.e-modal-action_animation {
transition: all 0.3s ease-in-out;
}
.e-modal {
display: flex;
justify-content: center;
align-items: center;
z-index: 997;
}
.e-modal_hidden {
visibility: hidden;
transform: scale(0);
}
.e-modal_show {
visibility: visible;
transform: scale(1);
}
.e-modal-container {
background-color: #fff;
border-radius: 6px;
}
.e-modal-mask {
visibility: hidden;
z-index: 996;
}
.e-modal-mask_show {
background: rgba(0, 0, 0, 0.6);
visibility: visible;
}
</style>
......@@ -3,8 +3,8 @@
//"appid" : "__UNI__FC9419E",
"appid" : "__UNI__1EA80F1", //这个是 web
"description" : "",
"versionName" : "1.0.61",
"versionCode" : 161,
"versionName" : "1.0.62",
"versionCode" : 162,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
......
......@@ -228,6 +228,7 @@
export default {
data() {
return {
tancl: false,
shop:{},
countdata:{},
......@@ -254,6 +255,7 @@
setTimeout(()=>{
this.$refs.Welcome.show();
},2000)
},
//下拉刷新
onPullDownRefresh(){
......@@ -262,7 +264,8 @@
},
onShow() {
this.storeIndexfun();
// 判断用户有没有绑定手机号
//检测更新
setTimeout(()=>{
// this.$refs.yomolUpgrade.checkVersionClick()
......@@ -276,6 +279,8 @@
},1000)
},
methods: {
demoaudio(){
//语音提醒
//AudioVoice openVoice
......@@ -318,6 +323,8 @@
tan() {
this.tancl = !this.tancl
},
//获取首页的数据
async storeIndexfun(){
let res = await storeIndex({
......@@ -327,6 +334,7 @@
if(res.code==0){
this.countdata = res.data.counts;//统计的数据
this.shop_type = res.data.shop_type;//店铺类型 商城 goods
}else{
this.$api.msg(res.msg);
}
......@@ -447,4 +455,5 @@
font-size: 24upx;
}
}
</style>
......@@ -19,15 +19,17 @@
<view class="btn" style="font-size: 16px;">立即提现</view>
</view>
<view class="jilu">
<navigator url="/pages/user/record/record"><view class="jl">提现记录 ></view></navigator>
<navigator url="/pages/user/record/record">
<view class="jl">提现记录 ></view>
</navigator>
</view>
</view>
<view class="icon flex-wrap flex">
<view class="ico mt-40" >
<view class="ico mt-40">
<navigator url="/pages/storeqrcode/storeqrcode">
<view class="tubiao">
<image class="img" src="/static/icon/rqcodeicon.png"></image>
</view>
<view class="tt">
......@@ -35,10 +37,10 @@
</view>
</navigator>
</view>
<view class="ico mt-40" >
<view class="ico mt-40">
<navigator url="/pages/user/mingxi/mingxi">
<view class="tubiao">
<image class="img" src="/static/icon/zijin.png"></image>
</view>
<view class="tt">
......@@ -46,10 +48,10 @@
</view>
</navigator>
</view>
<view class="ico mt-40" >
<view class="ico mt-40">
<navigator url="/pages/user/fenxiao/bankcard/bankcard">
<view class="tubiao">
<image class="img" src="/static/icon/ordericons.png"></image>
</view>
<view class="tt">
......@@ -57,10 +59,10 @@
</view>
</navigator>
</view>
<view class="ico mt-40" >
<view class="ico mt-40">
<navigator url="/pages/setup/setup">
<view class="tubiao">
<image class="img" src="/static/icon/setupicon.png"></image>
</view>
<view class="tt">
......@@ -68,68 +70,151 @@
</view>
</navigator>
</view>
</view>
<view class="kong"></view>
<yomol-upgrade ref="yomolUpgrade"></yomol-upgrade>
<yomol-upgrade ref="yomolUpgrade"></yomol-upgrade>
<!-- 升级组件 -->
<eModal :visible.sync="visible" :animation='true'>
<view class="eModalbox">
<view class="names">绑定手机号</view>
<view class="names-min">*请勿必绑定手机号,否则将无法提现</view>
<view class="inputboxitem flex">
<view class="inputsview flex1">
<input type="number" value="" v-model="mobile" class="inputs" placeholder="请输入手机号" />
</view>
</view>
<view class="submitbtn " @tap="isStoreSaveMobile">确认修改</view>
</view>
</eModal>
<!-- 绑定手机号 -->
</view>
</template>
<script>
import {storeIndex} from "@/utils/api/api.js";
import yomolUpgrade from '@/components/yomol-upgrade/yomol-upgrade.vue';//升级组件
import {
storeIndex,
storeSaveMobile
} from "@/utils/api/api.js";
import yomolUpgrade from '@/components/yomol-upgrade/yomol-upgrade.vue'; //升级组件
import eModal from "@/components/e-modal/e-modal.vue";
export default {
data() {
return {
list: [
],
counts:{},//统计的数据
list: [],
visible: false,
mobile: '',
counts: {}, //统计的数据
}
},
components: {
yomolUpgrade
yomolUpgrade,
eModal,
},
onLoad() {
},
//下拉刷新
onPullDownRefresh(){
onPullDownRefresh() {
this.getstoreIndex();
// uni.stopPullDownRefresh();//结束下拉刷新
},
onShow() {
this.getstoreIndex();
//检测更新
setTimeout(()=>{
setTimeout(() => {
// #ifdef APP-PLUS
this.$refs.yomolUpgrade.checkVersionClick();
// #endif
},1000)
}, 1000)
},
methods:{
methods: {
// 绑定手机号
isStoreSaveMobile(e) {
var data = {
mobile: this.mobile
}
storeSaveMobile(data).then(res => {
if (res.code == 0) {
this.$api.msg(res.msg);
this.visible = false
} else {
uni.showModal({
title: '提示',
content: res.msg,
showCancel: false,
confirmText: '确认',
})
}
})
},
//获取统计信息接口
async getstoreIndex(){
async getstoreIndex() {
let res = await storeIndex({
});
uni.stopPullDownRefresh();
if(res.code==0){
if (res.code == 0) {
this.counts = res.data.counts;
}else{
this.mobile = res.data.mobile //用户帮没帮定手机号
if (!this.mobile) {
this.visible = true
};
} else {
this.$api.msg(res.msg);
}
},
jump_cash(){
jump_cash() {
uni.navigateTo({
url: '/pages/yjWithdraw/yjWithdraw?type=2',
});
}
}
}
</script>
<style lang="scss">
@import "./reseller.scss";
.eModalbox{
width: 100%;
height: 40vh;
padding: 40upx 40upx 0 40upx;
.names{
font-size:30upx;
color:rgba(0,0,0,1);
text-align: center;
margin-bottom: 20upx;
}
.names-min{
font-size:24upx;
color:#ff6900;
text-align: center;
margin-bottom: 80upx;
}
.inputboxitem{
height: 92upx;
line-height: 92upx;
border-bottom: 1px solid #E4E4E4;
.inputs{
height: 92upx;
line-height: 92upx;
font-size:30upx;
color:rgba(0,0,0,1);
}
}
.submitbtn{
margin: 60upx 24upx;
height:88upx;
line-height: 88upx;
text-align: center;
background:#ff6900;
border-radius:6upx;
font-size:32upx;
color:rgba(255,255,255,1);
}
}
</style>
......@@ -435,4 +435,8 @@ export function storeUpdatePassword(data)
return request.post("user/updatePassword",data,{ noAuth : true});
}
//绑定手机号
export function storeSaveMobile(data)
{
return request.post("user/saveMobile",data,{ noAuth : true});
}
......@@ -2,8 +2,8 @@
//环境变量 这个是 鹿马商家助手的 商家助手的~~~~
module.exports = {
//是否为开发调试环境 true为本地环境 false 为正式环境
isdebug:true,//测试
// isdebug:false,//正式
// isdebug:true,//测试
isdebug:false,//正式
xqdebug:false,//正式权限
// xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment