Browse Source

update:1.签到页面

xuruhua 1 year ago
parent
commit
422626efe9
100 changed files with 1253 additions and 1230 deletions
  1. 0 401
      pages/app/sign.vue
  2. 405 0
      pages/app/signold.vue
  3. 149 142
      pages/user/address/list.vue
  4. 47 36
      sheep/api/member/signin.js
  5. 150 161
      sheep/components/s-share-modal/canvas-poster/index.vue
  6. 99 87
      sheep/components/s-share-modal/canvas-poster/useCanvas.js
  7. 189 195
      sheep/components/s-share-modal/s-share-modal.vue
  8. 188 182
      sheep/libs/sdk-h5-weixin.js
  9. 1 1
      unpackage/dist/build/h5/assets/address.47ce4d60.js
  10. 1 1
      unpackage/dist/build/h5/assets/afterSale.242757a5.js
  11. 1 1
      unpackage/dist/build/h5/assets/article.0e5c32d4.js
  12. 0 0
      unpackage/dist/build/h5/assets/bargain.dbf4966e.js
  13. 1 1
      unpackage/dist/build/h5/assets/brokerage.5dcedbfc.js
  14. 1 1
      unpackage/dist/build/h5/assets/category.2e9bb177.js
  15. 1 1
      unpackage/dist/build/h5/assets/combination.ed027c78.js
  16. 0 0
      unpackage/dist/build/h5/assets/comment-item.c223f184.js
  17. 1 1
      unpackage/dist/build/h5/assets/config.7dd62b52.js
  18. 1 1
      unpackage/dist/build/h5/assets/const.f8479c81.js
  19. 0 0
      unpackage/dist/build/h5/assets/detail-content-card.b80cb400.js
  20. 1 1
      unpackage/dist/build/h5/assets/favorite.4702aa3f.js
  21. 1 1
      unpackage/dist/build/h5/assets/history.5eff047e.js
  22. 0 0
      unpackage/dist/build/h5/assets/index-7dcce25e.js
  23. 1 1
      unpackage/dist/build/h5/assets/index.aa110a3d.js
  24. 1 1
      unpackage/dist/build/h5/assets/list-d779ab89.css
  25. 0 0
      unpackage/dist/build/h5/assets/mp-html.8ee809e8.js
  26. 0 0
      unpackage/dist/build/h5/assets/pages-activity-bargain-detail.d85f86d1.js
  27. 0 0
      unpackage/dist/build/h5/assets/pages-activity-bargain-list.773a8500.js
  28. 0 0
      unpackage/dist/build/h5/assets/pages-activity-groupon-detail.74e1bb13.js
  29. 0 0
      unpackage/dist/build/h5/assets/pages-activity-groupon-list.c051e6d6.js
  30. 0 0
      unpackage/dist/build/h5/assets/pages-activity-groupon-order.419a0edd.js
  31. 0 0
      unpackage/dist/build/h5/assets/pages-activity-index.e2396a44.js
  32. 0 0
      unpackage/dist/build/h5/assets/pages-activity-seckill-list.87fc40c3.js
  33. 0 0
      unpackage/dist/build/h5/assets/pages-app-sign.7288e9e9.js
  34. 0 0
      unpackage/dist/build/h5/assets/pages-app-sign.ca4f2522.js
  35. 0 0
      unpackage/dist/build/h5/assets/pages-chat-index.703940c7.js
  36. 0 0
      unpackage/dist/build/h5/assets/pages-commission-commission-ranking.438671c8.js
  37. 0 0
      unpackage/dist/build/h5/assets/pages-commission-goods.71343e7e.js
  38. 0 0
      unpackage/dist/build/h5/assets/pages-commission-index.46c01fdd.js
  39. 0 0
      unpackage/dist/build/h5/assets/pages-commission-order.a1f7bd5a.js
  40. 0 0
      unpackage/dist/build/h5/assets/pages-commission-promoter.cc451162.js
  41. 0 0
      unpackage/dist/build/h5/assets/pages-commission-team.ed6790d3.js
  42. 0 0
      unpackage/dist/build/h5/assets/pages-commission-wallet.567fb53b.js
  43. 0 0
      unpackage/dist/build/h5/assets/pages-commission-withdraw.b624a4e6.js
  44. 0 0
      unpackage/dist/build/h5/assets/pages-coupon-detail.f93b63f3.js
  45. 0 0
      unpackage/dist/build/h5/assets/pages-coupon-list.60ac7feb.js
  46. 0 0
      unpackage/dist/build/h5/assets/pages-goods-comment-add.d667a4ce.js
  47. 0 0
      unpackage/dist/build/h5/assets/pages-goods-comment-list.2bdcfbeb.js
  48. 0 0
      unpackage/dist/build/h5/assets/pages-goods-groupon.6ab91fad.js
  49. 0 0
      unpackage/dist/build/h5/assets/pages-goods-index.2b43d84f.js
  50. 0 0
      unpackage/dist/build/h5/assets/pages-goods-list.76077009.js
  51. 0 0
      unpackage/dist/build/h5/assets/pages-goods-seckill.9f128fbe.js
  52. 0 0
      unpackage/dist/build/h5/assets/pages-index-cart.35bbf36a.js
  53. 0 0
      unpackage/dist/build/h5/assets/pages-index-category.b861c6e6.js
  54. 1 1
      unpackage/dist/build/h5/assets/pages-index-index.3abacad4.js
  55. 1 1
      unpackage/dist/build/h5/assets/pages-index-login.ce0f8b01.js
  56. 1 1
      unpackage/dist/build/h5/assets/pages-index-page.947d9b0a.js
  57. 1 1
      unpackage/dist/build/h5/assets/pages-index-search.46b328ed.js
  58. 1 1
      unpackage/dist/build/h5/assets/pages-index-user.cbfb14db.js
  59. 0 0
      unpackage/dist/build/h5/assets/pages-order-aftersale-apply.25ae3011.js
  60. 0 0
      unpackage/dist/build/h5/assets/pages-order-aftersale-detail.3b88e5c6.js
  61. 0 0
      unpackage/dist/build/h5/assets/pages-order-aftersale-list.d91cfa75.js
  62. 1 1
      unpackage/dist/build/h5/assets/pages-order-aftersale-log.3e85fb01.js
  63. 0 0
      unpackage/dist/build/h5/assets/pages-order-aftersale-return-delivery.28147339.js
  64. 0 0
      unpackage/dist/build/h5/assets/pages-order-confirm.cedc250c.js
  65. 0 0
      unpackage/dist/build/h5/assets/pages-order-detail.0d812f5a.js
  66. 0 0
      unpackage/dist/build/h5/assets/pages-order-express-log.3828dccf.js
  67. 0 0
      unpackage/dist/build/h5/assets/pages-order-list.7de7361f.js
  68. 0 0
      unpackage/dist/build/h5/assets/pages-pay-index.af2cfdf5.js
  69. 0 0
      unpackage/dist/build/h5/assets/pages-pay-recharge-log.fdce14b7.js
  70. 0 0
      unpackage/dist/build/h5/assets/pages-pay-recharge.7ceeb661.js
  71. 0 0
      unpackage/dist/build/h5/assets/pages-pay-result.c11c9f35.js
  72. 1 1
      unpackage/dist/build/h5/assets/pages-public-error.a27fee31.js
  73. 1 1
      unpackage/dist/build/h5/assets/pages-public-faq.0ecd7cf6.js
  74. 1 1
      unpackage/dist/build/h5/assets/pages-public-richtext.7952b7ba.js
  75. 0 0
      unpackage/dist/build/h5/assets/pages-public-setting.d47e56cc.js
  76. 1 1
      unpackage/dist/build/h5/assets/pages-public-webview.95c47c69.js
  77. 0 0
      unpackage/dist/build/h5/assets/pages-user-address-edit.e157c6c2.js
  78. 0 0
      unpackage/dist/build/h5/assets/pages-user-address-list.07302c5b.js
  79. 0 0
      unpackage/dist/build/h5/assets/pages-user-goods-collect.fc713d48.js
  80. 0 0
      unpackage/dist/build/h5/assets/pages-user-goods-log.c5bf68a9.js
  81. 0 0
      unpackage/dist/build/h5/assets/pages-user-info.3ad47b02.js
  82. 0 0
      unpackage/dist/build/h5/assets/pages-user-wallet-money.2a14f0b3.js
  83. 0 0
      unpackage/dist/build/h5/assets/pages-user-wallet-score.84d3ac5a.js
  84. 1 1
      unpackage/dist/build/h5/assets/rewardActivity.481415cb.js
  85. 0 0
      unpackage/dist/build/h5/assets/s-address-item.0338ff19.js
  86. 0 0
      unpackage/dist/build/h5/assets/s-block.83171e06.js
  87. 0 0
      unpackage/dist/build/h5/assets/s-coupon-list.ca3f165a.js
  88. 1 1
      unpackage/dist/build/h5/assets/s-empty.2d05b547.js
  89. 0 0
      unpackage/dist/build/h5/assets/s-goods-column.8f2df9d4.js
  90. 0 0
      unpackage/dist/build/h5/assets/s-goods-item.a19328fb.js
  91. 0 0
      unpackage/dist/build/h5/assets/s-layout-6c86ec08.css
  92. 0 0
      unpackage/dist/build/h5/assets/s-layout.6e132b7d.js
  93. 0 0
      unpackage/dist/build/h5/assets/s-select-groupon-sku.340f7ca9.js
  94. 0 0
      unpackage/dist/build/h5/assets/s-uploader.501caeab.js
  95. 0 0
      unpackage/dist/build/h5/assets/sign-1bd4ef04.css
  96. 0 0
      unpackage/dist/build/h5/assets/sign-4c1ce261.css
  97. 1 1
      unpackage/dist/build/h5/assets/spu.ce0a9a2f.js
  98. 1 1
      unpackage/dist/build/h5/assets/su-image.f286387e.js
  99. 0 0
      unpackage/dist/build/h5/assets/su-number-box.d658f9d0.js
  100. 0 0
      unpackage/dist/build/h5/assets/su-sticky.ce66731e.js

File diff suppressed because it is too large
+ 0 - 401
pages/app/sign.vue


File diff suppressed because it is too large
+ 405 - 0
pages/app/signold.vue


+ 149 - 142
pages/user/address/list.vue

@@ -1,143 +1,150 @@
-<!-- 收件地址列表 -->
-<template>
-	<s-layout title="收货地址" :bgStyle="{ color: '#FFF' }">
-		<view v-if="state.list.length">
-			<s-address-item hasBorderBottom v-for="item in state.list" :key="item.id" :item="item"
-                      @tap="onSelect(item)" />
-		</view>
-
-		<su-fixed bottom placeholder>
-			<view class="footer-box ss-flex ss-row-between ss-p-20">
-				<!-- 微信小程序和微信H5 -->
-				<button v-if="['WechatMiniProgram', 'WechatOfficialAccount'].includes(sheep.$platform.name)"
-					@tap="importWechatAddress"
-					class="border ss-reset-button sync-wxaddress ss-m-20 ss-flex ss-row-center ss-col-center">
-					<text class="cicon-weixin ss-p-r-10" style="color: #09bb07; font-size: 40rpx"></text>
-					导入微信地址
-				</button>
-				<button class="add-btn ss-reset-button ui-Shadow-Main"
-					@tap="sheep.$router.go('/pages/user/address/edit')">
-					新增收货地址
-				</button>
-			</view>
-		</su-fixed>
-		<s-empty v-if="state.list.length === 0 && !state.loading" text="暂无收货地址" icon="/static/data-empty.png" />
-	</s-layout>
-</template>
-
-<script setup>
-	import { reactive, onBeforeMount } from 'vue';
-	import { onShow } from '@dcloudio/uni-app';
-	import sheep from '@/sheep';
-	import { isEmpty } from 'lodash';
-  import AreaApi from '@/sheep/api/system/area';
-  import AddressApi from '@/sheep/api/member/address';
-
-	const state = reactive({
-		list: [], // 地址列表
-		loading: true,
-	});
-
-	// 选择收货地址
-	const onSelect = (addressInfo) => {
-		uni.$emit('SELECT_ADDRESS', {
-			addressInfo,
-		});
-		sheep.$router.back();
-	};
-
-	// 导入微信地址
-  // TODO 芋艿:未测试
-	function importWechatAddress() {
-		let wechatAddress = {};
-		// #ifdef MP
-		uni.chooseAddress({
-			success: (res) => {
-				wechatAddress = {
-					consignee: res.userName,
-					mobile: res.telNumber,
-					province_name: res.provinceName,
-					city_name: res.cityName,
-					district_name: res.countyName,
-					address: res.detailInfo,
-					region: '',
-					is_default: false,
-				};
-				if (!isEmpty(wechatAddress)) {
-					sheep.$router.go('/pages/user/address/edit', {
-						data: JSON.stringify(wechatAddress),
-					});
-				}
-			},
-			fail: (err) => {
-				console.log('%cuni.chooseAddress,调用失败', 'color:green;background:yellow');
-			},
-		});
-		// #endif
-		// #ifdef H5
-		sheep.$platform.useProvider('wechat').jssdk.openAddress({
-			success: (res) => {
-				wechatAddress = {
-					consignee: res.userName,
-					mobile: res.telNumber,
-					province_name: res.provinceName,
-					city_name: res.cityName,
-					district_name: res.countryName,
-					address: res.detailInfo,
-					region: '',
-					is_default: false,
-				};
-				if (!isEmpty(wechatAddress)) {
-					sheep.$router.go('/pages/user/address/edit', {
-						data: JSON.stringify(wechatAddress),
-					});
-				}
-			},
-		});
-		// #endif
-	}
-
-	onShow(async () => {
-		state.list = (await AddressApi.getAddressList()).data;
-		state.loading = false;
-	});
-
-	onBeforeMount(() => {
-		if (!!uni.getStorageSync('areaData')) {
-			return;
-		}
-		// 提前加载省市区数据
-    AreaApi.getAreaTree().then((res) => {
-			if (res.code === 0) {
-				uni.setStorageSync('areaData', res.data);
-			}
-		});
-	});
-</script>
-
-<style lang="scss" scoped>
-	.footer-box {
-		.add-btn {
-			flex: 1;
-			background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
-			border-radius: 80rpx;
-			font-size: 30rpx;
-			font-weight: 500;
-			line-height: 80rpx;
-			color: $white;
-			position: relative;
-			z-index: 1;
-		}
-
-		.sync-wxaddress {
-			flex: 1;
-			line-height: 80rpx;
-			background: $white;
-			border-radius: 80rpx;
-			font-size: 30rpx;
-			font-weight: 500;
-			color: $dark-6;
-			margin-right: 18rpx;
-		}
-	}
+<!-- 收件地址列表 -->
+<template>
+	<s-layout title="收货地址" :bgStyle="{ color: '#FFF' }">
+		<view v-if="state.list.length">
+			<s-address-item hasBorderBottom v-for="item in state.list" :key="item.id" :item="item"
+				@tap="onSelect(item)" />
+		</view>
+
+		<su-fixed bottom placeholder>
+			<view class="footer-box ss-flex ss-row-between ss-p-20">
+				<!-- 微信小程序和微信H5 -->
+				<button v-if="['WechatMiniProgram', 'WechatOfficialAccount'].includes(sheep.$platform.name)"
+					@tap="importWechatAddress"
+					class="border ss-reset-button sync-wxaddress ss-m-20 ss-flex ss-row-center ss-col-center">
+					<text class="cicon-weixin ss-p-r-10" style="color: #09bb07; font-size: 40rpx"></text>
+					导入微信地址
+				</button>
+				<button class="add-btn ss-reset-button ui-Shadow-Main"
+					@tap="sheep.$router.go('/pages/user/address/edit')">
+					新增收货地址
+				</button>
+			</view>
+		</su-fixed>
+		<s-empty v-if="state.list.length === 0 && !state.loading" text="暂无收货地址" icon="/static/data-empty.png" />
+	</s-layout>
+</template>
+
+<script setup>
+	import {
+		reactive,
+		onBeforeMount
+	} from 'vue';
+	import {
+		onShow
+	} from '@dcloudio/uni-app';
+	import sheep from '@/sheep';
+	import {
+		isEmpty
+	} from 'lodash';
+	import AreaApi from '@/sheep/api/system/area';
+	import AddressApi from '@/sheep/api/member/address';
+
+	const state = reactive({
+		list: [], // 地址列表
+		loading: true,
+	});
+
+	// 选择收货地址
+	const onSelect = (addressInfo) => {
+		uni.$emit('SELECT_ADDRESS', {
+			addressInfo,
+		});
+		sheep.$router.back();
+	};
+
+	// 导入微信地址
+	// TODO 芋艿:未测试
+	function importWechatAddress() {
+		let wechatAddress = {};
+		// #ifdef MP
+		uni.chooseAddress({
+			success: (res) => {
+				wechatAddress = {
+					consignee: res.userName,
+					mobile: res.telNumber,
+					province_name: res.provinceName,
+					city_name: res.cityName,
+					district_name: res.countyName,
+					address: res.detailInfo,
+					region: '',
+					is_default: false,
+				};
+				if (!isEmpty(wechatAddress)) {
+					sheep.$router.go('/pages/user/address/edit', {
+						data: JSON.stringify(wechatAddress),
+					});
+				}
+			},
+			fail: (err) => {
+				console.log("uni.chooseAddress调用失败,问题是:", err);
+			},
+		});
+		// #endif
+		// #ifdef H5
+		sheep.$platform.useProvider('wechat').jssdk.openAddress({
+			success: (res) => {
+				wechatAddress = {
+					consignee: res.userName,
+					mobile: res.telNumber,
+					province_name: res.provinceName,
+					city_name: res.cityName,
+					district_name: res.countryName,
+					address: res.detailInfo,
+					region: '',
+					is_default: false,
+				};
+				if (!isEmpty(wechatAddress)) {
+					sheep.$router.go('/pages/user/address/edit', {
+						data: JSON.stringify(wechatAddress),
+					});
+				}
+			},
+		});
+		// #endif
+	}
+
+	onShow(async () => {
+		state.list = (await AddressApi.getAddressList()).data;
+		state.loading = false;
+	});
+
+	onBeforeMount(() => {
+		if (!!uni.getStorageSync('areaData')) {
+			return;
+		}
+		// 提前加载省市区数据
+		AreaApi.getAreaTree().then((res) => {
+			if (res.code === 0) {
+				uni.setStorageSync('areaData', res.data);
+			}
+		});
+	});
+</script>
+
+<style lang="scss" scoped>
+	.footer-box {
+		.add-btn {
+			flex: 1;
+			background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
+			border-radius: 80rpx;
+			font-size: 30rpx;
+			font-weight: 500;
+			line-height: 80rpx;
+			color: $white;
+			position: relative;
+			z-index: 1;
+		}
+
+		.sync-wxaddress {
+			flex: 1;
+			line-height: 80rpx;
+			background: $white;
+			border-radius: 80rpx;
+			font-size: 30rpx;
+			font-weight: 500;
+			color: $dark-6;
+			margin-right: 18rpx;
+		}
+	}
 </style>

