银花优选微信小程序修改后的最新版本代码
This commit is contained in:
858
pages/sell/index.js
Normal file
858
pages/sell/index.js
Normal file
@@ -0,0 +1,858 @@
|
||||
var app = getApp()
|
||||
var that=null
|
||||
var sopenFrame=null
|
||||
var yunfeis=[]
|
||||
var ZSubTotal=0.00
|
||||
var ZSubTotal2=0.00
|
||||
var Guests=""
|
||||
Page( {
|
||||
data: {
|
||||
cartImg: '../../images/cart-null.png',
|
||||
tipWords: '购物车空空如也',
|
||||
addressId:0,
|
||||
contact:"",
|
||||
phone:"",
|
||||
area:"",
|
||||
province:"",
|
||||
city:"",
|
||||
county:"",
|
||||
address:"",
|
||||
contact0:"",
|
||||
phone0:"",
|
||||
area0:"",
|
||||
address0:"",
|
||||
distance0:0,
|
||||
a_name:"",
|
||||
a_tel:"",
|
||||
agentid:0,
|
||||
agenttype:0,
|
||||
productHidden:false,
|
||||
noproductHidden:true,
|
||||
loadingHidden:false,
|
||||
footerHidden:false,
|
||||
image:"",
|
||||
image0:"",
|
||||
addpic1:"../../images/add.png",
|
||||
addpic2:"../../images/add.png",
|
||||
ttype:0,
|
||||
IFFQPT:0,
|
||||
FHEnable2:"0",
|
||||
zftype:2,
|
||||
kjpay:0,
|
||||
peitype:0,
|
||||
p_peitype:0,
|
||||
p_peitype0:0,
|
||||
pttypes:[],
|
||||
pttype:0,
|
||||
IFKD:0,
|
||||
ifxn:0,
|
||||
dhjye:0.00,
|
||||
btjje:0.00,
|
||||
xjjje:0.00,
|
||||
zyunfei:0.00,
|
||||
cartproducts:[],
|
||||
cart_Total:"¥0.00",
|
||||
cart_Total_title:"总计(包含运费)",
|
||||
savebutton:"确认购买",
|
||||
savebutton0:"确认支付",
|
||||
ifkjpay:0,
|
||||
bankid:0,
|
||||
dhjjg:0,
|
||||
banks:[],
|
||||
bankindex:0,
|
||||
myphone:"",
|
||||
PayID:"",
|
||||
IFkjPaying:0,
|
||||
IFQYPay:0,
|
||||
a_code:"",
|
||||
a_pwd:""
|
||||
},
|
||||
|
||||
onLoad: function() {
|
||||
that = this
|
||||
that.rdata(0);
|
||||
|
||||
|
||||
sopenFrame=setInterval(function (){
|
||||
|
||||
if(app.globalData.IFRefreshsell==1){
|
||||
var id=app.globalData.selladdress.id
|
||||
var contact=app.globalData.selladdress.contact
|
||||
var tel=app.globalData.selladdress.tel
|
||||
var address=app.globalData.selladdress.address
|
||||
that.setData({
|
||||
addressId:id,
|
||||
contact:contact,
|
||||
phone:tel,
|
||||
province:app.globalData.selladdress.Province,
|
||||
city:app.globalData.selladdress.City,
|
||||
county:app.globalData.selladdress.County,
|
||||
address:address
|
||||
})
|
||||
app.globalData.IFRefreshsell=0
|
||||
that.getyunfei(app.globalData.selladdress.Province)
|
||||
}
|
||||
if(app.globalData.IFRefreshsell0==1){
|
||||
var addressId=app.globalData.selladdress0.addressId
|
||||
var agenttype=app.globalData.selladdress0.type
|
||||
var contact=app.globalData.selladdress0.contact
|
||||
var tel=app.globalData.selladdress0.tel
|
||||
var area=app.globalData.selladdress0.area
|
||||
var address=app.globalData.selladdress0.address
|
||||
var distance=app.globalData.selladdress0.distance
|
||||
app.globalData.IFRefreshsell0=0
|
||||
that.setData({
|
||||
agentid:addressId,
|
||||
agenttype:agenttype,
|
||||
contact0:contact,
|
||||
phone0:tel,
|
||||
area0:area,
|
||||
address0:address,
|
||||
distance0:distance
|
||||
})
|
||||
|
||||
}
|
||||
if(app.globalData.IFRefreshsell1==1){
|
||||
that.rdata(0);
|
||||
app.globalData.IFRefreshsell1=0
|
||||
}
|
||||
}, 1000);
|
||||
},onPullDownRefresh: function () {
|
||||
//在当前页面显示导航条加载动画
|
||||
wx.showNavigationBarLoading();
|
||||
//显示 loading 提示框。需主动调用 wx.hideLoading 才能关闭提示框
|
||||
wx.showLoading({
|
||||
title: '刷新中...',
|
||||
})
|
||||
that.rdata(1)
|
||||
},rdata: function(t) {
|
||||
var userId = wx.getStorageSync("userId")
|
||||
var LoginId = wx.getStorageSync("LoginId")
|
||||
var CartId = wx.getStorageSync("CartId")
|
||||
var latitude = wx.getStorageSync("latitude")
|
||||
var longitude = wx.getStorageSync("longitude")
|
||||
var userInfodata = wx.getStorageSync("userInfo")
|
||||
if(userId&&LoginId&&userInfodata){
|
||||
var userInfo = JSON.parse(userInfodata)
|
||||
that.setData({
|
||||
kjpay:userInfo.kjpay,
|
||||
dhjye:userInfo.mfye
|
||||
})
|
||||
wx.request({
|
||||
url: app.globalData.apiurl + "/xapiajax.ashx",
|
||||
data: {
|
||||
action:"getshopcart2",
|
||||
userId:(!userId?"":userId),
|
||||
LoginId:(!LoginId?"":LoginId),
|
||||
latitude:(!latitude?"":latitude),
|
||||
longitude:(!longitude?"":longitude),
|
||||
CartId:(!CartId?"":CartId)
|
||||
},
|
||||
method:"GET",
|
||||
dataType:"json",
|
||||
header: {
|
||||
"content-type": "application/json" // 默认值
|
||||
},
|
||||
success (res) {
|
||||
if(res.data.status==1){
|
||||
yunfeis=res.data.yunfeis
|
||||
ZSubTotal=res.data.ZSubTotal
|
||||
ZSubTotal2=res.data.ZSubTotal2
|
||||
that.setData({
|
||||
ttype:res.data.ttype,
|
||||
p_peitype:res.data.peitype,
|
||||
p_peitype0:res.data.peitype0,
|
||||
peitype:(res.data.peitype==0&&res.data.peitype0==1?1:0),
|
||||
ifkjpay:res.data.ifkjpay,
|
||||
bankid:(res.data.kjpaybanks.length>0?res.data.kjpaybanks[0].value:0),
|
||||
banks:res.data.kjpaybanks,
|
||||
cartproducts:res.data.productlist,
|
||||
cart_Total:"¥"+res.data.ZSubTotal,
|
||||
contact0:(res.data.addresss.length>0?res.data.addresss[0].contact:""),
|
||||
phone0:(res.data.addresss.length>0?res.data.addresss[0].tel:""),
|
||||
area0:(res.data.addresss.length>0?res.data.addresss[0].area:""),
|
||||
address0:(res.data.addresss.length>0?res.data.addresss[0].address:""),
|
||||
distance0:(res.data.addresss.length>0?res.data.addresss[0].distance:""),
|
||||
agentid:(res.data.addresss.length>0?res.data.addresss[0].addressId:0),
|
||||
agenttype:(res.data.addresss.length>0?res.data.addresss[0].type:0),
|
||||
})
|
||||
|
||||
|
||||
wx.setStorageSync('addresss', JSON.stringify(res.data.addresss))
|
||||
if(res.data.productlist.length>0){
|
||||
that.setData({
|
||||
productHidden:false,
|
||||
noproductHidden:true,
|
||||
footerHidden:false
|
||||
})
|
||||
}else{
|
||||
that.setData({
|
||||
productHidden:true,
|
||||
noproductHidden:false,
|
||||
footerHidden:true
|
||||
})
|
||||
}
|
||||
if(res.data.address.length>0){
|
||||
var id=res.data.address[0].addressId
|
||||
var contact=res.data.address[0].contact
|
||||
var tel=res.data.address[0].tel
|
||||
var address=res.data.address[0].area+res.data.address[0].detail
|
||||
that.getyunfei(res.data.address[0].Province)
|
||||
that.setData({
|
||||
addressId:id,
|
||||
contact:contact,
|
||||
phone:tel,
|
||||
province:res.data.address[0].Province,
|
||||
city:res.data.address[0].City,
|
||||
county:res.data.address[0].County,
|
||||
address:address
|
||||
})
|
||||
}else{
|
||||
var Locationprovince = wx.getStorageSync("Locationprovince")
|
||||
if(Locationprovince){
|
||||
that.getyunfei(Locationprovince)
|
||||
}
|
||||
}
|
||||
|
||||
that.setData({
|
||||
loadingHidden:true
|
||||
})
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res.data.msg,
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
that.setData({
|
||||
loadingHidden:true
|
||||
})
|
||||
if(res.data.msg=="您未登录"||res.data.msg=="参数错误"){
|
||||
wx.removeStorageSync('userId')
|
||||
wx.removeStorageSync('LoginId')
|
||||
wx.navigateBack({})
|
||||
}
|
||||
}
|
||||
if(t==1){
|
||||
//隐藏loading 提示框
|
||||
wx.hideLoading();
|
||||
//隐藏导航条加载动画
|
||||
wx.hideNavigationBarLoading();
|
||||
//停止下拉刷新
|
||||
wx.stopPullDownRefresh();
|
||||
}
|
||||
}
|
||||
})
|
||||
}else{
|
||||
wx.navigateTo({
|
||||
url: "../login/index"
|
||||
})
|
||||
}
|
||||
},getyunfei:function(ProvinceID) {
|
||||
|
||||
if(that.data.peitype==0){
|
||||
var userId = wx.getStorageSync("userId")
|
||||
var LoginId = wx.getStorageSync("LoginId")
|
||||
var province = that.data.province
|
||||
var city = that.data.city
|
||||
var county = that.data.county
|
||||
if(province!=""&&city!=""&&county!=""){
|
||||
wx.request({
|
||||
url: app.globalData.apiurl + "/xapiajax.ashx",
|
||||
data: {
|
||||
action:"getyunfei",
|
||||
userId:(userId==null?"":userId),
|
||||
LoginId:(LoginId==null?"":LoginId),
|
||||
province:province,
|
||||
city:city,
|
||||
county:county
|
||||
},
|
||||
method:"POST",
|
||||
dataType:"json",
|
||||
header: {
|
||||
"content-type": "application/x-www-form-urlencoded" // 默认值
|
||||
},
|
||||
success (res0) {
|
||||
if(res0.data.status==1){
|
||||
that.setData({
|
||||
zyunfei:res0.data.yunfei
|
||||
})
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res0.data.msg,
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
/*for(var i=0;i<yunfeis.length;i++){
|
||||
if(yunfeis[i].ProvinceID==ProvinceID){
|
||||
that.setData({
|
||||
zyunfei:yunfeis[i].yunfei
|
||||
})
|
||||
}
|
||||
}*/
|
||||
}else{
|
||||
that.setData({
|
||||
zyunfei:0
|
||||
})
|
||||
}
|
||||
|
||||
var cart_Total=(parseFloat(ZSubTotal) + parseFloat(that.data.zyunfei));
|
||||
if(that.data.ttype==0||that.data.ttype==12||that.data.ttype==14){
|
||||
that.setData({
|
||||
btjje:app.changeTwoDecimal_f(ZSubTotal),
|
||||
xjjje:app.changeTwoDecimal_f((parseFloat(ZSubTotal)-parseFloat(ZSubTotal2)+parseFloat(that.data.zyunfei)))
|
||||
})
|
||||
}
|
||||
that.setData({
|
||||
cart_Total:"¥"+app.changeTwoDecimal_f(cart_Total)
|
||||
})
|
||||
if(that.data.ttype==0){
|
||||
that.setData({
|
||||
cart_Total:""+app.changeTwoDecimal_f(cart_Total)
|
||||
})
|
||||
}
|
||||
},onaddpic1:function(e) {
|
||||
if(that.data.addpic1=="../../images/ajaxLoader.gif"){
|
||||
wx.showToast({
|
||||
title: "正在上传中...",
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
}else{
|
||||
wx.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ['original'],
|
||||
sourceType: ['album', 'camera'],
|
||||
success (res) {
|
||||
const tempFilePaths = res.tempFilePaths;
|
||||
var userId = wx.getStorageSync("userId")
|
||||
var LoginId = wx.getStorageSync("LoginId")
|
||||
that.setData({
|
||||
addpic1:"../../images/ajaxLoader.gif"
|
||||
})
|
||||
wx.uploadFile({
|
||||
url: app.globalData.apiurl + "/xapiajax.ashx", //仅为示例,非真实的接口地址
|
||||
filePath: tempFilePaths[0],
|
||||
name: 'image',
|
||||
formData: {
|
||||
action:"uploadtempImage",
|
||||
userId:(!userId?"":userId),
|
||||
LoginId:(!LoginId?"":LoginId)
|
||||
},
|
||||
success (res0){
|
||||
var data=JSON.parse(res0.data);
|
||||
|
||||
|
||||
if(data.status==1){
|
||||
wx.showToast({
|
||||
title: data.msg,
|
||||
icon: "success",
|
||||
duration: 1000
|
||||
})
|
||||
|
||||
that.setData({
|
||||
image:data.pic,
|
||||
addpic1:data.url
|
||||
})
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: data.msg,
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
that.setData({
|
||||
addpic1:"../../images/add.png"
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
},onaddpic2:function(e) {
|
||||
if(that.data.addpic2=="../../images/ajaxLoader.gif"){
|
||||
wx.showToast({
|
||||
title: "正在上传中...",
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
}else{
|
||||
wx.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ['original'],
|
||||
sourceType: ['album', 'camera'],
|
||||
success (res) {
|
||||
const tempFilePaths = res.tempFilePaths;
|
||||
var userId = wx.getStorageSync("userId")
|
||||
var LoginId = wx.getStorageSync("LoginId")
|
||||
that.setData({
|
||||
addpic2:"../../images/ajaxLoader.gif"
|
||||
})
|
||||
wx.uploadFile({
|
||||
url: app.globalData.apiurl + "/xapiajax.ashx", //仅为示例,非真实的接口地址
|
||||
filePath: tempFilePaths[0],
|
||||
name: 'image',
|
||||
formData: {
|
||||
action:"uploadtempImage",
|
||||
userId:(!userId?"":userId),
|
||||
LoginId:(!LoginId?"":LoginId)
|
||||
},
|
||||
success (res0){
|
||||
var data=JSON.parse(res0.data);
|
||||
|
||||
|
||||
if(data.status==1){
|
||||
wx.showToast({
|
||||
title: data.msg,
|
||||
icon: "success",
|
||||
duration: 1000
|
||||
})
|
||||
|
||||
that.setData({
|
||||
image0:data.pic,
|
||||
addpic2:data.url
|
||||
})
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: data.msg,
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
that.setData({
|
||||
addpic2:"../../images/add.png"
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
},selectaddress:function(e) {
|
||||
wx.setStorageSync('qygm', 1)
|
||||
wx.navigateTo({
|
||||
url: "../myaddress/index"
|
||||
})
|
||||
},selectaddress0:function(e) {
|
||||
wx.navigateTo({
|
||||
url: "../qhaddress/index"
|
||||
})
|
||||
},getGuestsValue:function(e) {
|
||||
Guests=e.detail.value
|
||||
},getnameValue:function(e) {
|
||||
that.setData({
|
||||
a_name:e.detail.value
|
||||
})
|
||||
|
||||
},gettelValue:function(e) {
|
||||
that.setData({
|
||||
a_tel:e.detail.value
|
||||
})
|
||||
|
||||
},getcodeValue:function(e) {
|
||||
that.setData({
|
||||
a_code:e.detail.value
|
||||
})
|
||||
|
||||
},getmmValue:function(e) {
|
||||
that.setData({
|
||||
a_pwd:e.detail.value
|
||||
})
|
||||
|
||||
},BankChange:function(e) {
|
||||
var index=e.detail.value;
|
||||
var value=that.data.banks[index].value
|
||||
that.setData({
|
||||
bankindex: index,
|
||||
bankid:value
|
||||
})
|
||||
},getopenid:function() {
|
||||
wx.login({
|
||||
success: function (resc) {
|
||||
if (resc.code) {
|
||||
var code=resc.code;
|
||||
wx.request({
|
||||
url: app.globalData.apiurl + "/xapiajax.ashx",
|
||||
data: {
|
||||
action:"getopenid",
|
||||
code:code
|
||||
},
|
||||
method:"POST",
|
||||
dataType:"json",
|
||||
header: {
|
||||
"content-type": "application/x-www-form-urlencoded" // 默认值
|
||||
},
|
||||
success (res0) {
|
||||
if(res0.data.status==1){
|
||||
wx.setStorageSync("openid", res0.data.openid)
|
||||
that.Shop_Pay()
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res0.data.msg,
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},Shop_Pay:function(e) {
|
||||
var bb=true
|
||||
var userId = wx.getStorageSync("userId")
|
||||
var LoginId = wx.getStorageSync("LoginId")
|
||||
var CartId = wx.getStorageSync("CartId")
|
||||
if(that.data.peitype==0){
|
||||
if(that.data.addressId==0){
|
||||
bb=false
|
||||
wx.showToast({
|
||||
title: "请选择收货人地址",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}else{
|
||||
if(that.data.a_name.replace(/\s+/g, "")==""){
|
||||
bb=false
|
||||
wx.showToast({
|
||||
title: "取货人不能为空",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
if(bb){
|
||||
if(that.data.a_tel.replace(/\s+/g, "")==""){
|
||||
bb=false
|
||||
wx.showToast({
|
||||
title: "手机号不能为空",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
if(bb){
|
||||
if(that.data.agentid==0){
|
||||
bb=false
|
||||
wx.showToast({
|
||||
title: "取货地址必须选择",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
if(bb){
|
||||
if(that.data.zftype==-1){
|
||||
bb=false
|
||||
wx.showToast({
|
||||
title: "请先选择支付方式",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
var openid = null
|
||||
if(bb){
|
||||
openid = wx.getStorageSync("openid");
|
||||
if(that.data.zftype==2){
|
||||
if(openid!=null){
|
||||
if(openid==""){
|
||||
bb=false
|
||||
that.getopenid()
|
||||
}
|
||||
}else{
|
||||
bb=false
|
||||
that.getopenid()
|
||||
}
|
||||
}
|
||||
}
|
||||
if(bb){
|
||||
|
||||
if(that.data.IFQYPay==0&&that.data.zftype!=2){
|
||||
that.setData({
|
||||
IFQYPay:1
|
||||
})
|
||||
}else{
|
||||
if(bb){
|
||||
if(that.data.zftype!=2){
|
||||
if(that.data.a_pwd.replace(/\s+/g, "")==""){
|
||||
bb=false
|
||||
wx.showToast({
|
||||
title: "密码不能为空",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
if(bb){
|
||||
if(that.data.savebutton=="确认购买"){
|
||||
|
||||
that.setData({
|
||||
savebutton:"请稍候..."
|
||||
})
|
||||
|
||||
wx.request({
|
||||
url: app.globalData.apiurl + "/xapiajax.ashx",
|
||||
data: {
|
||||
action:"qygm",
|
||||
userId:(!userId?"":userId),
|
||||
LoginId:(!LoginId?"":LoginId),
|
||||
CartId:(!CartId?"":CartId),
|
||||
pwd:that.data.a_pwd,
|
||||
openid:(!openid?"":openid),
|
||||
zftype:that.data.zftype,
|
||||
peitype:that.data.peitype,
|
||||
pttype:that.data.pttype,
|
||||
bankid:that.data.bankid,
|
||||
addressId:that.data.addressId,
|
||||
name:that.data.a_name,
|
||||
tel:that.data.a_tel,
|
||||
agentid:that.data.agentid,
|
||||
agenttype:that.data.agenttype,
|
||||
Guests:Guests,
|
||||
image:that.data.image,
|
||||
image0:that.data.image0
|
||||
},
|
||||
method:"POST",
|
||||
dataType:"json",
|
||||
header: {
|
||||
"content-type": "application/x-www-form-urlencoded" // 默认值
|
||||
},
|
||||
success (res0) {
|
||||
|
||||
if(res0.data.status==1){
|
||||
if(that.data.zftype==4){
|
||||
if(res0.data.IFSendSms==1){
|
||||
that.setData({
|
||||
myphone:res0.data.bankphone,
|
||||
PayID:res0.data.PayID,
|
||||
IFkjPaying:1
|
||||
})
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res0.data.SendSmsErr,
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
}else if(that.data.zftype==2){
|
||||
if(res0.data.ResultId>0){
|
||||
wx.requestPayment({
|
||||
timeStamp: res0.data.timeStamp,
|
||||
nonceStr: res0.data.noncestr,
|
||||
package: res0.data.package,
|
||||
signType: res0.data.signType,
|
||||
paySign: res0.data.paySign,
|
||||
success (res) {
|
||||
|
||||
wx.navigateTo({
|
||||
url: "../myorder/index?nav=0"
|
||||
})
|
||||
|
||||
},
|
||||
fail (res) {
|
||||
//JSON.stringify(res)
|
||||
wx.showToast({
|
||||
title: "用户取消",
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
wx.navigateBack({})
|
||||
}
|
||||
})
|
||||
}
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res0.data.msg,
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
wx.navigateTo({
|
||||
url: "../myorder/index?nav=0"
|
||||
})
|
||||
|
||||
}
|
||||
wx.setStorageSync('userInfo', JSON.stringify(res0.data.userInfo))
|
||||
that.setData({
|
||||
dhjye:res0.data.userInfo.dhjye
|
||||
})
|
||||
app.globalData.IFRefreshmy=1
|
||||
}else{
|
||||
|
||||
wx.showToast({
|
||||
title: res0.data.msg,
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
that.setData({
|
||||
savebutton:"确认购买"
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},Shop_Pay0:function(e) {
|
||||
var bb=true
|
||||
var userId = wx.getStorageSync("userId")
|
||||
var LoginId = wx.getStorageSync("LoginId")
|
||||
|
||||
if(that.data.IFkjPaying==0 || that.data.PayID==""){
|
||||
bb=false
|
||||
wx.showToast({
|
||||
title: "还没有发送短信",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
if(bb){
|
||||
if(that.data.a_code.replace(/\s+/g, "")==""){
|
||||
bb=false
|
||||
wx.showToast({
|
||||
title: "验证码不能为空",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
if(bb){
|
||||
|
||||
|
||||
|
||||
if(that.data.savebutton0=="确认支付"){
|
||||
|
||||
that.setData({
|
||||
savebutton0:"请稍候..."
|
||||
})
|
||||
|
||||
wx.request({
|
||||
url: app.globalData.apiurl + "/xapiajax.ashx",
|
||||
data: {
|
||||
action:"kjpay",
|
||||
userId:(!userId?"":userId),
|
||||
LoginId:(!LoginId?"":LoginId),
|
||||
payid:that.data.PayID,
|
||||
sms_code:that.data.a_code
|
||||
},
|
||||
method:"POST",
|
||||
dataType:"json",
|
||||
header: {
|
||||
"content-type": "application/x-www-form-urlencoded" // 默认值
|
||||
},
|
||||
success (res0) {
|
||||
|
||||
if(res0.data.status==1){
|
||||
|
||||
if(res0.data.msg=="交易处理中"){
|
||||
wx.showModal({
|
||||
title: "操作提示",
|
||||
content: res0.data.msg,
|
||||
showCancel:false,
|
||||
success (res1) {
|
||||
if (res1.confirm) {
|
||||
var sflash=setInterval(function (){
|
||||
wx.navigateTo({
|
||||
url: "../myorder/index?t=" + that.data.ttype + "&nav=0"
|
||||
})
|
||||
clearInterval(sflash)
|
||||
}, 6000);
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
}else{
|
||||
wx.showModal({
|
||||
title: "操作提示",
|
||||
content: res0.data.msg,
|
||||
showCancel:false,
|
||||
success (res1) {
|
||||
if (res1.confirm) {
|
||||
wx.navigateTo({
|
||||
url: "../myorder/index?t=" + that.data.ttype + "&nav=0"
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}else{
|
||||
|
||||
wx.showToast({
|
||||
title: res0.data.msg,
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
that.setData({
|
||||
savebutton0:"确认支付"
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
closeaddcart:function(e) {
|
||||
that.setData({
|
||||
IFkjPaying:0
|
||||
})
|
||||
},
|
||||
closeaddcart0:function(e) {
|
||||
that.setData({
|
||||
IFQYPay:0
|
||||
})
|
||||
},inaddcart:function(e) {
|
||||
|
||||
},onpttype:function(e) {
|
||||
var pttype = e.currentTarget.dataset.id
|
||||
that.setData({
|
||||
pttype:pttype
|
||||
})
|
||||
|
||||
},onpeitype:function(e) {
|
||||
var index = e.currentTarget.dataset.id
|
||||
that.setData({
|
||||
peitype:index
|
||||
})
|
||||
if(that.data.peitype==0){
|
||||
that.getyunfei(that.data.selProvince);
|
||||
}else{
|
||||
that.getyunfei("");
|
||||
}
|
||||
},onpay:function(e) {
|
||||
var id = e.currentTarget.dataset.id
|
||||
|
||||
if(id==4){
|
||||
|
||||
if(that.data.ifkjpay==1){
|
||||
that.setData({
|
||||
zftype:id
|
||||
})
|
||||
}else{
|
||||
wx.setStorageSync('qygm', 1)
|
||||
wx.navigateTo({
|
||||
url: "../kjpay/index"
|
||||
})
|
||||
}
|
||||
|
||||
}else{
|
||||
that.setData({
|
||||
zftype:id
|
||||
})
|
||||
}
|
||||
},gotodetail:function(e) {
|
||||
var id = e.currentTarget.dataset.id
|
||||
wx.navigateTo({
|
||||
url: "../details/index?id="+id
|
||||
})
|
||||
}
|
||||
})
|
||||
3
pages/sell/index.json
Normal file
3
pages/sell/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"navigationBarTitleText": "购物车结算"
|
||||
}
|
||||
163
pages/sell/index.wxml
Normal file
163
pages/sell/index.wxml
Normal file
@@ -0,0 +1,163 @@
|
||||
<view class="container">
|
||||
<view class="pay_box">
|
||||
<text>配送方式:</text>
|
||||
<view class="pay_type_box">
|
||||
<view wx:if="{{p_peitype==1}}" class='{{peitype==0?"hover":""}}' wx:if="{{IFKD==0}}" bindtap="onpeitype" data-id="0"><image src="../../images/kdps.png"/>快递配送</view>
|
||||
<view wx:if="{{p_peitype0==1}}" class='{{peitype==1?"hover":""}}' bindtap="onpeitype" data-id="1"><image src="../../images/smzq.png"/>上门自取</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="address_box" hidden="{{peitype==1?false:true}}">
|
||||
<view class="address_box_qhr">
|
||||
<input type="text" name="txtname" bindinput='getnameValue' placeholder="请填写取货人" />
|
||||
<input type="text" name="txttel" bindinput='gettelValue' placeholder="请填写手机号" />
|
||||
</view>
|
||||
<view class="address_box_contact">
|
||||
<view>上门取货地址:</view>
|
||||
</view>
|
||||
|
||||
<view class="address_box_address" bindtap="selectaddress0">
|
||||
<view class="assistor"><image src="../../images/Pin-Assistor.png"/>
|
||||
</view>
|
||||
<text class="address">{{(contact0+" "+phone0+" " +area0+address0)}}</text>
|
||||
<view class="faifeito"><image src="../../images/icon-arrowdown.png"/></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="address_box" hidden="{{peitype==0?false:true}}" bindtap="selectaddress">
|
||||
<view class="address_box_contact">
|
||||
<text>收货人:</text>
|
||||
<text>{{contact}}</text>
|
||||
<text class="phone">{{phone}}</text>
|
||||
</view>
|
||||
<view class="address_box_address">
|
||||
<view class="assistor"><image src="../../images/Pin-Assistor.png"/>
|
||||
</view>
|
||||
<text class="address">{{address}}</text>
|
||||
<view class="faifeito"><image src="../../images/icon-arrowdown.png"/></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pay_box" wx:if="{{IFFQPT==1}}">
|
||||
<text class="pay_type" style="width:6em;">拼团方式:</text>
|
||||
<view class="pay_type_box">
|
||||
<block wx:for="{{pttypes}}">
|
||||
<view class='{{pttype==item.index?"hover":""}}' bindtap="onpttype" data-id="{{item.index}}"><image src="../../images/pttype.png"/>{{item.title}}</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pay_box" wx:if="{{ttype==14}}">
|
||||
<view class="dhj_box">
|
||||
需要支付<text>{{btjje}}</text>补贴券,剩下的<text>{{xjjje}}</text>由以下支付方式支付
|
||||
</view>
|
||||
</view>
|
||||
<view class="pay_box">
|
||||
<text class="pay_type">支付方式:</text>
|
||||
<view class="pay_type_box">
|
||||
|
||||
|
||||
<view wx:if="{{ttype==0||ttype==2||ttype==4||ttype==5||ttype==8||ttype==9||ttype==10||ttype==11||ttype==12||ttype==13||ttype==14}}" class='{{zftype==2?"hover":""}}' bindtap="onpay" data-id="2"><image src="../../images/weixinpay.png"/>微信支付</view>
|
||||
<view wx:if="{{ttype==0||ttype==2||ttype==4||ttype==5||ttype==8||ttype==9||ttype==10||ttype==11||ttype==12||ttype==13||ttype==14}}" class='{{zftype==0?"hover":""}}' bindtap="onpay" data-id="0"><image src="../../images/jianjinpay.png"/>余额抵扣</view>
|
||||
<view wx:if="{{ttype==0}}" class='{{zftype==1?"hover":""}}' bindtap="onpay" data-id="1"><image src="../../images/lqhb.png"/>兑换券抵扣</view>
|
||||
<!-- <view wx:if="{{ttype==22}}" class='{{zftype==1?"hover":""}}' bindtap="onpay" data-id="1"><image src="../../images/jianjinpay.png"/>混合支付、先积分</view>
|
||||
<view wx:if="{{ttype==1}}" class='{{zftype==5?"hover":""}}' bindtap="onpay" data-id="5"><image src="../../images/jianjinpay.png"/>流量积分</view>
|
||||
<view wx:if="{{ttype==14}}" class='{{zftype==6?"hover":""}}' bindtap="onpay" data-id="6"><image src="../../images/jianjinpay.png"/>佣金抵扣</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="pay_box" wx:if="{{zftype==1}}">
|
||||
<text class="pay_type" style="width:6em;">兑换券余额:</text>
|
||||
<view class="dhj_box">
|
||||
{{dhjye}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="bankcark_box" wx:if="{{zftype==4}}">
|
||||
<view><picker class="picker_hx" name="picker_hx" value="{{bankindex}}" data-selecthx="{{banks[bankindex].key}}" range="{{banks}}" range-key="{{'key'}}" bindchange="BankChange"> <view class="picker">
|
||||
<text wx:if='{{banks[bankindex]!=null}}'>{{banks[bankindex].key}}</text>
|
||||
<text wx:if='{{banks[bankindex]==null}}'>==请选择==</text>
|
||||
<image src="../../images/icon-arrowdown1.png"></image>
|
||||
</view></picker></view>
|
||||
</view>
|
||||
<view class="Guests_box">
|
||||
<text>备注留言:</text>
|
||||
<view><textarea id="Guests" bindinput='getGuestsValue' placeholder="请留言告诉卖家您的要求"></textarea></view>
|
||||
</view>
|
||||
<view class="cart-product" wx:for="{{cartproducts}}" wx:for-index="index" hidden="{{productHidden}}">
|
||||
<view class="cart-product-item" color="{{item.selcolor}}" guige="{{item.guige}}">
|
||||
<view class="limg" bindtap="gotodetail" data-id="{{item.prodid}}">
|
||||
<image src="{{item.prodimg}}" />
|
||||
</view>
|
||||
<view class="rname">
|
||||
<view class="prodName" bindtap="gotodetail" data-id="{{item.prodid}}">{{item.prodName}} {{item.selcolor}}
|
||||
</view>
|
||||
<view class="je">单价:<text>{{ttype==4?"积分":"¥"}}{{item.prodPrice}}</text> 数量:
|
||||
<text>{{item.prodNum}}</text>
|
||||
</view>
|
||||
<view class="je">
|
||||
小计:
|
||||
<text>{{ttype==4?"积分":"¥"}}{{item.SubTotal}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="yunfei-box">
|
||||
<text>运费:</text>¥{{zyunfei}}
|
||||
</view>
|
||||
<view class="noproduct" hidden="{{noproductHidden}}">
|
||||
<image src="{{cartImg}}" class="cart-image"/>
|
||||
<view>{{tipWords}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer" hidden="{{footerHidden}}">
|
||||
<view class="cartmbox" wx:if="{{IFkjPaying==0}}">
|
||||
<view class="leftbox">
|
||||
<text class="cart_Total_title">{{cart_Total_title}}</text>
|
||||
<text class="cart_Total">{{cart_Total}}</text>
|
||||
</view>
|
||||
<view class="rightbox">
|
||||
<button bindtap="Shop_Pay" class="input_shopdh">{{savebutton}}</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cartmbox0" wx:if="{{IFkjPaying==1}}">
|
||||
<button bindtap="Shop_Pay0" class="input_shopdh" >{{savebutton0}}</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Hidden_box" bindtap="closeaddcart" wx:if="{{IFkjPaying==1}}">
|
||||
<view class="Hidden_box_to addcart_box" catchtap="inaddcart">
|
||||
<view class="close" bindtap="closeaddcart"><image src="../../images/close.png" /></view>
|
||||
|
||||
<view class="select_box_title">
|
||||
确认支付
|
||||
</view>
|
||||
<view class="select_box_inputbox">
|
||||
<view class="msgbox">
|
||||
验证证已发送到您的手机号(<text>{{myphone}}</text>),请在下面输入您的手机验证码。
|
||||
</view>
|
||||
<view class="inputbox">
|
||||
<text>手机验证码:</text>
|
||||
<view><input name="txcode" type="text" bindinput='getcodeValue' placeholder="请输入手机验证码" /></view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Hidden_box" bindtap="closeaddcart0" wx:if="{{IFQYPay==1}}">
|
||||
<view class="Hidden_box_to addcart_box" catchtap="inaddcart">
|
||||
<view class="close" bindtap="closeaddcart0"><image src="../../images/close.png" /></view>
|
||||
|
||||
<view class="select_box_title">
|
||||
确认支付
|
||||
</view>
|
||||
<view class="select_box_inputbox">
|
||||
<view class="msgbox">
|
||||
请在下面输入您的密码。
|
||||
</view>
|
||||
<view class="inputbox">
|
||||
<text>您的密码:</text>
|
||||
<view><input name="txmm" type="password" bindinput='getmmValue' placeholder="请输入您的密码" /></view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<loading hidden="{{loadingHidden}}">
|
||||
加载中...
|
||||
</loading>
|
||||
111
pages/sell/index.wxss
Normal file
111
pages/sell/index.wxss
Normal file
@@ -0,0 +1,111 @@
|
||||
page{
|
||||
background: #ccc;
|
||||
}
|
||||
button::before {
|
||||
border:none;
|
||||
}
|
||||
button::after {
|
||||
border:none;
|
||||
}
|
||||
.container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 14px;
|
||||
color: #000;
|
||||
}
|
||||
.container .cart-image {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
}
|
||||
.footer{
|
||||
position: fixed;
|
||||
z-index: 10000;
|
||||
bottom:0;
|
||||
left:0;
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
color: white;
|
||||
text-align: center;
|
||||
border-top: 1px solid #e1e1e1;
|
||||
font-size:12px;
|
||||
}
|
||||
.cartmbox{float:left;margin:0; padding:0; width:100%; height:100%;}
|
||||
.cartmbox .leftbox{float:left;position:relative;margin:0; padding:0; padding-left:1em; color: #000;font-size:1em; height:100%;line-height:50px;}
|
||||
.cartmbox .leftbox text.cart_Total{font-style:normal; font-weight:bold; color:#ff0000;}
|
||||
.cartmbox .rightbox{float:right;margin:0;padding-right:1em;height:100%; line-height:100%;}
|
||||
.cartmbox .rightbox button{float:right; margin:0.7em 0; padding:0; width:6em; height:2.5em; line-height:2.5em; display:block; border:0; font-size: 1em; background-color:#fe6e09;border-radius:3px; color:#fff; border:0;border-radius:0 2em 2em 0;border:0;}
|
||||
.cartmbox .rightbox button.input_shopcart,.cartmbox .rightbox button.input_shopdh{background: linear-gradient(to left,#ff9615,#fec811);border-radius:2em 0 0 2em;}
|
||||
.cartmbox .rightbox button.input_shopdh{border-radius:2em;width:7em;}
|
||||
.cartmbox .rightbox button[disabled='true']{background:#bbb;}
|
||||
.cartmbox .rightbox button.input_shopdh[disabled='true']{width:7em;background:#bbb;border-radius:2em;}
|
||||
.cartmbox0{float:left;margin:0; padding:0; width:100%; height:100%;}
|
||||
.cartmbox0 button{ margin:0.7em auto; padding:0; width:8em; height:2.5em; line-height:2.5em; display:block; border:0; font-size: 1em; background-color:#fe6e09; color:#fff; border-radius:2em;border:0;}
|
||||
.cart-product{float:left;width:100%;}
|
||||
.cart-product .cart-product-item{float:left; margin:0.5em 0; padding:1em; width:100%; overflow:hidden; position:relative; border:1px solid #dfdfdf; border-left:0;border-right:0; background-color:#fff;box-sizing:border-box;}
|
||||
.cart-product .cart-product-item .limg{float:left; display: flex; width:25%;display:block; overflow: hidden;box-sizing:border-box;}
|
||||
.cart-product .cart-product-item .limg image{width:4em; height:4em;}
|
||||
.cart-product .cart-product-item .rname{float:left;display: flex; padding-left:0.6em; display:block; width:70%; overflow:hidden;box-sizing:border-box;}
|
||||
|
||||
.cart-product .cart-product-item .rname view{float:left;display:block;width:100%;padding-left:0;font-size: 12px;}
|
||||
.cart-product .cart-product-item .rname view.prodName{float:left; display:block;width:100%; }
|
||||
.cart-product .cart-product-item .rname view.je{ margin-top:0.5em;}
|
||||
.cart-product .cart-product-item .rname text{ font-style:normal; color:#ff0000;}
|
||||
.cart-product .cart-product-item .rname view.je del{ font-style:normal; font-size:1em; font-weight:bold; color:#aaa;}
|
||||
.cart-product .cart-product-item .icon{position:absolute; right:0.8em; top:0.5em;width:1.5em; height:1.5em; padding:0.15em; background-color:#fff;border:1px solid #f1f1f1;border-radius:50%;box-sizing:border-box; overflow: hidden;}
|
||||
.cart-product .cart-product-item .icon image{width:100%;height:100%;}
|
||||
.yunfei-box{display: flex;align-items: center; justify-content: center;line-height:3.5em;color:#ff4d00;}
|
||||
.yunfei-box text{color:#000;}
|
||||
.noproduct{display: flex; flex-direction: column; align-items: center; justify-content: center;line-height:3.5em;}
|
||||
.address_box{width:100%; padding:1em; box-sizing: border-box; background-color:#fff;border-top:1px solid #f8f8f8;}
|
||||
.address_box .address_box_contact{width:100%; font-size: 14px;}
|
||||
.address_box .address_box_contact text{color:#000;}
|
||||
.address_box .address_box_contact text.phone{ margin-left:1em;}
|
||||
.address_box .address_box_qhr{float:left; margin-bottom:1em; width:100%; font-size: 14px;}
|
||||
.address_box .address_box_qhr input{float:left; margin-right:2.5%; width:47%;height: 2.5em; line-height: 2.5em; border:1px solid #e1e1e1;border-radius:0.5em; padding:0.2em 0.5em; box-sizing: border-box;}
|
||||
.address_box .address_box_address{float:left; position: relative; width:100%;margin-top: 0.5em;}
|
||||
.address_box .address_box_address text{display: block; float:left; }
|
||||
.address_box .address_box_address .assistor{float:left; margin-top:0;width:20%;height:2em; text-align: center;}
|
||||
.address_box .address_box_address .assistor image{width:1.4em;height:1.4em;}
|
||||
.address_box .address_box_address .assistor text{width:100%;color:#ff4d00;}
|
||||
.address_box .address_box_address text.address{width:70%; line-height: 1.5em;color: #333333;font-size: 14px;}
|
||||
.address_box .address_box_address .faifeito{position: absolute;top:0em;right:0; display: block; width:10%;height:2em;}
|
||||
.address_box .address_box_address .faifeito image{ width:1.2em;height:1.2em;}
|
||||
|
||||
.bankcark_box{display: flex; flex-direction: row; width:100%;border-top:1px solid #f1f1f1;padding:1em; box-sizing: border-box; background-color:#fff; font-size: 14px;}
|
||||
.bankcark_box text{display: flex; width:auto; height:2.5em;line-height:2.5em;}
|
||||
.bankcark_box view{flex-grow: 1; padding:0; display: flex; align-items: center; justify-content: center;line-height:2.5em; box-sizing: border-box;border-radius:0.5em;}
|
||||
.bankcark_box view .picker_hx{color:#939393;line-height:2.5em;width:100%;}
|
||||
.bankcark_box view .picker_hx view{ float:left; position: relative; display: block; border:0;min-width:14em; padding:0 1em; box-sizing: border-box;border:1px solid #dfdfdf;border-radius:0.3em;height:2.5em;line-height:2.5em;}
|
||||
.bankcark_box view .picker_hx text{width:17em;}
|
||||
.bankcark_box view .picker_hx image{position: absolute; top:0.6em;right:0.6em; width:1.2em;height:1.2em;}
|
||||
.pay_box{display: flex; flex-direction: row; width:100%; margin-top: 1em; padding:1em; padding-bottom:0.5em;box-sizing: border-box; background-color:#fff; font-size: 14px;}
|
||||
.pay_box text{display: block; float:left; width:25%; height:2.5em; line-height: 2.5em;}
|
||||
.pay_box text.pay_type{ width:7em;line-height:2em;}
|
||||
.image_box{display:block;width:3em;height: 3em;border:1px solid #dfdfdf;}
|
||||
.image_box image{display:block;width:100%;height: 100%;}
|
||||
.dhj_box{line-height:2em;}
|
||||
.dhj_box text{color:#ff4d00;float:none;display: inline;}
|
||||
.pay_type_box{display:block;flex-grow: 1;}
|
||||
.pay_type_box view{float:left; padding:0 0.3em; margin-top:0.5em; margin-right:0.5em; display: flex; align-items: center; justify-content: center;line-height:2em; border:1px solid #f1f1f1; box-sizing: border-box;border-radius:0.5em;}
|
||||
.pay_type_box view.hover{border:1px solid #ff4d00;}
|
||||
.pay_type_box view image{width:1.4em;height:1.4em;margin-right:0.4em;}
|
||||
|
||||
.Guests_box{width:100%; margin-top: 1em; padding:1em; box-sizing: border-box; background-color:#fff; font-size: 14px;}
|
||||
.Guests_box text{display: block; float:left; width:auto; height:2.5em;line-height: 4em;}
|
||||
.Guests_box view{float:left; padding:0 0.5em; display: flex; align-items: center; justify-content: center;line-height:2.5em; box-sizing: border-box;border-radius:0.5em;}
|
||||
.Guests_box view textarea{width:14em;height: 4em;border:1px solid #e1e1e1;border-radius:0.5em;padding:0.2em;box-sizing: border-box;line-height:1.2em;}
|
||||
.Hidden_box{ position: fixed;display: flex;align-items: center; justify-content: center; top:0; left:0; width:100%;height:100vh; background:rgba(0, 0, 0, 0.5);z-index:2;}
|
||||
.Hidden_box_to{position: relative; padding:0; width:90%;height:auto; background-color: #fff; box-sizing: border-box; border-radius:0.5em;}
|
||||
.Hidden_box_to.addcart_box{ position: absolute; bottom:3em; width:100%;border-radius:0.5em 0.5em 0 0;}
|
||||
.Hidden_box_to .close{position: absolute; right:0.5em; top:0.5em; width:1.5em; height:1.5em; padding:0.15em; background-color:#fff;border:1px solid #f1f1f1;border-radius:50%;box-sizing:border-box;}
|
||||
.Hidden_box_to .close image{width:100%;height:100%;}
|
||||
|
||||
|
||||
.Hidden_box_to .select_box_title{ float:left; width:100%; height:2.5em; line-height:2.5em;padding-left: 0.8em; box-sizing: border-box;}
|
||||
.Hidden_box_to .select_box_inputbox{ float:left;border-top:1px solid #f1f1f1; width:100%;padding:0 0.8em; box-sizing: border-box;}
|
||||
.Hidden_box_to .select_box_inputbox .msgbox{ float:left; width:100%; padding: 0.8em 0; box-sizing: border-box;color:#848484}
|
||||
.Hidden_box_to .select_box_inputbox .inputbox{display: flex;flex-direction: row; width:100%; padding: 0.8em 0; box-sizing: border-box;}
|
||||
.Hidden_box_to .select_box_inputbox .inputbox text{height: 2.2em; line-height: 2.2em;}
|
||||
.Hidden_box_to .select_box_inputbox .inputbox input{background-color: #e1e1e1; border:1px solid #dfdfdf;border-radius:0.4em;height: 2.2em; line-height: 2.2em; box-sizing: border-box;padding:0.2em;}
|
||||
Reference in New Issue
Block a user