.
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
<view class="ss-flex ss-row-between ss-col-center ss-m-b-18">
|
<view class="ss-flex ss-row-between ss-col-center ss-m-b-18">
|
||||||
<view class="price-box ss-flex ss-col-bottom">
|
<view class="price-box ss-flex ss-col-bottom">
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
>
|
>
|
||||||
<view class="price-box ss-flex">
|
<view class="price-box ss-flex">
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
style="width: 36rpx; height: 36rpx; margin: 0 4rpx"
|
style="width: 36rpx; height: 36rpx; margin: 0 4rpx"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
class="record-li"
|
class="record-li"
|
||||||
v-for="(item, idx) in recordList"
|
v-for="(item, idx) in recordList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@click="sheep.$router.go('/pages/user/tryOnPreview', {})"
|
@click="handleJump(item)"
|
||||||
>
|
>
|
||||||
<image :src="item.tryOnResultUrl" mode="widthFix" style="width: 100%" />
|
<image :src="item.tryOnResultUrl" mode="widthFix" style="width: 100%" />
|
||||||
</li>
|
</li>
|
||||||
@@ -24,6 +24,14 @@
|
|||||||
default: () => [],
|
default: () => [],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const handleJump = (item) => {
|
||||||
|
uni.setStorageSync('tryOnId', item.id);
|
||||||
|
uni.setStorageSync('modelId', item.modelId);
|
||||||
|
uni.switchTab({
|
||||||
|
url: `/pages/index/room`,
|
||||||
|
});
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -52,9 +60,10 @@
|
|||||||
margin-top: 50rpx;
|
margin-top: 50rpx;
|
||||||
.record-li {
|
.record-li {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
aspect-ratio: 1/1.4;
|
height: 272rpx;
|
||||||
border: 1px solid #000;
|
border: 1px solid #000;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-3
@@ -24,14 +24,21 @@
|
|||||||
const tokenCheckTimer = ref(null);
|
const tokenCheckTimer = ref(null);
|
||||||
const token = ref('');
|
const token = ref('');
|
||||||
const webviewRef = ref();
|
const webviewRef = ref();
|
||||||
const webviewUrl = ref(
|
const webviewUrl = ref('');
|
||||||
`https://fitting-room.huimeimeta.com/pages/fittingRoom/index?token=${getAccessToken()}&t=${Date.now()}`,
|
|
||||||
);
|
|
||||||
|
|
||||||
onShow(async () => {
|
onShow(async () => {
|
||||||
if (!sheep.$store('user').isLogin) {
|
if (!sheep.$store('user').isLogin) {
|
||||||
uni.redirectTo({ url: '/pages/login/index' });
|
uni.redirectTo({ url: '/pages/login/index' });
|
||||||
}
|
}
|
||||||
|
const tryOnId = uni.getStorageSync('tryOnId');
|
||||||
|
const modelId = uni.getStorageSync('modelId');
|
||||||
|
if (tryOnId && modelId) {
|
||||||
|
webviewUrl.value = `https://fitting-room.huimeimeta.com/pages/fittingRoom/index?token=${getAccessToken()}&t=${Date.now()}&id=${tryOnId}&modelId=${modelId}`;
|
||||||
|
uni.setStorageSync('tryOnId', '');
|
||||||
|
uni.setStorageSync('modelId', '');
|
||||||
|
} else {
|
||||||
|
webviewUrl.value = `https://fitting-room.huimeimeta.com/pages/fittingRoom/index?token=${getAccessToken()}&t=${Date.now()}`;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
|
|||||||
+13
-2
@@ -67,12 +67,13 @@
|
|||||||
onShow(() => {
|
onShow(() => {
|
||||||
sheep.$store('user').updateUserData();
|
sheep.$store('user').updateUserData();
|
||||||
|
|
||||||
getInfo();
|
getPersonalInfo();
|
||||||
|
getFaceInfo();
|
||||||
getTryOnList();
|
getTryOnList();
|
||||||
});
|
});
|
||||||
|
|
||||||
const userFormData = ref({});
|
const userFormData = ref({});
|
||||||
async function getInfo() {
|
async function getPersonalInfo() {
|
||||||
const { data } = await UserApi.getInfoByUser();
|
const { data } = await UserApi.getInfoByUser();
|
||||||
try {
|
try {
|
||||||
const { dataJson } = data;
|
const { dataJson } = data;
|
||||||
@@ -83,6 +84,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function getFaceInfo() {
|
||||||
|
await UserApi.getFaceInfo({ dataScope: '0' });
|
||||||
|
try {
|
||||||
|
// const { dataJson } = data;
|
||||||
|
// userFormData.value = dataJson ? JSON.parse(dataJson) : {};
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onPullDownRefresh(() => {
|
onPullDownRefresh(() => {
|
||||||
sheep.$store('user').updateUserData();
|
sheep.$store('user').updateUserData();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
<view class="item-title">兑换积分</view>
|
<view class="item-title">兑换积分</view>
|
||||||
<view class="ss-flex ss-col-center">
|
<view class="ss-flex ss-col-center">
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="score-img"
|
class="score-img"
|
||||||
/>
|
/>
|
||||||
<text class="item-value ss-m-r-24">
|
<text class="item-value ss-m-r-24">
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
<view class="ss-flex ss-col-center">
|
<view class="ss-flex ss-col-center">
|
||||||
{{ state.pointStatus || state.orderPayload.pointActivityId ? '剩余积分' : '当前积分' }}
|
{{ state.pointStatus || state.orderPayload.pointActivityId ? '剩余积分' : '当前积分' }}
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="score-img"
|
class="score-img"
|
||||||
/>
|
/>
|
||||||
<text class="item-value ss-m-r-24">
|
<text class="item-value ss-m-r-24">
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@
|
|||||||
<image
|
<image
|
||||||
class="pay-icon"
|
class="pay-icon"
|
||||||
v-if="item.disabled"
|
v-if="item.disabled"
|
||||||
:src="sheep.$url.static('/static/img/shop/pay/cod_disabled.png')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/cod_disabled.png')"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
<image
|
<image
|
||||||
|
|||||||
@@ -102,6 +102,18 @@ const UserApi = {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 获取人脸信息
|
||||||
|
getFaceInfo: (data) => {
|
||||||
|
return request({
|
||||||
|
url: '/cloth/getFaceList',
|
||||||
|
method: 'POST',
|
||||||
|
data,
|
||||||
|
custom: {
|
||||||
|
showLoading: false,
|
||||||
|
auth: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default UserApi;
|
export default UserApi;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -321,7 +321,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -424,7 +424,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="ss-m-r-16">
|
<text class="ss-m-r-16">
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -205,7 +205,7 @@
|
|||||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -315,7 +315,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
@@ -418,7 +418,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="ss-m-r-16">
|
<text class="ss-m-r-16">
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<view v-if="point && Number(price) > 0">+</view>
|
<view v-if="point && Number(price) > 0">+</view>
|
||||||
<view class="price-text ss-flex ss-col-center" v-if="point">
|
<view class="price-text ss-flex ss-col-center" v-if="point">
|
||||||
<image
|
<image
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<view>{{ point }}</view>
|
<view>{{ point }}</view>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
v-if="!isEmpty(state.selectedSku)"
|
v-if="!isEmpty(state.selectedSku)"
|
||||||
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/score1.svg')"
|
||||||
class="point-img"
|
class="point-img"
|
||||||
></image>
|
></image>
|
||||||
<text class="point-text ss-m-r-16">
|
<text class="point-text ss-m-r-16">
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="share-img"
|
class="share-img"
|
||||||
:src="sheep.$url.static('/static/img/shop/share/share_wx.png')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/share_wx.png')"
|
||||||
mode=""
|
mode=""
|
||||||
/>
|
/>
|
||||||
<text class="share-title">微信好友</text>
|
<text class="share-title">微信好友</text>
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="share-img"
|
class="share-img"
|
||||||
:src="sheep.$url.static('/static/img/shop/share/share_poster.png')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/share_poster.png')"
|
||||||
mode=""
|
mode=""
|
||||||
/>
|
/>
|
||||||
<text class="share-title">生成海报</text>
|
<text class="share-title">生成海报</text>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="share-img"
|
class="share-img"
|
||||||
:src="sheep.$url.static('/static/img/shop/share/share_link.png')"
|
:src="sheep.$url.static('https://puton.huimeimeta.com/imgs/share_link.png')"
|
||||||
mode=""
|
mode=""
|
||||||
/>
|
/>
|
||||||
<text class="share-title">复制链接</text>
|
<text class="share-title">复制链接</text>
|
||||||
|
|||||||
Reference in New Issue
Block a user