Commit 1f0a8398 authored by zhangjianguo's avatar zhangjianguo

样式修改

parent aae45b5a
...@@ -46,12 +46,14 @@ ...@@ -46,12 +46,14 @@
</view> </view>
</view> </view>
<good-sku v-if="showSku" :option-type="2" borderRadius="20" v-model="showSku" :good="sku"></good-sku> <good-sku v-if="showSku" :option-type="2" borderRadius="20" v-model="showSku" :good="sku"></good-sku>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view> </view>
</template> </template>
<script> <script>
import sidebar from '../sidebar/index'; import sidebar from '../sidebar/index';
import goodSku from '../goods/goodsku'; import goodSku from '../goods/goodsku';
import auth from '@/components/auth/index.vue';
export default { export default {
props: ['d', 'h'], props: ['d', 'h'],
data() { data() {
...@@ -80,11 +82,13 @@ export default { ...@@ -80,11 +82,13 @@ export default {
CategoryIds1: '', CategoryIds1: '',
CategoryIds2: '', CategoryIds2: '',
sku: {}, sku: {},
showSku: false showSku: false,
showAuth: false,
u: {}
}; };
}, },
components: { components: {
sidebar,goodSku sidebar,goodSku,auth
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
...@@ -104,7 +108,16 @@ export default { ...@@ -104,7 +108,16 @@ export default {
// 购物车 // 购物车
showSkuHandler(g) { showSkuHandler(g) {
this.sku = g; this.sku = g;
this.u = uni.getStorageSync('mall_UserInfo');
if (!this.u) {
this.u = {
nickName: '未登录',
avatarUrl: ''
};
this.showAuth = true;
} else {
this.showSku = true; this.showSku = true;
}
}, },
changeHandler(i) { changeHandler(i) {
this.active = i; this.active = i;
...@@ -182,6 +195,14 @@ export default { ...@@ -182,6 +195,14 @@ export default {
} else { } else {
this.isover = true; this.isover = true;
} }
},
reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo');
this.showAuth = false;
},
//关闭登录窗口
gbAuth() {
this.showAuth = false;
} }
} }
}; };
......
...@@ -68,12 +68,14 @@ ...@@ -68,12 +68,14 @@
</scroll-view> </scroll-view>
</div> </div>
<good-sku v-if="showSku" :option-type="2" borderRadius="20" v-model="showSku" :good="sku"></good-sku> <good-sku v-if="showSku" :option-type="2" borderRadius="20" v-model="showSku" :good="sku"></good-sku>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view> </view>
</template> </template>
<script> <script>
import goodSku from '../goods/goodsku'; import goodSku from '../goods/goodsku';
import sidebar from "../sidebar/index"; import sidebar from "../sidebar/index";
import auth from '@/components/auth/index.vue';
export default { export default {
props: ["d", "h"], props: ["d", "h"],
...@@ -99,11 +101,13 @@ export default { ...@@ -99,11 +101,13 @@ export default {
UserId:0, UserId:0,
}, },
sku: {}, sku: {},
showSku: false showSku: false,
showAuth:false,
u:{},
}; };
}, },
components: { components: {
sidebar,goodSku sidebar,goodSku,auth
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
...@@ -116,7 +120,16 @@ export default { ...@@ -116,7 +120,16 @@ export default {
// 购物车 // 购物车
showSkuHandler(g) { showSkuHandler(g) {
this.sku = g; this.sku = g;
this.u = uni.getStorageSync('mall_UserInfo');
if (!this.u) {
this.u = {
nickName: '未登录',
avatarUrl: ''
};
this.showAuth = true;
} else {
this.showSku = true; this.showSku = true;
}
}, },
changeHandler(i) { changeHandler(i) {
this.msg.CategoryIds= this.d[i].Id+''; this.msg.CategoryIds= this.d[i].Id+'';
...@@ -180,6 +193,14 @@ export default { ...@@ -180,6 +193,14 @@ export default {
this.isover = true; this.isover = true;
} }
}, },
reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo');
this.showAuth = false;
},
//关闭登录窗口
gbAuth() {
this.showAuth = false;
}
}, },
}; };
</script> </script>
......
...@@ -72,12 +72,14 @@ ...@@ -72,12 +72,14 @@
</view> </view>
</view> </view>
<good-sku v-if="showSku" :option-type="2" borderRadius="20" v-model="showSku" :good="sku"></good-sku> <good-sku v-if="showSku" :option-type="2" borderRadius="20" v-model="showSku" :good="sku"></good-sku>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view> </view>
</template> </template>
<script> <script>
import sidebar from "../sidebar/index"; import sidebar from "../sidebar/index";
import goodSku from '../goods/goodsku'; import goodSku from '../goods/goodsku';
import auth from '@/components/auth/index.vue';
export default { export default {
props: ["d", "h"], props: ["d", "h"],
data() { data() {
...@@ -106,11 +108,13 @@ export default { ...@@ -106,11 +108,13 @@ export default {
CategoryIds1:'', CategoryIds1:'',
CategoryIds2:'', CategoryIds2:'',
sku: {}, sku: {},
showSku: false showSku: false,
showAuth: false,
u: {}
}; };
}, },
components: { components: {
sidebar,goodSku sidebar,goodSku,auth
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
...@@ -130,7 +134,16 @@ export default { ...@@ -130,7 +134,16 @@ export default {
// 购物车 // 购物车
showSkuHandler(g) { showSkuHandler(g) {
this.sku = g; this.sku = g;
this.u = uni.getStorageSync('mall_UserInfo');
if (!this.u) {
this.u = {
nickName: '未登录',
avatarUrl: ''
};
this.showAuth = true;
} else {
this.showSku = true; this.showSku = true;
}
}, },
changeHandler(i) { changeHandler(i) {
this.active=i; this.active=i;
...@@ -207,6 +220,14 @@ export default { ...@@ -207,6 +220,14 @@ export default {
} else { } else {
this.isover = true; this.isover = true;
} }
},
reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo');
this.showAuth = false;
},
//关闭登录窗口
gbAuth() {
this.showAuth = false;
} }
} }
}; };
......
...@@ -30,20 +30,25 @@ ...@@ -30,20 +30,25 @@
v-model="showSku" v-model="showSku"
:good="sku" :good="sku"
></good-sku> ></good-sku>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view> </view>
</template> </template>
<script> <script>
import goodSku from "../goods/goodsku"; import goodSku from "../goods/goodsku";
import auth from '@/components/auth/index.vue';
export default { export default {
components: { components: {
goodSku, goodSku,
auth
}, },
props: ["list"], props: ["list"],
data() { data() {
return { return {
g: [], g: [],
showSku: false, showSku: false,
showAuth:false,
u:{},
sku: {}, sku: {},
mainColor: "", mainColor: "",
setting:{} setting:{}
...@@ -73,8 +78,25 @@ export default { ...@@ -73,8 +78,25 @@ export default {
}, },
showSkuHandler(g) { showSkuHandler(g) {
this.sku = g; this.sku = g;
this.u = uni.getStorageSync('mall_UserInfo');
if (!this.u) {
this.u = {
nickName: '未登录',
avatarUrl: ''
};
this.showAuth = true;
} else {
this.showSku = true; this.showSku = true;
}
},
reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo');
this.showAuth = false;
}, },
//关闭登录窗口
gbAuth() {
this.showAuth = false;
}
}, },
}; };
</script> </script>
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<view class="sku-box u-skeleton-rect" v-if="setting.is_express == '1'"> <view class="sku-box u-skeleton-rect" v-if="setting.is_express == '1'">
<view class="label">快递</view> <view class="label">快递</view>
<view class="content"> <view class="content">
{{ g.express == "" ? "免运费" : g.express }} {{ g.express == "" ? "免运费" : g.express }}
</view> </view>
</view> </view>
<view <view
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
:images="g.pic_url" :images="g.pic_url"
@close="closeShare" @close="closeShare"
></share> ></share>
<!-- <auth></auth> --> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view> </view>
</template> </template>
...@@ -271,7 +271,9 @@ export default { ...@@ -271,7 +271,9 @@ export default {
pageSize:20, pageSize:20,
GoodsId:0, GoodsId:0,
CommentGrade:0 CommentGrade:0
} },
showAuth:false,
u:{},
}; };
}, },
components: { components: {
...@@ -291,10 +293,21 @@ export default { ...@@ -291,10 +293,21 @@ export default {
if(option&&option.pid){ if(option&&option.pid){
uni.setStorageSync("pid", {pid:option.pid}); uni.setStorageSync("pid", {pid:option.pid});
} }
this.u = uni.getStorageSync('mall_UserInfo');
if (!this.u) {
this.u = {
nickName: '未登录',
avatarUrl: ''
};
this.showAuth = true;
} else {
this.init(); this.init();
this.initPage();
}
this.mc = this.$uiConfig.mainColor; this.mc = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.initPage();
this.setting = uni.getStorageSync("basedata").mall.setting this.setting = uni.getStorageSync("basedata").mall.setting
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
...@@ -305,6 +318,16 @@ export default { ...@@ -305,6 +318,16 @@ export default {
}; };
}, },
methods: { methods: {
reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo');
this.init();
this.initPage();
},
//关闭登录窗口
gbAuth() {
uni.navigateBack()
},
initPage() { initPage() {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
let u = "/" + currentPages[currentPages.length - 1].route; let u = "/" + currentPages[currentPages.length - 1].route;
......
...@@ -682,7 +682,7 @@ button[disabled]{ ...@@ -682,7 +682,7 @@ button[disabled]{
margin-bottom: 15px; margin-bottom: 15px;
} }
.ordersubmit .goodbox .goodinfo .attr { .ordersubmit .goodbox .goodinfo .attr {
height: 14px; height: 16px;
font-size: 12px; font-size: 12px;
color: #999; color: #999;
overflow: hidden; overflow: hidden;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<Text style='font-size: 18px;margin-top: 10px;'>账户剩余余额:{{cash.CommissionWithdrawal}}</Text> <Text style='font-size: 18px;margin-top: 10px;'>账户剩余余额:{{cash.CommissionWithdrawal}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>今日剩余提现金额:{{cash.CanRemitMoney==-1?'不限':cash.CanRemitMoney+'元'}}</Text> <Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>今日剩余提现金额:{{cash.CanRemitMoney==-1?'不限':cash.CanRemitMoney+'元'}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>最少提现额度:{{cash.MinimumWithdrawalLimit}}</Text> <Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>最少提现额度:{{cash.MinimumWithdrawalLimit}}</Text>
<Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>手续费 百分比:{{cash.WithdrawFee}}%</Text> <Text style='font-size: 14px;color:#333 ;margin-top: 10px;'>手续费:{{cash.WithdrawFee}}%</Text>
<!-- <view style="display: flex;flex-direction: row;align-items: center;margin-top: 10px;"> <!-- <view style="display: flex;flex-direction: row;align-items: center;margin-top: 10px;">
<Text style='font-size: 12px;color:#333 '>今日提现金额无限制</Text> <Text style='font-size: 12px;color:#333 '>今日提现金额无限制</Text>
<view class="rule" :style="{'border-color':mainColor}" @click="show2=true"> <view class="rule" :style="{'border-color':mainColor}" @click="show2=true">
...@@ -16,10 +16,12 @@ ...@@ -16,10 +16,12 @@
<view class="tixian"> <view class="tixian">
<view style='display: flex;flex-direction: row;align-items: center;'> <view style='display: flex;flex-direction: row;align-items: center;'>
<Text :style="{'color':mainColor,'font-size':'18px'}">¥</Text> <Text :style="{'color':mainColor,'font-size':'18px'}">¥</Text>
<input class="uni-input" v-model="msg.AppliedMoney" placeholder="请输入提现金额" style="font-size: 16px;margin-left: 5px;"/> <input class="uni-input" type='number' v-model="msg.AppliedMoney" placeholder="请输入提现金额" @input='liedMoney' style="font-size: 16px;margin-left: 5px;"/>
</view> </view>
<Text @click='allmoney'>全部</Text> <Text @click='allmoney'>全部</Text>
</view> </view>
<view style="width: 100%;height: 1px;background: #f5f5f5;margin: 10px 0;"></view>
<Text style='font-size: 14px;color:#333 ;margin: 10px 0;'>手续费扣除:{{msg.Fee}}</Text>
</view> </view>
<view class="txmode"> <view class="txmode">
<Text>提现方式</Text> <Text>提现方式</Text>
...@@ -191,8 +193,12 @@ ...@@ -191,8 +193,12 @@
}, },
allmoney(){ allmoney(){
this.msg.AppliedMoney = Number(this.cash.CommissionWithdrawal) this.msg.AppliedMoney = Number(this.cash.CommissionWithdrawal)
this.msg.Fee = (Number(this.cash.WithdrawFee*0.01*this.msg.AppliedMoney)).toFixed(2);
},
liedMoney(val){
this.msg.AppliedMoney = Number(val.target.value)
this.msg.Fee = (Number(this.cash.WithdrawFee*0.01*this.msg.AppliedMoney)).toFixed(2);
}, },
radioChange(item){ radioChange(item){
this.txmode = item.Name; this.txmode = item.Name;
this.msg.WithdrawalWay = item.Id; this.msg.WithdrawalWay = item.Id;
...@@ -253,8 +259,8 @@ ...@@ -253,8 +259,8 @@
} }
} }
this.msg.Fee = this.cash.WithdrawFee*0.01*this.msg.AppliedMoney; this.msg.Fee = Number(this.msg.Fee);
this.msg.AppliedMoney = this.msg.AppliedMoney - this.msg.Fee; //最终提现要减去 手续费 this.msg.RemitMoney = this.msg.AppliedMoney - this.msg.Fee; //最终提现要减去 手续费
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
this.request2( this.request2(
{ {
......
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