修改im接口报错问题
commit
db4dfd3edc
|
@ -9,3 +9,5 @@ node_modules/
|
||||||
.vscode/
|
.vscode/
|
||||||
/unpackage/
|
/unpackage/
|
||||||
.hbuilderx/launch.json
|
.hbuilderx/launch.json
|
||||||
|
.project.config.json
|
||||||
|
.project.private.config.json
|
||||||
|
|
|
@ -179,9 +179,10 @@
|
||||||
},
|
},
|
||||||
// 数据去重一下 只显示一次 减免 劵 什么的
|
// 数据去重一下 只显示一次 减免 劵 什么的
|
||||||
getPromotion(item) {
|
getPromotion(item) {
|
||||||
if (item.promotionMap) {
|
if (item.content ? item.content.promotionMap : item.promotionMap) {
|
||||||
|
const fieldList = item.content ? item.content.promotionMap : item.promotionMap
|
||||||
let array = [];
|
let array = [];
|
||||||
Object.keys(item.promotionMap).forEach((child) => {
|
Object.keys(fieldList).forEach((child) => {
|
||||||
if (!array.includes(child.split("-")[0])) {
|
if (!array.includes(child.split("-")[0])) {
|
||||||
array.push(child.split("-")[0]);
|
array.push(child.split("-")[0]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,10 @@
|
||||||
$options.filters.goodsFormatPrice(item.purchasePrice )[1]
|
$options.filters.goodsFormatPrice(item.purchasePrice )[1]
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 兜底策略如果金额是0 -->
|
||||||
|
<div class="price" v-if="!item.price">
|
||||||
|
¥<span>0 </span>.00
|
||||||
|
</div>
|
||||||
</view>
|
</view>
|
||||||
<div>
|
<div>
|
||||||
<image class='buy' :src="buy"></image>
|
<image class='buy' :src="buy"></image>
|
||||||
|
|
|
@ -83,20 +83,7 @@ export default {
|
||||||
this.configs.shareLink +
|
this.configs.shareLink +
|
||||||
getCurrentPages()[getCurrentPages().length - 1].__page__.fullPath;
|
getCurrentPages()[getCurrentPages().length - 1].__page__.fullPath;
|
||||||
}
|
}
|
||||||
if (content === null || content === undefined) {
|
this.$options.filters.setClipboard(content)
|
||||||
content = "";
|
|
||||||
} else content = content + "";
|
|
||||||
const result = h5Copy(content);
|
|
||||||
if (result === false) {
|
|
||||||
uni.showToast({
|
|
||||||
title: "不支持",
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: "复制成功",
|
|
||||||
icon: "none",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default {
|
||||||
customerServiceEmail: "lili@lili.com", //客服邮箱
|
customerServiceEmail: "lili@lili.com", //客服邮箱
|
||||||
imWebSrc: "https://im.pickmall.cn", //IM地址
|
imWebSrc: "https://im.pickmall.cn", //IM地址
|
||||||
baseWsUrl: "wss://im-api.pickmall.cn/lili/webSocket", // IM WS 地址
|
baseWsUrl: "wss://im-api.pickmall.cn/lili/webSocket", // IM WS 地址
|
||||||
enableGetClipboard: true, //是否启用粘贴板获取 scanAuthNavigation 中的链接,如果匹配则会跳转到对应页面
|
enableGetClipboard: false, //是否启用粘贴板获取 scanAuthNavigation 中的链接,如果匹配则会跳转到对应页面
|
||||||
enableMiniBarStartUpApp: true, //是否在h5中右侧浮空按钮点击启动app
|
enableMiniBarStartUpApp: true, //是否在h5中右侧浮空按钮点击启动app
|
||||||
/**
|
/**
|
||||||
* 如需更换主题请修改此处以及uni.scss中的全局颜色
|
* 如需更换主题请修改此处以及uni.scss中的全局颜色
|
||||||
|
@ -22,6 +22,5 @@ export default {
|
||||||
mainColor: "#ff3c2a", // 主题色
|
mainColor: "#ff3c2a", // 主题色
|
||||||
lightColor: "#ff6b35", // 高亮主题色
|
lightColor: "#ff6b35", // 高亮主题色
|
||||||
aiderLightColor: "#ff9f28", // 辅助高亮颜色
|
aiderLightColor: "#ff9f28", // 辅助高亮颜色
|
||||||
defaultUserTopBackground:"/static/img/main-bg.png", // 我的页面用户背景 渲染的大小: 750 × 443 px 渲染时的宽高比: 750∶443
|
|
||||||
defaultUserPhoto:"/static/missing-face.png" // 默认用户头像
|
defaultUserPhoto:"/static/missing-face.png" // 默认用户头像
|
||||||
};
|
};
|
||||||
|
|
|
@ -211,7 +211,8 @@
|
||||||
"version" : "1.3.0",
|
"version" : "1.3.0",
|
||||||
"provider" : "wx2b03c6e691cd7370"
|
"provider" : "wx2b03c6e691cd7370"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"requiredPrivateInfos" : [ "chooseLocation", "getLocation" ]
|
||||||
},
|
},
|
||||||
"h5" : {
|
"h5" : {
|
||||||
"devServer" : {
|
"devServer" : {
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<u-empty
|
<u-empty
|
||||||
mode="coupon"
|
mode="coupon"
|
||||||
text="暂无优惠券了"
|
text="暂无优惠券了"
|
||||||
v-if="navItem.wheterEmpty"
|
v-if="navItem.whetherEmpty"
|
||||||
></u-empty>
|
></u-empty>
|
||||||
|
|
||||||
<!-- 数据 -->
|
<!-- 数据 -->
|
||||||
|
@ -139,7 +139,7 @@ export default {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
status: 1,
|
status: 1,
|
||||||
},
|
},
|
||||||
wheterEmpty: false,
|
whetherEmpty: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "已使用",
|
text: "已使用",
|
||||||
|
@ -151,7 +151,7 @@ export default {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
status: 2,
|
status: 2,
|
||||||
},
|
},
|
||||||
wheterEmpty: false,
|
whetherEmpty: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "已过期",
|
text: "已过期",
|
||||||
|
@ -163,7 +163,7 @@ export default {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
status: 3,
|
status: 3,
|
||||||
},
|
},
|
||||||
wheterEmpty: false,
|
whetherEmpty: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
couponList: [], //优惠券列表
|
couponList: [], //优惠券列表
|
||||||
|
@ -206,7 +206,7 @@ export default {
|
||||||
let data = res.data.result.records;
|
let data = res.data.result.records;
|
||||||
if (data.length == 0) {
|
if (data.length == 0) {
|
||||||
if (res.data.pageNumber == 1) {
|
if (res.data.pageNumber == 1) {
|
||||||
this.navList[index].wheterEmpty = true;
|
this.navList[index].whetherEmpty = true;
|
||||||
} else {
|
} else {
|
||||||
this.navList[index].loadStatus = "noMore";
|
this.navList[index].loadStatus = "noMore";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="wrapper" v-if="flage">
|
<view class="wrapper" v-if="flag">
|
||||||
<div class='goods' v-if="selectedGoods">
|
<div class='goods' v-if="selectedGoods">
|
||||||
<image class="goods-image" :src="selectedGoods.thumbnail" alt="">
|
<image class="goods-image" :src="selectedGoods.thumbnail" alt="">
|
||||||
<p class="goodsName">{{selectedGoods.goodsName}}</p>
|
<p class="goodsName">{{selectedGoods.goodsName}}</p>
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
<popupGoods :addr="addr" ref="popupGoods" :buyMask="maskFlag" @closeBuy="closePopupBuy" :goodsDetail="goodsDetail" :goodsSpec="goodsSpec" v-if="goodsDetail.id " @handleClickSku="getGoodsDetail" />
|
<popupGoods :addr="addr" ref="popupGoods" :buyMask="maskFlag" @closeBuy="closePopupBuy" :goodsDetail="goodsDetail" :goodsSpec="goodsSpec" v-if="goodsDetail.id " @handleClickSku="getGoodsDetail" />
|
||||||
<shares @close="closeShare" :link="'/pages/cart/payment/shareOrderGoods?sn='+this.routers.sn+'&sku='+this.routers.sku+'&goodsId='+this.routers.goodsId" type="pintuan"
|
<shares @close="closeShare" :link="'/pages/cart/payment/shareOrderGoods?sn='+this.routers.sn+'&sku='+this.routers.sku+'&goodsId='+this.routers.goodsId" type="pintuan"
|
||||||
:thumbnail="data.promotionGoods.thumbnail" :goodsName="data.promotionGoods.goodsName" v-if="shareFlage " />
|
:thumbnail="data.promotionGoods.thumbnail" :goodsName="data.promotionGoods.goodsName" v-if="shareFlag " />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -72,13 +72,13 @@ import popupGoods from "@/components/m-buy/goods"; //购物车商品的模块
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
flage: false, //判断接口是否正常请求
|
flag: false, //判断接口是否正常请求
|
||||||
addr: {
|
addr: {
|
||||||
id: "",
|
id: "",
|
||||||
},
|
},
|
||||||
maskFlag: false, //商品弹框
|
maskFlag: false, //商品弹框
|
||||||
timeStamp: 0,
|
timeStamp: 0,
|
||||||
shareFlage: false,
|
shareFlag: false,
|
||||||
data: "",
|
data: "",
|
||||||
isMaster: true,
|
isMaster: true,
|
||||||
selectedGoods: "", //选择的商品规格昵称
|
selectedGoods: "", //选择的商品规格昵称
|
||||||
|
@ -116,7 +116,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeShare() {
|
closeShare() {
|
||||||
this.shareFlage = false;
|
this.shareFlag = false;
|
||||||
},
|
},
|
||||||
// 这里的话得先跳到商品详情才能购买商品
|
// 这里的话得先跳到商品详情才能购买商品
|
||||||
toBuy() {
|
toBuy() {
|
||||||
|
@ -131,7 +131,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 分享
|
// 分享
|
||||||
share() {
|
share() {
|
||||||
this.shareFlage = true;
|
this.shareFlag = true;
|
||||||
},
|
},
|
||||||
closePopupBuy(val) {
|
closePopupBuy(val) {
|
||||||
this.maskFlag = false;
|
this.maskFlag = false;
|
||||||
|
@ -140,7 +140,7 @@ export default {
|
||||||
async init(sn, sku) {
|
async init(sn, sku) {
|
||||||
let res = await getPinTuanShare(sn, sku);
|
let res = await getPinTuanShare(sn, sku);
|
||||||
if (res.data.success && res.data.result.promotionGoods) {
|
if (res.data.success && res.data.result.promotionGoods) {
|
||||||
this.flage = true;
|
this.flag = true;
|
||||||
this.data = res.data.result;
|
this.data = res.data.result;
|
||||||
this.selectedGoods = res.data.result.promotionGoods;
|
this.selectedGoods = res.data.result.promotionGoods;
|
||||||
let endTime = Date.parse(
|
let endTime = Date.parse(
|
||||||
|
|
|
@ -33,18 +33,18 @@
|
||||||
<m-city :provinceData="list" headTitle="区域选择" ref="cityPicker" @funcValue="getpickerParentValue" pickerSize="4">
|
<m-city :provinceData="list" headTitle="区域选择" ref="cityPicker" @funcValue="getpickerParentValue" pickerSize="4">
|
||||||
</m-city>
|
</m-city>
|
||||||
|
|
||||||
<uniMap v-if="mapFlage" @close="closeMap" @callback="callBackAddress" />
|
<uniMap v-if="mapFlag" @close="closeMap" @callback="callBackAddress" />
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { addAddress, editAddress, getAddressDetail } from "@/api/address.js";
|
import { addAddress, editAddress, getAddressDetail } from "@/api/address.js";
|
||||||
import gkcity from "@/components/m-city/m-city.vue";
|
import city from "@/components/m-city/m-city.vue";
|
||||||
import uniMap from "./uniMap";
|
import uniMap from "./uniMap";
|
||||||
import permision from "@/js_sdk/wa-permission/permission.js";
|
import permision from "@/js_sdk/wa-permission/permission.js";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
"m-city": gkcity,
|
"m-city": city,
|
||||||
uniMap,
|
uniMap,
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
// 关闭地图
|
// 关闭地图
|
||||||
closeMap() {
|
closeMap() {
|
||||||
this.mapFlage = false;
|
this.mapFlag = false;
|
||||||
},
|
},
|
||||||
// 打开地图并访问权限
|
// 打开地图并访问权限
|
||||||
clickUniMap() {
|
clickUniMap() {
|
||||||
|
@ -61,8 +61,8 @@ export default {
|
||||||
if (plus.os.name == "iOS") {
|
if (plus.os.name == "iOS") {
|
||||||
// ios系统
|
// ios系统
|
||||||
permision.judgeIosPermission("location")
|
permision.judgeIosPermission("location")
|
||||||
? (this.mapFlage = true)
|
? (this.mapFlag = true)
|
||||||
: this.refuseMapOuther();
|
: this.refuseMap();
|
||||||
} else {
|
} else {
|
||||||
// 安卓
|
// 安卓
|
||||||
this.requestAndroidPermission(
|
this.requestAndroidPermission(
|
||||||
|
@ -72,12 +72,12 @@ export default {
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// #ifndef APP-PLUS
|
// #ifndef APP-PLUS
|
||||||
this.mapFlage = true;
|
this.mapFlag = true;
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
|
|
||||||
// 如果拒绝权限 提示区设置
|
// 如果拒绝权限 提示区设置
|
||||||
refuseMapOuther() {
|
refuseMap() {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
content: "您已拒绝定位,请开启",
|
content: "您已拒绝定位,请开启",
|
||||||
|
@ -113,9 +113,9 @@ export default {
|
||||||
var result = await permision.requestAndroidPermission(permisionID);
|
var result = await permision.requestAndroidPermission(permisionID);
|
||||||
|
|
||||||
if (result == 1) {
|
if (result == 1) {
|
||||||
this.mapFlage = true;
|
this.mapFlag = true;
|
||||||
} else {
|
} else {
|
||||||
this.refuseMapOuther();
|
this.refuseMap();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ export default {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mapFlage = !this.mapFlage; //关闭地图
|
this.mapFlag = !this.mapFlag; //关闭地图
|
||||||
},
|
},
|
||||||
|
|
||||||
// 保存当前 地址
|
// 保存当前 地址
|
||||||
|
@ -206,7 +206,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
lightColor: this.$lightColor, //高亮颜色
|
lightColor: this.$lightColor, //高亮颜色
|
||||||
mapFlage: false, // 地图选择开
|
mapFlag: false, // 地图选择开
|
||||||
routerVal: "",
|
routerVal: "",
|
||||||
form: {
|
form: {
|
||||||
detail: "", //地址详情
|
detail: "", //地址详情
|
||||||
|
|
|
@ -29,7 +29,8 @@ export default {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail() {
|
fail(e) {
|
||||||
|
console.log(e)
|
||||||
that.$emit("close");
|
that.$emit("close");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<swiper class="swiper-box" :current="swiperCurrent">
|
<swiper class="swiper-box" :current="swiperCurrent">
|
||||||
<swiper-item class="swiper-item" v-for="index in list.length" :key="index">
|
<swiper-item class="swiper-item" v-for="index in list.length" :key="index">
|
||||||
<scroll-view class="scroll-v view-wrapper" enableBackToTop="true" scroll-with-animation scroll-y @scrolltolower="loadMore">
|
<scroll-view class="scroll-v view-wrapper" enableBackToTop="true" scroll-with-animation scroll-y @scrolltolower="loadMore">
|
||||||
<view v-if="datas.length!=0" class="view-item" v-for="(logItem, logIndex) in datas" :key="logIndex">
|
<view v-if="depositData.length!=0" class="view-item" v-for="(logItem, logIndex) in depositData" :key="logIndex">
|
||||||
<view class="view-item-detail">
|
<view class="view-item-detail">
|
||||||
<view class="-title">{{logItem.detail}}</view>
|
<view class="-title">{{logItem.detail}}</view>
|
||||||
<!-- <view class="-number">{{logItem.detail}}</view> -->
|
<!-- <view class="-number">{{logItem.detail}}</view> -->
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<u-empty v-if="datas.length==0" mode="history" text="暂无记录" />
|
<u-empty v-if="depositData.length==0" mode="history" text="暂无记录" />
|
||||||
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
walletNum: 0,
|
walletNum: 0,
|
||||||
|
|
||||||
current: 0,
|
current: 0,
|
||||||
swiperCurrent: 0,
|
swiperCurrent: 0,
|
||||||
userInfo: "", //用户详情信息
|
userInfo: "", //用户详情信息
|
||||||
|
@ -54,7 +53,7 @@ export default {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
order: "desc",
|
order: "desc",
|
||||||
},
|
},
|
||||||
datas: [], //遍历的数据集合
|
depositData: [], //遍历的数据集合
|
||||||
rechargeList: "", //充值明细列表
|
rechargeList: "", //充值明细列表
|
||||||
walletLogList: "", //钱包变动列表
|
walletLogList: "", //钱包变动列表
|
||||||
list: [
|
list: [
|
||||||
|
@ -82,12 +81,10 @@ export default {
|
||||||
|
|
||||||
/**分页获取预存款充值记录 */
|
/**分页获取预存款充值记录 */
|
||||||
getRecharge() {
|
getRecharge() {
|
||||||
|
|
||||||
getUserRecharge(this.params).then((res) => {
|
getUserRecharge(this.params).then((res) => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
if (res.data.result.records.length != 0) {
|
if (res.data.result.records.length != 0) {
|
||||||
|
this.depositData.push(...res.data.result.records);
|
||||||
this.datas.push(...res.data.result.records);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -98,7 +95,7 @@ export default {
|
||||||
getWalletLog(this.params).then((res) => {
|
getWalletLog(this.params).then((res) => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
if (res.data.result.records.length != 0) {
|
if (res.data.result.records.length != 0) {
|
||||||
this.datas.push(...res.data.result.records);
|
this.depositData.push(...res.data.result.records);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -106,7 +103,7 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
changed(index) {
|
changed(index) {
|
||||||
this.datas = [];
|
this.depositData = [];
|
||||||
this.swiperCurrent = index;
|
this.swiperCurrent = index;
|
||||||
this.params.pageNumber = 1;
|
this.params.pageNumber = 1;
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
<div class="deposit">预存款金额</div>
|
<div class="deposit">预存款金额</div>
|
||||||
<div class="money">¥{{walletNum | unitPrice }}</div>
|
<div class="money">¥{{walletNum | unitPrice }}</div>
|
||||||
<div class="operation-btns">
|
<div class="operation-btns">
|
||||||
<div class="operation-btn light" @click="navgition('/pages/mine/deposit/withdrawal')">提现</div>
|
<div class="operation-btn light" @click="navigateTo('/pages/mine/deposit/withdrawal')">提现</div>
|
||||||
<div class="operation-btn" @click="navgition('/pages/mine/deposit/recharge')">充值</div>
|
<div class="operation-btn" @click="navigateTo('/pages/mine/deposit/recharge')">充值</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box list" @click="navgition('/pages/mine/deposit/index')">
|
<div class="box list" @click="navigateTo('/pages/mine/deposit/index')">
|
||||||
<div class="list-left">预存款明细</div>
|
<div class="list-left">预存款明细</div>
|
||||||
<div class="list-right">
|
<div class="list-right">
|
||||||
<u-icon name="arrow-right"></u-icon>
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
@ -31,12 +31,6 @@ export default {
|
||||||
let result = await getUserWallet(); //预存款
|
let result = await getUserWallet(); //预存款
|
||||||
this.walletNum = result.data.result.memberWallet;
|
this.walletNum = result.data.result.memberWallet;
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
|
||||||
icon: "none",
|
|
||||||
duration: 3000,
|
|
||||||
title: "请先登录!",
|
|
||||||
});
|
|
||||||
|
|
||||||
this.$options.filters.navigateToLogin("redirectTo");
|
this.$options.filters.navigateToLogin("redirectTo");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -49,7 +43,7 @@ export default {
|
||||||
/**
|
/**
|
||||||
* 跳转
|
* 跳转
|
||||||
*/
|
*/
|
||||||
navgition(url) {
|
navigateTo(url) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url,
|
url,
|
||||||
});
|
});
|
||||||
|
|
|
@ -98,7 +98,7 @@ export default {
|
||||||
.nav-list {
|
.nav-list {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 40rpx 0;
|
padding: 40rpx 0;
|
||||||
background: $aider-light-color;
|
background: linear-gradient(91deg, $light-color 1%, $aider-light-color 99%);
|
||||||
}
|
}
|
||||||
.total {
|
.total {
|
||||||
padding: 10rpx 0;
|
padding: 10rpx 0;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<view>{{ item.content }}</view>
|
<view>{{ item.content }}</view>
|
||||||
<view>{{ item.createTime}}</view>
|
<view>{{ item.createTime}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view><span>{{item.pointType == "INCREASE" ? '+' : '-'}}</span>{{ item.variablePoint }}</view>
|
<view :class="[item.pointType == 'INCREASE' ? 'plus' : 'reduce']"><span>{{item.pointType == "INCREASE" ? '+' : '-'}}</span>{{ item.variablePoint }}</view>
|
||||||
</view>
|
</view>
|
||||||
<uni-load-more :status="count.loadStatus"></uni-load-more>
|
<uni-load-more :status="count.loadStatus"></uni-load-more>
|
||||||
</div>
|
</div>
|
||||||
|
@ -109,6 +109,14 @@ export default {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.plus{
|
||||||
|
color: $light-color;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.reduce{
|
||||||
|
color: $weChat-color;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.point-item {
|
.point-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -150,7 +158,7 @@ export default {
|
||||||
border-right: 1px solid $border-color-light;
|
border-right: 1px solid $border-color-light;
|
||||||
}
|
}
|
||||||
.pcolor {
|
.pcolor {
|
||||||
color: #4ebb9d;
|
color: $light-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +176,7 @@ export default {
|
||||||
.portrait-box {
|
.portrait-box {
|
||||||
background-color: $main-color;
|
background-color: $main-color;
|
||||||
height: 250rpx;
|
height: 250rpx;
|
||||||
background: linear-gradient(134deg, #28d094 2%, #1abc9c 98%);
|
background: linear-gradient(91deg, $light-color 1%, $aider-light-color 99%);
|
||||||
border-radius: 20rpx 20rpx 0 0;
|
border-radius: 20rpx 20rpx 0 0;
|
||||||
margin: 20rpx 20rpx 0;
|
margin: 20rpx 20rpx 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -23,26 +23,22 @@
|
||||||
<u-input v-model="form.___path" disabled @click="clickRegion" />
|
<u-input v-model="form.___path" disabled @click="clickRegion" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<view class="submit" @click="submit">保存</view>
|
<view class="submit" @click="submit">保存</view>
|
||||||
<view class="submit" @click="showModalDialog">退出登录</view>
|
<view class="submit" @click="quiteLoginOut">退出登录</view>
|
||||||
<u-modal show-cancel-button v-model="quitShow" @confirm="confirm" :confirm-color="lightColor" :async-close="true"
|
|
||||||
:content="'确定要退出登录么?'"></u-modal>
|
|
||||||
</u-form>
|
</u-form>
|
||||||
|
|
||||||
<m-city :provinceData="region" headTitle="区域选择" ref="cityPicker" @funcValue="getpickerParentValue" pickerSize="4"></m-city>
|
<m-city :provinceData="region" headTitle="区域选择" ref="cityPicker" @funcValue="getPickerParentValue" pickerSize="4"></m-city>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { logout } from "@/api/login";
|
|
||||||
import { saveUserInfo } from "@/api/members.js";
|
import { saveUserInfo } from "@/api/members.js";
|
||||||
import { upload } from "@/api/common.js";
|
import { upload } from "@/api/common.js";
|
||||||
import storage from "@/utils/storage.js";
|
import storage from "@/utils/storage.js";
|
||||||
import uFormItem from "@/uview-ui/components/u-form-item/u-form-item.vue";
|
import uFormItem from "@/uview-ui/components/u-form-item/u-form-item.vue";
|
||||||
import gkcity from "@/components/m-city/m-city.vue";
|
import city from "@/components/m-city/m-city.vue";
|
||||||
export default {
|
export default {
|
||||||
components: { uFormItem, "m-city": gkcity },
|
components: { uFormItem, "m-city": city },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
quitShow: false,
|
|
||||||
lightColor: this.$lightColor, //高亮颜色
|
lightColor: this.$lightColor, //高亮颜色
|
||||||
form: {
|
form: {
|
||||||
nickName: storage.getUserInfo().nickName || "",
|
nickName: storage.getUserInfo().nickName || "",
|
||||||
|
@ -71,38 +67,16 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* 显示退出登录对话框
|
* 退出登录
|
||||||
*/
|
*/
|
||||||
showModalDialog() {
|
quiteLoginOut() {
|
||||||
this.quitShow = true;
|
this.$options.filters.quiteLoginOut();
|
||||||
},
|
|
||||||
|
|
||||||
clear() {
|
|
||||||
storage.setAccessToken("");
|
|
||||||
storage.setRefreshToken("");
|
|
||||||
storage.setUserInfo({});
|
|
||||||
this.$options.filters.navigateToLogin("redirectTo");
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 确认退出
|
|
||||||
* 清除缓存重新登录
|
|
||||||
*/
|
|
||||||
async confirm() {
|
|
||||||
try{
|
|
||||||
await logout();
|
|
||||||
this.clear();
|
|
||||||
}catch(e){
|
|
||||||
//TODO handle the exception
|
|
||||||
this.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 选择地址回调
|
* 选择地址回调
|
||||||
*/
|
*/
|
||||||
getpickerParentValue(e) {
|
getPickerParentValue(e) {
|
||||||
this.form.region = [];
|
this.form.region = [];
|
||||||
this.form.regionId = [];
|
this.form.regionId = [];
|
||||||
let name = "";
|
let name = "";
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<u-image width=140 height="140" shape="circle" :src="userInfo.face || userImage" mode="">
|
<u-image width=140 height="140" shape="circle" :src="userInfo.face || userImage" mode="">
|
||||||
</u-image>
|
</u-image>
|
||||||
<view class="user-name">
|
<view class="user-name">
|
||||||
|
|
||||||
{{ userInfo.id ? userInfo.nickName || '' : '暂未登录' }}
|
{{ userInfo.id ? userInfo.nickName || '' : '暂未登录' }}
|
||||||
</view>
|
</view>
|
||||||
<u-icon color="#ccc" name="arrow-right"></u-icon>
|
<u-icon color="#ccc" name="arrow-right"></u-icon>
|
||||||
|
@ -16,29 +15,25 @@
|
||||||
<!-- #ifdef APP-PLUS -->
|
<!-- #ifdef APP-PLUS -->
|
||||||
<u-cell-item title="清除缓存" :value="fileSizeString" @click="clearCache"></u-cell-item>
|
<u-cell-item title="清除缓存" :value="fileSizeString" @click="clearCache"></u-cell-item>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
|
<!-- #ifndef MP-WEIXIN -->
|
||||||
<u-cell-item title="安全中心" @click="navigateTo('/pages/mine/set/securityCenter/securityCenter')"></u-cell-item>
|
<u-cell-item title="安全中心" @click="navigateTo('/pages/mine/set/securityCenter/securityCenter')"></u-cell-item>
|
||||||
|
<!-- #endif -->
|
||||||
<u-cell-item title="意见反馈" @click="navigateTo('/pages/mine/set/feedBack')"></u-cell-item>
|
<u-cell-item title="意见反馈" @click="navigateTo('/pages/mine/set/feedBack')"></u-cell-item>
|
||||||
<!-- #ifndef H5 -->
|
<!-- #ifndef H5 -->
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<u-cell-item :title="`关于${config.name}`" @click="navigateTo('/pages/mine/set/editionIntro')"></u-cell-item>
|
<u-cell-item :title="`关于${config.name}`" @click="navigateTo('/pages/mine/set/editionIntro')"></u-cell-item>
|
||||||
</u-cell-group>
|
</u-cell-group>
|
||||||
<view class="submit" @click="showModalDialog">{{userInfo.id ?'退出登录':'登录'}}</view>
|
<view class="submit" v-if="userInfo.id" @click="quiteLoginOut">退出登录</view>
|
||||||
<u-modal show-cancel-button v-model="quitShow" @confirm="confirm" :confirm-color="lightColor" :async-close="true"
|
|
||||||
:content="userInfo.id ? '确定要退出登录么?' : '确定要登录么?'"></u-modal>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { logout } from "@/api/login";
|
|
||||||
import storage from "@/utils/storage.js";
|
|
||||||
import config from "@/config/config";
|
import config from "@/config/config";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config,
|
config,
|
||||||
userImage:config.defaultUserPhoto,
|
userImage:config.defaultUserPhoto,
|
||||||
lightColor: this.$lightColor,
|
|
||||||
quitShow: false,
|
|
||||||
isCertificate: false,
|
isCertificate: false,
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
fileSizeString: "0B",
|
fileSizeString: "0B",
|
||||||
|
@ -54,34 +49,14 @@ export default {
|
||||||
url: url,
|
url: url,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
clear() {
|
/**
|
||||||
storage.setAccessToken("");
|
* 退出登录
|
||||||
storage.setRefreshToken("");
|
*/
|
||||||
storage.setUserInfo({});
|
quiteLoginOut() {
|
||||||
this.$options.filters.navigateToLogin("redirectTo");
|
this.$options.filters.quiteLoginOut();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 确认退出
|
|
||||||
* 清除缓存重新登录
|
|
||||||
*/
|
|
||||||
async confirm() {
|
|
||||||
try{
|
|
||||||
await logout();
|
|
||||||
this.clear();
|
|
||||||
}catch(e){
|
|
||||||
//TODO handle the exception
|
|
||||||
this.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 显示退出登录对话框
|
|
||||||
*/
|
|
||||||
showModalDialog() {
|
|
||||||
this.quitShow = true;
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 读取当前缓存
|
* 读取当前缓存
|
||||||
|
@ -113,11 +88,7 @@ export default {
|
||||||
if (this.$options.filters.isLogin("auth")) {
|
if (this.$options.filters.isLogin("auth")) {
|
||||||
this.navigateTo("/pages/mine/set/personMsg");
|
this.navigateTo("/pages/mine/set/personMsg");
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
this.$options.filters.tipsToLogin();
|
||||||
title: "当前暂无用户请登录后重试",
|
|
||||||
duration: 2000,
|
|
||||||
icon: "none",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -33,14 +33,12 @@
|
||||||
<!-- 背景 -->
|
<!-- 背景 -->
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 选择自提点 -->
|
<!-- 选择自提点 -->
|
||||||
<div class="address-box" v-if="shippingText == 'SELF_PICK_UP'">
|
<div class="address-box" v-if="shippingText == 'SELF_PICK_UP'">
|
||||||
<div @click="clickToStoreAddress()">
|
<div @click="clickToStoreAddress()">
|
||||||
<div class="user-box flex">
|
<div class="user-box flex">
|
||||||
<div class="flex-8">
|
<div class="flex-8">
|
||||||
<div v-if="!storeAddress">请选择自提点</div>
|
<div v-if="storeAddress">
|
||||||
<div v-else>
|
|
||||||
<div class="user-address">
|
<div class="user-address">
|
||||||
<!-- 自提点地址 -->
|
<!-- 自提点地址 -->
|
||||||
<div class="user-address-detail wes-2">
|
<div class="user-address-detail wes-2">
|
||||||
|
@ -50,6 +48,9 @@
|
||||||
<div>
|
<div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
请选择自提点
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<u-icon name="arrow-right" style="color: #bababa"></u-icon>
|
<u-icon name="arrow-right" style="color: #bababa"></u-icon>
|
||||||
|
@ -316,6 +317,7 @@ export default {
|
||||||
pintuanFlage: true, //是开团还是拼团
|
pintuanFlage: true, //是开团还是拼团
|
||||||
notSupportFreight: [], //不支持运费
|
notSupportFreight: [], //不支持运费
|
||||||
notSupportFreightGoodsList: ["以下商品超出配送范围:"],
|
notSupportFreightGoodsList: ["以下商品超出配送范围:"],
|
||||||
|
storeAddress:"",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
|
@ -672,6 +674,7 @@ export default {
|
||||||
}
|
}
|
||||||
if (res.data.result.storeAddress) {
|
if (res.data.result.storeAddress) {
|
||||||
this.storeAddress = res.data.result.storeAddress
|
this.storeAddress = res.data.result.storeAddress
|
||||||
|
console.log("storeAddress",this.storeAddress);
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
res.data.result.notSupportFreight &&
|
res.data.result.notSupportFreight &&
|
||||||
|
@ -701,6 +704,7 @@ page {
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-color {
|
.main-color {
|
||||||
|
color: $main-color;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,21 +9,21 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 物流信息 -->
|
<!-- 物流信息 -->
|
||||||
<view class="info-view logi-view">
|
<view class="info-view logistics-view">
|
||||||
<view class="logi-List" v-if="logiList && logiList.traces.length != 0">
|
<view class="logistics-List" v-if="logisticsList && logisticsList.traces.length != 0 ">
|
||||||
<view class="logi-List-title">
|
<view class="logistics-List-title">
|
||||||
{{ logiList.traces[logiList.traces.length - 1].AcceptStation }}
|
{{ logisticsList.traces[logisticsList.traces.length - 1].AcceptStation }}
|
||||||
</view>
|
</view>
|
||||||
<view class="logi-List-time">
|
<view class="logistics-List-time">
|
||||||
{{ logiList.traces[logiList.traces.length - 1].AcceptTime }}
|
{{ logisticsList.traces[logisticsList.traces.length - 1].AcceptTime }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="logi-List" v-else>
|
<view class="logistics-List" v-else>
|
||||||
<view class="verificationCode" v-if="order.verificationCode">
|
<view class="verificationCode" v-if="order.verificationCode">
|
||||||
券码: {{ order.verificationCode }}
|
券码: {{ order.verificationCode }}
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="logi-List-title">
|
<view v-else class="logistics-List-title">
|
||||||
{{ '暂无物流信息' }}
|
{{ '暂无物流信息' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -47,12 +47,15 @@
|
||||||
<view class="info-view" v-if="order.deliveryMethod == 'SELF_PICK_UP'">
|
<view class="info-view" v-if="order.deliveryMethod == 'SELF_PICK_UP'">
|
||||||
<view class="address-view">
|
<view class="address-view">
|
||||||
<view>
|
<view>
|
||||||
<view class="address-title">
|
<view class="order-info-view">
|
||||||
自提点地址:<span>{{ order.storeAddressPath }}</span>
|
<view class="title">自提点地址:</view>
|
||||||
|
<view class="value address-line-height">{{ order.storeAddressPath }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="address-title">
|
<view class="order-info-view" @click="callPhone" >
|
||||||
联系方式:<span>{{ order.storeAddressMobile }}</span>
|
<view class="title">联系方式:</view>
|
||||||
|
<view class="value">{{ order.storeAddressMobile }}<u-icon name='phone-fill' ></u-icon></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -62,7 +65,7 @@
|
||||||
<view class="seller-view">
|
<view class="seller-view">
|
||||||
<!-- 店铺名称 -->
|
<!-- 店铺名称 -->
|
||||||
<view class="seller-info u-flex u-row-between">
|
<view class="seller-info u-flex u-row-between">
|
||||||
<view class="seller-name" @click="tostore(order)">
|
<view class="seller-name" @click="goToShopPage(order)">
|
||||||
<view class="name">{{ order.storeName }}</view>
|
<view class="name">{{ order.storeName }}</view>
|
||||||
<view class="status" v-if="orderStatusList[order.orderStatus]"> {{ orderStatusList[order.orderStatus].title
|
<view class="status" v-if="orderStatusList[order.orderStatus]"> {{ orderStatusList[order.orderStatus].title
|
||||||
}}</view>
|
}}</view>
|
||||||
|
@ -165,7 +168,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="order-info-view">
|
<view class="order-info-view">
|
||||||
<view class="title">支付方式:</view>
|
<view class="title">支付方式:</view>
|
||||||
<view class="value">{{ orderDetail.paymentMethodValue }}</view>
|
<view class="value">{{ orderDetail.paymentMethodValue || '暂无'}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -173,7 +176,7 @@
|
||||||
<view class="info-view" v-if="order.payStatus == 'PAID'">
|
<view class="info-view" v-if="order.payStatus == 'PAID'">
|
||||||
<view>
|
<view>
|
||||||
<view class="invoice-info-view">
|
<view class="invoice-info-view">
|
||||||
<view class="ltitle">发票信息:</view>
|
<view class="invoice-title">发票信息:</view>
|
||||||
<view v-if="!order.needReceipt" class="value">无需发票</view>
|
<view v-if="!order.needReceipt" class="value">无需发票</view>
|
||||||
<view v-else class="value" @click="onReceipt(orderDetail.receipt)">查看发票</view>
|
<view v-else class="value" @click="onReceipt(orderDetail.receipt)">查看发票</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -195,7 +198,7 @@
|
||||||
<view>
|
<view>
|
||||||
<!-- 全部 -->
|
<!-- 全部 -->
|
||||||
<!-- 等待付款 -->
|
<!-- 等待付款 -->
|
||||||
<u-button type="error" ripple size="mini" v-if="order.allowOperationVO && order.allowOperationVO.pay"
|
<u-button type="error" ripple size="mini" v-if="orderDetail.allowOperationVO && orderDetail.allowOperationVO.pay"
|
||||||
@click="toPay(order)">立即付款</u-button>
|
@click="toPay(order)">立即付款</u-button>
|
||||||
|
|
||||||
<!-- <u-button class="rebuy-btn" size="mini" v-if="order.order_operate_allowable_vo.allow_service_cancel"> 提醒发货</u-button> -->
|
<!-- <u-button class="rebuy-btn" size="mini" v-if="order.order_operate_allowable_vo.allow_service_cancel"> 提醒发货</u-button> -->
|
||||||
|
@ -232,8 +235,8 @@
|
||||||
@confirm="confirmRog"></u-modal>
|
@confirm="confirmRog"></u-modal>
|
||||||
|
|
||||||
<!-- 分享 -->
|
<!-- 分享 -->
|
||||||
<shares v-if="shareFlage" :thumbnail="orderDetail.orderItems[0].image"
|
<shares v-if="shareFlag" :thumbnail="orderDetail.orderItems[0].image"
|
||||||
:goodsName="orderDetail.orderItems[0].goodsName" @close="shareFlage = false" />
|
:goodsName="orderDetail.orderItems[0].goodsName" @close="shareFlag = false" />
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -242,7 +245,6 @@
|
||||||
import { getExpress } from "@/api/trade.js";
|
import { getExpress } from "@/api/trade.js";
|
||||||
import { cancelOrder, confirmReceipt, getOrderDetail } from "@/api/order.js";
|
import { cancelOrder, confirmReceipt, getOrderDetail } from "@/api/order.js";
|
||||||
|
|
||||||
import { h5Copy } from "@/js_sdk/h5-copy/h5-copy.js";
|
|
||||||
import shares from "@/components/m-share/index"; //分享
|
import shares from "@/components/m-share/index"; //分享
|
||||||
|
|
||||||
import { getClearReason } from "@/api/after-sale.js";
|
import { getClearReason } from "@/api/after-sale.js";
|
||||||
|
@ -254,8 +256,8 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
lightColor: this.$lightColor,
|
lightColor: this.$lightColor,
|
||||||
logiList: "", //物流信息
|
logisticsList: "", //物流信息
|
||||||
shareFlage: false, //拼团分享开关
|
shareFlag: false, //拼团分享开关
|
||||||
orderStatusList: {
|
orderStatusList: {
|
||||||
UNPAID: {
|
UNPAID: {
|
||||||
title: "未付款",
|
title: "未付款",
|
||||||
|
@ -305,7 +307,10 @@ export default {
|
||||||
this.sn = options.sn;
|
this.sn = options.sn;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tostore(val) {
|
callPhone(){
|
||||||
|
this.$options.filters.callPhone(this.order.storeAddressMobile )
|
||||||
|
},
|
||||||
|
goToShopPage(val) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/product/shopPage?id=" + val.storeId,
|
url: "/pages/product/shopPage?id=" + val.storeId,
|
||||||
});
|
});
|
||||||
|
@ -313,13 +318,13 @@ export default {
|
||||||
// 获取物流信息
|
// 获取物流信息
|
||||||
loadLogistics(sn) {
|
loadLogistics(sn) {
|
||||||
getExpress(sn).then((res) => {
|
getExpress(sn).then((res) => {
|
||||||
this.logiList = res.data.result;
|
this.logisticsList = res.data.result;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// 分享当前拼团信息
|
// 分享当前拼团信息
|
||||||
inviteGroup() {
|
inviteGroup() {
|
||||||
this.shareFlage = true;
|
this.shareFlag = true;
|
||||||
},
|
},
|
||||||
// #TODO 这块需要写一下 目前没有拼团的详细信息
|
// #TODO 这块需要写一下 目前没有拼团的详细信息
|
||||||
ByUserMessage(order) {
|
ByUserMessage(order) {
|
||||||
|
@ -360,35 +365,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onCopy(sn) {
|
onCopy(sn) {
|
||||||
// #ifdef H5
|
this.$options.filters.setClipboard(sn)
|
||||||
if (sn === null || sn === undefined) {
|
|
||||||
sn = "";
|
|
||||||
} else sn = sn + "";
|
|
||||||
const result = h5Copy(sn);
|
|
||||||
if (result === false) {
|
|
||||||
uni.showToast({
|
|
||||||
title: "不支持",
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: "复制成功",
|
|
||||||
icon: "none",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// #ifndef H5
|
|
||||||
uni.setClipboardData({
|
|
||||||
data: sn,
|
|
||||||
success: function () {
|
|
||||||
uni.showToast({
|
|
||||||
title: "复制成功!",
|
|
||||||
duration: 2000,
|
|
||||||
icon: "none",
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
|
||||||
// #endif
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -546,7 +523,7 @@ export default {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logi-view {
|
.logistics-view {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 30rpx !important;
|
padding: 30rpx !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
@ -566,12 +543,12 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.logi-List-title {
|
.logistics-List-title {
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logi-List-time {
|
.logistics-List-time {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
@ -666,11 +643,14 @@ page,
|
||||||
width: 140rpx;
|
width: 140rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
flex:3;
|
||||||
|
min-width: 160rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
color: #666;
|
color: #666;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
|
flex:10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy {
|
.copy {
|
||||||
|
@ -688,7 +668,7 @@ page,
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 10rpx 0rpx;
|
margin: 10rpx 0rpx;
|
||||||
|
|
||||||
.ltitle {
|
.invoice-title {
|
||||||
width: 550rpx;
|
width: 550rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
@ -765,4 +745,7 @@ page,
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.address-line-height{
|
||||||
|
line-height: 1.75;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</div>
|
</div>
|
||||||
<view class="eva-box" v-for="(item, index) in commDetail" :key="index">
|
<view class="eva-box" v-for="(item, index) in commDetail" :key="index">
|
||||||
<view class="section-info">
|
<view class="section-info">
|
||||||
<image class="portrait" :src="item.memberProfile || userImage" mode="aspectFill"></image>
|
<image class="portrait" :src="item.memberProfile || userImage" mode="aspectFit"></image>
|
||||||
<view class="star-content">
|
<view class="star-content">
|
||||||
<text class="name">{{ item.memberName | noPassByName }}</text>
|
<text class="name">{{ item.memberName | noPassByName }}</text>
|
||||||
<text class="time">{{ item.createTime }}</text>
|
<text class="time">{{ item.createTime }}</text>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<view class="index-items">
|
<view class="index-items">
|
||||||
<view class="index-item" v-for="(item, key) in nav.goods" :key="key" @click="toGoods(item)">
|
<view class="index-item" v-for="(item, key) in nav.goods" :key="key" @click="toGoods(item)">
|
||||||
<view class="index-item-img">
|
<view class="index-item-img">
|
||||||
<u-image :src="item.thumbnail" mode="aspectFill">
|
<u-image :src="item.thumbnail" mode="aspectFit">
|
||||||
<u-loading slot="loading"></u-loading>
|
<u-loading slot="loading"></u-loading>
|
||||||
</u-image>
|
</u-image>
|
||||||
<view class="index-item-title">{{ item.goodsName }}</view>
|
<view class="index-item-title">{{ item.goodsName }}</view>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
}}</span>
|
}}</span>
|
||||||
<u-icon @click="navigateToStore(item)" size="24" style="margin-left:10rpx;" name="arrow-right"></u-icon>
|
<u-icon @click="navigateToStore(item)" size="24" style="margin-left:10rpx;" name="arrow-right"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-col" v-if="item.canReceiveCoupon" @click="navigateToConpon(item)">
|
<view class="right-col" v-if="item.canReceiveCoupon" @click="navigateToCoupon(item)">
|
||||||
<div class="right-line"></div>
|
<div class="right-line"></div>
|
||||||
<span>领劵</span>
|
<span>领劵</span>
|
||||||
</view>
|
</view>
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
</u-swipe-action>
|
</u-swipe-action>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<u-modal v-model="deleteShow" :confirm-style="{'color':lightColor}" @confirm="delectConfirm" show-cancel-button
|
<u-modal v-model="deleteShow" :confirm-style="{'color':lightColor}" @confirm="deleteConfirm" show-cancel-button
|
||||||
:content="deleteContent" :async-close="true"></u-modal>
|
:content="deleteContent" :async-close="true"></u-modal>
|
||||||
<!-- 结账 -->
|
<!-- 结账 -->
|
||||||
<div class="box box6">
|
<div class="box box6">
|
||||||
|
@ -220,7 +220,6 @@ export default {
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
onPullDownRefresh(){
|
onPullDownRefresh(){
|
||||||
console.log("132")
|
|
||||||
this.getCardData();
|
this.getCardData();
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
@ -283,7 +282,7 @@ export default {
|
||||||
/**
|
/**
|
||||||
* 点击删除
|
* 点击删除
|
||||||
*/
|
*/
|
||||||
delectConfirm() {
|
deleteConfirm() {
|
||||||
API_Trade.deleteSkuItem(this.goodsVal.goodsSku.id).then((res) => {
|
API_Trade.deleteSkuItem(this.goodsVal.goodsSku.id).then((res) => {
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -341,7 +340,7 @@ export default {
|
||||||
/**
|
/**
|
||||||
* 跳转到优惠券
|
* 跳转到优惠券
|
||||||
*/
|
*/
|
||||||
navigateToConpon(val) {
|
navigateToCoupon(val) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/cart/coupon/couponCenter?storeId=" + val.storeId,
|
url: "/pages/cart/coupon/couponCenter?storeId=" + val.storeId,
|
||||||
});
|
});
|
||||||
|
@ -512,19 +511,19 @@ export default {
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
if (result.data.success) {
|
if (result.data.success) {
|
||||||
this.cartDetail = result.data.result;
|
this.cartDetail = result.data.result;
|
||||||
let checkouted = true;
|
let checkOuted = true;
|
||||||
for (let i = 0; i < this.cartDetail.cartList.length; i++) {
|
for (let i = 0; i < this.cartDetail.cartList.length; i++) {
|
||||||
let item = this.cartDetail.cartList[i];
|
let item = this.cartDetail.cartList[i];
|
||||||
console.log(item);
|
console.log(item);
|
||||||
// 循环出当前商品是否全选
|
// 循环出当前商品是否全选
|
||||||
if (item.checked == 0) {
|
if (item.checked == 0) {
|
||||||
checkouted = false;
|
checkOuted = false;
|
||||||
}
|
}
|
||||||
// 如果有拼团活动顺便删除
|
// 如果有拼团活动顺便删除
|
||||||
item.skuList &&
|
item.skuList &&
|
||||||
item.skuList.forEach((sku) => {
|
item.skuList.forEach((sku) => {
|
||||||
if (sku.checked == 0) {
|
if (sku.checked == 0) {
|
||||||
checkouted = false;
|
checkOuted = false;
|
||||||
}
|
}
|
||||||
if(Object.keys(sku.promotionMap).length != 0)
|
if(Object.keys(sku.promotionMap).length != 0)
|
||||||
{
|
{
|
||||||
|
@ -538,7 +537,7 @@ export default {
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.checkout = checkouted;
|
this.checkout = checkOuted;
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="category-wrap">
|
<view class="category-wrap">
|
||||||
<u-navbar class="navbar" :is-back="false">
|
<u-navbar class="navbar" :is-back="false">
|
||||||
<div class="title"> 商品分类</div>
|
<div class="title">商品分类</div>
|
||||||
<u-search class="nav-search" disabled @click.native="search" placeholder="搜索商品" :show-action="false"></u-search>
|
<u-search class="nav-search" disabled @click.native="search" placeholder="搜索商品" :show-action="false"></u-search>
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
@ -125,13 +125,11 @@ uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
|
||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
display: block;
|
display: block;
|
||||||
width: 200rpx;
|
width: 259rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 34rpx;
|
font-size: 28rpx;
|
||||||
letter-spacing: 2rpx;
|
|
||||||
// #ifdef MP-WEIXIN
|
|
||||||
margin-left: 26rpx;
|
|
||||||
// #endif
|
|
||||||
}
|
}
|
||||||
.category-wrap {
|
.category-wrap {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<view class="status_bar">
|
<view class="status_bar">
|
||||||
<!-- 这里是状态栏 -->
|
<!-- 这里是状态栏 -->
|
||||||
</view>
|
</view>
|
||||||
<view class="header" :style="{'background-image':`url(${backGroundImage})`}" @click="userDetail">
|
<view class="header" @click="userDetail">
|
||||||
<view class="head-1">
|
<view class="head-1">
|
||||||
<image :src="userInfo.face || userImage"></image>
|
<image :src="userInfo.face || userImage"></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -86,7 +86,6 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
configs,
|
configs,
|
||||||
backGroundImage:configs.defaultUserTopBackground,
|
|
||||||
userImage:configs.defaultUserPhoto,
|
userImage:configs.defaultUserPhoto,
|
||||||
coverTransform: "translateY(0px)",
|
coverTransform: "translateY(0px)",
|
||||||
coverTransition: "0s",
|
coverTransition: "0s",
|
||||||
|
@ -173,7 +172,7 @@ body {
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
border-bottom-left-radius: 30rpx;
|
border-bottom-left-radius: 30rpx;
|
||||||
border-bottom-right-radius: 30rpx;
|
border-bottom-right-radius: 30rpx;
|
||||||
// background-image: url("/static/img/main-bg.png");
|
background-image: url("/static/img/main-bg.png");
|
||||||
background-position: bottom;
|
background-position: bottom;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
"appid": "wx98ebde1da5b340d4",
|
|
||||||
"compileType": "miniprogram",
|
|
||||||
"libVersion": "2.27.0",
|
|
||||||
"packOptions": {
|
|
||||||
"ignore": [],
|
|
||||||
"include": []
|
|
||||||
},
|
|
||||||
"setting": {
|
|
||||||
"coverView": true,
|
|
||||||
"es6": true,
|
|
||||||
"postcss": true,
|
|
||||||
"minified": true,
|
|
||||||
"enhance": true,
|
|
||||||
"showShadowRootInWxmlPanel": true,
|
|
||||||
"packNpmRelationList": [],
|
|
||||||
"babelSetting": {
|
|
||||||
"ignore": [],
|
|
||||||
"disablePlugins": [],
|
|
||||||
"outputPath": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"condition": {},
|
|
||||||
"editorSetting": {
|
|
||||||
"tabIndent": "insertSpaces",
|
|
||||||
"tabSize": 2
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
|
||||||
"projectname": "lilishop-uniapp",
|
|
||||||
"setting": {
|
|
||||||
"compileHotReLoad": true
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,5 +1,6 @@
|
||||||
import Foundation from "./Foundation.js";
|
import Foundation from "./Foundation.js";
|
||||||
import storage from "@/utils/storage.js";
|
import storage from "@/utils/storage.js";
|
||||||
|
import { logout } from "@/api/login";
|
||||||
import { getUserInfo } from "@/api/members";
|
import { getUserInfo } from "@/api/members";
|
||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
/**
|
/**
|
||||||
|
@ -23,8 +24,8 @@ export function unitPrice (val, unit, location) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 格式化价格 1999 --> [1999,00]
|
* 格式化价格 1999 --> [1999,00]
|
||||||
* @param {*} val
|
* @param {*} val
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export function goodsFormatPrice (val) {
|
export function goodsFormatPrice (val) {
|
||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
|
@ -35,6 +36,52 @@ export function goodsFormatPrice (val) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将内容复制到粘贴板
|
||||||
|
*/
|
||||||
|
import { h5Copy } from "@/js_sdk/h5-copy/h5-copy.js";
|
||||||
|
export function setClipboard (val) {
|
||||||
|
// #ifdef H5
|
||||||
|
if (val === null || val === undefined) {
|
||||||
|
val = "";
|
||||||
|
} else val = val + "";
|
||||||
|
const result = h5Copy(val);
|
||||||
|
if (result === false) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "不支持",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: "复制成功",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifndef H5
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: val,
|
||||||
|
success: function () {
|
||||||
|
uni.showToast({
|
||||||
|
title: "复制成功!",
|
||||||
|
duration: 2000,
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 拨打电话
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function callPhone (phoneNumber) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: phoneNumber,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 脱敏姓名
|
* 脱敏姓名
|
||||||
*/
|
*/
|
||||||
|
@ -291,6 +338,28 @@ export function isLogin (val) {
|
||||||
return storage.getUserInfo();
|
return storage.getUserInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退出登录
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export function quiteLoginOut () {
|
||||||
|
uni.showModal({
|
||||||
|
title: "提示",
|
||||||
|
content: "是否退出登录?",
|
||||||
|
confirmColor: Vue.prototype.$mainColor,
|
||||||
|
async success (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
storage.setAccessToken("");
|
||||||
|
storage.setRefreshToken("");
|
||||||
|
storage.setUserInfo({});
|
||||||
|
navigateToLogin("redirectTo");
|
||||||
|
await logout();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 跳转im
|
* 跳转im
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue