zhengshuiqi 3 years ago
parent
commit
515675936a
  1. 38
      pages/index/index.vue
  2. 6
      pages/index/index2.vue
  3. 542
      pages/login/index.vue
  4. 14
      pages/productDetails/index.vue
  5. 17
      pages/shippingCart/index.vue

38
pages/index/index.vue

@ -14,6 +14,8 @@
return { return {
// register // register
register: -1, register: -1,
// 广
isRegister: true,
typee: '', typee: '',
mycurrent: 0, mycurrent: 0,
isScrollShow: false, isScrollShow: false,
@ -378,6 +380,10 @@
}); });
}, },
Register() {
let that = this
that.isRegister = false
},
openClose() { openClose() {
// console.log(11) // console.log(11)
this.countdownTime2 = 0 this.countdownTime2 = 0
@ -1021,8 +1027,12 @@
console.log(res,'用户信息') console.log(res,'用户信息')
if (res.error == -1) { if (res.error == -1) {
uni.setStorageSync('isLogin', 0) uni.setStorageSync('isLogin', 0)
let that = this
that.isRegister = true
} else if (res.error == 0) { } else if (res.error == 0) {
uni.setStorageSync('isLogin', 1) uni.setStorageSync('isLogin', 1)
let that = this
that.isRegister = false
} }
that.register = res.error that.register = res.error
console.log(that.register); console.log(that.register);
@ -1039,8 +1049,11 @@
uni.navigateTo({ uni.navigateTo({
url: '../login/index' url: '../login/index'
}) })
let that = this
that.isRegister = true
} else if (res.error == 0) { } else if (res.error == 0) {
let that = this
that.isRegister = false
} }
}) })
}, },
@ -1354,12 +1367,16 @@
</swiper> </swiper>
</view> </view>
<!-- HOMEAD --> <!-- HOMEAD -->
<view v-if="register == -1"> <!-- :class="isRegister == true ? 'isRegister-active' : 'isRegister-default'" -->
<view class="HOMEAD" v-if="item.zone_code=='HOMEAD' && item.zone_status=='NORMAL'"> <view v-if="isRegister == true">
<!-- class="discount page_padding" --> <view ref="register" v-if="register == -1">
<image :src="item.blocks[0].block_pic" style="width: 92%;display: flex;justify-content: center;align-items: center;margin: 0 auto;object-fit: cover;" <view class="HOMEAD" v-if="item.zone_code=='HOMEAD' && item.zone_status=='NORMAL'" style="position: relative;">
:style="{height:(item.zone_code=='HOMEAD')?item.zone_column+'rpx':''}" mode="" <!-- class="discount page_padding" -->
@click="registers"></image> <image :src="item.blocks[0].block_pic" style="width: 92%;display: flex;justify-content: center;align-items: center;margin: 0 auto;object-fit: cover;"
:style="{height:(item.zone_code=='HOMEAD')?item.zone_column+'rpx':''}" mode=""
@click="registers"></image>
<image style="position: absolute;width: 20px;height: 20px;top: 7px;right: 20px;" mode=" " @click="Register" src="../../static/img/close2.png"></image>
</view>
</view> </view>
</view> </view>
<!-- TWOPIC --> <!-- TWOPIC -->
@ -2689,5 +2706,10 @@
// width: 100%; // width: 100%;
// } // }
// } // }
.isRegister-active {
display: block;
}
.isRegister-default {
display: none;
}
</style> </style>

6
pages/index/index2.vue

