.
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="price-box ss-flex ss-col-bottom">
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -97,7 +97,7 @@
|
||||
>
|
||||
<view class="price-box ss-flex">
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
class="record-li"
|
||||
v-for="(item, idx) in recordList"
|
||||
:key="item.id"
|
||||
@click="sheep.$router.go('/pages/user/tryOnPreview', {})"
|
||||
@click="handleJump(item)"
|
||||
>
|
||||
<image :src="item.tryOnResultUrl" mode="widthFix" style="width: 100%" />
|
||||
</li>
|
||||
@@ -24,6 +24,14 @@
|
||||
default: () => [],
|
||||
},
|
||||
});
|
||||
|
||||
const handleJump = (item) => {
|
||||
uni.setStorageSync('tryOnId', item.id);
|
||||
uni.setStorageSync('modelId', item.modelId);
|
||||
uni.switchTab({
|
||||
url: `/pages/index/room`,
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@@ -52,9 +60,10 @@
|
||||
margin-top: 50rpx;
|
||||
.record-li {
|
||||
width: 25%;
|
||||
aspect-ratio: 1/1.4;
|
||||
height: 272rpx;
|
||||
border: 1px solid #000;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+10
-3
@@ -24,14 +24,21 @@
|
||||
const tokenCheckTimer = ref(null);
|
||||
const token = ref('');
|
||||
const webviewRef = ref();
|
||||
const webviewUrl = ref(
|
||||
`https://fitting-room.huimeimeta.com/pages/fittingRoom/index?token=${getAccessToken()}&t=${Date.now()}`,
|
||||
);
|
||||
const webviewUrl = ref('');
|
||||
|
||||
onShow(async () => {
|
||||
if (!sheep.$store('user').isLogin) {
|
||||
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(() => {
|
||||
|
||||
+13
-2
@@ -67,12 +67,13 @@
|
||||
onShow(() => {
|
||||
sheep.$store('user').updateUserData();
|
||||
|
||||
getInfo();
|
||||
getPersonalInfo();
|
||||
getFaceInfo();
|
||||
getTryOnList();
|
||||
});
|
||||
|
||||
const userFormData = ref({});
|
||||
async function getInfo() {
|
||||
async function getPersonalInfo() {
|
||||
const { data } = await UserApi.getInfoByUser();
|
||||
try {
|
||||
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(() => {
|
||||
sheep.$store('user').updateUserData();
|
||||
setTimeout(function () {
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<view class="item-title">兑换积分</view>
|
||||
<view class="ss-flex ss-col-center">
|
||||
<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"
|
||||
/>
|
||||
<text class="item-value ss-m-r-24">
|
||||
@@ -63,7 +63,7 @@
|
||||
<view class="ss-flex ss-col-center">
|
||||
{{ state.pointStatus || state.orderPayload.pointActivityId ? '剩余积分' : '当前积分' }}
|
||||
<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"
|
||||
/>
|
||||
<text class="item-value ss-m-r-24">
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
<image
|
||||
class="pay-icon"
|
||||
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"
|
||||
/>
|
||||
<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;
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -112,7 +112,7 @@
|
||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -211,7 +211,7 @@
|
||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -321,7 +321,7 @@
|
||||
"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -424,7 +424,7 @@
|
||||
"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="ss-m-r-16">
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -112,7 +112,7 @@
|
||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -205,7 +205,7 @@
|
||||
v-if="data.activityType && data.activityType === PromotionActivityTypeEnum.POINT.type"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -315,7 +315,7 @@
|
||||
"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
@@ -418,7 +418,7 @@
|
||||
"
|
||||
>
|
||||
<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"
|
||||
></image>
|
||||
<text class="ss-m-r-16">
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<view v-if="point && Number(price) > 0">+</view>
|
||||
<view class="price-text ss-flex ss-col-center" v-if="point">
|
||||
<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"
|
||||
></image>
|
||||
<view>{{ point }}</view>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
>
|
||||
<image
|
||||
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"
|
||||
></image>
|
||||
<text class="point-text ss-m-r-16">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
>
|
||||
<image
|
||||
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=""
|
||||
/>
|
||||
<text class="share-title">微信好友</text>
|
||||
@@ -36,7 +36,7 @@
|
||||
>
|
||||
<image
|
||||
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=""
|
||||
/>
|
||||
<text class="share-title">生成海报</text>
|
||||
@@ -50,7 +50,7 @@
|
||||
>
|
||||
<image
|
||||
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=""
|
||||
/>
|
||||
<text class="share-title">复制链接</text>
|
||||
|
||||
Reference in New Issue
Block a user