+ 47 - 36
sheep/api/member/signin.js

@@ -1,37 +1,48 @@
-import request from '@/sheep/request';
-
-const SignInApi = {
-  // 获得签到规则列表
-  getSignInConfigList: () => {
-    return request({
-      url: '/member/sign-in/config/list',
-      method: 'GET',
-    });
-  },
-  // 获得个人签到统计
-  getSignInRecordSummary: () => {
-    return request({
-      url: '/member/sign-in/record/get-summary',
-      method: 'GET',
-    });
-  },
-  // 签到
-  createSignInRecord: () => {
-    return request({
-      url: '/member/sign-in/record/create',
-      method: 'POST',
-    });
-  },
-  // 获得签到记录分页
-  getSignRecordPage: (params) => {
-    const queryString = Object.keys(params)
-      .map((key) => encodeURIComponent(key) + '=' + params[key])
-      .join('&');
-    return request({
-      url: `/member/sign-in/record/page?${queryString}`,
-      method: 'GET',
-    });
-  },
-};
-
+import request from '@/sheep/request';
+
+const SignInApi = {
+	// 获得签到规则列表
+	getSignInConfigList: () => {
+		return request({
+			url: '/member/sign-in/config/list',
+			method: 'GET',
+		});
+	},
+
+	// 获得个人签到统计
+	getSignInRecordSummary: () => {
+		return request({
+			url: '/member/sign-in/record/get-summary',
+			method: 'GET',
+		});
+	},
+	// 获得
+	getOwnSignInMoon: (params) => {
+		return request({
+			url: '/member/sign-in/record/get-own-signInMoon',
+			method: 'GET',
+			params
+		});
+	},
+
+	// 签到
+	createSignInRecord: () => {
+		return request({
+			url: '/member/sign-in/record/create',
+			method: 'POST',
+		});
+	},
+	// 获得签到记录分页
+	getSignRecordPage: (params) => {
+		console.log(params)
+		const queryString = Object.keys(params)
+			.map((key) => encodeURIComponent(key) + '=' + params[key])
+			.join('&');
+		return request({
+			url: `/member/sign-in/record/page?${queryString}`,
+			method: 'GET',
+		});
+	},
+};
+
 export default SignInApi;

+ 150 - 161
sheep/components/s-share-modal/canvas-poster/index.vue

@@ -1,161 +1,150 @@
-<!-- 海报弹窗 -->
-<template>
-  <su-popup :show="show" round="10" @close="onClosePoster" type="center" class="popup-box">
-    <view class="ss-flex-col ss-col-center ss-row-center">
-      <view
-        v-if="poster.src === ''"
-        class="poster-title ss-flex ss-row-center"
-        :style="{
-          height: poster.height + 'px',
-          width: poster.width + 'px',
-        }"
-      >
-        海报加载中...
-      </view>
-      <image
-        v-else
-        class="poster-img"
-        :src="poster.src"
-        :style="{
-          height: poster.height + 'px',
-          width: poster.width + 'px',
-        }"
-        :show-menu-by-longpress="true"
-      />
-      <canvas
-        class="hideCanvas"
-        :canvas-id="poster.canvasId"
-        :id="poster.canvasId"
-        :style="{
-          height: poster.height + 'px',
-          width: poster.width + 'px',
-        }"
-      />
-      <view
-        class="poster-btn-box ss-m-t-20 ss-flex ss-row-between ss-col-center"
-        v-if="poster.src !== ''"
-      >
-        <button class="cancel-btn ss-reset-button" @tap="onClosePoster">取消</button>
-        <button class="save-btn ss-reset-button ui-BG-Main" @tap="onSavePoster">
-          {{
-            ['wechatOfficialAccount', 'H5'].includes(sheep.$platform.name)
-              ? '长按图片保存'
-              : '保存图片'
-          }}
-        </button>
-      </view>
-    </view>
-  </su-popup>
-</template>
-
-<script setup>
-  import { reactive, getCurrentInstance } from 'vue';
-  import sheep from '@/sheep';
-  import useCanvas from './useCanvas';
-
-  const props = defineProps({
-    show: {
-      type: Boolean,
-      default: false,
-    },
-    shareInfo: {
-      type: Object,
-      default() {},
-    },
-  });
-
-  const poster = reactive({
-    canvasId: 'canvasId',
-    width: sheep.$platform.device.windowWidth * 0.9,
-    height: 600,
-    src: '',
-  });
-
-  const emits = defineEmits(['success', 'close']);
-  const vm = getCurrentInstance();
-
-  const onClosePoster = () => {
-    emits('close');
-  };
-
-  // 保存海报图片
-  const onSavePoster = () => {
-    if (['WechatOfficialAccount', 'H5'].includes(sheep.$platform.name)) {
-      sheep.$helper.toast('请长按图片保存');
-      return;
-    }
-
-    uni.saveImageToPhotosAlbum({
-      filePath: poster.src,
-      success: (res) => {
-        onClosePoster();
-        sheep.$helper.toast('保存成功');
-      },
-      fail: (err) => {
-        sheep.$helper.toast('保存失败');
-        console.log('图片保存失败:', err);
-      },
-    });
-  };
-
-  // 使用 canvas 生成海报
-  async function getPoster(params) {
-    poster.src = '';
-
-    poster.shareInfo = props.shareInfo;
-    // #ifdef APP-PLUS
-    poster.canvasId = 'canvasId-' + new Date().getTime();
-    // #endif
-    const canvas = await useCanvas(poster, vm);
-    return canvas;
-  }
-
-  defineExpose({
-    getPoster,
-  });
-</script>
-
-<style lang="scss" scoped>
-  .popup-box {
-    position: relative;
-  }
-  .poster-title {
-    color: #999;
-  }
-  // 分享海报
-  .poster-btn-box {
-    width: 600rpx;
-    position: absolute;
-    left: 50%;
-    transform: translateX(-50%);
-    bottom: -80rpx;
-    .cancel-btn {
-      width: 240rpx;
-      height: 70rpx;
-      line-height: 70rpx;
-      background: $white;
-      border-radius: 35rpx;
-      font-size: 28rpx;
-      font-weight: 500;
-      color: $dark-9;
-    }
-    .save-btn {
-      width: 240rpx;
-      height: 70rpx;
-      line-height: 70rpx;
-      border-radius: 35rpx;
-      font-size: 28rpx;
-      font-weight: 500;
-    }
-  }
-
-  .poster-img {
-    border-radius: 20rpx;
-  }
-  .hideCanvas {
-    position: fixed;
-    top: -99999rpx;
-    left: -99999rpx;
-    z-index: -99999;
-  }
-</style>
+<!-- 海报弹窗 -->
+<template>
+	<su-popup :show="show" round="10" @close="onClosePoster" type="center" class="popup-box">
+		<view class="ss-flex-col ss-col-center ss-row-center">
+			<view v-if="poster.src === ''" class="poster-title ss-flex ss-row-center" :style="{
+          height: poster.height + 'px',
+          width: poster.width + 'px',
+        }">
+				海报加载中...
+			</view>
+			<image v-else class="poster-img" :src="poster.src" :style="{
+          height: poster.height + 'px',
+          width: poster.width + 'px',
+        }" :show-menu-by-longpress="true" />
+			<canvas class="hideCanvas" :canvas-id="poster.canvasId" :id="poster.canvasId" :style="{
+          height: poster.height + 'px',
+          width: poster.width + 'px',
+        }" />
+			<view class="poster-btn-box ss-m-t-20 ss-flex ss-row-between ss-col-center" v-if="poster.src !== ''">
+				<button class="cancel-btn ss-reset-button" @tap="onClosePoster">取消</button>
+				<button class="save-btn ss-reset-button ui-BG-Main" @tap="onSavePoster">
+					{{
+            ['wechatOfficialAccount', 'H5'].includes(sheep.$platform.name)
+              ? '长按图片保存'
+              : '保存图片'
+          }}
+				</button>
+			</view>
+		</view>
+	</su-popup>
+</template>
+
+<script setup>
+	import {
+		reactive,
+		getCurrentInstance
+	} from 'vue';
+	import sheep from '@/sheep';
+	import useCanvas from './useCanvas';
+
+	const props = defineProps({
+		show: {
+			type: Boolean,
+			default: false,
+		},
+		shareInfo: {
+			type: Object,
+			default () {},
+		},
+	});
+
+	const poster = reactive({
+		canvasId: 'canvasId',
+		width: sheep.$platform.device.windowWidth * 0.9,
+		height: 600,
+		src: '',
+	});
+
+	const emits = defineEmits(['success', 'close']);
+	const vm = getCurrentInstance();
+	const onClosePoster = () => {
+		emits('close');
+	};
+
+	// 保存海报图片
+	const onSavePoster = () => {
+		if (['WechatOfficialAccount', 'H5'].includes(sheep.$platform.name)) {
+			sheep.$helper.toast('请长按图片保存');
+			return;
+		}
+
+		uni.saveImageToPhotosAlbum({
+			filePath: poster.src,
+			success: (res) => {
+				onClosePoster();
+				sheep.$helper.toast('保存成功');
+			},
+			fail: (err) => {
+				sheep.$helper.toast('保存失败');
+				console.log('图片保存失败:', err);
+			},
+		});
+	};
+
+	// 使用 canvas 生成海报
+	async function getPoster(params) {
+		poster.src = '';
+
+		poster.shareInfo = props.shareInfo;
+		// #ifdef APP-PLUS
+		poster.canvasId = 'canvasId-' + new Date().getTime();
+		// #endif
+		const canvas = await useCanvas(poster, vm);
+		return canvas;
+	}
+
+	defineExpose({
+		getPoster,
+	});
+</script>
+
+<style lang="scss" scoped>
+	.popup-box {
+		position: relative;
+	}
+
+	.poster-title {
+		color: #999;
+	}
+
+	// 分享海报
+	.poster-btn-box {
+		width: 600rpx;
+		position: absolute;
+		left: 50%;
+		transform: translateX(-50%);
+		bottom: -80rpx;
+
+		.cancel-btn {
+			width: 240rpx;
+			height: 70rpx;
+			line-height: 70rpx;
+			background: $white;
+			border-radius: 35rpx;
+			font-size: 28rpx;
+			font-weight: 500;
+			color: $dark-9;
+		}
+
+		.save-btn {
+			width: 240rpx;
+			height: 70rpx;
+			line-height: 70rpx;
+			border-radius: 35rpx;
+			font-size: 28rpx;
+			font-weight: 500;
+		}
+	}
+
+	.poster-img {
+		border-radius: 20rpx;
+	}
+
+	.hideCanvas {
+		position: fixed;
+		top: -99999rpx;
+		left: -99999rpx;
+		z-index: -99999;
+	}
+</style>

