goodsList.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. <template>
  2. <!--components/topicList/topicList.wxml-->
  3. <view :style="'background-color:' + pageList.backgroundColor + ';'">
  4. <!-- 分块版式一 -->
  5. <view class="list1" v-if="pageList.displayStyle=='2' && pageList.lineNumber=='1'">
  6. <view v-for="(item, index) in pageList.products" :key="index" @tap="goUrl" :data-id="item.id"
  7. :data-type="type" :data-index="index" class="li dflex">
  8. <view class="jsdimgs1">
  9. <image lazy-load="true" :src="item.pic+ '?x-oss-process=style/w750-auto'" mode="aspectFill"
  10. class="liimg"></image>
  11. <image v-if="item.isJs && about.timely_close != 1" src="/static/pages/images/jishida.png" class="jsdimg1"></image>
  12. <image :src="picUrlss + 'shouqing.png'" class="shouqing" v-if="item.stock < 1"></image>
  13. </view>
  14. <view class="info flex">
  15. <block v-if="!type">
  16. <view class="proname"><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.title}}</view>
  17. <view :class="!item.brief?'Ninfos infos':'infos'">{{item.brief==null?' ':item.brief}}</view>
  18. </block>
  19. <block v-else>
  20. <view class="proname"><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.productName}}</view>
  21. <view style="height: 46rpx;" v-if="type!=5">
  22. <view :class="item.times?'endtime':'endtimes'" v-if="item.times">
  23. <block v-if="item.times">
  24. {{item.start ? '距结束' : '距开始'}}
  25. {{item.times?item.times:''}}
  26. </block>
  27. </view>
  28. </view>
  29. <view style="height: 46rpx;" v-else>
  30. <view class="kan-time dflex" v-if="item.times && item.times.length > 0">
  31. <block v-if="item.times.length==4">
  32. <block v-if="item.times[0] !=0"><text>{{item.times[0]}}</text>天</block>
  33. <text>{{item.times[1]}}</text>:
  34. <text>{{item.times[2]}}</text>:
  35. <text>{{item.times[3]}}</text>
  36. </block>
  37. <block v-else>
  38. <text>{{item.times[0]}}</text>:
  39. <text>{{item.times[1]}}</text>:
  40. <text>{{item.times[2]}}</text>
  41. </block>
  42. <view>{{item.start==false?'后开始':'后结束'}}</view>
  43. </view>
  44. </view>
  45. </block>
  46. <view class="xiaol xiaoll dflex">
  47. <block v-if="item.isOtc != 5 && about.is_open_shop == 1 && (isDistriUser == 2 || ascription)">
  48. <view class="zhuan dflex" v-if="item.commission>0">
  49. <block>
  50. <text>赚</text>
  51. <view class="dflex">¥{{item.commission }}</view>
  52. </block>
  53. </view>
  54. </block>
  55. <view class="yishou">{{item.sellStock}}件已售</view>
  56. </view>
  57. <view class="operate dflex">
  58. <block v-if="!type">
  59. <view class="price proprice">
  60. ¥<text>{{item.salePrice}}</text>
  61. <text class="vip" v-if="about.show_membership_price==1&&item.actualPrice < item.salePrice"><text class="sale">VIP</text><text class="members">{{item.actualPrice}}</text></text>
  62. <text class="vip"
  63. v-if="about.show_membership_price==1&&item.membersPrice<item.salePrice"><text
  64. class="sale">VIP</text><text
  65. class="members">{{item.membersPrice}}</text></text>
  66. <text class="del" v-if="about.show_membership_price!=1">
  67. <block v-if="item.marketPrice!=0&&item.marketPrice>item.salePrice">
  68. ¥{{item.marketPrice}}
  69. </block>
  70. </text>
  71. </view>
  72. <view class="btn">立即抢购</view>
  73. </block>
  74. <block v-else>
  75. <view class="price dflex">
  76. <block>{{typeName?typeName:''}}</block>
  77. ¥<text>{{item.money}}</text><text class="del"
  78. v-if="item.marketPrice!=0&&item.marketPrice>item.money">¥{{item.marketPrice}}</text>
  79. </view>
  80. <view class="add-cart">
  81. <!-- <image src="/static/pages/images/jia.png" v-if="item.start"></image> -->
  82. <block v-if="!item.start">
  83. <view class="remind mbggreen" v-if="item.isRemind" data-type="1">取消提醒</view>
  84. <view class="remind mbggreen" v-else>开团提醒</view>
  85. </block>
  86. </view>
  87. </block>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <!-- 分块版式二 -->
  93. <view class="list2 dflex" v-if="pageList.displayStyle=='2' && pageList.lineNumber=='2'">
  94. <view v-for="(item, index) in pageList.products" :key="index" class="li">
  95. <view @tap="goUrl" :data-id="item.id" :data-type="type" :data-index="index">
  96. <view class="jsdimgs">
  97. <image lazy-load="true" :src="item.pic + '?x-oss-process=style/w375'" mode="aspectFill"
  98. class="jsdpro"></image>
  99. <image v-if="item.isJs && about.timely_close != 1" src="/static/pages/images/jishida.png" class="jsdimg"></image>
  100. <image :src="picUrlss + 'shouqing.png'" class="shouqing" v-if="item.stock < 1"></image>
  101. </view>
  102. <view class="jsdinfo">
  103. <view class="proname" v-if="!type"><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.title}}</view>
  104. <view class="proname" v-else><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.productName}}</view>
  105. <view class="xiaol dflex">
  106. <block
  107. v-if="item.isOtc != 5 && about.is_open_shop == 1 && (isDistriUser == 2 || ascription)">
  108. <view class="zhuan dflex" v-if="item.commission>0">
  109. <block>
  110. <text>赚</text>
  111. <view class="dflex">¥{{item.commission }}</view>
  112. </block>
  113. </view>
  114. </block>
  115. <view class="yishou">{{item.sellStock}}件已售</view>
  116. </view>
  117. <!-- <view class="show-vip">
  118. <text class="vip" v-if="about.show_membership_price==1&&item.actualPrice < item.salePrice"><text class="sale">VIP</text><text class="members">{{item.actualPrice}}</text></text>
  119. <text class="vip"
  120. v-if="about.show_membership_price==1&&item.membersPrice<item.salePrice"><text
  121. class="sale">VIP</text><text
  122. class="members">{{item.membersPrice}}</text></text>
  123. </view> -->
  124. <view class="operate dflex">
  125. <block v-if="!type">
  126. <view class="price proprice">
  127. ¥<text>{{item.salePrice}}</text>
  128. <text class="vip" v-if="about.show_membership_price==1&&item.actualPrice < item.salePrice"><text class="sale">VIP</text><text class="members">{{item.actualPrice}}</text></text>
  129. <text class="vip"
  130. v-if="about.show_membership_price==1&&item.membersPrice<item.salePrice"><text
  131. class="sale">VIP</text><text
  132. class="members">{{item.membersPrice}}</text></text>
  133. <text class="del" v-if="about.show_membership_price!=1">
  134. <block v-if="item.marketPrice!=0&&item.marketPrice>item.salePrice">
  135. ¥{{item.marketPrice}}
  136. </block>
  137. </text>
  138. </view>
  139. <view class="add-cart">
  140. <image src="/static/pages/images/jia.png"></image>
  141. </view>
  142. </block>
  143. <block v-else>
  144. <view class="price dflex">
  145. <block>{{typeName?typeName:''}}</block>
  146. ¥<text>{{item.money}}</text><text class="del"
  147. v-if="item.marketPrice!=0&&item.marketPrice>item.money">¥{{item.marketPrice}}</text>
  148. </view>
  149. </block>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <!-- 分块版式三 -->
  156. <view class="list3 dflex" v-if="pageList.displayStyle=='2' && pageList.lineNumber=='3'">
  157. <view v-for="(item, index) in pageList.products" :key="index" class="li">
  158. <navigator :url="'/product/detail/detail?id=' + item.id+merchant" hover-class="none">
  159. <view class="jsdimgs">
  160. <image lazy-load="true" :src="item.pic + '?x-oss-process=style/w210'" mode="aspectFill"
  161. class="jsdpro"></image>
  162. <image v-if="item.isJs && about.timely_close != 1" src="/static/pages/images/jishida.png" class="jsdimg1"></image>
  163. <image :src="picUrlss + 'shouqing.png'" class="shouqing" v-if="item.stock < 1"></image>
  164. </view>
  165. <view class="jsdinfo">
  166. <view class="proname"><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.title}}</view>
  167. <view class="xiaol">
  168. <!-- <block v-if="item.isOtc != 5 && about.is_open_shop == 1 && (isDistriUser == 2 || ascription)">
  169. <view class="zhuan dflex" v-if="item.commission>0">
  170. <block>
  171. <text>赚</text>
  172. <view class="dflex">¥{{item.commission }}</view>
  173. </block>
  174. </view>
  175. </block> -->
  176. <view class="yishou">{{item.sellStock}}件已售</view>
  177. </view>
  178. <view class="operate dflex">
  179. <view class="price proprice">¥<text>{{item.salePrice}}</text>
  180. <!-- <text class="del" v-if="item.marketPrice!=0&&item.marketPrice>item.salePrice">¥{{item.marketPrice}}</text> -->
  181. </view>
  182. <view class="add-cart">
  183. <image src="/static/pages/images/jia.png"></image>
  184. </view>
  185. </view>
  186. </view>
  187. </navigator>
  188. </view>
  189. </view>
  190. <!-- 分隔线版式一 -->
  191. <view class="list1 list4" v-if="pageList.displayStyle=='1' && pageList.lineNumber=='1'">
  192. <view v-for="(item, index) in pageList.products" :key="index" @tap="goUrl" :data-id="item.id"
  193. :data-type="type" :data-index="index" class="li dflex">
  194. <view class="jsdimgs1">
  195. <image lazy-load="true" :src="item.pic+ '?x-oss-process=style/w750-auto'" mode="aspectFill"
  196. class="liimg"></image>
  197. <image v-if="item.isJs && about.timely_close != 1" src="/static/pages/images/jishida.png" class="jsdimg1"></image>
  198. <image :src="picUrlss + 'shouqing.png'" class="shouqing" v-if="item.stock < 1"></image>
  199. </view>
  200. <view class="info flex">
  201. <block v-if="!type">
  202. <view class="proname"><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.title}}</view>
  203. <view :class="!item.brief?'Ninfos infos':'infos'">{{item.brief==null?' ':item.brief}}</view>
  204. </block>
  205. <block v-else>
  206. <view class="proname"><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.productName}}</view>
  207. <view style="height: 46rpx;" v-if="type!=5">
  208. <view :class="item.times?'endtime':'endtimes'" v-if="item.times">
  209. <block v-if="item.times">
  210. {{item.start ? '距结束' : '距开始'}}
  211. {{item.times?item.times:''}}
  212. </block>
  213. </view>
  214. </view>
  215. <view style="height: 46rpx;" v-else>
  216. <view class="kan-time dflex" v-if="item.times && item.times.length > 0">
  217. <block v-if="item.times.length==4">
  218. <block v-if="item.times[0] !=0"><text>{{item.times[0]}}</text>天</block>
  219. <text>{{item.times[1]}}</text>:
  220. <text>{{item.times[2]}}</text>:
  221. <text>{{item.times[3]}}</text>
  222. </block>
  223. <block v-else>
  224. <text>{{item.times[0]}}</text>:
  225. <text>{{item.times[1]}}</text>:
  226. <text>{{item.times[2]}}</text>
  227. </block>
  228. <view>{{item.start==false?'后开始':'后结束'}}</view>
  229. </view>
  230. </view>
  231. </block>
  232. <view class="xiaol dflex">
  233. <block v-if="item.isOtc != 5 && about.is_open_shop == 1 && (isDistriUser == 2 || ascription)">
  234. <view class="zhuan dflex" v-if="item.commission>0">
  235. <block>
  236. <text>赚</text>
  237. <view class="dflex">¥{{item.commission }}</view>
  238. </block>
  239. </view>
  240. </block>
  241. <view class="yishou">{{item.sellStock}}件已售</view>
  242. </view>
  243. <view class="operate dflex">
  244. <block v-if="!type">
  245. <view class="price proprice">
  246. ¥<text>{{item.salePrice}}</text>
  247. <text class="vip" v-if="about.show_membership_price==1&&item.actualPrice < item.salePrice"><text class="sale">VIP</text><text class="members">{{item.actualPrice}}</text></text>
  248. <text class="vip"
  249. v-if="about.show_membership_price==1&&item.membersPrice<item.salePrice"><text
  250. class="sale">VIP</text><text
  251. class="members">{{item.membersPrice}}</text></text>
  252. <text class="del" v-if="about.show_membership_price!=1">
  253. <block v-if="item.marketPrice!=0&&item.marketPrice>item.salePrice">
  254. ¥{{item.marketPrice}}
  255. </block>
  256. </text>
  257. </view>
  258. <view class="btn">立即抢购</view>
  259. </block>
  260. <block v-else>
  261. <view class="price dflex">
  262. <block>{{typeName?typeName:''}}</block>
  263. ¥<text>{{item.money}}</text><text class="del"
  264. v-if="item.marketPrice!=0&&item.marketPrice>item.money">¥{{item.marketPrice}}</text>
  265. </view>
  266. <view class="add-cart">
  267. <!-- <image src="/static/pages/images/jia.png" v-if="item.start"></image> -->
  268. <block v-if="!item.start">
  269. <view class="remind mbggreen" v-if="item.isRemind" data-type="1">取消提醒</view>
  270. <view class="remind mbggreen" v-else>开团提醒</view>
  271. </block>
  272. </view>
  273. </block>
  274. </view>
  275. </view>
  276. </view>
  277. </view>
  278. <!-- 分隔线版式二 -->
  279. <view class="list2 list5 dflex" v-if="pageList.displayStyle=='1' && pageList.lineNumber=='2'">
  280. <view v-for="(item, index) in pageList.products" :key="index" class="li">
  281. <view @tap="goUrl" :data-id="item.id" :data-type="type" :data-index="index">
  282. <view class="jsdimgs">
  283. <image lazy-load="true" :src="item.pic + '?x-oss-process=style/w375'" mode="aspectFill"
  284. class="jsdpro"></image>
  285. <image v-if="item.isJs && about.timely_close != 1" src="/static/pages/images/jishida.png" class="jsdimg1"></image>
  286. <image :src="picUrlss + 'shouqing.png'" class="shouqing" v-if="item.stock < 1"></image>
  287. </view>
  288. <view class="jsdinfo">
  289. <view class="proname" v-if="!type"><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.title}}</view>
  290. <view class="proname" v-else><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.productName}}</view>
  291. <view class="xiaol dflex">
  292. <block
  293. v-if="item.isOtc != 5 && about.is_open_shop == 1 && (isDistriUser == 2 || ascription)">
  294. <view class="zhuan dflex" v-if="item.commission>0">
  295. <block>
  296. <text>赚</text>
  297. <view class="dflex">¥{{item.commission }}</view>
  298. </block>
  299. </view>
  300. </block>
  301. <view class="yishou">{{item.sellStock}}件已售</view>
  302. </view>
  303. <!-- <view class="show-vip">
  304. <text class="vip" v-if="about.show_membership_price==1&&item.actualPrice < item.salePrice"><text class="sale">VIP</text><text class="members">{{item.actualPrice}}</text></text>
  305. <text class="vip"
  306. v-if="about.show_membership_price==1&&item.membersPrice<item.salePrice"><text
  307. class="sale">VIP</text><text
  308. class="members">{{item.membersPrice}}</text></text>
  309. </view> -->
  310. <view class="operate dflex">
  311. <block v-if="!type">
  312. <view class="price proprice">
  313. ¥<text>{{item.salePrice}}</text>
  314. <text class="vip" v-if="about.show_membership_price==1&&item.actualPrice < item.salePrice"><text class="sale">VIP</text><text class="members">{{item.actualPrice}}</text></text>
  315. <text class="vip"
  316. v-if="about.show_membership_price==1&&item.membersPrice<item.salePrice"><text
  317. class="sale">VIP</text><text
  318. class="members">{{item.membersPrice}}</text></text>
  319. <text class="del" v-if="about.show_membership_price!=1">
  320. <block v-if="item.marketPrice!=0&&item.marketPrice>item.salePrice">
  321. ¥{{item.marketPrice}}
  322. </block>
  323. </text>
  324. </view>
  325. <view class="add-cart">
  326. <image src="/static/pages/images/jia.png"></image>
  327. </view>
  328. </block>
  329. <block v-else>
  330. <view class="price dflex">
  331. <block>{{typeName?typeName:''}}</block>
  332. ¥<text>{{item.money}}</text><text class="del"
  333. v-if="item.marketPrice!=0&&item.marketPrice>item.money">¥{{item.marketPrice}}</text>
  334. </view>
  335. </block>
  336. </view>
  337. </view>
  338. </view>
  339. </view>
  340. </view>
  341. <!-- 分隔线版式三 -->
  342. <view class="list3 list6 dflex" v-if="pageList.displayStyle=='1' && pageList.lineNumber=='3'">
  343. <view v-for="(item, index) in pageList.products" :key="index" class="li">
  344. <navigator :url="'/product/detail/detail?id=' + item.id+merchant" hover-class="none">
  345. <view class="jsdimgs">
  346. <image lazy-load="true" :src="item.pic + '?x-oss-process=style/w210'" mode="aspectFill"
  347. class="jsdpro"></image>
  348. <image v-if="item.isJs && about.timely_close != 1" src="/static/pages/images/jishida.png" class="jsdimg1"></image>
  349. <image :src="picUrlss + 'shouqing.png'" class="shouqing" v-if="item.stock < 1"></image>
  350. </view>
  351. <view class="jsdinfo">
  352. <view class="proname"><text class="yushou" v-if="item.estimatedDeliveryTimeStr">预售</text>{{item.title}}</view>
  353. <view class="xiaol dflex">
  354. <!-- <block v-if="item.isOtc != 5 && about.is_open_shop == 1 && (isDistriUser == 2 || ascription)">
  355. <view class="zhuan dflex" v-if="item.commission>0">
  356. <block>
  357. <text>赚</text>
  358. <view class="dflex">¥{{item.commission }}</view>
  359. </block>
  360. </view>
  361. </block> -->
  362. <view class="yishou">{{item.sellStock}}件已售</view>
  363. </view>
  364. <view class="operate dflex">
  365. <view class="price proprice">¥<text>{{item.salePrice}}</text>
  366. <text class="del"
  367. v-if="item.marketPrice!=0&&item.marketPrice>item.salePrice">¥{{item.marketPrice}}</text>
  368. </view>
  369. <view class="add-cart">
  370. <image src="/static/pages/images/jia.png"></image>
  371. </view>
  372. </view>
  373. </view>
  374. </navigator>
  375. </view>
  376. </view>
  377. </view>
  378. </template>
  379. <script>
  380. // components/topicList/topicList.js
  381. const app = getApp();
  382. const req = require("../../utils/request");
  383. export default {
  384. data() {
  385. return {
  386. picUrlss: req.public.picUrls,
  387. isDistriUser: 0, // 判断用户是否是分销员 2为分销员
  388. ascription: false, //是否开启小店
  389. };
  390. },
  391. components: {},
  392. props: {
  393. pageList: Object,
  394. about: Object,
  395. merchant: String,
  396. type: String,
  397. typeName: String
  398. },
  399. /**
  400. * 组件的属性列表
  401. */
  402. options: {
  403. addGlobalClass: true
  404. },
  405. mounted() {
  406. this.getMy();
  407. console.log("组件页面pageList", this.pageList, this.merchant)
  408. },
  409. methods: {
  410. getMy() {
  411. let that = this;
  412. let userInfo = req.getStorage('userInfo');
  413. if (!userInfo || userInfo == null) return false;
  414. if (userInfo && userInfo.listShopBase && userInfo.listShopBase != null && userInfo.listShopBase.length >
  415. 0) {
  416. if (userInfo.listShopBase[0].merchant_id == that.merchant.id && that.merchant.type != 5) {
  417. that.ascription = true;
  418. }
  419. }
  420. req.getRequest('/api/user/my', {}, data => {
  421. that.isDistriUser = data.isDistriUser;
  422. });
  423. },
  424. goUrl(event) {
  425. console.log("qwewqe")
  426. let id = event.currentTarget.dataset.id
  427. let type = event.currentTarget.dataset.type
  428. let index = event.currentTarget.dataset.index
  429. const activity = this.pageList.products[index];
  430. let merchant = this.merchant
  431. // console.log(type, !type)
  432. if (!type) {
  433. // console.log("123", id)
  434. app.globalData.openPage('product/detail/detail?id=' + id + merchant)
  435. } else if (type == 1) {
  436. app.globalData.openPage('product/groupDetail/groupDetail?acid=' + activity.id + "&id=" + activity
  437. .productId +
  438. merchant)
  439. } else if (type == 4) {
  440. app.globalData.openPage('activity/newbornDetails/newbornDetails?acid=' + activity.id + '&id=' +
  441. activity.productId +
  442. merchant)
  443. } else if (type == 5) {
  444. app.globalData.openPage('activity/bargain/detail/detail?acid=' + activity.id + '&id=' + activity
  445. .productId +
  446. merchant)
  447. } else if (type == 3) {
  448. app.globalData.openPage('activity/group/detail/detail?acid=' + activity.id + '&id=' + activity
  449. .productId +
  450. merchant)
  451. } else if (type == 2) {
  452. app.globalData.openPage('activity/seckillDetails/seckillDetails?acid=' + activity.id + '&id=' +
  453. activity.productId +
  454. merchant)
  455. }
  456. },
  457. // toGroupRemind(event) {
  458. // const index = event.currentTarget.dataset.index;
  459. // const activity = this.activityGroup[index];
  460. // const url = event.currentTarget.dataset.url;
  461. // console.log(url)
  462. // app.globalData.openPage('product/groupDetail/groupDetail?acid=' + activity.id + "&id=" + activity.productId + url); // app.openPage('product/groupDetail/groupDetail?acid=' + activity.id + "&id=" + activity.productId);
  463. // },
  464. cancelActivityRemind(event) {
  465. const index = event.currentTarget.dataset.index;
  466. const id = event.currentTarget.dataset.id;
  467. const type = event.currentTarget.dataset.type;
  468. if (req.header.appId == 'ZQ1VK5oc17I387E') {
  469. } else {
  470. route.cancelActivityRemind({
  471. id: id
  472. }, res => {
  473. req.msg('取消提醒成功');
  474. let data = {};
  475. if (type == 1) data['activityGroup[' + index + '].isRemind'] = false;
  476. this.setData(data);
  477. });
  478. }
  479. },
  480. addActivityRemind(event) {
  481. const index = event.currentTarget.dataset.index;
  482. const id = event.currentTarget.dataset.id;
  483. const type = event.currentTarget.dataset.type;
  484. route.addActivityRemind({
  485. activityId: id
  486. }, res => {
  487. // mes.remind().then(res=>res)
  488. // mes.requsetmessage()
  489. mes.remind().then(res => res);
  490. req.msg('订阅提醒成功');
  491. let data = {};
  492. if (type == 1) data['activityGroup[' + index + '].isRemind'] = true;
  493. this.setData(data);
  494. });
  495. }
  496. }
  497. };
  498. </script>
  499. <style>
  500. @import "./goodsList.css";
  501. </style>