优化细节
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,3 +1,6 @@
|
|||||||
|
page {
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
.newsList .newsSwitch .van-hairline--top-bottom::after {
|
.newsList .newsSwitch .van-hairline--top-bottom::after {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
@ -177,6 +177,7 @@ export default {
|
|||||||
that.status = false;
|
that.status = false;
|
||||||
that.active = index;
|
that.active = index;
|
||||||
that.datatime = that.timeList[that.active].stop;
|
that.datatime = that.timeList[that.active].stop;
|
||||||
|
this.seckillList=[]
|
||||||
that.getSeckillList();
|
that.getSeckillList();
|
||||||
},
|
},
|
||||||
getSeckillList: function() {
|
getSeckillList: function() {
|
||||||
|
@ -320,6 +320,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|
||||||
.noCart {
|
.noCart {
|
||||||
margin-top: 0.17 * 100rpx;
|
margin-top: 0.17 * 100rpx;
|
||||||
padding-top: 0.1 * 100rpx;
|
padding-top: 0.1 * 100rpx;
|
||||||
|
@ -311,28 +311,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
methods: {
|
|
||||||
goGoodsReturn(orderInfo) {
|
|
||||||
this.$yrouter.push({
|
|
||||||
path: "/pages/order/GoodsReturn/index",
|
|
||||||
query: {
|
|
||||||
id: orderInfo.orderId
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
goGroupRule(orderInfo) {
|
|
||||||
this.$yrouter.push({
|
|
||||||
path: "/pages/activity/GroupRule/index",
|
|
||||||
query: {
|
|
||||||
id: orderInfo.pinkId
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.geoPage {
|
.geoPage {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -527,6 +505,23 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copyClipboard,
|
copyClipboard,
|
||||||
|
goGoodsReturn(orderInfo) {
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: "/pages/order/GoodsReturn/index",
|
||||||
|
query: {
|
||||||
|
id: orderInfo.orderId
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
goGroupRule(orderInfo) {
|
||||||
|
console.log(orderInfo)
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: "/pages/activity/GroupRule/index",
|
||||||
|
query: {
|
||||||
|
id: orderInfo.pinkId
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
showChang: function() {
|
showChang: function() {
|
||||||
// 这里判断是不是微信小程序
|
// 这里判断是不是微信小程序
|
||||||
if (isWeixin()) {
|
if (isWeixin()) {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<view class="num">{{ census.orderCount.evaluatedCount }}</view>
|
<view class="num">{{ census.orderCount.evaluatedCount }}</view>
|
||||||
<view>待评价</view>
|
<view>待评价</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @click="goAdminOrderList(3)">
|
<view class="item" @click="goAdminOrderList(4)">
|
||||||
<view class="num">{{ census.orderCount.refundCount }}</view>
|
<view class="num">{{ census.orderCount.refundCount }}</view>
|
||||||
<view>退款</view>
|
<view>退款</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -62,8 +62,8 @@ export default {
|
|||||||
this.getActivity();
|
this.getActivity();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goUserBill(id) {
|
goUserBill(types) {
|
||||||
this.$yrouter.push({ path: "/pages/user/UserBill/index", query: { id } });
|
this.$yrouter.push({ path: "/pages/user/UserBill/index", query: { types } });
|
||||||
},
|
},
|
||||||
getIndex: function() {
|
getIndex: function() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item acea-row row-between-wrapper">
|
<view class="item acea-row row-between-wrapper">
|
||||||
<view class="name">所在地区</view>
|
<view class="name">所在地区</view>
|
||||||
<view class="picker acea-row row-between-wrapper select-value form-control" >
|
<view class="picker acea-row row-between-wrapper select-value form-control">
|
||||||
<view class="address" @tap="openAddres2">
|
<view class="address" @tap="openAddres2">
|
||||||
<!-- <picker
|
<!-- <picker
|
||||||
@columnchange="addRessColumnchange"
|
@columnchange="addRessColumnchange"
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<text class="uni-input" v-if="model2">{{model2}}</text>
|
<text class="uni-input" v-if="model2">{{model2}}</text>
|
||||||
<text class="uni-input" v-else>请选择地区</text>
|
<text class="uni-input" v-else>请选择地区</text>
|
||||||
</picker>-->
|
</picker>-->
|
||||||
<text class="uni-input" >{{model2||'请选择'}}</text>
|
<text class="uni-input">{{model2||'请选择'}}</text>
|
||||||
<simple-address
|
<simple-address
|
||||||
ref="simpleAddress"
|
ref="simpleAddress"
|
||||||
:pickerValueDefault="cityPickerValueDefault"
|
:pickerValueDefault="cityPickerValueDefault"
|
||||||
@ -107,18 +107,28 @@ export default {
|
|||||||
},
|
},
|
||||||
openAddres2() {
|
openAddres2() {
|
||||||
// 根据 label 获取
|
// 根据 label 获取
|
||||||
|
if (this.address.province) {
|
||||||
|
// 这个插件有个问题,直辖市的 city 必须得是 市辖区
|
||||||
if(this.address.province){
|
let str = "市";
|
||||||
|
let city = this.address.city;
|
||||||
var index = this.$refs.simpleAddress.queryIndex(
|
if (this.address.province.indexOf(str) != -1) {
|
||||||
[this.address.province, this.address.city, this.address.district],
|
city = "市辖区";
|
||||||
"label"
|
}
|
||||||
);
|
var index = this.$refs.simpleAddress.queryIndex(
|
||||||
console.log(index);
|
[this.address.province, city, this.address.district],
|
||||||
this.cityPickerValueDefault = index.index;
|
"label"
|
||||||
}
|
);
|
||||||
|
console.log(index);
|
||||||
|
this.cityPickerValueDefault = index.index;
|
||||||
|
}
|
||||||
this.$refs.simpleAddress.open();
|
this.$refs.simpleAddress.open();
|
||||||
|
|
||||||
|
// var index = this.$refs.simpleAddress.queryIndex(
|
||||||
|
// [13, 1302, 130203],
|
||||||
|
// "value"
|
||||||
|
// );
|
||||||
|
// this.cityPickerValueDefault = index.index;
|
||||||
|
// this.$refs.simpleAddress.open();
|
||||||
},
|
},
|
||||||
openAddres3() {
|
openAddres3() {
|
||||||
// 根据value 获取
|
// 根据value 获取
|
||||||
@ -135,7 +145,7 @@ if(this.address.province){
|
|||||||
this.model2 = e.label;
|
this.model2 = e.label;
|
||||||
console.log(this.pickerText);
|
console.log(this.pickerText);
|
||||||
},
|
},
|
||||||
getUserAddress: function() {
|
getUserAddress: function() {
|
||||||
if (!this.id) return false;
|
if (!this.id) return false;
|
||||||
let that = this;
|
let that = this;
|
||||||
getAddress(that.id).then(res => {
|
getAddress(that.id).then(res => {
|
||||||
@ -228,8 +238,8 @@ if(this.address.province){
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.address{
|
.address {
|
||||||
text{
|
text {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user