@ -95,7 +95,7 @@
<swiper-item v-for="item1,index1 in item.blocks" :key="item1.block_id"> <swiper-item v-for="item1,index1 in item.blocks" :key="item1.block_id">
<view :class="['swiper-items',index1==mycurrent ? 'active' : '']"> <view :class="['swiper-items',index1==mycurrent ? 'active' : '']">
<image :src="item1.block_pic" mode="" <image :src="item1.block_pic" mode=""
:style="{width:(item.zone_code=='HONLIST1')?420+'rpx':'',height:'100%'}" :style="{width:(item.zone_code=='HONLIST1')?420+'rpx':'',height:item.zone_column+'rpx'}"
@click="imgTo(item1)"></image> @click="imgTo(item1)"></image>
</view> </view>
</swiper-item> </swiper-item>
@ -109,7 +109,7 @@
:key="item1.block_id"> :key="item1.block_id">
<view :class="['swiper-item',index==mycurrent ? 'active' : '']"> <view :class="['swiper-item',index==mycurrent ? 'active' : '']">
<image :src="item1.block_pic" mode="" <image :src="item1.block_pic" mode=""
:style="{width:(item.zone_code=='HONLIST2')?420+'rpx':'',height:item.zone_column+'rpx'}" :style="{width:(item.zone_code=='HONLIST2')?160+'px':'',height:item.zone_column+'rpx'}"
@click="imgTo(item1)"></image> @click="imgTo(item1)"></image>
</view> </view>
</view> </view>
@ -119,7 +119,7 @@
v-if="item.zone_code=='HONLIST3' && item.zone_status=='NORMAL'" @scroll="scrollhot"> v-if="item.zone_code=='HONLIST3' && item.zone_status=='NORMAL'" @scroll="scrollhot">
<view class="spike1_item" v-for="(item1,index1) in item.blocks" :key="item1.block_id"> <view class="spike1_item" v-for="(item1,index1) in item.blocks" :key="item1.block_id">
<view class="item_img " <view class="item_img "
:style="{width:(item.zone_code=='HONLIST3')?280+'rpx':'',height:item.zone_column +'rpx'}"> :style="{width:(item.zone_code=='HONLIST3')?+'rpx':'',height:item.zone_column +'rpx'}">
<image :src="item1.block_pic" mode="" @click="imgTo(item1)"></image> <image :src="item1.block_pic" mode="" @click="imgTo(item1)"></image>
<a :href="item1.block_link"></a> <a :href="item1.block_link"></a>
</view> </view>

542
pages/login/index.vue

