瀏覽代碼

支付宝处理盲票规则与购买协议、奖品页富文本

DELL 3 年之前
父節點
當前提交
afb282598b
共有 3 個文件被更改,包括 17 次插入0 次删除
  1. 5 0
      src/components/pay-popup/pay-popup.vue
  2. 10 0
      src/packagePrize/choice/index.vue
  3. 2 0
      src/pages/index/index.vue

+ 5 - 0
src/components/pay-popup/pay-popup.vue

@@ -34,7 +34,12 @@
 								@change="changeChecked"></u-checkbox>
 						</u-checkbox-group>
 					</view>
+					<!-- #ifndef MP-ALIPAY -->
 					<view class="txt" @click="toRule">同意《盲票购买协议》</text></view>
+					<!-- #endif -->
+					<!-- #ifdef MP-ALIPAY -->
+					<view class="txt">同意《盲票购买协议》</text></view>
+					<!-- #endif -->
 				</view>
 				<view class="flex btn">
 					<view class="flex btn-left">

+ 10 - 0
src/packagePrize/choice/index.vue

@@ -284,10 +284,20 @@
 					if (res.code == 0) {
 						this.detailShow = true
 						// 处理富文本
+						// #ifndef MP-ALIPAY
 						const description = res.data.description.replaceAll(".jpg\"", ".jpg?imageView2/2/w/750\"")
 							.replaceAll(".jpeg\"", ".jpeg?imageView2/2/w/750\"").replaceAll(".png\"",
 								".png?imageView2/2/w/750\"");
 						this.description = formatRichText(description);
+						// #endif
+						
+						// #ifdef MP-ALIPAY
+						res.data.description.split(".jpg\"").join(".jpg?imageView2/2/w/750\"")
+						res.data.description.split(".jpeg\"").join(".jpeg?imageView2/2/w/750\"")
+						res.data.description.split(".png\"").join(".png?imageView2/2/w/750\"")
+						this.description = formatRichText(res.data.description);
+						console.log(this.description);
+						// #endif
 					}
 				}).catch(() => {
 					uni.hideLoading();

+ 2 - 0
src/pages/index/index.vue

@@ -22,10 +22,12 @@
 
 				<!-- 查看规则 -->
 				<view class="rule">
+					<!-- #ifndef MP-ALIPAY -->
 					<view class="rule-content flex" @click="toRule">
 						<image src="../../static/index/index_tip.png" mode="scaleToFill"></image>
 						<text>查看规则</text>
 					</view>
+					<!-- #endif -->
 				</view>
 
 				<!-- 盲票轮播 -->