+ 99 - 87
sheep/components/s-share-modal/canvas-poster/useCanvas.js

@@ -1,87 +1,99 @@
-/**
- * Shopro + qs-canvas 绘制海报
- * @version 1.0.0
- * @author lidongtony
- * @param {Object} options - 海报参数
- * @param {Object} vm - 自定义组件实例
- */
-import QSCanvas from 'qs-canvas';
-import { getPosterData } from './poster';
-
-export default async function useCanvas(options, vm) {
-  const width = options.width;
-  const qsc = new QSCanvas(
-    {
-      canvasId: options.canvasId,
-      width: options.width,
-      height: options.height,
-      setCanvasWH: (canvas) => {
-        options.height = canvas.height;
-      },
-    },
-    vm,
-  );
-
-  let drawer = getPosterData(options);
-
-  // 绘制背景图
-  const background = await qsc.drawImg({
-    type: 'image',
-    val: drawer.background,
-    x: 0,
-    y: 0,
-    width,
-    mode: 'widthFix',
-    zIndex: 0,
-  });
-  await qsc.updateCanvasWH({
-    width: background.width,
-    height: background.bottom,
-  });
-
-  let list = drawer.list;
-
-  for (let i = 0; i < list.length; i++) {
-    let item = list[i];
-    // 绘制文字
-    if (item.type === 'text') {
-      await qsc.drawText(item);
-    }
-    // 绘制图片
-    if (item.type === 'image') {
-      if (item.d) {
-        qsc.setCircle({
-          x: item.x,
-          y: item.y,
-          d: item.d,
-          clip: true,
-        });
-      }
-
-      if (item.r) {
-        qsc.setRect({
-          x: item.x,
-          y: item.y,
-          height: item.height,
-          width: item.width,
-          r: item.r,
-          clip: true,
-        });
-      }
-      await qsc.drawImg(item);
-      qsc.restore();
-    }
-
-    // 绘制二维码
-    if (item.type === 'qrcode') {
-      await qsc.drawQrCode(item);
-    }
-  }
-
-  await qsc.draw();
-  // 延迟执行, 防止不稳定
-  setTimeout(async () => {
-    options.src = await qsc.toImage();
-  }, 100);
-  return options;
-}
+/**
+ * Shopro + qs-canvas 绘制海报
+ * @version 1.0.0
+ * @author lidongtony
+ * @param {Object} options - 海报参数
+ * @param {Object} vm - 自定义组件实例
+ */
+import QSCanvas from 'qs-canvas';
+import {
+	getPosterData
+} from './poster';
+
+export default async function useCanvas(options, vm) {
+
+	const width = options.width;
+	const qsc = new QSCanvas({
+			canvasId: options.canvasId,
+			width: options.width,
+			height: options.height,
+			setCanvasWH: (canvas) => {
+				options.height = canvas.height;
+			},
+		},
+		vm,
+	);
+
+	let drawer = getPosterData(options);
+
+	// 绘制背景图
+
+	const background = await qsc.drawImg({
+		type: 'image',
+		val: drawer.background,
+		x: 0,
+		y: 0,
+		width,
+		mode: 'widthFix',
+		zIndex: 0,
+	});
+
+	console.log(background)
+	await qsc.updateCanvasWH({
+		width: background.width,
+		height: background.bottom,
+	});
+
+	let list = drawer.list;
+
+	for (let i = 0; i < list.length; i++) {
+		let item = list[i];
+		// 绘制文字
+		if (item.type === 'text') {
+
+			await qsc.drawText(item);
+		}
+		// 绘制图片
+		if (item.type === 'image') {
+			if (item.d) {
+				qsc.setCircle({
+					x: item.x,
+					y: item.y,
+					d: item.d,
+					clip: true,
+				});
+			}
+
+			if (item.r) {
+				qsc.setRect({
+					x: item.x,
+					y: item.y,
+					height: item.height,
+					width: item.width,
+					r: item.r,
+					clip: true,
+				});
+			}
+			console.log(item)
+			try {
+				await qsc.drawImg(item);
+			} catch (error) {
+				console.log(error)
+			}
+
+			qsc.restore();
+		}
+
+		// 绘制二维码
+		if (item.type === 'qrcode') {
+			await qsc.drawQrCode(item);
+		}
+	}
+
+	await qsc.draw();
+	// 延迟执行, 防止不稳定
+	setTimeout(async () => {
+		options.src = await qsc.toImage();
+	}, 100);
+	return options;
+}

+ 189 - 195
sheep/components/s-share-modal/s-share-modal.vue

@@ -1,195 +1,189 @@
-<!-- 全局分享弹框 -->
-<template>
-  <view>
-    <su-popup :show="state.showShareGuide" :showClose="false" @close="onCloseGuide" />
-    <view v-if="state.showShareGuide" class="guide-wrap">
-      <image class="guide-image" :src="sheep.$url.static('/static/img/shop/share/share_guide.png')" />
-    </view>
-
-    <su-popup :show="show" round="10" :showClose="false" @close="closeShareModal">
-      <!-- 分享 tools -->
-      <view class="share-box">
-        <view class="share-list-box ss-flex">
-          <!-- 操作 ①:发送给微信好友 -->
-          <button
-            v-if="shareConfig.methods.includes('forward')"
-            class="share-item share-btn ss-flex-col ss-col-center"
-            open-type="share"
-            @tap="onShareByForward"
-          >
-            <image class="share-img" :src="sheep.$url.static('/static/img/shop/share/share_wx.png')" mode="" />
-            <text class="share-title">微信好友</text>
-          </button>
-
-          <!-- 操作 ②:生成海报图片 -->
-          <button
-            v-if="shareConfig.methods.includes('poster')"
-            class="share-item share-btn ss-flex-col ss-col-center"
-            @tap="onShareByPoster"
-          >
-            <image
-              class="share-img"
-              :src="sheep.$url.static('/static/img/shop/share/share_poster.png')"
-              mode=""
-            />
-            <text class="share-title">生成海报</text>
-          </button>
-
-          <!-- 操作 ③:生成链接 -->
-          <button
-            v-if="shareConfig.methods.includes('link')"
-            class="share-item share-btn ss-flex-col ss-col-center"
-            @tap="onShareByCopyLink"
-          >
-            <image class="share-img" :src="sheep.$url.static('/static/img/shop/share/share_link.png')" mode="" />
-            <text class="share-title">复制链接</text>
-          </button>
-        </view>
-        <view class="share-foot ss-flex ss-row-center ss-col-center" @tap="closeShareModal">
-          取消
-        </view>
-      </view>
-    </su-popup>
-
-    <!-- 分享海报,对应操作 ② -->
-    <canvas-poster
-      ref="SharePosterRef"
-      :show="state.showPosterModal"
-      :shareInfo="shareInfo"
-      @close="state.showPosterModal = false"
-    />
-  </view>
-</template>
-<script setup>
-  /**
-   * 分享弹窗
-   */
-  import { ref, unref, reactive, computed } from 'vue';
-  import sheep from '@/sheep';
-  import canvasPoster from './canvas-poster/index.vue';
-  import { closeShareModal, showAuthModal } from '@/sheep/hooks/useModal';
-
-  const show = computed(() => sheep.$store('modal').share);
-  const shareConfig = computed(() => sheep.$store('app').platform.share);
-  const SharePosterRef = ref('');
-
-  const props = defineProps({
-    shareInfo: {
-      type: Object,
-      default() {},
-    },
-  });
-
-  const state = reactive({
-    showShareGuide: false, // H5 的指引
-    showPosterModal: false, // 海报弹窗
-  });
-
-  // 操作 ②:生成海报分享
-  const onShareByPoster = () => {
-    closeShareModal();
-    if (!sheep.$store('user').isLogin) {
-      showAuthModal();
-      return;
-    }
-    unref(SharePosterRef).getPoster();
-    state.showPosterModal = true;
-  };
-
-  // 操作 ①:直接转发分享
-  const onShareByForward = () => {
-    closeShareModal();
-
-    // #ifdef H5
-    if (['WechatOfficialAccount', 'H5'].includes(sheep.$platform.name)) {
-      state.showShareGuide = true;
-      return;
-    }
-    // #endif
-
-    // #ifdef APP-PLUS
-    uni.share({
-      provider: 'weixin',
-      scene: 'WXSceneSession',
-      type: 0,
-      href: props.shareInfo.link,
-      title: props.shareInfo.title,
-      summary: props.shareInfo.desc,
-      imageUrl: props.shareInfo.image,
-      success: (res) => {
-        console.log('success:' + JSON.stringify(res));
-      },
-      fail: (err) => {
-        console.log('fail:' + JSON.stringify(err));
-      },
-    });
-    // #endif
-  };
-
-  // 操作 ③:复制链接分享
-  const onShareByCopyLink = () => {
-    sheep.$helper.copyText(props.shareInfo.link);
-    closeShareModal();
-  };
-
-  function onCloseGuide() {
-    state.showShareGuide = false;
-  }
-</script>
-
-<style lang="scss" scoped>
-  .guide-image {
-    right: 30rpx;
-    top: 0;
-    position: fixed;
-    width: 580rpx;
-    height: 430rpx;
-    z-index: 10080;
-  }
-
-  // 分享tool
-  .share-box {
-    background: $white;
-    width: 750rpx;
-    border-radius: 30rpx 30rpx 0 0;
-    padding-top: 30rpx;
-
-    .share-foot {
-      font-size: 24rpx;
-      color: $gray-b;
-      height: 80rpx;
-      border-top: 1rpx solid $gray-e;
-    }
-
-    .share-list-box {
-      .share-btn {
-        background: none;
-        border: none;
-        line-height: 1;
-        padding: 0;
-
-        &::after {
-          border: none;
-        }
-      }
-
-      .share-item {
-        flex: 1;
-        padding-bottom: 20rpx;
-
-        .share-img {
-          width: 70rpx;
-          height: 70rpx;
-          background: $gray-f;
-          border-radius: 50%;
-          margin-bottom: 20rpx;
-        }
-
-        .share-title {
-          font-size: 24rpx;
-          color: $dark-6;
-        }
-      }
-    }
-  }
-</style>
+<!-- 全局分享弹框 -->
+<template>
+	<view>
+		<su-popup :show="state.showShareGuide" :showClose="false" @close="onCloseGuide" />
+		<view v-if="state.showShareGuide" class="guide-wrap">
+			<image class="guide-image" :src="sheep.$url.static('/static/img/shop/share/share_guide.png')" />
+		</view>
+
+		<su-popup :show="show" round="10" :showClose="false" @close="closeShareModal">
+			<!-- 分享 tools -->
+			<view class="share-box">
+				<view class="share-list-box ss-flex">
+					<!-- 操作 ①:发送给微信好友 -->
+					<button v-if="shareConfig.methods.includes('forward')"
+						class="share-item share-btn ss-flex-col ss-col-center" open-type="share"
+						@tap="onShareByForward">
+						<image class="share-img" :src="sheep.$url.static('/static/img/shop/share/share_wx.png')"
+							mode="" />
+						<text class="share-title">微信好友</text>
+					</button>
+
+					<!-- 操作 ②:生成海报图片 -->
+					<button v-if="shareConfig.methods.includes('poster')"
+						class="share-item share-btn ss-flex-col ss-col-center" @tap="onShareByPoster">
+						<image class="share-img" :src="sheep.$url.static('/static/img/shop/share/share_poster.png')"
+							mode="" />
+						<text class="share-title">生成海报</text>
+					</button>
+
+					<!-- 操作 ③:生成链接 -->
+					<button v-if="shareConfig.methods.includes('link')"
+						class="share-item share-btn ss-flex-col ss-col-center" @tap="onShareByCopyLink">
+						<image class="share-img" :src="sheep.$url.static('/static/img/shop/share/share_link.png')"
+							mode="" />
+						<text class="share-title">复制链接</text>
+					</button>
+				</view>
+				<view class="share-foot ss-flex ss-row-center ss-col-center" @tap="closeShareModal">
+					取消
+				</view>
+			</view>
+		</su-popup>
+
+		<!-- 分享海报,对应操作 ② -->
+		<canvas-poster ref="SharePosterRef" :show="state.showPosterModal" :shareInfo="shareInfo"
+			@close="state.showPosterModal = false" />
+	</view>
+</template>
+<script setup>
+	/**
+	 * 分享弹窗
+	 */
+	import {
+		ref,
+		unref,
+		reactive,
+		computed
+	} from 'vue';
+	import sheep from '@/sheep';
+	import canvasPoster from './canvas-poster/index.vue';
+	import {
+		closeShareModal,
+		showAuthModal
+	} from '@/sheep/hooks/useModal';
+
+	const show = computed(() => sheep.$store('modal').share);
+	const shareConfig = computed(() => sheep.$store('app').platform.share);
+	const SharePosterRef = ref('');
+
+	const props = defineProps({
+		shareInfo: {
+			type: Object,
+			default () {},
+		},
+	});
+
+	const state = reactive({
+		showShareGuide: false, // H5 的指引
+		showPosterModal: false, // 海报弹窗
+	});
+
+	// 操作 ②:生成海报分享
+	const onShareByPoster = () => {
+		closeShareModal();
+		if (!sheep.$store('user').isLogin) {
+			showAuthModal();
+			return;
+		}
+		unref(SharePosterRef).getPoster();
+		state.showPosterModal = true;
+	};
+
+	// 操作 ①:直接转发分享
+	const onShareByForward = () => {
+		closeShareModal();
+
+		// #ifdef H5
+		if (['WechatOfficialAccount', 'H5'].includes(sheep.$platform.name)) {
+			state.showShareGuide = true;
+			return;
+		}
+		// #endif
+
+		// #ifdef APP-PLUS
+		uni.share({
+			provider: 'weixin',
+			scene: 'WXSceneSession',
+			type: 0,
+			href: props.shareInfo.link,
+			title: props.shareInfo.title,
+			summary: props.shareInfo.desc,
+			imageUrl: props.shareInfo.image,
+			success: (res) => {
+				console.log('success:' + JSON.stringify(res));
+			},
+			fail: (err) => {
+				console.log('fail:' + JSON.stringify(err));
+			},
+		});
+		// #endif
+	};
+
+	// 操作 ③:复制链接分享
+	const onShareByCopyLink = () => {
+		sheep.$helper.copyText(props.shareInfo.link);
+		closeShareModal();
+	};
+
+	function onCloseGuide() {
+		state.showShareGuide = false;
+	}
+</script>
+
+<style lang="scss" scoped>
+	.guide-image {
+		right: 30rpx;
+		top: 0;
+		position: fixed;
+		width: 580rpx;
+		height: 430rpx;
+		z-index: 10080;
+	}
+
+	// 分享tool
+	.share-box {
+		background: $white;
+		width: 750rpx;
+		border-radius: 30rpx 30rpx 0 0;
+		padding-top: 30rpx;
+
+		.share-foot {
+			font-size: 24rpx;
+			color: $gray-b;
+			height: 80rpx;
+			border-top: 1rpx solid $gray-e;
+		}
+
+		.share-list-box {
+			.share-btn {
+				background: none;
+				border: none;
+				line-height: 1;
+				padding: 0;
+
+				&::after {
+					border: none;
+				}
+			}
+
+			.share-item {
+				flex: 1;
+				padding-bottom: 20rpx;
+
+				.share-img {
+					width: 70rpx;
+					height: 70rpx;
+					background: $gray-f;
+					border-radius: 50%;
+					margin-bottom: 20rpx;
+				}
+
+				.share-title {
+					font-size: 24rpx;
+					color: $dark-6;
+				}
+			}
+		}
+	}
+</style>

