Commit 7c2ff70d authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp

parents 7b41b5ad a1112238
...@@ -108,8 +108,8 @@ export default { ...@@ -108,8 +108,8 @@ export default {
data: { data: {
Source: 1, Source: 1,
OpenId: obj.OpenId, OpenId: obj.OpenId,
Name: obj.nickName, Name: obj.Name,
Photo: obj.avatarUrl, Photo: obj.Photo,
Moblie: '', Moblie: '',
SuperiorId: 0 SuperiorId: 0
} }
......
...@@ -24,23 +24,23 @@ ...@@ -24,23 +24,23 @@
<view class="tips">{{list.length}}</view> <view class="tips">{{list.length}}</view>
</view> </view>
<view class="goodbox update-goodbox" v-for="(cx, i) in list" :key="i"> <view class="goodbox update-goodbox" v-for="(cx, i) in list" :key="i">
<image :src="cx.goods_info.pic_url" style="width: 100px; height: 100px" /> <image :src="cx.CoverImagePath" style="width: 100px; height: 100px" />
<view style="width: calc(100% - 110px);height: 100px;display: flex;flex-direction: column;margin-left: 10px;justify-content: space-between;"> <view style="width: calc(100% - 110px);height: 100px;display: flex;flex-direction: column;margin-left: 10px;justify-content: space-between;">
<Text class='topic_cont_text' >{{cx.goods_info.name}}</Text> <Text class='topic_cont_text' >{{cx.GoodsName}}</Text>
<view style='width: calc(100% - 110px);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'> <view style='width: calc(100% - 110px);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>
<view v-for="(attr, index2) in cx.goods_info.attr_list" :key="index2" > <view v-for="(attr, index2) in cx.SpecificationList" :key="index2" >
<Text style='color: #A0A09D;font-size: 24rpx;margin-right: 5rpx;'>规格:{{attr.attr_name}}</Text> <Text style='color: #A0A09D;font-size: 24rpx;margin-right: 5rpx;'>规格:{{attr}}</Text>
</view> </view>
</view> </view>
<view style="width: 100%;display: flex;flex-direction: row;align-items:center;justify-content: space-between;"> <view style="width: 100%;display: flex;flex-direction: row;align-items:center;justify-content: space-between;">
<view class="left" :style="{ color: mc }"> <view class="left" :style="{ color: mc }">
<text class="small"></text> <text class="small"></text>
<text style='font-size: 40rpx;'>{{ cx.unit_price.split(".")[0] }}</text> <text style='font-size: 40rpx;'>{{ cx.Final_Price.toString().split(".")[0] }}</text>
<text class="small" <text class="small"
>.{{ cx.unit_price.split(".")[1] || "00" }}</text >.{{ cx.Final_Price.toString().split(".")[1] || "00" }}</text
> >
</view> </view>
<Text style='color: #A0A09D;font-size: 24rpx;'>X{{cx.num}}</Text> <Text style='color: #A0A09D;font-size: 24rpx;'>X{{cx.Number}}</Text>
</view> </view>
</view> </view>
......
...@@ -319,7 +319,7 @@ ...@@ -319,7 +319,7 @@
}, },
goshoping(){ goshoping(){
uni.redirectTo({ url: "/pages/index/index" }); uni.reLaunch({ url: "/pages/index/index" });
}, },
clickHandler(GoodsId) { clickHandler(GoodsId) {
uni.navigateTo({ uni.navigateTo({
......
...@@ -12,6 +12,13 @@ ...@@ -12,6 +12,13 @@
@click="previewImage" @click="previewImage"
></u-swiper> ></u-swiper>
<!-- TODO 分销价格未做 is_share_price --> <!-- TODO 分销价格未做 is_share_price -->
<view class="is_share" v-if='g.share>0'>
<image src="@/static/images/icon/WechatIMG424.png" style="width: 20px;margin-left: 12px;opacity: 1;" mode="widthFix"/>
<view style="display: flex;flex-direction: column;margin-left: 8px;font-size: 11px;color: #fff;opacity: 1;">
<Text>分销最高可赚</Text>
<Text>{{g.share}}</Text>
</view>
</view>
</view> </view>
<view class="g-info"> <view class="g-info">
<view class="g-name u-skeleton-rect">{{ g.name }}</view> <view class="g-name u-skeleton-rect">{{ g.name }}</view>
...@@ -276,7 +283,11 @@ export default { ...@@ -276,7 +283,11 @@ export default {
}, },
onLoad(option) { onLoad(option) {
this.opTionObj = option; this.opTionObj = option;
this.id = option.GoodsId ? option.GoodsId : 29; //40887 59512 46942 if(option&&option.id){
this.id = option.id ? option.id : 29; //40887 59512 46942
}else{
this.id = option.GoodsId ? option.GoodsId : 29; //40887 59512 46942
}
this.init(); this.init();
this.mc = this.$uiConfig.mainColor; this.mc = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
...@@ -477,7 +488,7 @@ export default { ...@@ -477,7 +488,7 @@ export default {
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
font-size: 16px; font-size: 16px;
height: 40px; height: 45px;
} }
.goods .g-info .g-price-box { .goods .g-info .g-price-box {
display: flex; display: flex;
...@@ -618,4 +629,18 @@ export default { ...@@ -618,4 +629,18 @@ export default {
.goods .detals * { .goods .detals * {
max-width: 100%; max-width: 100%;
} }
.goods .is_share{
width: 120px;
height: 45px;
border-top-left-radius: 22.5px;
border-bottom-left-radius: 22.5px;
background: #111;
opacity: 0.8;
display: flex;
flex-direction: row;
align-items: center;
position: absolute;
top: 300px;
right: 0;
}
</style> </style>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
:key="di" :key="di"
></addialog> ></addialog>
<quicknav <quicknav
v-if="d.id == 'quick-nav' && d.data.navSwitch == 1" v-if="d.id == 'quick-nav' && d.data.navSwitch == 1"
:navs="d.data" :navs="d.data"
:key="di" :key="di"
></quicknav> ></quicknav>
...@@ -67,6 +67,15 @@ ...@@ -67,6 +67,15 @@
</view> </view>
</template> </template>
<tabbar></tabbar> <tabbar></tabbar>
<view class="tips" v-if="add_show==1&& JSON.stringify(setting) != '{}' " :style="{
'border-radius':setting.add_app_bg_radius+'rpx',
'opacity':setting.add_app_bg_transparency/100
}">
<u-icon name="cross" color="#fff" @click="close"></u-icon>
<view style="width: 1px;height: 20px;margin:0 10px;background: #fff;"></view>
<Text style='color: #fff;'>{{setting.add_app_text}}</Text>
<view class="triangle-up"></view>
</view>
</view> </view>
</template> </template>
...@@ -98,7 +107,9 @@ export default { ...@@ -98,7 +107,9 @@ export default {
mainColor: "", mainColor: "",
active: 0, active: 0,
contentHeight: 0, contentHeight: 0,
pageId:0 pageId:0,
setting:{},
add_show:1,
}; };
}, },
components: { components: {
...@@ -129,6 +140,14 @@ export default { ...@@ -129,6 +140,14 @@ export default {
let c = this.$uiConfig.is_bang ? 78 : 50; let c = this.$uiConfig.is_bang ? 78 : 50;
this.contentHeight = this.$utils.calcContentHeight(c); this.contentHeight = this.$utils.calcContentHeight(c);
this.init(); this.init();
let set = uni.getStorageSync("basedata")? uni.getStorageSync("basedata").mall.setting:{};
if(!uni.getStorageSync("add_top_app")){
uni.setStorageSync("add_top_app", {add_top_app_show:1});
}
this.add_show = uni.getStorageSync("add_top_app")?uni.getStorageSync("add_top_app").add_top_app_show:1;
this.setting =set;
console.log(this.setting)
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
}, },
onShow() { onShow() {
...@@ -169,6 +188,10 @@ export default { ...@@ -169,6 +188,10 @@ export default {
} }
); );
}, },
close(){
this.add_show =2;
uni.setStorageSync("add_top_app", {add_top_app_show:2});
},
changeHandler(i) { changeHandler(i) {
this.active = i; this.active = i;
}, },
...@@ -205,7 +228,29 @@ export default { ...@@ -205,7 +228,29 @@ export default {
justify-content: center; */ justify-content: center; */
padding-bottom:100rpx; padding-bottom:100rpx;
} }
.content .tips{
position: fixed;
top:8px;
right: 6px;
height: 36px;
background: #000000;
display: flex;
flex-direction: row;
align-items: center;
padding: 0 10px;
font-size: 12px;
}
.triangle-up{
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 10px solid black;
position: fixed;
right: 65px;
top:0px
}
/* .logo { /* .logo {
height: 200rpx; height: 200rpx;
width: 200rpx; width: 200rpx;
......
<template> <template>
<view class="ordersubmit" v-if="!loading"> <view class="ordersubmit">
<view class="add-box" @click="chosenAddress(ds.address.id)"> <view class="add-box" @click="chosenAddress(ds.address.id)">
<view v-if="address.province && address.province != ''" class="add-info"> <view v-if="address.province && address.province != ''" class="add-info">
<view class="address">{{ address.province + address.city + address.district }}</view> <view class="address">{{ address.province + address.city + address.district }}</view>
...@@ -336,7 +336,12 @@ export default { ...@@ -336,7 +336,12 @@ export default {
that.payInfo.OrderId = res.data.OrderId; that.payInfo.OrderId = res.data.OrderId;
that.payInfo.total_price = that.ds.total_price; that.payInfo.total_price = that.ds.total_price;
} }
else{
that.$refs.uToast.show({
title: res.data.message,
type: 'warning'
});
}
uni.hideNavigationBarLoading(); uni.hideNavigationBarLoading();
} }
); );
...@@ -452,7 +457,6 @@ export default { ...@@ -452,7 +457,6 @@ export default {
this.$forceUpdate(); this.$forceUpdate();
if (e && e.val) { if (e && e.val) {
if (this.mchs[i].delivery.send_type != e.val) { if (this.mchs[i].delivery.send_type != e.val) {
// this.formData.list[i].send_type = e.val;
this.formdata.DeliveryMethod = e.val; this.formdata.DeliveryMethod = e.val;
this.init(); this.init();
} }
...@@ -471,10 +475,11 @@ export default { ...@@ -471,10 +475,11 @@ export default {
}, },
changeUseInt(e) { changeUseInt(e) {
this.userInt = e.value; this.userInt = e.value;
this.formData.list.forEach(x => { // this.formData.list.forEach(x => {
x.use_integral = this.userInt ? 1 : 0; // x.use_integral = this.userInt ? 1 : 0;
this.formData.Use_Integral = this.userInt ? 1 : 0; // this.formData.Use_Integral = this.userInt ? 1 : 0;
}); // });
this.formdata.Use_Integral = this.userInt ? 1 : 0;
this.init(); this.init();
}, },
initPage() { initPage() {
...@@ -499,12 +504,12 @@ export default { ...@@ -499,12 +504,12 @@ export default {
}, },
res => { res => {
this.loading = false; this.loading = false;
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.address = res.data.address; this.address = res.data.address;
this.address_enable=res.data.address_enable; this.address_enable=res.data.address_enable;
this.mchs = res.data.mch_list; this.mchs = res.data.mch_list;
this.payInfo.GoodsName = this.mchs[0].goods_list[0].name.slice(0,10); this.payInfo.GoodsName = this.mchs[0].goods_list[0].name.slice(0,10);
this.formdata.DeliveryMethod=this.mchs[0].delivery.send_type;
this.ds = res.data; this.ds = res.data;
this.expressPrice = 0.0; this.expressPrice = 0.0;
this.goodPrice = 0.0; this.goodPrice = 0.0;
...@@ -570,7 +575,7 @@ export default { ...@@ -570,7 +575,7 @@ export default {
x.delivery.send_type_name = y.name; x.delivery.send_type_name = y.name;
} }
}); });
this.goodPrice += parseFloat(x.total_goods_original_price); this.goodPrice += parseFloat(x.total_goods_price);
this.expressPrice += parseFloat(x.express_price); this.expressPrice += parseFloat(x.express_price);
this.couponPrice += parseFloat(x.coupon.coupon_discount || 0.0); this.couponPrice += parseFloat(x.coupon.coupon_discount || 0.0);
if (x.integral.can_use) { if (x.integral.can_use) {
......
...@@ -105,7 +105,18 @@ ...@@ -105,7 +105,18 @@
</view> </view>
</view> </view>
</template> </template>
<view style="width: 100%;text-align: right;">
<Text>应付金额:</Text>
<text style="font-size: 10px;"></text>
<text style="font-size: 17px;">{{
item.Income.toString().split(".")[0]
}}</text>
<text style="font-size: 11px;"
>.{{
item.Income.toString().split(".")[1] || "00"
}}</text
>
</view>
<!-- TODO 样式结构修改--> <!-- TODO 样式结构修改-->
<view class="handle"> <view class="handle">
<u-button <u-button
...@@ -512,7 +523,7 @@ export default { ...@@ -512,7 +523,7 @@ export default {
this.showGoodList = false; this.showGoodList = false;
}, },
showGoodListHandler(i) { showGoodListHandler(i) {
this.goodData = this.g[i].detail; this.goodData = this.g[i].DetailList;
console.log(this.goodData); console.log(this.goodData);
this.showGoodList = true; this.showGoodList = true;
}, },
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
color="#FFF" color="#FFF"
size="28" size="28"
></u-icon> ></u-icon>
<!-- TODO返回字段 不能写死 -->
<text style="margin-left: 5px;">交易成功14天,系统自动确认完成</text> <text style="margin-left: 5px;">交易成功14天,系统自动确认完成</text>
<!-- TODO 交易情况说明 --> <!-- TODO 交易情况说明 -->
</view> </view>
...@@ -62,7 +63,7 @@ ...@@ -62,7 +63,7 @@
x.GoodsName x.GoodsName
}}</view> }}</view>
<view class="good-attr"> <view class="good-attr">
<text>数量{{ x.Number }}</text> <text>数量:{{ x.Number }}</text>
<text <text
v-for="(y, yi) in x.SpecificationList" v-for="(y, yi) in x.SpecificationList"
:key="yi" :key="yi"
...@@ -177,6 +178,7 @@ ...@@ -177,6 +178,7 @@
>-¥{{ orders.integral_deduction_price }}</view >-¥{{ orders.integral_deduction_price }}</view
> >
</view> --> </view> -->
<view style="width: 100%;height: 1px;background: #f5f5f5;margin: 5px 0;"></view>
<view class="field"> <view class="field">
<view class="label">&nbsp;</view> <view class="label">&nbsp;</view>
<view class="content right"> <view class="content right">
...@@ -413,14 +415,14 @@ export default { ...@@ -413,14 +415,14 @@ export default {
{ {
url: '/api/AppletOrder/SetAppletOrderGoodsReceiving', url: '/api/AppletOrder/SetAppletOrderGoodsReceiving',
data: { data: {
OrderId: that.submitId OrderId: that.orders.OrderId
} }
}, },
(res) => { (res) => {
uni.showToast({ uni.showToast({
title:res.message title:res.message
}) })
this.init() that.init()
} }
); );
}, },
...@@ -694,14 +696,14 @@ export default { ...@@ -694,14 +696,14 @@ export default {
height: 20px; height: 20px;
} }
.orderdetail .order-info-item { .orderdetail .order-info-item {
padding: 20px 0; padding: 10px 0;
border-bottom: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5;
} }
.orderdetail .order-info-item:last-child { .orderdetail .order-info-item:last-child {
border-bottom: none; border-bottom: none;
} }
.orderdetail .order-info-item .field { .orderdetail .order-info-item .field {
margin-bottom: 15px; margin-bottom: 10px;
display: flex; display: flex;
} }
.orderdetail .order-info-item.peisong { .orderdetail .order-info-item.peisong {
......
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
this.show=false this.show=false
}, },
getapply(){ getapply(){
// TODO 接口暂无
if(this.msg.AppliedMoney==''){ if(this.msg.AppliedMoney==''){
uni.showToast({ uni.showToast({
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
sharestatus:{}, sharestatus:{},
userinfo:{}, userinfo:{},
sharedata:{}, sharedata:{},
bg_img:'',
showAuth:false showAuth:false
} }
}, },
...@@ -139,9 +139,7 @@ ...@@ -139,9 +139,7 @@
: []; : [];
this.bg_img = wx.getStorageSync("basedata")
? wx.getStorageSync("basedata").__wxapp_img.share.status
: '';
pages.forEach((x) => { pages.forEach((x) => {
if (x.value == u) { if (x.value == u) {
this.pageTitle = x.new_name ? x.new_name : x.name; this.pageTitle = x.new_name ? x.new_name : x.name;
......
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
> >
{{ item.name }} {{ item.name }}
</Text> </Text>
<button open-type="contact" v-if="item.link_url=='contact'&& item.name=='客服' ">0</button>
</view> </view>
</view> </view>
<view class="copyright"> <view class="copyright">
...@@ -192,6 +193,7 @@ console.log(wx.getStorageSync('basedata')) ...@@ -192,6 +193,7 @@ console.log(wx.getStorageSync('basedata'))
); );
}, },
goUrl(url) { goUrl(url) {
if(url =='/pages/order/refund/index'){ if(url =='/pages/order/refund/index'){
uni.navigateTo({ uni.navigateTo({
url: '/pages/order/after-sale/refunds-list' url: '/pages/order/after-sale/refunds-list'
...@@ -224,6 +226,7 @@ console.log(wx.getStorageSync('basedata')) ...@@ -224,6 +226,7 @@ console.log(wx.getStorageSync('basedata'))
<style> <style>
.body { .body {
background: #f3f4f6; background: #f3f4f6;
min-height:100vh
} }
.userStyle .userBox { .userStyle .userBox {
height: 100%; height: 100%;
...@@ -353,6 +356,16 @@ console.log(wx.getStorageSync('basedata')) ...@@ -353,6 +356,16 @@ console.log(wx.getStorageSync('basedata'))
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
position: relative;
}
.menus_item2,.menus_item button{
width: 100%;
height: 100%;
position: absolute;
left: 0;
top:0;
opacity: 0;
} }
.userStyle .menus2 .menus_item2 { .userStyle .menus2 .menus_item2 {
width: 100%; width: 100%;
...@@ -361,6 +374,7 @@ console.log(wx.getStorageSync('basedata')) ...@@ -361,6 +374,7 @@ console.log(wx.getStorageSync('basedata'))
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
margin-left: 30rpx; margin-left: 30rpx;
position: relative;
} }
.userStyle .copyright { .userStyle .copyright {
padding: 70rpx 0; padding: 70rpx 0;
......
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