@ -7,21 +7,26 @@
<view class="login_top"> <view class="login_top">
<image src="../../static/img/loginbg.png"></image> <image src="../../static/img/loginbg.png"></image>
</view> </view>
<view class="login_body"> <view class="login_body">
<view class="status_bar"></view> <view class="status_bar"></view>
<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#010101" class="select"></uni-segmented-control> <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text"
<view class="body"> activeColor="#010101" class="select"></uni-segmented-control>
<view class="login" v-show="current==0"> <view class="body">
<input type="text" class="login_input" placeholder="eamil address" v-model="loginDate.username" @input="verificationLogin"> <view class="login" v-show="current==0">
<view class="login_input1"> <input type="text" class="login_input" placeholder="eamil address" v-model="loginDate.username"
<input :password="!tag" class="login_input1_text"placeholder="password" v-model="loginDate.password" @input="verificationLogin"> @input="verificationLogin">
<image :src="eye" mode ="" class="see login_see" @click="seePwd"></image> <view class="login_input1">
</view> <input :password="!tag" class="login_input1_text" placeholder="password"
v-model="loginDate.password" @input="verificationLogin">
<view class="tips" v-show="loginErr"><image src="../../static/img/att.png" mode=""></image>{{errMsg}}</view> <image :src="eye" mode="" class="see login_see" @click="seePwd"></image>
<view class="forgot" @click="forgotPwd">Forgot your Password?</view> </view>
<button class="login_submit" :disabled="isLogin" @click="login()" >SIGN IN</button>
<!-- <view class="agreement"> <view class="tips" v-show="loginErr">
<image src="../../static/img/att.png" mode=""></image>{{errMsg}}
</view>
<view class="forgot" @click="forgotPwd">Forgot your Password?</view>
<button class="login_submit" :disabled="isLogin" @click="login()">SIGN IN</button>
<!-- <view class="agreement">
<image src="../../static/img/select2.png" mode="" class="agreement_image" @click="loginSelect=!loginSelect,loginErr=false" v-show="!loginSelect"></image> <image src="../../static/img/select2.png" mode="" class="agreement_image" @click="loginSelect=!loginSelect,loginErr=false" v-show="!loginSelect"></image>
<image src="../../static/img/select1.png" mode="" class="agreement_image" @click="loginSelect=!loginSelect" v-show="loginSelect"></image> <image src="../../static/img/select1.png" mode="" class="agreement_image" @click="loginSelect=!loginSelect" v-show="loginSelect"></image>
<view class="agreement_right"> <view class="agreement_right">
@ -29,27 +34,41 @@
</view> </view>
</view> --> </view> -->
</view> <view class="cellphone">
<view class="login" v-show="current==1"> <view class="cellphone-box">
<input type="text" class="login_input" placeholder="name" @input="verificationReg" v-model="regDate.username"> <view class="cellphone-minBox" v-if="cellphone == 2"> <image src="../../static/img/apple.png" mode=""></image></view>
<input type="text" class="login_input" placeholder="eamil address" @input="verificationReg" v-model="regDate.email"> <view class="cellphone-minBox"><image src="../../static/img/facebook.png" mode=""></image></view>
<!-- <input type="text" class="login_input" placeholder="password" @input="verificationReg" v-model="regDate.password1"> --> <view class="cellphone-minBox" v-if="cellphone == 1"> <image src="../../static/img/gugei.png" mode=""></image></view>
<view class="login_input1"> </view>
<input :password="!tag" class="login_input1_text"placeholder="password" v-model="regDate.password1" @input="verificationReg">
<image :src="eye" mode ="" class="see login_see" @click="seePwd"></image>
</view> </view>
<view class="tips" v-show="regErr">{{errMsg}}</view>
<button class="login_submit" :disabled="isReg" @click="Reg()">REGISTER</button> </view>
<view class="agreement"> <view class="login" v-show="current==1">
<image src="../../static/img/select2.png" mode="" style="width: 25px;height: 25px;" class="agreement_image" @click="regSelect=!regSelect" v-show="!regSelect"></image> <input type="text" class="login_input" placeholder="name" @input="verificationReg"
<image src="../../static/img/select_red.png" mode="" style="width: 25px;height: 25px;" class="agreement_image" @click="regSelect=!regSelect" v-show="regSelect"></image> v-model="regDate.username">
<view class="agreement_right"> <input type="text" class="login_input" placeholder="eamil address" @input="verificationReg"
by continuong, you agree to be <text class="text"@click="gotonewpage(1)" > terms of use </text> and <text class="text" @click="gotonewpage(2)"> privacy policy</text>. v-model="regDate.email">
<!-- <input type="text" class="login_input" placeholder="password" @input="verificationReg" v-model="regDate.password1"> -->
<view class="login_input1">
<input :password="!tag" class="login_input1_text" placeholder="password"
v-model="regDate.password1" @input="verificationReg">
<image :src="eye" mode="" class="see login_see" @click="seePwd"></image>
</view>
<view class="tips" v-show="regErr">{{errMsg}}</view>
<button class="login_submit" :disabled="isReg" @click="Reg()">REGISTER</button>
<view class="agreement">
<image src="../../static/img/select2.png" mode="" style="width: 25px;height: 25px;"
class="agreement_image" @click="regSelect=!regSelect" v-show="!regSelect"></image>
<image src="../../static/img/select_red.png" mode="" style="width: 25px;height: 25px;"
class="agreement_image" @click="regSelect=!regSelect" v-show="regSelect"></image>
<view class="agreement_right">
by continuong, you agree to be <text class="text" @click="gotonewpage(1)"> terms of use
</text> and <text class="text" @click="gotonewpage(2)"> privacy policy</text>.
</view>
</view> </view>
</view> </view>
</view>
<!-- <view class="mode">
<!-- <view class="mode">
<view class="mode_title"> or continue with </view> <view class="mode_title"> or continue with </view>
<view class="mode_content"> <view class="mode_content">
<image src="/static/img/facebook2.png" class="mode_content_image"></image> <image src="/static/img/facebook2.png" class="mode_content_image"></image>
@ -57,53 +76,58 @@
<image src="/static/img/apple.png" class="mode_content_image" style="border: #fff solid 1rpx;border-radius: 50%;"></image> <image src="/static/img/apple.png" class="mode_content_image" style="border: #fff solid 1rpx;border-radius: 50%;"></image>
</view> </view>
</view> --> </view> -->
</view>
<uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog type="error" cancelText="Close" confirmText="Activation" title="Tips"
content="Please activate the mailbox first" @confirm="dialogConfirm"></uni-popup-dialog>
</uni-popup>
</view> </view>
<uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog type="error" cancelText="Close" confirmText="Activation" title="Tips" content="Please activate the mailbox first"
@confirm="dialogConfirm" ></uni-popup-dialog>
</uni-popup>
</view>
</view> </view>
</template> </template>
<script> <script>
import {defaultRequest1,defaultRequest} from '../../api/index.js' import {
defaultRequest1,
defaultRequest
} from '../../api/index.js'
const app = getApp() const app = getApp()
export default { export default {
data() { data() {
return { return {
// 0 () 1 (google) 2 IOS(apple id)
cellphone: 0,
items: ['SIGN IN', 'REGISTER'], items: ['SIGN IN', 'REGISTER'],
current: 0, current: 0,
tag:false, tag: false,
eye:'../../static/img/eye_open.png', eye: '../../static/img/eye_open.png',
loginDate:{ loginDate: {
username:'', username: '',
password:'', password: '',
_action:'loginbyun' _action: 'loginbyun'
}, },
regDate:{ regDate: {
username:'', username: '',
email:'', email: '',
password1:'', password1: '',
password2:'', password2: '',
_action:'registerun' _action: 'registerun'
}, },
// //
isLogin:true, isLogin: true,
isReg:true, isReg: true,
// //
regSelect:false, regSelect: false,
loginSelect:false, loginSelect: false,
// //
backButtonPress:0, backButtonPress: 0,
loginErr:false, loginErr: false,
regErr:false, regErr: false,
errMsg:'The email address or password you enterde is incorrect.', errMsg: 'The email address or password you enterde is incorrect.',
query:{ query: {
_action:'sendmessagesforvalidation', _action: 'sendmessagesforvalidation',
username:'', username: '',
}, },
bg:'/static/img/bg.png' bg: '/static/img/bg.png'
} }
}, },
// onBackPress(options) { // onBackPress(options) {
@ -118,32 +142,32 @@
// }, 1000); // }, 1000);
// return true; // return true;
// }, // },
methods:{ methods: {
seePwd(){ seePwd() {
this.tag = !this.tag; this.tag = !this.tag;
if(this.eye.includes('eye_open')){ if (this.eye.includes('eye_open')) {
this.eye = '../../static/img/eye_w.png' this.eye = '../../static/img/eye_w.png'
}else{ } else {
this.eye ='../../static/img/eye_open.png' this.eye = '../../static/img/eye_open.png'
} }
}, },
back(){ back() {
uni.navigateBack({ uni.navigateBack({
delta:1 delta: 1
}) })
}, },
forgotPwd(){ forgotPwd() {
if(this.loginDate.username==''){ if (this.loginDate.username == '') {
uni.showToast({ uni.showToast({
title:'Please fill in the user email first', title: 'Please fill in the user email first',
icon:'none', icon: 'none',
duration: 2000 duration: 2000
}) })
return return
} }
uni.navigateTo({ uni.navigateTo({
url:'./verifyEmail?email='+this.loginDate.username url: './verifyEmail?email=' + this.loginDate.username
}) })
}, },
onClickItem(e) { onClickItem(e) {
@ -152,171 +176,184 @@
} }
}, },
// //
configuration(){ configuration() {
let data={_action:'getpagedata',pagecode:'006-PERSONALCENTERPAGE'} let data = {
setTimeout(() =>{ _action: 'getpagedata',
defaultRequest(data).then(res=>{ pagecode: '006-PERSONALCENTERPAGE'
}
setTimeout(() => {
defaultRequest(data).then(res => {
console.info(res) console.info(res)
res.data.zones.map( item =>{ res.data.zones.map(item => {
if(item.zone_code == 'LOGINBG'){ if (item.zone_code == 'LOGINBG') {
let src ='https://www.dopeplus.com/images/mapp_customized/202209/1663570362997892419.png' let src =
'https://www.dopeplus.com/images/mapp_customized/202209/1663570362997892419.png'
if(src !==item.blocks[0].block_pic ){
if (src !== item.blocks[0].block_pic) {
this.bg = item.blocks[0].block_pic this.bg = item.blocks[0].block_pic
} }
console.log(this.bg) console.log(this.bg)
} }
}) })
}) })
},200) }, 200)
}, },
// //
login(){ login() {
// if(!this.loginSelect){ // if(!this.loginSelect){
// this.errMsg='Please read and tick the terms of service and privacy policy first.' // this.errMsg='Please read and tick the terms of service and privacy policy first.'
// this.loginErr=true // this.loginErr=true
// return // return
// } // }
uni.showLoading({ uni.showLoading({
title:'Logining', title: 'Logining',
}) })
console.log(this.loginDate) console.log(this.loginDate)
defaultRequest1(this.loginDate).then(res=>{ defaultRequest1(this.loginDate).then(res => {
app.globalData.error = res.error app.globalData.error = res.error
console.log('======================',res.error) console.log('======================', res.error)
if(res.error==0){ if (res.error == 0) {
this.loginErr=false this.loginErr = false
res.data.isLogin=true res.data.isLogin = true
setTimeout( () =>{ setTimeout(() => {
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
title:'Login successful', title: 'Login successful',
icon:'none', icon: 'none',
duration: 2000 duration: 2000
}) })
},1000) }, 1000)
let list ={ let list = {
email:res.data.email, email: res.data.email,
cartlist:[] cartlist: []
} }
let list2 = [] let list2 = []
list2.push(list) list2.push(list)
uni.setStorageSync('cartlist',list2) uni.setStorageSync('cartlist', list2)
uni.setStorageSync('isLogin',1) uni.setStorageSync('isLogin', 1)
uni.setStorageSync('user_info',res.data) uni.setStorageSync('user_info', res.data)
uni.navigateBack({ uni.navigateBack({
delta:1 delta: 1
}) })
// uni.switchTab({ // uni.switchTab({
// delta: 1 // delta: 1
// url:'../index/index' // url:'../index/index'
// }) // })
}else{ } else {
if(res.data){ if (res.data) {
this.$refs.alertDialog.open() this.$refs.alertDialog.open()
this.query.username=this.loginDate.username this.query.username = this.loginDate.username
}else{ } else {
this.loginErr=true this.loginErr = true
this.errMsg=res.message this.errMsg = res.message
console.log(this.errMsg); console.log(this.errMsg);
} }
} }
}) })
}, },
// //
dialogConfirm(){ dialogConfirm() {
console.log(this.query,'////') console.log(this.query, '////')
defaultRequest(this.query).then(res=>{ defaultRequest(this.query).then(res => {
console.info(res) console.info(res)
if(res.error==0){ if (res.error == 0) {
uni.showToast({ uni.showToast({
title:res.message, title: res.message,
icon:'none', icon: 'none',
duration: 2000 duration: 2000
}) })
} }
}) })
}, },
// //
Reg(){ Reg() {
if(!this.regSelect){ if (!this.regSelect) {
uni.showToast({ uni.showToast({
title:'please agree to and tick the User Agreement first', title: 'please agree to and tick the User Agreement first',
icon:'none', icon: 'none',
duration: 2000 duration: 2000
}) })
return return
} }
this.regDate.password2=this.regDate.password1 this.regDate.password2 = this.regDate.password1
uni.showLoading({ uni.showLoading({
title:'Register now~', title: 'Register now~',
}) })
defaultRequest1(this.regDate).then(res=>{ defaultRequest1(this.regDate).then(res => {
console.info(res) console.info(res)
if(res.error==0){ if (res.error == 0) {
uni.hideLoading() uni.hideLoading()
this.regErr=false this.regErr = false
this.loginDate.password = this.regDate.password1 this.loginDate.password = this.regDate.password1
this.loginDate.username = this.regDate.username this.loginDate.username = this.regDate.username
this.login() this.login()
setTimeout( ()=>{ setTimeout(() => {
// Successful registration, please verify your email address! // Successful registration, please verify your email address!
uni.showToast({ uni.showToast({
title:'logining in~', title: 'logining in~',
icon:'none', icon: 'none',
duration: 2000 duration: 2000
}) })
},1000) }, 1000)
}else{ } else {
this.regErr=true this.regErr = true
this.errMsg=res.message this.errMsg = res.message
} }
}) })
}, },
// //
verificationLogin(){ verificationLogin() {
if(this.loginDate.username && this.loginDate.password){ if (this.loginDate.username && this.loginDate.password) {
this.isLogin=false this.isLogin = false
}else{ } else {
this.isLogin=true this.isLogin = true
} }
}, },
// //
verificationReg(){ verificationReg() {
if(this.regDate.username && this.regDate.password1 && this.regDate.email){ if (this.regDate.username && this.regDate.password1 && this.regDate.email) {
this.isReg=false this.isReg = false
}else{ } else {
this.isReg=true this.isReg = true
} }
}, },
// //
gotonewpage(e){ gotonewpage(e) {
if(e==1){ if (e == 1) {
var urlStr = encodeURI("https://dopeplus.com/help/Terms.html") var urlStr = encodeURI("https://dopeplus.com/help/Terms.html")
// plus.runtime.openURL(urlStr); // plus.runtime.openURL(urlStr);
uni.navigateTo({ uni.navigateTo({
url:'../order/paypalWebview?src='+urlStr url: '../order/paypalWebview?src=' + urlStr
}) })
} } else {
else{
var urlStr = encodeURI("https://en.meixx.com/help/privacy.html") var urlStr = encodeURI("https://en.meixx.com/help/privacy.html")
// plus.runtime.openURL(urlStr); // plus.runtime.openURL(urlStr);
uni.navigateTo({ uni.navigateTo({
url:'../order/paypalWebview?src='+urlStr url: '../order/paypalWebview?src=' + urlStr
}) })
} }
},
phone (){
let that = this
let systemInfo = uni.getSystemInfoSync();
if (systemInfo.platform === 'android') {
//
that.cellphone = 1
console.log(this.cellphone);
} else if (systemInfo.platform === 'ios') {
// IOS
that.cellphone = 2
console.log(this.cellphone);
}
} }
}, },
onLoad() { onLoad() {
// //
@ -325,7 +362,7 @@
let time = setInterval(() => { let time = setInterval(() => {
uni.getNetworkType({ uni.getNetworkType({
success: (res) => { success: (res) => {
console.log(res.networkType, s); // console.log(res.networkType, s);
if (res.networkType == 'none') { if (res.networkType == 'none') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
@ -335,126 +372,129 @@
} else if (res.networkType !== 'none') { } else if (res.networkType !== 'none') {
that.typee = 2; that.typee = 2;
clearInterval(time); clearInterval(time);
} }
} }
}) })
s++; s++;
}, 1000); }, 1000);
this.configuration() this.configuration()
this.phone()
// IOS&Android
let systemInfo = uni.getSystemInfoSync();
if (systemInfo.platform === 'android') {
//
console.log(安卓);
} else if (systemInfo.platform === 'ios') {
// IOS
console.log(IOS);
}
} }
} }
</script> </script>
<style> <style>
page{ page {
height: 100vh; height: 100vh;
background-color: black; background-color: black;
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.one1{ .one1 {
display: flex; display: flex;
height:100rpx; height: 100rpx;
padding-top: 50rpx; padding-top: 50rpx;
width: 100%; width: 100%;
top:0; top: 0;
line-height: 100rpx; line-height: 100rpx;
z-index: 99; z-index: 99;
position: fixed; position: fixed;
text-align: center; text-align: center;
padding-left:20rpx; padding-left: 20rpx;
color:#fff; color: #fff;
image{
float: left; image {
padding-top: 30rpx; float: left;
padding-right:20rpx; padding-top: 30rpx;
height: 40rpx; padding-right: 20rpx;
width: 40rpx; height: 40rpx;
} width: 40rpx;
.one_text{ }
width: 60%;
text-align: center; .one_text {
margin-left: 10%; width: 60%;
} text-align: center;
margin-left: 10%;
} }
.login_top{
}
.login_top {
height: 102px; height: 102px;
width: 144px; width: 144px;
margin-top: 200rpx; margin-top: 200rpx;
margin-left: 30%; margin-left: 30%;
image{
image {
height: 100%; height: 100%;
width: 100%; width: 100%;
margin: auto 0; margin: auto 0;
} }
} }
.body{
.body {
background-size: 100%; background-size: 100%;
height: 100vh; height: 100vh;
width: 100%; width: 100%;
// background-color: red; // background-color: red;
padding:0; padding: 0;
color:#fff !important; color: #fff !important;
position: fixed; position: fixed;
} }
.uni-input-placeholder{
color:#fff !important; .uni-input-placeholder {
font-size:13px; color: #fff !important;
font-size: 13px;
} }
.tips{
.tips {
margin-top: 20rpx; margin-top: 20rpx;
} }
/deep/ .uni-text .segmented-control__text{
color:#fff !important; /deep/ .uni-text .segmented-control__text {
color: #fff !important;
} }
.login_body{
.login_body {
// margin-top: 300rpx; // margin-top: 300rpx;
padding-top: 80.33rpx; padding-top: 80.33rpx;
color:#fff; color: #fff;
} }
.see{
.see {
height: 30rpx; height: 30rpx;
width: 30rpx; width: 30rpx;
margin-top: 36rpx; margin-top: 36rpx;
float: right; float: right;
} }
.select{
.select {
margin-bottom: 80rpx; margin-bottom: 80rpx;
font-size: 33.33rpx; font-size: 33.33rpx;
font-weight: bold; font-weight: bold;
} }
.mode{
.mode {
// position: fixed; // position: fixed;
margin-top: 300rpx; margin-top: 300rpx;
bottom: 138.67rpx; bottom: 138.67rpx;
width: 100%; width: 100%;
left: 0; left: 0;
.mode_title{ .mode_title {
font-size: 26.67rpx; font-size: 26.67rpx;
color: #fff; color: #fff;
// position: relative; // position: relative;
text-align: center; text-align: center;
width: 100%; width: 100%;
&:before{ &:before {
content: ""; content: "";
height: 1px; height: 1px;
width: 89.33rpx; width: 89.33rpx;
@ -463,7 +503,8 @@
left: 20%; left: 20%;
top: 50%; top: 50%;
} }
&:after{
&:after {
content: ""; content: "";
height: 1px; height: 1px;
width: 89.33rpx; width: 89.33rpx;
@ -473,32 +514,57 @@
top: 50%; top: 50%;
} }
} }
.uni-button{
.uni-button {
background-color: aqua !important; background-color: aqua !important;
} }
.mode_content{
.mode_content {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 50.67rpx; margin-top: 50.67rpx;
.mode_content_image{ .mode_content_image {
width: 54.67rpx; width: 54.67rpx;
height: 54.67rpx; height: 54.67rpx;
margin-right: 49.33rpx; margin-right: 49.33rpx;
image{
image {
border: #fff solid 1rpx; border: #fff solid 1rpx;
} }
&:last-child{
&:last-child {
margin-right: 0; margin-right: 0;
} }
} }
} }
} }
.agreement_right{
.agreement_right {
width: 582rpx; width: 582rpx;
} }
/deep/ .uni-input-input{
/deep/ .uni-input-input {
font-size: 26rpx !important; font-size: 26rpx !important;
} }
</style>
.cellphone {
display: flex;
justify-content: space-around;
&-box {
display: flex;
justify-content: space-between;
}
&-minBox {
width: 50px;
height: 50px;
padding: 0 10px;
}
image {
width: 100%;
height: 100%;
object-fit: cover;
}
}
</style>