+ 188 - 182
sheep/libs/sdk-h5-weixin.js

@@ -1,182 +1,188 @@
-/**
- * 本模块封装微信浏览器下的一些方法。
- * 更多微信网页开发sdk方法,详见:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html
- */
-
-import jweixin, { ready } from 'weixin-js-sdk';
-import $helper from '@/sheep/helper';
-import AuthUtil from '@/sheep/api/member/auth';
-
-let configSuccess = false;
-
-export default {
-  // 判断是否在微信中
-  isWechat() {
-    const ua = window.navigator.userAgent.toLowerCase();
-    // noinspection EqualityComparisonWithCoercionJS
-    return ua.match(/micromessenger/i) == 'micromessenger';
-  },
-
-  isReady(api) {
-    jweixin.ready(api);
-  },
-
-  // 初始化 JSSDK
-  async init(callback) {
-    if (!this.isWechat()) {
-      $helper.toast('请使用微信网页浏览器打开');
-      return;
-    }
-
-    // 调用后端接口,获得 JSSDK 初始化所需的签名
-    const url = location.href.split('#')[0];
-    const { code, data } = await AuthUtil.createWeixinMpJsapiSignature(url);
-    if (code === 0) {
-      jweixin.config({
-        debug: false,
-        appId: data.appId,
-        timestamp: data.timestamp,
-        nonceStr: data.nonceStr,
-        signature: data.signature,
-        jsApiList: ['chooseWXPay'], // TODO 芋艿:后续可以设置更多权限;
-        openTagList: data.openTagList
-      });
-    }
-
-    // 监听结果
-    configSuccess = true;
-    jweixin.error((err) => {
-      configSuccess = false;
-      console.error('微信 JSSDK 初始化失败', err);
-      // $helper.toast('微信JSSDK:' + err.errMsg);
-    });
-    jweixin.ready(() => {
-      if (configSuccess) {
-        console.log('微信 JSSDK 初始化成功');
-      }
-    })
-
-    // 回调
-    if (callback) {
-      callback(data);
-    }
-  },
-
-  //在需要定位页面调用 TODO 芋艿:未测试
-  getLocation(callback) {
-    this.isReady(() => {
-      jweixin.getLocation({
-        type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
-        success: function (res) {
-          callback(res);
-        },
-        fail: function (res) {
-          console.log('%c微信H5sdk,getLocation失败:', 'color:green;background:yellow');
-        },
-      });
-    });
-  },
-
-  //获取微信收货地址 TODO 芋艿:未测试
-  openAddress(callback) {
-    this.isReady(() => {
-      jweixin.openAddress({
-        success: function (res) {
-          callback.success && callback.success(res);
-        },
-        fail: function (err) {
-          callback.error && callback.error(err);
-          console.log('%c微信H5sdk,openAddress失败:', 'color:green;background:yellow');
-        },
-        complete: function (res) {},
-      });
-    });
-  },
-
-  // 微信扫码 TODO 芋艿:未测试
-  scanQRCode(callback) {
-    this.isReady(() => {
-      jweixin.scanQRCode({
-        needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
-        scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
-        success: function (res) {
-          callback(res);
-        },
-        fail: function (res) {
-          console.log('%c微信H5sdk,scanQRCode失败:', 'color:green;background:yellow');
-        },
-      });
-    });
-  },
-
-  // 更新微信分享信息 TODO 芋艿:未测试
-  updateShareInfo(data, callback = null) {
-    this.isReady(() => {
-      const shareData = {
-        title: data.title,
-        desc: data.desc,
-        link: data.link,
-        imgUrl: data.image,
-        success: function (res) {
-          if (callback) {
-            callback(res);
-          }
-          // 分享后的一些操作,比如分享统计等等
-        },
-        cancel: function (res) {},
-      };
-
-      // 新版 分享聊天api
-      jweixin.updateAppMessageShareData(shareData);
-      // 新版 分享到朋友圈api
-      jweixin.updateTimelineShareData(shareData);
-    });
-  },
-
-  // 打开坐标位置 TODO 芋艿:未测试
-  openLocation(data, callback) {
-    this.isReady(() => {
-      jweixin.openLocation({
-        //根据传入的坐标打开地图
-        latitude: data.latitude,
-        longitude: data.longitude,
-      });
-    });
-  },
-
-  // 选择图片 TODO 芋艿:未测试
-  chooseImage(callback) {
-    this.isReady(() => {
-      jweixin.chooseImage({
-        count: 1,
-        sizeType: ['compressed'],
-        sourceType: ['album'],
-        success: function (rs) {
-          callback(rs);
-        },
-      });
-    });
-  },
-
-  // 微信支付
-  wxpay(data, callback) {
-    this.isReady(() => {
-      jweixin.chooseWXPay({
-        timestamp: data.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
-        nonceStr: data.nonceStr, // 支付签名随机串,不长于 32 位
-        package: data.packageValue, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=\*\*\*)
-        signType: data.signType, // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'
-        paySign: data.paySign, // 支付签名
-        success: function (res) {
-          callback.success && callback.success(res);
-        },
-        fail: function (err) {
-          callback.fail && callback.fail(err);
-        },
-        cancel: function (err) {
-          callback.cancel && callback.cancel(err);
-        },
-      });
-    });
-  },
-};
+/**
+ * 本模块封装微信浏览器下的一些方法。
+ * 更多微信网页开发sdk方法,详见:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html
+ */
+
+import jweixin, {
+	ready
+} from 'weixin-js-sdk';
+import $helper from '@/sheep/helper';
+import AuthUtil from '@/sheep/api/member/auth';
+
+let configSuccess = false;
+
+export default {
+	// 判断是否在微信中
+	isWechat() {
+		const ua = window.navigator.userAgent.toLowerCase();
+		// noinspection EqualityComparisonWithCoercionJS
+		return ua.match(/micromessenger/i) == 'micromessenger';
+	},
+
+	isReady(api) {
+		jweixin.ready(api);
+	},
+
+	// 初始化 JSSDK
+	async init(callback) {
+		if (!this.isWechat()) {
+			$helper.toast('请使用微信网页浏览器打开');
+			return;
+		}
+
+		// 调用后端接口,获得 JSSDK 初始化所需的签名
+		const url = location.href.split('#')[0];
+		const {
+			code,
+			data
+		} = await AuthUtil.createWeixinMpJsapiSignature(url);
+		if (code === 0) {
+			jweixin.config({
+				debug: false,
+				appId: data.appId,
+				timestamp: data.timestamp,
+				nonceStr: data.nonceStr,
+				signature: data.signature,
+				jsApiList: ['chooseWXPay'], // TODO 芋艿:后续可以设置更多权限;
+				openTagList: data.openTagList
+			});
+		}
+
+		// 监听结果
+		configSuccess = true;
+		jweixin.error((err) => {
+			configSuccess = false;
+			console.error('微信 JSSDK 初始化失败', err);
+			// $helper.toast('微信JSSDK:' + err.errMsg);
+		});
+		jweixin.ready(() => {
+			if (configSuccess) {
+				console.log('微信 JSSDK 初始化成功');
+			}
+		})
+
+		// 回调
+		if (callback) {
+			callback(data);
+		}
+	},
+
+	//在需要定位页面调用 TODO 芋艿:未测试
+	getLocation(callback) {
+		this.isReady(() => {
+			jweixin.getLocation({
+				type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
+				success: function(res) {
+					callback(res);
+				},
+				fail: function(res) {
+					console.log('%c微信H5sdk,getLocation失败:', 'color:green;background:yellow');
+				},
+			});
+		});
+	},
+
+	//获取微信收货地址 TODO 芋艿:未测试
+	openAddress(callback) {
+		this.isReady(() => {
+			jweixin.openAddress({
+				success: function(res) {
+					callback.success && callback.success(res);
+				},
+				fail: function(err) {
+					callback.error && callback.error(err);
+					console.log('%c微信H5sdk,openAddress失败 原因是:', err);
+				},
+				complete: function(res) {},
+			});
+		});
+	},
+
+	// 微信扫码 TODO 芋艿:未测试
+	scanQRCode(callback) {
+		this.isReady(() => {
+			jweixin.scanQRCode({
+				needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
+				scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
+				success: function(res) {
+					callback(res);
+				},
+				fail: function(res) {
+					console.log('%c微信H5sdk,scanQRCode失败:', 'color:green;background:yellow');
+				},
+			});
+		});
+	},
+
+	// 更新微信分享信息 TODO 芋艿:未测试
+	updateShareInfo(data, callback = null) {
+		this.isReady(() => {
+			const shareData = {
+				title: data.title,
+				desc: data.desc,
+				link: data.link,
+				imgUrl: data.image,
+				success: function(res) {
+					if (callback) {
+						callback(res);
+					}
+					// 分享后的一些操作,比如分享统计等等
+				},
+				cancel: function(res) {},
+			};
+
+			// 新版 分享聊天api
+			jweixin.updateAppMessageShareData(shareData);
+			// 新版 分享到朋友圈api
+			jweixin.updateTimelineShareData(shareData);
+		});
+	},
+
+	// 打开坐标位置 TODO 芋艿:未测试
+	openLocation(data, callback) {
+		this.isReady(() => {
+			jweixin.openLocation({
+				//根据传入的坐标打开地图
+				latitude: data.latitude,
+				longitude: data.longitude,
+			});
+		});
+	},
+
+	// 选择图片 TODO 芋艿:未测试
+	chooseImage(callback) {
+		this.isReady(() => {
+			jweixin.chooseImage({
+				count: 1,
+				sizeType: ['compressed'],
+				sourceType: ['album'],
+				success: function(rs) {
+					callback(rs);
+				},
+			});
+		});
+	},
+
+	// 微信支付
+	wxpay(data, callback) {
+		this.isReady(() => {
+			jweixin.chooseWXPay({
+				timestamp: data
+				.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
+				nonceStr: data.nonceStr, // 支付签名随机串,不长于 32 位
+				package: data.packageValue, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=\*\*\*)
+				signType: data.signType, // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'
+				paySign: data.paySign, // 支付签名
+				success: function(res) {
+					callback.success && callback.success(res);
+				},
+				fail: function(err) {
+					callback.fail && callback.fail(err);
+				},
+				cancel: function(err) {
+					callback.cancel && callback.cancel(err);
+				},
+			});
+		});
+	},
+};

+ 1 - 1
unpackage/dist/build/h5/assets/address.1f1097cd.js → unpackage/dist/build/h5/assets/address.47ce4d60.js

@@ -1 +1 @@
-import{a7 as e}from"./index-3b63fea1.js";const s={getAreaTree:()=>e({url:"/system/area/tree",method:"GET"})},d={getAddressList:()=>e({url:"/member/address/list",method:"GET"}),createAddress:s=>e({url:"/member/address/create",method:"POST",data:s,custom:{showSuccess:!0,successMsg:"保存成功"}}),updateAddress:s=>e({url:"/member/address/update",method:"PUT",data:s,custom:{showSuccess:!0,successMsg:"更新成功"}}),getAddress:s=>e({url:"/member/address/get",method:"GET",params:{id:s}}),deleteAddress:s=>e({url:"/member/address/delete",method:"DELETE",params:{id:s}})};export{d as A,s as a};
+import{a7 as e}from"./index-7dcce25e.js";const s={getAreaTree:()=>e({url:"/system/area/tree",method:"GET"})},d={getAddressList:()=>e({url:"/member/address/list",method:"GET"}),createAddress:s=>e({url:"/member/address/create",method:"POST",data:s,custom:{showSuccess:!0,successMsg:"保存成功"}}),updateAddress:s=>e({url:"/member/address/update",method:"PUT",data:s,custom:{showSuccess:!0,successMsg:"更新成功"}}),getAddress:s=>e({url:"/member/address/get",method:"GET",params:{id:s}}),deleteAddress:s=>e({url:"/member/address/delete",method:"DELETE",params:{id:s}})};export{d as A,s as a};

+ 1 - 1
unpackage/dist/build/h5/assets/afterSale.ba4a8dd3.js → unpackage/dist/build/h5/assets/afterSale.242757a5.js

@@ -1 +1 @@
-import{a7 as e}from"./index-3b63fea1.js";const a={getAfterSalePage:a=>e({url:"/trade/after-sale/page",method:"GET",params:a,custom:{showLoading:!1}}),createAfterSale:a=>e({url:"/trade/after-sale/create",method:"POST",data:a}),getAfterSale:a=>e({url:"/trade/after-sale/get",method:"GET",params:{id:a}}),cancelAfterSale:a=>e({url:"/trade/after-sale/cancel",method:"DELETE",params:{id:a}}),getAfterSaleLogList:a=>e({url:"/trade/after-sale-log/list",method:"GET",params:{afterSaleId:a}}),deliveryAfterSale:a=>e({url:"/trade/after-sale/delivery",method:"PUT",data:a})};export{a as A};
+import{a7 as e}from"./index-7dcce25e.js";const a={getAfterSalePage:a=>e({url:"/trade/after-sale/page",method:"GET",params:a,custom:{showLoading:!1}}),createAfterSale:a=>e({url:"/trade/after-sale/create",method:"POST",data:a}),getAfterSale:a=>e({url:"/trade/after-sale/get",method:"GET",params:{id:a}}),cancelAfterSale:a=>e({url:"/trade/after-sale/cancel",method:"DELETE",params:{id:a}}),getAfterSaleLogList:a=>e({url:"/trade/after-sale-log/list",method:"GET",params:{afterSaleId:a}}),deliveryAfterSale:a=>e({url:"/trade/after-sale/delivery",method:"PUT",data:a})};export{a as A};

+ 1 - 1
unpackage/dist/build/h5/assets/article.cef29637.js → unpackage/dist/build/h5/assets/article.0e5c32d4.js

@@ -1 +1 @@
-import{a7 as t}from"./index-3b63fea1.js";const e={getArticle:(e,o)=>t({url:"/promotion/article/get",method:"GET",params:{id:e,title:o}})};export{e as A};
+import{a7 as t}from"./index-7dcce25e.js";const e={getArticle:(e,o)=>t({url:"/promotion/article/get",method:"GET",params:{id:e,title:o}})};export{e as A};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/bargain.dbf4966e.js


+ 1 - 1
unpackage/dist/build/h5/assets/brokerage.a0761eb2.js → unpackage/dist/build/h5/assets/brokerage.5dcedbfc.js

@@ -1 +1 @@
-import{a7 as e}from"./index-3b63fea1.js";const r={getBrokerageUser:()=>e({url:"/trade/brokerage-user/get",method:"GET"}),getBrokerageUserSummary:()=>e({url:"/trade/brokerage-user/get-summary",method:"GET"}),getBrokerageRecordPage:r=>{void 0===r.status&&delete r.status;const t=Object.keys(r).map((e=>encodeURIComponent(e)+"="+r[e])).join("&");return e({url:`/trade/brokerage-record/page?${t}`,method:"GET"})},createBrokerageWithdraw:r=>e({url:"/trade/brokerage-withdraw/create",method:"POST",data:r}),getProductBrokeragePrice:r=>e({url:"/trade/brokerage-record/get-product-brokerage-price",method:"GET",params:{spuId:r}}),getRankByPrice:r=>{const t=`times=${r.times[0]}&times=${r.times[1]}`;return e({url:`/trade/brokerage-user/get-rank-by-price?${t}`,method:"GET"})},getBrokerageUserChildSummaryPageByPrice:r=>{const t=Object.keys(r).map((e=>encodeURIComponent(e)+"="+r[e])).join("&");return e({url:`/trade/brokerage-user/rank-page-by-price?${t}`,method:"GET"})},getBrokerageUserRankPageByUserCount:r=>{const t=Object.keys(r).map((e=>encodeURIComponent(e)+"="+r[e])).join("&");return e({url:`/trade/brokerage-user/rank-page-by-user-count?${t}`,method:"GET"})},getBrokerageUserChildSummaryPage:r=>e({url:"/trade/brokerage-user/child-summary-page",method:"GET",params:r})};export{r as B};
+import{a7 as e}from"./index-7dcce25e.js";const r={getBrokerageUser:()=>e({url:"/trade/brokerage-user/get",method:"GET"}),getBrokerageUserSummary:()=>e({url:"/trade/brokerage-user/get-summary",method:"GET"}),getBrokerageRecordPage:r=>{void 0===r.status&&delete r.status;const t=Object.keys(r).map((e=>encodeURIComponent(e)+"="+r[e])).join("&");return e({url:`/trade/brokerage-record/page?${t}`,method:"GET"})},createBrokerageWithdraw:r=>e({url:"/trade/brokerage-withdraw/create",method:"POST",data:r}),getProductBrokeragePrice:r=>e({url:"/trade/brokerage-record/get-product-brokerage-price",method:"GET",params:{spuId:r}}),getRankByPrice:r=>{const t=`times=${r.times[0]}&times=${r.times[1]}`;return e({url:`/trade/brokerage-user/get-rank-by-price?${t}`,method:"GET"})},getBrokerageUserChildSummaryPageByPrice:r=>{const t=Object.keys(r).map((e=>encodeURIComponent(e)+"="+r[e])).join("&");return e({url:`/trade/brokerage-user/rank-page-by-price?${t}`,method:"GET"})},getBrokerageUserRankPageByUserCount:r=>{const t=Object.keys(r).map((e=>encodeURIComponent(e)+"="+r[e])).join("&");return e({url:`/trade/brokerage-user/rank-page-by-user-count?${t}`,method:"GET"})},getBrokerageUserChildSummaryPage:r=>e({url:"/trade/brokerage-user/child-summary-page",method:"GET",params:r})};export{r as B};

+ 1 - 1
unpackage/dist/build/h5/assets/category.d9a7876c.js → unpackage/dist/build/h5/assets/category.2e9bb177.js

@@ -1 +1 @@
-import{a7 as t}from"./index-3b63fea1.js";const o={getCategoryList:()=>t({url:"/product/category/list",method:"GET"}),getCategoryListByIds:o=>t({url:"/product/category/list-by-ids",method:"GET",params:{ids:o}})};export{o as C};
+import{a7 as t}from"./index-7dcce25e.js";const o={getCategoryList:()=>t({url:"/product/category/list",method:"GET"}),getCategoryListByIds:o=>t({url:"/product/category/list-by-ids",method:"GET",params:{ids:o}})};export{o as C};

+ 1 - 1
unpackage/dist/build/h5/assets/combination.3d28508a.js → unpackage/dist/build/h5/assets/combination.ed027c78.js

@@ -1 +1 @@
-import{a7 as o}from"./index-3b63fea1.js";const t={getCombinationActivityList:t=>o({url:"/promotion/combination-activity/list",method:"GET",params:{count:t}}),getCombinationActivityPage:t=>o({url:"/promotion/combination-activity/page",method:"GET",params:t}),getCombinationActivity:t=>o({url:"/promotion/combination-activity/get-detail",method:"GET",params:{id:t}}),getHeadCombinationRecordList:(t,i,a)=>o({url:"/promotion/combination-record/get-head-list",method:"GET",params:{activityId:t,status:i,count:a}}),getCombinationRecordPage:t=>o({url:"/promotion/combination-record/page",method:"GET",params:t}),getCombinationRecordDetail:t=>o({url:"/promotion/combination-record/get-detail",method:"GET",params:{id:t}}),getCombinationRecordSummary:()=>o({url:"/promotion/combination-record/get-summary",method:"GET"})};export{t as C};
+import{a7 as o}from"./index-7dcce25e.js";const t={getCombinationActivityList:t=>o({url:"/promotion/combination-activity/list",method:"GET",params:{count:t}}),getCombinationActivityPage:t=>o({url:"/promotion/combination-activity/page",method:"GET",params:t}),getCombinationActivity:t=>o({url:"/promotion/combination-activity/get-detail",method:"GET",params:{id:t}}),getHeadCombinationRecordList:(t,i,a)=>o({url:"/promotion/combination-record/get-head-list",method:"GET",params:{activityId:t,status:i,count:a}}),getCombinationRecordPage:t=>o({url:"/promotion/combination-record/page",method:"GET",params:t}),getCombinationRecordDetail:t=>o({url:"/promotion/combination-record/get-detail",method:"GET",params:{id:t}}),getCombinationRecordSummary:()=>o({url:"/promotion/combination-record/get-summary",method:"GET"})};export{t as C};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/comment-item.c223f184.js


+ 1 - 1
unpackage/dist/build/h5/assets/config.22c9eefd.js → unpackage/dist/build/h5/assets/config.7dd62b52.js

@@ -1 +1 @@
-import{a7 as e}from"./index-3b63fea1.js";const o={getTradeConfig:()=>e({url:"/trade/config/get",method:"GET"})};export{o as T};
+import{a7 as e}from"./index-7dcce25e.js";const o={getTradeConfig:()=>e({url:"/trade/config/get",method:"GET"})};export{o as T};

+ 1 - 1
unpackage/dist/build/h5/assets/const.65527310.js → unpackage/dist/build/h5/assets/const.f8479c81.js

@@ -1 +1 @@
-import{a7 as t,aw as e}from"./index-3b63fea1.js";const i={getSeckillConfigList:()=>t({url:"promotion/seckill-config/list",method:"GET"}),getNowSeckillActivity:()=>t({url:"promotion/seckill-activity/get-now",method:"GET"}),getSeckillActivityPage:e=>t({url:"promotion/seckill-activity/page",method:"GET",params:e}),getSeckillActivity:e=>t({url:"promotion/seckill-activity/get-detail",method:"GET",params:{id:e}})},o={PRICE:{type:1,name:"满减"},PERCENT:{type:2,name:"折扣"}},a={DATE:{type:1,name:"固定日期可用"},TERM:{type:2,name:"领取之后可用"}},l={WAIT_START:"即将开始",STARTED:"进行中",END:"已结束"},s=(t,i)=>{const o=e();return o.isBefore(t)?l.WAIT_START:o.isAfter(i)?l.END:l.STARTED};export{a as C,o as P,i as S,l as T,s as g};
+import{a7 as t,aw as e}from"./index-7dcce25e.js";const i={getSeckillConfigList:()=>t({url:"promotion/seckill-config/list",method:"GET"}),getNowSeckillActivity:()=>t({url:"promotion/seckill-activity/get-now",method:"GET"}),getSeckillActivityPage:e=>t({url:"promotion/seckill-activity/page",method:"GET",params:e}),getSeckillActivity:e=>t({url:"promotion/seckill-activity/get-detail",method:"GET",params:{id:e}})},o={PRICE:{type:1,name:"满减"},PERCENT:{type:2,name:"折扣"}},a={DATE:{type:1,name:"固定日期可用"},TERM:{type:2,name:"领取之后可用"}},l={WAIT_START:"即将开始",STARTED:"进行中",END:"已结束"},s=(t,i)=>{const o=e();return o.isBefore(t)?l.WAIT_START:o.isAfter(i)?l.END:l.STARTED};export{a as C,o as P,i as S,l as T,s as g};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/detail-content-card.b80cb400.js


+ 1 - 1
unpackage/dist/build/h5/assets/favorite.e75336c5.js → unpackage/dist/build/h5/assets/favorite.4702aa3f.js

@@ -1 +1 @@
-import{a7 as e}from"./index-3b63fea1.js";const t={getFavoritePage:t=>e({url:"/product/favorite/page",method:"GET",params:t}),isFavoriteExists:t=>e({url:"/product/favorite/exits",method:"GET",params:{spuId:t}}),createFavorite:t=>e({url:"/product/favorite/create",method:"POST",data:{spuId:t},custom:{auth:!0,showSuccess:!0,successMsg:"收藏成功"}}),deleteFavorite:t=>e({url:"/product/favorite/delete",method:"DELETE",data:{spuId:t},custom:{auth:!0,showSuccess:!0,successMsg:"取消成功"}})};export{t as F};
+import{a7 as e}from"./index-7dcce25e.js";const t={getFavoritePage:t=>e({url:"/product/favorite/page",method:"GET",params:t}),isFavoriteExists:t=>e({url:"/product/favorite/exits",method:"GET",params:{spuId:t}}),createFavorite:t=>e({url:"/product/favorite/create",method:"POST",data:{spuId:t},custom:{auth:!0,showSuccess:!0,successMsg:"收藏成功"}}),deleteFavorite:t=>e({url:"/product/favorite/delete",method:"DELETE",data:{spuId:t},custom:{auth:!0,showSuccess:!0,successMsg:"取消成功"}})};export{t as F};

+ 1 - 1
unpackage/dist/build/h5/assets/history.8c270dc8.js → unpackage/dist/build/h5/assets/history.5eff047e.js

@@ -1 +1 @@
-import{a7 as s}from"./index-3b63fea1.js";const o={deleteBrowseHistory:o=>s({url:"/product/browse-history/delete",method:"DELETE",data:{spuIds:o},custom:{showSuccess:!0,successMsg:"删除成功"}}),cleanBrowseHistory:()=>s({url:"/product/browse-history/clean",method:"DELETE",custom:{showSuccess:!0,successMsg:"清空成功"}}),getBrowseHistoryPage:o=>s({url:"/product/browse-history/page",method:"GET",data:o,custom:{showLoading:!1}})};export{o as S};
+import{a7 as s}from"./index-7dcce25e.js";const o={deleteBrowseHistory:o=>s({url:"/product/browse-history/delete",method:"DELETE",data:{spuIds:o},custom:{showSuccess:!0,successMsg:"删除成功"}}),cleanBrowseHistory:()=>s({url:"/product/browse-history/clean",method:"DELETE",custom:{showSuccess:!0,successMsg:"清空成功"}}),getBrowseHistoryPage:o=>s({url:"/product/browse-history/page",method:"GET",data:o,custom:{showLoading:!1}})};export{o as S};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/index-7dcce25e.js


+ 1 - 1
unpackage/dist/build/h5/assets/index.b7cec3e0.js → unpackage/dist/build/h5/assets/index.aa110a3d.js

@@ -1 +1 @@
-import{aw as t}from"./index-3b63fea1.js";const r=t=>{let r="0.00";if(void 0===t)return r;const e=(t=>{if(void 0===t)return 0;const r="string"==typeof t?parseFloat(t):t;return parseFloat((r/100).toFixed(2))})(t),n=e.toString().split(".")[1];switch(n?n.length:0){case 0:r=e.toString()+".00";break;case 1:r=e.toString()+".0";break;case 2:r=e.toString()}return r};function e(r,e){return r?(void 0===e&&(e="YYYY-MM-DD HH:mm:ss"),t(r).format(e)):""}function n(t,r="id",e="parentId",n="children",i=0){const o=JSON.parse(JSON.stringify(t)),s=o.filter((t=>{let n=o.filter((n=>t[r]===n[e]));return n.length>0&&(t.children=n),t[e]===i}));return""!==s?s:t}function i(t){t.list=[],t.total=0,t.pageNo=1}export{e as a,r as f,n as h,i as r};
+import{aw as t}from"./index-7dcce25e.js";const r=t=>{let r="0.00";if(void 0===t)return r;const e=(t=>{if(void 0===t)return 0;const r="string"==typeof t?parseFloat(t):t;return parseFloat((r/100).toFixed(2))})(t),n=e.toString().split(".")[1];switch(n?n.length:0){case 0:r=e.toString()+".00";break;case 1:r=e.toString()+".0";break;case 2:r=e.toString()}return r};function e(r,e){return r?(void 0===e&&(e="YYYY-MM-DD HH:mm:ss"),t(r).format(e)):""}function n(t,r="id",e="parentId",n="children",i=0){const o=JSON.parse(JSON.stringify(t)),s=o.filter((t=>{let n=o.filter((n=>t[r]===n[e]));return n.length>0&&(t.children=n),t[e]===i}));return""!==s?s:t}function i(t){t.list=[],t.total=0,t.pageNo=1}export{e as a,r as f,n as h,i as r};

+ 1 - 1
unpackage/dist/build/h5/assets/list-25942d43.css → unpackage/dist/build/h5/assets/list-d779ab89.css