14
pages/productDetails/index.vue

@ -397,7 +397,7 @@
:class="goods_attr_list[index].goods_attr_id==item1.goods_attr_id?'active_color':''" :class="goods_attr_list[index].goods_attr_id==item1.goods_attr_id?'active_color':''"
@click="selectAttr(item.attr_id,item1.goods_attr_id,index1,item1.attr_price)"> @click="selectAttr(item.attr_id,item1.goods_attr_id,index1,item1.attr_price)">
<view class="color_select_item_zoom"> <view class="color_select_item_zoom">
<image src="/static/icon/big2.png" @click="clickImg(index1)" mode="" <image src="/static/icon/big2.png" @click="clickImg(index1,item.list)" mode=""
v-if="item1.attr_img!=''"></image> v-if="item1.attr_img!=''"></image>
</view> </view>
<image :src="item1.attr_img" mode="" v-if="item1.attr_img!=''"></image> <image :src="item1.attr_img" mode="" v-if="item1.attr_img!=''"></image>
@ -734,20 +734,25 @@
// //
clickImg(index, e) { clickImg(index, e) {
console.log(e) console.log(e)
console.log(e[0].attr_img);
let list = [] let list = []
if (e) { if (e) {
if (typeof(e) === 'object') { if (typeof(e) === 'object') {
for (let i in e) { for (let i in e) {
console.log(e[i].afile) // console.log(e[i].afile)
list.push(e[i].afile) // list.push(e[i].afile)
console.log(e[i].attr_img)
list.push(e[i].attr_img)
console.log(list) console.log(list)
console.log('44444$');
} }
} else { } else {
e.map(item => { e.map(item => {
list.push(item.attr_img) list.push(item.attr_img)
}) })
console.log('55555$');
} }
@ -1035,6 +1040,8 @@
this.getCatList(0) this.getCatList(0)
} }
}) })
let that = this
that.video = false
}, },
// //
gridSwiper(e) { gridSwiper(e) {
@ -1174,7 +1181,6 @@
this.isCart = true this.isCart = true
} }
console.info(this.shipping_list) console.info(this.shipping_list)
this.isVideo() this.isVideo()
}, },
onShow() { onShow() {

17
pages/shippingCart/index.vue

@ -1147,18 +1147,17 @@
this.getCatList(0) this.getCatList(0)
this.getAddress() this.getAddress()
this.getorder() this.getorder()
}, },
async onShow() { async onShow() {
this.isLogin = uni.getStorageSync('isLogin') this.isLogin = uni.getStorageSync('isLogin')
console.log(this.isLogin) console.log(this.isLogin)
// uni.startPullDownRefresh() // uni.startPullDownRefresh()
let user = uni.getStorageSync('user_info') let user = uni.getStorageSync('user_info')
console.log(user) console.log(user)
let list = uni.getStorageSync('cartlist') let list = uni.getStorageSync('cartlist')
console.log(this.inlist) console.log(this.inlist)
let tag = 0 let tag = 0
// list.map(i =>{ // list.map(i =>{
// if(i.email == user.email){ // if(i.email == user.email){
// tag = 1 // tag = 1

Loading…
Cancel
Save