@@ -1 +1 @@
-.footer-box .add-btn[data-v-f4108472]{flex:1;background:linear-gradient(90deg,var(--ui-BG-Main),var(--ui-BG-Main-gradient));border-radius:2.5rem;font-size:.9375rem;font-weight:500;line-height:2.5rem;color:#fff;position:relative;z-index:1}.footer-box .sync-wxaddress[data-v-f4108472]{flex:1;line-height:2.5rem;background:#ffffff;border-radius:2.5rem;font-size:.9375rem;font-weight:500;color:#666;margin-right:.5625rem}
+.footer-box .add-btn[data-v-a481303f]{flex:1;background:linear-gradient(90deg,var(--ui-BG-Main),var(--ui-BG-Main-gradient));border-radius:2.5rem;font-size:.9375rem;font-weight:500;line-height:2.5rem;color:#fff;position:relative;z-index:1}.footer-box .sync-wxaddress[data-v-a481303f]{flex:1;line-height:2.5rem;background:#ffffff;border-radius:2.5rem;font-size:.9375rem;font-weight:500;color:#666;margin-right:.5625rem}

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/mp-html.8ee809e8.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-activity-bargain-detail.d85f86d1.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-activity-bargain-list.773a8500.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-activity-groupon-detail.74e1bb13.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-activity-groupon-list.c051e6d6.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-activity-groupon-order.419a0edd.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-activity-index.e2396a44.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-activity-seckill-list.87fc40c3.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-app-sign.7288e9e9.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-app-sign.ca4f2522.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-chat-index.703940c7.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-commission-commission-ranking.438671c8.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-commission-goods.71343e7e.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-commission-index.46c01fdd.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-commission-order.a1f7bd5a.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-commission-promoter.cc451162.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-commission-team.ed6790d3.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-commission-wallet.567fb53b.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-commission-withdraw.b624a4e6.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-coupon-detail.f93b63f3.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-coupon-list.60ac7feb.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-goods-comment-add.d667a4ce.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-goods-comment-list.2bdcfbeb.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-goods-groupon.6ab91fad.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-goods-index.2b43d84f.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-goods-list.76077009.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-goods-seckill.9f128fbe.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-index-cart.35bbf36a.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-index-category.b861c6e6.js


+ 1 - 1
unpackage/dist/build/h5/assets/pages-index-index.f59ee5e4.js → unpackage/dist/build/h5/assets/pages-index-index.3abacad4.js

@@ -1 +1 @@
-import{h as s,c as e,o as t,s as o,$ as a,a as p,b as r,d as i,u as l,e as m,f as n,w as u,g as _,i as d,j as y,k as c,r as j,F as g,l as b,m as v}from"./index-3b63fea1.js";import{_ as f,a as x}from"./s-block.e3ebd78c.js";import{_ as k}from"./s-layout.49e8e73f.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-list.3b9b3cab.js";import"./su-image.bf93a08f.js";import"./su-swiper.cf33dd69.js";import"./s-goods-column.c4986127.js";import"./useGoods.1d7ae2dc.js";import"./index.b7cec3e0.js";/* empty css                                                                     */import"./uni-load-more.91728403.js";/* empty css                                                                *//* empty css                                                                      */import"./spu.ebdadc1e.js";import"./combination.3d28508a.js";import"./const.65527310.js";import"./mp-html.475d14dd.js";import"./article.cef29637.js";const S={__name:"index",setup(S){s();const $=e((()=>{var s;return null==(s=o.$store("app").template)?void 0:s.home}));return t((s=>{s.templateId&&o.$store("app").init(s.templateId),s.spm&&a.decryptSpm(s.spm),s.page&&o.$router.go(decodeURIComponent(s.page))})),p((()=>{o.$store("app").init(),setTimeout((function(){r()}),800)})),i((()=>{})),(s,e)=>{const t=b(v("s-block-item"),f),o=b(v("s-block"),x),a=b(v("s-layout"),k),p=d;return l($)?(m(),n(p,{key:0},{default:u((()=>{var s;return[y(a,{title:"首页",navbar:"custom",tabbar:"/pages/index/index",bgStyle:l($).page,navbarStyle:null==(s=l($).style)?void 0:s.navbar,onShareAppMessage:""},{default:u((()=>[(m(!0),c(g,null,j(l($).components,((s,e)=>(m(),n(o,{key:e,styles:s.property.style},{default:u((()=>[y(t,{type:s.id,data:s.property,styles:s.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128))])),_:1},8,["bgStyle","navbarStyle"])]})),_:1})):_("",!0)}}};export{S as default};
+import{h as s,c as e,o as t,s as o,$ as a,a as p,b as r,d as i,u as l,e as m,f as n,w as u,g as _,i as d,j as y,k as c,r as j,F as g,l as b,m as v}from"./index-7dcce25e.js";import{_ as f,a as x}from"./s-block.83171e06.js";import{_ as k}from"./s-layout.6e132b7d.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-list.f0377a18.js";import"./su-image.f286387e.js";import"./su-swiper.bc4bb3ae.js";import"./s-goods-column.8f2df9d4.js";import"./useGoods.333d4c1d.js";import"./index.aa110a3d.js";/* empty css                                                                     */import"./uni-load-more.8dbc4bec.js";/* empty css                                                                *//* empty css                                                                      */import"./spu.ce0a9a2f.js";import"./combination.ed027c78.js";import"./const.f8479c81.js";import"./mp-html.8ee809e8.js";import"./article.0e5c32d4.js";const S={__name:"index",setup(S){s();const $=e((()=>{var s;return null==(s=o.$store("app").template)?void 0:s.home}));return t((s=>{s.templateId&&o.$store("app").init(s.templateId),s.spm&&a.decryptSpm(s.spm),s.page&&o.$router.go(decodeURIComponent(s.page))})),p((()=>{o.$store("app").init(),setTimeout((function(){r()}),800)})),i((()=>{})),(s,e)=>{const t=b(v("s-block-item"),f),o=b(v("s-block"),x),a=b(v("s-layout"),k),p=d;return l($)?(m(),n(p,{key:0},{default:u((()=>{var s;return[y(a,{title:"首页",navbar:"custom",tabbar:"/pages/index/index",bgStyle:l($).page,navbarStyle:null==(s=l($).style)?void 0:s.navbar,onShareAppMessage:""},{default:u((()=>[(m(!0),c(g,null,j(l($).components,((s,e)=>(m(),n(o,{key:e,styles:s.property.style},{default:u((()=>[y(t,{type:s.id,data:s.property,styles:s.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128))])),_:1},8,["bgStyle","navbarStyle"])]})),_:1})):_("",!0)}}};export{S as default};

+ 1 - 1
unpackage/dist/build/h5/assets/pages-index-login.6d07bac4.js → unpackage/dist/build/h5/assets/pages-index-login.ce0f8b01.js

@@ -1 +1 @@
-import{o as a,s as e,I as r,J as s,K as o,e as t,f as n,i}from"./index-3b63fea1.js";const l={__name:"login",setup:l=>(a((async a=>{new URLSearchParams(location.search).forEach(((e,r)=>{a[r]=e}));const t=a.event,n=a.code,i=a.state;"login"===t?await e.$platform.useProvider().login(n,i):"bind"===t&&e.$platform.useProvider().bind(n,i);let l=r("returnUrl");l?(s("returnUrl"),location.replace(l)):o({url:"/"})})),(a,e)=>{const r=i;return t(),n(r)})};export{l as default};
+import{o as a,s as e,I as r,J as s,K as o,e as t,f as n,i}from"./index-7dcce25e.js";const l={__name:"login",setup:l=>(a((async a=>{new URLSearchParams(location.search).forEach(((e,r)=>{a[r]=e}));const t=a.event,n=a.code,i=a.state;"login"===t?await e.$platform.useProvider().login(n,i):"bind"===t&&e.$platform.useProvider().bind(n,i);let l=r("returnUrl");l?(s("returnUrl"),location.replace(l)):o({url:"/"})})),(a,e)=>{const r=i;return t(),n(r)})};export{l as default};

+ 1 - 1
unpackage/dist/build/h5/assets/pages-index-page.c51985a2.js → unpackage/dist/build/h5/assets/pages-index-page.947d9b0a.js

@@ -1 +1 @@
-import{_ as t,a as e}from"./s-block.e3ebd78c.js";import{v as s,o,O as a,d as p,e as r,f as n,w as i,l,k as m,r as _,F as u,m as y,j as d}from"./index-3b63fea1.js";import{_ as c}from"./s-layout.49e8e73f.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-list.3b9b3cab.js";import"./su-image.bf93a08f.js";import"./su-swiper.cf33dd69.js";import"./s-goods-column.c4986127.js";import"./useGoods.1d7ae2dc.js";import"./index.b7cec3e0.js";/* empty css                                                                     */import"./uni-load-more.91728403.js";/* empty css                                                                *//* empty css                                                                      */import"./spu.ebdadc1e.js";import"./combination.3d28508a.js";import"./const.65527310.js";import"./mp-html.475d14dd.js";import"./article.cef29637.js";const g={__name:"page",setup(g){const j=s({name:"",components:[],navigationBar:{},page:{}});return o((async t=>{var e,s,o;let p=t.id;const{code:r,data:n}=await a.getDiyPage(p);0===r&&(j.name=n.name,j.components=null==(e=n.property)?void 0:e.components,j.navigationBar=null==(s=n.property)?void 0:s.navigationBar,j.page=null==(o=n.property)?void 0:o.page)})),p((()=>{})),(s,o)=>{const a=l(y("s-block-item"),t),p=l(y("s-block"),e),g=l(y("s-layout"),c);return r(),n(g,{title:j.name,navbar:"custom",bgStyle:j.page,navbarStyle:j.navigationBar,onShareAppMessage:"",showLeftButton:""},{default:i((()=>[(r(!0),m(u,null,_(j.components,((t,e)=>(r(),n(p,{key:e,styles:t.property.style},{default:i((()=>[d(a,{type:t.id,data:t.property,styles:t.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128))])),_:1},8,["title","bgStyle","navbarStyle"])}}};export{g as default};
+import{_ as t,a as e}from"./s-block.83171e06.js";import{v as s,o,O as a,d as p,e as r,f as n,w as i,l,k as m,r as _,F as u,m as y,j as d}from"./index-7dcce25e.js";import{_ as c}from"./s-layout.6e132b7d.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-list.f0377a18.js";import"./su-image.f286387e.js";import"./su-swiper.bc4bb3ae.js";import"./s-goods-column.8f2df9d4.js";import"./useGoods.333d4c1d.js";import"./index.aa110a3d.js";/* empty css                                                                     */import"./uni-load-more.8dbc4bec.js";/* empty css                                                                *//* empty css                                                                      */import"./spu.ce0a9a2f.js";import"./combination.ed027c78.js";import"./const.f8479c81.js";import"./mp-html.8ee809e8.js";import"./article.0e5c32d4.js";const g={__name:"page",setup(g){const j=s({name:"",components:[],navigationBar:{},page:{}});return o((async t=>{var e,s,o;let p=t.id;const{code:r,data:n}=await a.getDiyPage(p);0===r&&(j.name=n.name,j.components=null==(e=n.property)?void 0:e.components,j.navigationBar=null==(s=n.property)?void 0:s.navigationBar,j.page=null==(o=n.property)?void 0:o.page)})),p((()=>{})),(s,o)=>{const a=l(y("s-block-item"),t),p=l(y("s-block"),e),g=l(y("s-layout"),c);return r(),n(g,{title:j.name,navbar:"custom",bgStyle:j.page,navbarStyle:j.navigationBar,onShareAppMessage:"",showLeftButton:""},{default:i((()=>[(r(!0),m(u,null,_(j.components,((t,e)=>(r(),n(p,{key:e,styles:t.property.style},{default:i((()=>[d(a,{type:t.id,data:t.property,styles:t.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128))])),_:1},8,["title","bgStyle","navbarStyle"])}}};export{g as default};

+ 1 - 1
unpackage/dist/build/h5/assets/pages-index-search.7d8a7566.js → unpackage/dist/build/h5/assets/pages-index-search.46b328ed.js

@@ -1 +1 @@
-import{v as s,o as t,I as e,e as a,f as o,w as r,l as i,j as l,p as c,k as n,r as u,F as f,s as h,L as y,M as d,N as p,m as _,i as L,D as m,t as x}from"./index-3b63fea1.js";import{b as g,_ as b}from"./s-layout.49e8e73f.js";import{_ as w}from"./_plugin-vue_export-helper.1b428a4d.js";const k=w({__name:"search",setup(w){const k=s({historyList:[]});function j(s){s&&(!function(s){k.historyList.includes(s)&&k.historyList.splice(k.historyList.indexOf(s),1);k.historyList.unshift(s),k.historyList.length>=10&&(k.historyList.length=10);y("searchHistory",k.historyList)}(s),h.$router.go("/pages/goods/list",{keyword:s}))}function v(){d({title:"提示",content:"确认清除搜索历史吗?",success:function(s){s.confirm&&(k.historyTag=[],p("searchHistory"))}})}return t((()=>{k.historyList=e("searchHistory")||[]})),(s,t)=>{const e=i(_("uni-search-bar"),g),h=L,y=m,d=i(_("s-layout"),b);return a(),o(d,{class:"set-wrap",title:"搜索",bgStyle:{color:"#FFF"}},{default:r((()=>[l(h,{class:"ss-p-x-24"},{default:r((()=>[l(h,{class:"ss-flex ss-col-center"},{default:r((()=>[l(e,{class:"ss-flex-1",radius:"33",placeholder:"请输入关键字",cancelButton:"none",focus:!0,onConfirm:t[0]||(t[0]=s=>j(s.value))})])),_:1}),l(h,{class:"ss-flex ss-row-between ss-col-center"},{default:r((()=>[l(h,{class:"serach-history"},{default:r((()=>[c("搜索历史")])),_:1}),l(y,{class:"clean-history ss-reset-button",onClick:v},{default:r((()=>[c(" 清除搜索历史 ")])),_:1})])),_:1}),l(h,{class:"ss-flex ss-col-center ss-row-left ss-flex-wrap"},{default:r((()=>[(a(!0),n(f,null,u(k.historyList,((s,t)=>(a(),o(y,{class:"history-btn ss-reset-button",onClick:t=>j(s),key:t},{default:r((()=>[c(x(s),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-268850fd"]]);export{k as default};
+import{v as s,o as t,I as e,e as a,f as o,w as r,l as i,j as l,p as c,k as n,r as u,F as f,s as h,L as y,M as d,N as p,m as _,i as L,D as m,t as x}from"./index-7dcce25e.js";import{b as g,_ as b}from"./s-layout.6e132b7d.js";import{_ as w}from"./_plugin-vue_export-helper.1b428a4d.js";const k=w({__name:"search",setup(w){const k=s({historyList:[]});function j(s){s&&(!function(s){k.historyList.includes(s)&&k.historyList.splice(k.historyList.indexOf(s),1);k.historyList.unshift(s),k.historyList.length>=10&&(k.historyList.length=10);y("searchHistory",k.historyList)}(s),h.$router.go("/pages/goods/list",{keyword:s}))}function v(){d({title:"提示",content:"确认清除搜索历史吗?",success:function(s){s.confirm&&(k.historyTag=[],p("searchHistory"))}})}return t((()=>{k.historyList=e("searchHistory")||[]})),(s,t)=>{const e=i(_("uni-search-bar"),g),h=L,y=m,d=i(_("s-layout"),b);return a(),o(d,{class:"set-wrap",title:"搜索",bgStyle:{color:"#FFF"}},{default:r((()=>[l(h,{class:"ss-p-x-24"},{default:r((()=>[l(h,{class:"ss-flex ss-col-center"},{default:r((()=>[l(e,{class:"ss-flex-1",radius:"33",placeholder:"请输入关键字",cancelButton:"none",focus:!0,onConfirm:t[0]||(t[0]=s=>j(s.value))})])),_:1}),l(h,{class:"ss-flex ss-row-between ss-col-center"},{default:r((()=>[l(h,{class:"serach-history"},{default:r((()=>[c("搜索历史")])),_:1}),l(y,{class:"clean-history ss-reset-button",onClick:v},{default:r((()=>[c(" 清除搜索历史 ")])),_:1})])),_:1}),l(h,{class:"ss-flex ss-col-center ss-row-left ss-flex-wrap"},{default:r((()=>[(a(!0),n(f,null,u(k.historyList,((s,t)=>(a(),o(y,{class:"history-btn ss-reset-button",onClick:t=>j(s),key:t},{default:r((()=>[c(x(s),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-268850fd"]]);export{k as default};

+ 1 - 1
unpackage/dist/build/h5/assets/pages-index-user.d710293e.js → unpackage/dist/build/h5/assets/pages-index-user.cbfb14db.js

@@ -1 +1 @@
-import{h as s,c as e,n as t,s as o,a,b as r,d as p,e as i,f as l,w as u,u as m,l as n,k as _,r as d,F as y,m as c,j}from"./index-3b63fea1.js";import{_ as b,a as g}from"./s-block.e3ebd78c.js";import{_ as v}from"./s-layout.49e8e73f.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-list.3b9b3cab.js";import"./su-image.bf93a08f.js";import"./su-swiper.cf33dd69.js";import"./s-goods-column.c4986127.js";import"./useGoods.1d7ae2dc.js";import"./index.b7cec3e0.js";/* empty css                                                                     */import"./uni-load-more.91728403.js";/* empty css                                                                *//* empty css                                                                      */import"./spu.ebdadc1e.js";import"./combination.3d28508a.js";import"./const.65527310.js";import"./mp-html.475d14dd.js";import"./article.cef29637.js";const f={__name:"user",setup(f){s();const x=e((()=>o.$store("app").template.user));return e((()=>o.$store("user").isLogin)),t((()=>{o.$store("user").updateUserData()})),a((()=>{o.$store("user").updateUserData(),setTimeout((function(){r()}),800)})),p((()=>{})),(s,e)=>{var t;const o=n(c("s-block-item"),b),a=n(c("s-block"),g),r=n(c("s-layout"),v);return i(),l(r,{title:"我的",tabbar:"/pages/index/user",navbar:"custom",bgStyle:m(x).page,navbarStyle:null==(t=m(x).style)?void 0:t.navbar,onShareAppMessage:""},{default:u((()=>[(i(!0),_(y,null,d(m(x).components,((s,e)=>(i(),l(a,{key:e,styles:s.property.style},{default:u((()=>[j(o,{type:s.id,data:s.property,styles:s.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128))])),_:1},8,["bgStyle","navbarStyle"])}}};export{f as default};
+import{h as s,c as e,n as t,s as o,a,b as r,d as p,e as i,f as l,w as u,u as m,l as n,k as _,r as d,F as y,m as c,j}from"./index-7dcce25e.js";import{_ as b,a as g}from"./s-block.83171e06.js";import{_ as v}from"./s-layout.6e132b7d.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-list.f0377a18.js";import"./su-image.f286387e.js";import"./su-swiper.bc4bb3ae.js";import"./s-goods-column.8f2df9d4.js";import"./useGoods.333d4c1d.js";import"./index.aa110a3d.js";/* empty css                                                                     */import"./uni-load-more.8dbc4bec.js";/* empty css                                                                *//* empty css                                                                      */import"./spu.ce0a9a2f.js";import"./combination.ed027c78.js";import"./const.f8479c81.js";import"./mp-html.8ee809e8.js";import"./article.0e5c32d4.js";const f={__name:"user",setup(f){s();const x=e((()=>o.$store("app").template.user));return e((()=>o.$store("user").isLogin)),t((()=>{o.$store("user").updateUserData()})),a((()=>{o.$store("user").updateUserData(),setTimeout((function(){r()}),800)})),p((()=>{})),(s,e)=>{var t;const o=n(c("s-block-item"),b),a=n(c("s-block"),g),r=n(c("s-layout"),v);return i(),l(r,{title:"我的",tabbar:"/pages/index/user",navbar:"custom",bgStyle:m(x).page,navbarStyle:null==(t=m(x).style)?void 0:t.navbar,onShareAppMessage:""},{default:u((()=>[(i(!0),_(y,null,d(m(x).components,((s,e)=>(i(),l(a,{key:e,styles:s.property.style},{default:u((()=>[j(o,{type:s.id,data:s.property,styles:s.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128))])),_:1},8,["bgStyle","navbarStyle"])}}};export{f as default};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-order-aftersale-apply.25ae3011.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-order-aftersale-detail.3b88e5c6.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-order-aftersale-list.d91cfa75.js


+ 1 - 1
unpackage/dist/build/h5/assets/pages-order-aftersale-log.c1ddcd84.js → unpackage/dist/build/h5/assets/pages-order-aftersale-log.3e85fb01.js

@@ -1 +1 @@
-import{e as t,f as a,w as s,j as e,z as l,g as i,p as o,t as d,u as c,s as n,C as r,i as u,v as m,o as f,l as _,k as p,r as y,F as x,m as g}from"./index-3b63fea1.js";import{_ as j}from"./s-layout.49e8e73f.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";import{A as h}from"./afterSale.ba4a8dd3.js";const v=b({__name:"log-item",props:{item:{type:Object,default(){}},index:{type:Number,default:0},data:{type:Object,default(){}}},setup:m=>(f,_)=>{const p=r,y=u;return t(),a(y,{class:"log-item ss-flex"},{default:s((()=>[e(y,{class:"log-icon ss-flex-col ss-col-center ss-m-r-20"},{default:s((()=>[e(p,{class:l(["cicon-title",0===m.index?"activity-color":""])},null,8,["class"]),m.data.length-1!==m.index?(t(),a(y,{key:0,class:"line"})):i("",!0)])),_:1}),e(y,null,{default:s((()=>[e(y,{class:"text"},{default:s((()=>[o(d(m.item.content),1)])),_:1}),e(y,{class:"date"},{default:s((()=>[o(d(c(n).$helper.timeFormat(m.item.createTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:1})])),_:1})])),_:1})}},[["__scopeId","data-v-bc3922ca"]]),k=b({__name:"log",setup(l){const i=m({list:[]});return f((t=>{i.aftersaleId=t.id,async function(t){const{data:a}=await h.getAfterSaleLogList(t);i.list=a}(t.id)})),(l,o)=>{const d=u,c=_(g("s-layout"),j);return t(),a(c,{title:"售后进度"},{default:s((()=>[e(d,{class:"log-box"},{default:s((()=>[(t(!0),p(x,null,y(i.list,((l,o)=>(t(),a(d,{key:l.id},{default:s((()=>[e(v,{item:l,index:o,data:i.list},null,8,["item","index","data"])])),_:2},1024)))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-9849747c"]]);export{k as default};
+import{e as t,f as a,w as s,j as e,z as l,g as i,p as o,t as d,u as c,s as n,C as r,i as u,v as m,o as f,l as _,k as p,r as y,F as x,m as g}from"./index-7dcce25e.js";import{_ as j}from"./s-layout.6e132b7d.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";import{A as h}from"./afterSale.242757a5.js";const v=b({__name:"log-item",props:{item:{type:Object,default(){}},index:{type:Number,default:0},data:{type:Object,default(){}}},setup:m=>(f,_)=>{const p=r,y=u;return t(),a(y,{class:"log-item ss-flex"},{default:s((()=>[e(y,{class:"log-icon ss-flex-col ss-col-center ss-m-r-20"},{default:s((()=>[e(p,{class:l(["cicon-title",0===m.index?"activity-color":""])},null,8,["class"]),m.data.length-1!==m.index?(t(),a(y,{key:0,class:"line"})):i("",!0)])),_:1}),e(y,null,{default:s((()=>[e(y,{class:"text"},{default:s((()=>[o(d(m.item.content),1)])),_:1}),e(y,{class:"date"},{default:s((()=>[o(d(c(n).$helper.timeFormat(m.item.createTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:1})])),_:1})])),_:1})}},[["__scopeId","data-v-bc3922ca"]]),k=b({__name:"log",setup(l){const i=m({list:[]});return f((t=>{i.aftersaleId=t.id,async function(t){const{data:a}=await h.getAfterSaleLogList(t);i.list=a}(t.id)})),(l,o)=>{const d=u,c=_(g("s-layout"),j);return t(),a(c,{title:"售后进度"},{default:s((()=>[e(d,{class:"log-box"},{default:s((()=>[(t(!0),p(x,null,y(i.list,((l,o)=>(t(),a(d,{key:l.id},{default:s((()=>[e(v,{item:l,index:o,data:i.list},null,8,["item","index","data"])])),_:2},1024)))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-9849747c"]]);export{k as default};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-order-aftersale-return-delivery.28147339.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-order-confirm.cedc250c.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-order-detail.0d812f5a.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-order-express-log.3828dccf.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-order-list.7de7361f.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-pay-index.af2cfdf5.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-pay-recharge-log.fdce14b7.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-pay-recharge.7ceeb661.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-pay-result.c11c9f35.js


+ 1 - 1
unpackage/dist/build/h5/assets/pages-public-error.65a96349.js → unpackage/dist/build/h5/assets/pages-public-error.a27fee31.js

@@ -1 +1 @@
-import{U as t,o as e,e as o,f as n,w as a,i as s,g as r,b3 as i,bt as c,l,m as p}from"./index-3b63fea1.js";import{_ as u}from"./s-empty.febcb48d.js";import{_}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */const m=_({__name:"error",setup(_){const m=t(""),f=t("");async function x(){i({url:"/pages/index/index"}),await c()}return e((t=>{m.value=t.errCode,f.value=t.errMsg})),(t,e)=>{const i=l(p("s-empty"),u),c=s;return o(),n(c,{class:"error-page"},{default:a((()=>["NetworkError"===m.value?(o(),n(i,{key:0,icon:"/static/internet-empty.png",text:"网络连接失败",showAction:"",actionText:"重新连接",onClickAction:x,buttonColor:"#ff3000"})):"TemplateError"===m.value?(o(),n(i,{key:1,icon:"/static/internet-empty.png",text:"未找到模板",showAction:"",actionText:"重新加载",onClickAction:x,buttonColor:"#ff3000"})):""!==m.value?(o(),n(i,{key:2,icon:"/static/internet-empty.png",text:f.value,showAction:"",actionText:"重新加载",onClickAction:x,buttonColor:"#ff3000"},null,8,["text"])):r("",!0)])),_:1})}}},[["__scopeId","data-v-0cb6e9ec"]]);export{m as default};
+import{U as t,o as e,e as o,f as n,w as a,i as s,g as r,b3 as i,bt as c,l,m as p}from"./index-7dcce25e.js";import{_ as u}from"./s-empty.2d05b547.js";import{_}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */const m=_({__name:"error",setup(_){const m=t(""),f=t("");async function x(){i({url:"/pages/index/index"}),await c()}return e((t=>{m.value=t.errCode,f.value=t.errMsg})),(t,e)=>{const i=l(p("s-empty"),u),c=s;return o(),n(c,{class:"error-page"},{default:a((()=>["NetworkError"===m.value?(o(),n(i,{key:0,icon:"/static/internet-empty.png",text:"网络连接失败",showAction:"",actionText:"重新连接",onClickAction:x,buttonColor:"#ff3000"})):"TemplateError"===m.value?(o(),n(i,{key:1,icon:"/static/internet-empty.png",text:"未找到模板",showAction:"",actionText:"重新加载",onClickAction:x,buttonColor:"#ff3000"})):""!==m.value?(o(),n(i,{key:2,icon:"/static/internet-empty.png",text:f.value,showAction:"",actionText:"重新加载",onClickAction:x,buttonColor:"#ff3000"},null,8,["text"])):r("",!0)])),_:1})}}},[["__scopeId","data-v-0cb6e9ec"]]);export{m as default};

+ 1 - 1
unpackage/dist/build/h5/assets/pages-public-faq.697bccaf.js → unpackage/dist/build/h5/assets/pages-public-faq.0ecd7cf6.js

@@ -1 +1 @@
-import{v as s,o as t,s as e,e as a,f as l,w as o,l as c,j as r,k as n,r as i,F as p,g as u,m as _,p as m,t as d,i as f,C as g}from"./index-3b63fea1.js";import{_ as y,a as x}from"./uni-collapse.9955023e.js";import{_ as j}from"./s-empty.febcb48d.js";import{_ as b}from"./s-layout.49e8e73f.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */const h=v({__name:"faq",setup(v){const h=s({list:[],loading:!0});return t((()=>{e.$router.go("/pages/public/richtext",{title:"常见问题"})})),(s,t)=>{const e=f,v=g,F=c(_("uni-collapse-item"),y),k=c(_("uni-collapse"),x),w=c(_("s-empty"),j),q=c(_("s-layout"),b);return a(),l(q,{class:"set-wrap",title:"常见问题",bgStyle:{color:"#FFF"}},{default:o((()=>[r(k,null,{default:o((()=>[(a(!0),n(p,null,i(h.list,((s,t)=>(a(),l(F,{key:s},{title:o((()=>[r(e,{class:"ss-flex ss-col-center header"},{default:o((()=>[r(e,{class:"ss-m-l-20 ss-m-r-20 icon"},{default:o((()=>[r(e,{class:"rectangle"},{default:o((()=>[r(e,{class:"num ss-flex ss-row-center ss-col-center"},{default:o((()=>[m(d(t+1<10?"0"+(t+1):t+1),1)])),_:2},1024)])),_:2},1024),r(e,{class:"triangle"})])),_:2},1024),r(e,{class:"title ss-m-t-36 ss-m-b-36"},{default:o((()=>[m(d(s.title),1)])),_:2},1024)])),_:2},1024)])),default:o((()=>[r(e,{class:"content ss-p-l-78 ss-p-r-40 ss-p-b-50 ss-p-t-20"},{default:o((()=>[r(v,{class:"text"},{default:o((()=>[m(d(s.content),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),0!==h.list.length||h.loading?u("",!0):(a(),l(w,{key:0,text:"暂无常见问题",icon:"/static/collect-empty.png"}))])),_:1})}}},[["__scopeId","data-v-b566618e"]]);export{h as default};
+import{v as s,o as t,s as e,e as a,f as l,w as o,l as c,j as r,k as n,r as i,F as p,g as u,m as _,p as m,t as d,i as f,C as g}from"./index-7dcce25e.js";import{_ as y,a as x}from"./uni-collapse.900f78b6.js";import{_ as j}from"./s-empty.2d05b547.js";import{_ as b}from"./s-layout.6e132b7d.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */const h=v({__name:"faq",setup(v){const h=s({list:[],loading:!0});return t((()=>{e.$router.go("/pages/public/richtext",{title:"常见问题"})})),(s,t)=>{const e=f,v=g,F=c(_("uni-collapse-item"),y),k=c(_("uni-collapse"),x),w=c(_("s-empty"),j),q=c(_("s-layout"),b);return a(),l(q,{class:"set-wrap",title:"常见问题",bgStyle:{color:"#FFF"}},{default:o((()=>[r(k,null,{default:o((()=>[(a(!0),n(p,null,i(h.list,((s,t)=>(a(),l(F,{key:s},{title:o((()=>[r(e,{class:"ss-flex ss-col-center header"},{default:o((()=>[r(e,{class:"ss-m-l-20 ss-m-r-20 icon"},{default:o((()=>[r(e,{class:"rectangle"},{default:o((()=>[r(e,{class:"num ss-flex ss-row-center ss-col-center"},{default:o((()=>[m(d(t+1<10?"0"+(t+1):t+1),1)])),_:2},1024)])),_:2},1024),r(e,{class:"triangle"})])),_:2},1024),r(e,{class:"title ss-m-t-36 ss-m-b-36"},{default:o((()=>[m(d(s.title),1)])),_:2},1024)])),_:2},1024)])),default:o((()=>[r(e,{class:"content ss-p-l-78 ss-p-r-40 ss-p-b-50 ss-p-t-20"},{default:o((()=>[r(v,{class:"text"},{default:o((()=>[m(d(s.content),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),0!==h.list.length||h.loading?u("",!0):(a(),l(w,{key:0,text:"暂无常见问题",icon:"/static/collect-empty.png"}))])),_:1})}}},[["__scopeId","data-v-b566618e"]]);export{h as default};

+ 1 - 1
unpackage/dist/build/h5/assets/pages-public-richtext.2495e17d.js → unpackage/dist/build/h5/assets/pages-public-richtext.7952b7ba.js

@@ -1 +1 @@
-import{v as t,o as e,b8 as s,e as l,f as a,w as i,l as o,j as n,m as c,i as r}from"./index-3b63fea1.js";import{_ as m}from"./mp-html.475d14dd.js";import{_ as p}from"./s-layout.49e8e73f.js";import{A as u}from"./article.cef29637.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";const _=d({__name:"richtext",setup(d){const _=t({title:"",content:""});return e((t=>{t.title&&(_.title=t.title,s({title:_.title})),async function(t,e){const{code:l,data:a}=await u.getArticle(t,e);0===l&&(_.content=a.content,_.title!==a.title&&(_.title=a.title,s({title:_.title})))}(t.id,t.title)})),(t,e)=>{const s=o(c("mp-html"),m),u=r,d=o(c("s-layout"),p);return l(),a(d,{class:"set-wrap",title:_.title,bgStyle:{color:"#FFF"}},{default:i((()=>[n(u,{class:"ss-p-30"},{default:i((()=>[n(s,{class:"richtext",content:_.content},null,8,["content"])])),_:1})])),_:1},8,["title"])}}},[["__scopeId","data-v-d4cdeb0e"]]);export{_ as default};
+import{v as t,o as e,b8 as s,e as l,f as a,w as i,l as o,j as n,m as c,i as r}from"./index-7dcce25e.js";import{_ as m}from"./mp-html.8ee809e8.js";import{_ as p}from"./s-layout.6e132b7d.js";import{A as u}from"./article.0e5c32d4.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";const _=d({__name:"richtext",setup(d){const _=t({title:"",content:""});return e((t=>{t.title&&(_.title=t.title,s({title:_.title})),async function(t,e){const{code:l,data:a}=await u.getArticle(t,e);0===l&&(_.content=a.content,_.title!==a.title&&(_.title=a.title,s({title:_.title})))}(t.id,t.title)})),(t,e)=>{const s=o(c("mp-html"),m),u=r,d=o(c("s-layout"),p);return l(),a(d,{class:"set-wrap",title:_.title,bgStyle:{color:"#FFF"}},{default:i((()=>[n(u,{class:"ss-p-30"},{default:i((()=>[n(s,{class:"richtext",content:_.content},null,8,["content"])])),_:1})])),_:1},8,["title"])}}},[["__scopeId","data-v-d4cdeb0e"]]);export{_ as default};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-public-setting.d47e56cc.js


+ 1 - 1
unpackage/dist/build/h5/assets/pages-public-webview.95f0e432.js → unpackage/dist/build/h5/assets/pages-public-webview.95c47c69.js

@@ -1 +1 @@
-import{U as e,o as s,e as a,f as n,w as t,i as u,j as o,bu as r}from"./index-3b63fea1.js";const l={__name:"webview",setup(l){const c=e("");return s((e=>{c.value=decodeURIComponent(e.url)})),(e,s)=>{const l=r,d=u;return a(),n(d,null,{default:t((()=>[o(l,{src:c.value},null,8,["src"])])),_:1})}}};export{l as default};
+import{U as e,o as s,e as a,f as n,w as t,i as u,j as o,bu as r}from"./index-7dcce25e.js";const l={__name:"webview",setup(l){const c=e("");return s((e=>{c.value=decodeURIComponent(e.url)})),(e,s)=>{const l=r,d=u;return a(),n(d,null,{default:t((()=>[o(l,{src:c.value},null,8,["src"])])),_:1})}}};export{l as default};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-user-address-edit.e157c6c2.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-user-address-list.07302c5b.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-user-goods-collect.fc713d48.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-user-goods-log.c5bf68a9.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-user-info.3ad47b02.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-user-wallet-money.2a14f0b3.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/pages-user-wallet-score.84d3ac5a.js


+ 1 - 1
unpackage/dist/build/h5/assets/rewardActivity.99568478.js → unpackage/dist/build/h5/assets/rewardActivity.481415cb.js

@@ -1 +1 @@
-import{a7 as t}from"./index-3b63fea1.js";const r={getRewardActivity:r=>t({url:"/promotion/reward-activity/get",method:"GET",params:{id:r}})};export{r as R};
+import{a7 as t}from"./index-7dcce25e.js";const r={getRewardActivity:r=>t({url:"/promotion/reward-activity/get",method:"GET",params:{id:r}})};export{r as R};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-address-item.0338ff19.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-block.83171e06.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-coupon-list.ca3f165a.js


+ 1 - 1
unpackage/dist/build/h5/assets/s-empty.febcb48d.js → unpackage/dist/build/h5/assets/s-empty.2d05b547.js

@@ -1 +1 @@
-import{B as t,e,f as s,w as a,j as o,p as n,t as i,g as c,y as l,s as p,q as r,i as d,C as u,D as _}from"./index-3b63fea1.js";/* empty css                                                                */import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const f=y({__name:"s-empty",props:{icon:{type:String,default:""},text:{type:String,default:""},showAction:{type:Boolean,default:!1},actionText:{type:String,default:""},actionUrl:{type:String,default:""},paddingTop:{type:String,default:"260"},buttonColor:{type:String,default:"var(--ui-BG-Main)"}},emits:["clickAction"],setup(y,{emit:f}){const m=y;function x(){""!==m.actionUrl&&p.$router.go(m.actionUrl),f("clickAction")}return t((t=>({"4e03fdca":y.buttonColor}))),(t,p)=>{const f=r,m=d,g=u,b=_;return e(),s(m,{class:"ss-flex-col ss-col-center ss-row-center empty-box",style:l([{paddingTop:y.paddingTop+"rpx"}])},{default:a((()=>[o(m,{class:""},{default:a((()=>[o(f,{class:"empty-icon",src:y.icon,mode:"widthFix"},null,8,["src"])])),_:1}),o(m,{class:"empty-text ss-m-t-28 ss-m-b-40"},{default:a((()=>[""!==y.text?(e(),s(g,{key:0},{default:a((()=>[n(i(y.text),1)])),_:1})):c("",!0)])),_:1}),y.showAction?(e(),s(b,{key:0,class:"ss-reset-button empty-btn",onClick:x},{default:a((()=>[n(i(y.actionText),1)])),_:1})):c("",!0)])),_:1},8,["style"])}}},[["__scopeId","data-v-6b0d31c6"]]);export{f as _};
+import{B as t,e,f as s,w as a,j as o,p as n,t as i,g as c,y as l,s as p,q as r,i as d,C as u,D as _}from"./index-7dcce25e.js";/* empty css                                                                */import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const f=y({__name:"s-empty",props:{icon:{type:String,default:""},text:{type:String,default:""},showAction:{type:Boolean,default:!1},actionText:{type:String,default:""},actionUrl:{type:String,default:""},paddingTop:{type:String,default:"260"},buttonColor:{type:String,default:"var(--ui-BG-Main)"}},emits:["clickAction"],setup(y,{emit:f}){const m=y;function x(){""!==m.actionUrl&&p.$router.go(m.actionUrl),f("clickAction")}return t((t=>({"4e03fdca":y.buttonColor}))),(t,p)=>{const f=r,m=d,g=u,b=_;return e(),s(m,{class:"ss-flex-col ss-col-center ss-row-center empty-box",style:l([{paddingTop:y.paddingTop+"rpx"}])},{default:a((()=>[o(m,{class:""},{default:a((()=>[o(f,{class:"empty-icon",src:y.icon,mode:"widthFix"},null,8,["src"])])),_:1}),o(m,{class:"empty-text ss-m-t-28 ss-m-b-40"},{default:a((()=>[""!==y.text?(e(),s(g,{key:0},{default:a((()=>[n(i(y.text),1)])),_:1})):c("",!0)])),_:1}),y.showAction?(e(),s(b,{key:0,class:"ss-reset-button empty-btn",onClick:x},{default:a((()=>[n(i(y.actionText),1)])),_:1})):c("",!0)])),_:1},8,["style"])}}},[["__scopeId","data-v-6b0d31c6"]]);export{f as _};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-goods-column.8f2df9d4.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-goods-item.a19328fb.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-layout-6c86ec08.css


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-layout.6e132b7d.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-select-groupon-sku.340f7ca9.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/s-uploader.501caeab.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/sign-1bd4ef04.css


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/sign-4c1ce261.css


+ 1 - 1
unpackage/dist/build/h5/assets/spu.ebdadc1e.js → unpackage/dist/build/h5/assets/spu.ce0a9a2f.js

@@ -1 +1 @@
-import{a7 as o}from"./index-3b63fea1.js";const s={getSpuListByIds:s=>o({url:"/product/spu/list-by-ids",method:"GET",params:{ids:s},custom:{showLoading:!1,showError:!1}}),getSpuPage:s=>o({url:"/product/spu/page",method:"GET",params:s,custom:{showLoading:!1,showError:!1}}),getSpuDetail:s=>o({url:"/product/spu/get-detail",method:"GET",params:{id:s},custom:{showLoading:!1,showError:!1}})};export{s as S};
+import{a7 as o}from"./index-7dcce25e.js";const s={getSpuListByIds:s=>o({url:"/product/spu/list-by-ids",method:"GET",params:{ids:s},custom:{showLoading:!1,showError:!1}}),getSpuPage:s=>o({url:"/product/spu/page",method:"GET",params:s,custom:{showLoading:!1,showError:!1}}),getSpuDetail:s=>o({url:"/product/spu/get-detail",method:"GET",params:{id:s},custom:{showLoading:!1,showError:!1}})};export{s as S};

+ 1 - 1
unpackage/dist/build/h5/assets/su-image.bf93a08f.js → unpackage/dist/build/h5/assets/su-image.f286387e.js

@@ -1 +1 @@
-import{v as e,c as r,e as t,f as i,y as s,u as o,s as a,g as n,ai as u,q as d}from"./index-3b63fea1.js";import{_ as l}from"./_plugin-vue_export-helper.1b428a4d.js";const p=l({__name:"su-image",props:{src:{type:String,default:""},errorSrc:{type:String,default:"/static/img/shop/empty_network.png"},mode:{type:String,default:"widthFix"},isPreview:{type:Boolean,default:!1},previewList:{type:Array,default:()=>[]},current:{type:Number,default:-1},height:{type:Number,default:0},width:{type:Number,default:0},radius:{type:Number,default:0}},emits:["load","error"],setup(l,{emit:p}){const c=l,g=e({isError:!1,imgHeight:600}),m=r((()=>({height:(c.height||g.imgHeight)+"rpx",width:c.width?c.width+"rpx":"100%",borderRadius:c.radius?c.radius+"rpx":""})));function h(e){0===c.height&&(g.imgHeight=e.detail.height/e.detail.width*750)}function f(e){g.isError=!0,p("error",e)}function y(){c.isPreview&&u({urls:c.previewList.length<1?[c.src]:c.previewList,current:c.current,longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(e){console.log("选中了第"+(e.tapIndex+1)+"个按钮,第"+(e.index+1)+"张图片")},fail:function(e){console.log(e.errMsg)}}})}return(e,r)=>{const u=d;return g.isError?n("",!0):(t(),i(u,{key:0,class:"su-img",style:s(o(m)),draggable:!1,mode:l.mode,src:o(a).$url.cdn(l.src),onClick:y,onLoad:h,onError:f},null,8,["style","mode","src"]))}}},[["__scopeId","data-v-76b85271"]]);export{p as _};
+import{v as e,c as r,e as t,f as i,y as s,u as o,s as a,g as n,ai as u,q as d}from"./index-7dcce25e.js";import{_ as l}from"./_plugin-vue_export-helper.1b428a4d.js";const p=l({__name:"su-image",props:{src:{type:String,default:""},errorSrc:{type:String,default:"/static/img/shop/empty_network.png"},mode:{type:String,default:"widthFix"},isPreview:{type:Boolean,default:!1},previewList:{type:Array,default:()=>[]},current:{type:Number,default:-1},height:{type:Number,default:0},width:{type:Number,default:0},radius:{type:Number,default:0}},emits:["load","error"],setup(l,{emit:p}){const c=l,g=e({isError:!1,imgHeight:600}),m=r((()=>({height:(c.height||g.imgHeight)+"rpx",width:c.width?c.width+"rpx":"100%",borderRadius:c.radius?c.radius+"rpx":""})));function h(e){0===c.height&&(g.imgHeight=e.detail.height/e.detail.width*750)}function f(e){g.isError=!0,p("error",e)}function y(){c.isPreview&&u({urls:c.previewList.length<1?[c.src]:c.previewList,current:c.current,longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(e){console.log("选中了第"+(e.tapIndex+1)+"个按钮,第"+(e.index+1)+"张图片")},fail:function(e){console.log(e.errMsg)}}})}return(e,r)=>{const u=d;return g.isError?n("",!0):(t(),i(u,{key:0,class:"su-img",style:s(o(m)),draggable:!1,mode:l.mode,src:o(a).$url.cdn(l.src),onClick:y,onLoad:h,onError:f},null,8,["style","mode","src"]))}}},[["__scopeId","data-v-76b85271"]]);export{p as _};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/su-number-box.d658f9d0.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/assets/su-sticky.ce66731e.js


Some files were not shown because too many files changed in this diff